API Reference
Customers
Referral Groups
List all orders in a group
GET
/
groups
/
{id}
/
participants
curl --request GET \
--url https://api.kohortpay.com/groups/{id}/participants \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "ord_1234567890",
"livemode": true,
"organizationId": "org_1234567890",
"amount": 35000,
"amountCashback": 5000,
"applicationFeeAmount": 1000,
"customerEmail": "[email protected]",
"customerFirstName": "John",
"customerLastName": "Doe",
"customerPhoneNumber": "+1 555 555 5555",
"paymentGroupShareId": "KHT-XXXXXXXX",
"customerId": "cus_xxxxxxxxxxxxxxxx",
"currency": "EUR",
"locale": "en_US",
"status": "CASHBACK_SENT",
"metadata": {
"basket_id": "1JYLo8KerLxWZaQtys6ZQ1xS"
},
"paymentGroupId": "pg_1234567890",
"ambassadorId": "amb_1234567890",
"clientReferenceId": "1234567890",
"riskLevel": "LOW",
"createdAt": "2021-07-22T00:00:00.000Z",
"createdBy": "usr_1234567890",
"updatedAt": "2021-07-22T00:00:00.000Z",
"updatedBy": "usr_1234567890"
}
],
"count": 123
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Unique group ID
Response
200 - application/json
Orders successfully retrieved.
The response is of type object
.
curl --request GET \
--url https://api.kohortpay.com/groups/{id}/participants \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "ord_1234567890",
"livemode": true,
"organizationId": "org_1234567890",
"amount": 35000,
"amountCashback": 5000,
"applicationFeeAmount": 1000,
"customerEmail": "[email protected]",
"customerFirstName": "John",
"customerLastName": "Doe",
"customerPhoneNumber": "+1 555 555 5555",
"paymentGroupShareId": "KHT-XXXXXXXX",
"customerId": "cus_xxxxxxxxxxxxxxxx",
"currency": "EUR",
"locale": "en_US",
"status": "CASHBACK_SENT",
"metadata": {
"basket_id": "1JYLo8KerLxWZaQtys6ZQ1xS"
},
"paymentGroupId": "pg_1234567890",
"ambassadorId": "amb_1234567890",
"clientReferenceId": "1234567890",
"riskLevel": "LOW",
"createdAt": "2021-07-22T00:00:00.000Z",
"createdBy": "usr_1234567890",
"updatedAt": "2021-07-22T00:00:00.000Z",
"updatedBy": "usr_1234567890"
}
],
"count": 123
}