Orders

Create an Order record.

post

This endpoint receives orders from external systems. It requires a comprehensive payload that includes details about the order, such as the items purchased, applicable taxes, discounts, and the source and POS system of the order. It can optionally link the order to a program membership if the program_membership_id is provided.

Authorizations
Body
payload[order][line_items]arrayRequired

Line items in the order

payload[order][amount]numberRequired

Total amount of the order in cents

payload[order_source]stringRequired

Source of the order.

payload[type]stringRequired

What type of transaction occurred.

payload[merchant_pos_system]stringRequired

Type of POS system from which the order originates.

payload[external_order_guid]stringRequired

Unique identifier for the order from the external system.

payload[external_location_type]stringRequired

Type of the external location (e.g., ToastRestaurant).

payload[external_location_id]stringRequired

Unique identifier for the location from the external system (e.g., a restaurant ID from Toast).

payload[program_membership_id]stringOptional

Program membership ID if available. Nullable field to tie the order to a specific membership.

payload[external_customer_id]stringOptional

External customer ID associated with the order.

payload[order][applied_discounts]arrayOptional

List of reward IDs applied to the transaction as a whole

Responses
200
ok
post
POST /partner-api/v2/external/orders HTTP/1.1
Host: 
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 388

"payload[order][line_items]=[]&payload[order][amount]=1&payload[order_source]='text'&payload[type]='text'&payload[merchant_pos_system]='text'&payload[external_order_guid]='text'&payload[external_location_type]='text'&payload[external_location_id]='text'&payload[program_membership_id]='text'&payload[external_customer_id]='text'&payload[order][applied_discounts]=[]"
200

ok

No content