API Reference
Customers
List all orders in a group
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
The id of the order.
"ord_1234567890"
Wether the order is in live mode or test mode.
true
The id of the organization.
"org_1234567890"
The total amount of the order in cents.
x >= 0
35000
The cashback amount of the order in cents.
x >= 0
5000
The fees due to Kohort for this order in cents.
x >= 0
1000
The email of the customer.
The first name of the customer.
"John"
The last name of the customer.
"Doe"
The phone number of the customer.
"+1 555 555 5555"
The shared identifier of the group. If null, it will create a group. If not null, it will join the group.
"KHT-XXXXXXXX"
The ID of the customer.
"cus_xxxxxxxxxxxxxxxx"
The currency of the order.
EUR
"EUR"
The locale of the order.
en_US
, fr_FR
"en_US"
The current status of the order.
CREATED
, CASHBACK_AVAILABLE
, CASHBACK_PROCESSING
, CASHBACK_SENT
"CASHBACK_SENT"
Additional metadata for the order.
{ "basket_id": "1JYLo8KerLxWZaQtys6ZQ1xS" }
The id of the associated group.
"pg_1234567890"
The id of the associated ambassador.
"amb_1234567890"
The reference id of the client. Use this field to renconcile with your system.
"1234567890"
The risk level of the order.
LOW
, MEDIUM
, HIGH
, HIGHEST
"LOW"
"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"
Total count of orders
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
}