Create an order
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The total amount of the order in cents.
x >= 0
35000
The phone number of the customer.
"+1 555 555 5555"
The first name of the customer.
100
"John"
The last name of the customer.
100
"Doe"
The ID of the customer.
50
"cus_xxxxxxxxxxxxxxxx"
Additional metadata for the order.
{ "basket_id": "1JYLo8KerLxWZaQtys6ZQ1xS" }
The locale of the order
en_US
, fr_FR
"en_US"
Unique string of your choice to reconcile with your internal system
50
"myclientid-1234"
The shared identifier of the payment group. If null, it will create a group. If not null, it will join the group.
50
"KHTPAY-XXXXXXXX"
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"