Skip to main content
POST
Create a group
Creates a new group with a name and initial members. Each member specifies an existing participant’s Scrip UUID (participant_id; ext: is not accepted) and a role of ADMIN or MEMBER. At least one member must have the ADMIN role. Including a CLOSED participant returns 409 participant_inactive and creates no group. Groups exist at the organization level and can participate across multiple programs. Once created, a group can hold balances and be targeted by rules independently of its individual members.
For usage patterns and examples, see the Groups guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Body

application/json

Group details with initial members (at least one ADMIN required)

Creates a group, optionally with its first members.

members
object[]
required

Initial members (at least one ADMIN required)

Minimum array length: 1
name
string
required

Display name for the group (1-255 chars)

Required string length: 1 - 255
Example:

"Sales Team"

on_behalf_of_participant_id
string<uuid>

The participant who asked for this change. Scrip stores it with the membership record; the API does not return it.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b007"

Response

Group created with ledger entity

A group of participants that share balances and rewards.

created_at
string<date-time>

When this group was created

Example:

"2027-01-15T10:30:00Z"

deleted_at
string<date-time>

When the group was archived (present only if archived)

Example:

"2027-01-15T10:30:00Z"

id
string<uuid>

Unique identifier for this group

Example:

"0b9e7d3c-5a41-4f68-a2c7-81e4d6b3f907"

ledger_entity_id
string<uuid>

The id of the group's wallet. Send it as redemption_target_entity_id on a program to post redeemed value to this group's wallet. It is not the group's id.

Example:

"5e7a9c13-2d4f-4b68-9a0c-e1b3d5f7a920"

name
string

The name people see for the group.

Example:

"Sales Team"

status
enum<string>

The group's lifecycle state.

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When this group was last updated

Example:

"2027-01-15T10:30:00Z"