Create a group
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The ID of the customer. This field is required and must be a valid customer ID.
"cus_IzkjlvAhdjzjht3"
The ID of the payment intent associated with this payment group. This field is required and must be a valid payment intent ID.
"pi_1JYLo8KerLxWZaQtys6ZQ1xR"
The ID of the payment intent associated with this payment group. This field is required and must be a valid payment intent ID.
"pi_1JYLo8KerLxWZaQtys6ZQ1xR"
Additional metadata for the payment group. This can include any additional information needed to process the payment group.
{
"order_id": "ord_1JYLo8KerLxWZaQtys6ZQ1xS"
}
The expiration date and time of the payment group. Must be between the minimum and maximum payment group duration.
"2024-11-05T14:44:03.303Z"
The midpoint date and time of the payment group for reminder purposes. Must be before the expiration date.
"2024-11-05T14:44:00.805Z"
Response
The id of the group.
"ord_1234567890"
The shared identifier of the group. If null, it will create a group. If not null, it will join the group.
"KHT-XXXXXXXX"
Wether the order is in live mode or test mode.
true
The id of the organization.
"org_1234567890"
The id of the customer.
"cus_1234567890"
The email of the creator of the group.
The status of the group.
OPEN
, COMPLETED
, CANCELED
, EXPIRED
"COMPLETED"
Additional metadata for the order.
{ "basket_id": "1JYLo8KerLxWZaQtys6ZQ1xS" }
"2021-07-22T00:00:00.000Z"
"2021-07-22T00:00:00.000Z"
"2021-07-22T00:00:00.000Z"
"2021-07-22T00:00:00.000Z"
The reminder email sent status of the group.
NOT_SENT
, MIDWAY_SENT
, DAY3_SENT
, DAY2_BEFORE_END_SENT
"NOT_SENT"
"2021-07-22T00:00:00.000Z"
The id of the user who created the customer.
"usr_1234567890"
"2021-07-22T00:00:00.000Z"
The id of the user who last updated the customer.
"usr_1234567890"
"2021-07-22T00:00:00.000Z"
"2021-07-22T00:00:00.000Z"