curl --request POST \
--url https://api.satsuma.ai/order \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"id": "<string>",
"name": "<string>",
"address": {
"city": "<string>",
"region": "NY",
"country": "US",
"street_address": "<string>",
"postal_code": "<string>",
"street_address_detail": "<string>"
},
"phone_number": "+12345678901",
"email": "<string>"
},
"items": [
{
"product_id": "<string>",
"quantity": 2
}
],
"location_id": "<string>",
"fulfillment_method": "Delivery",
"tip": 123,
"dropoff_instructions": "<string>"
}
'{
"data": {
"id": "<string>",
"status": "Pending",
"currency": "USD",
"tip": 123,
"subtotal": 123,
"tax": 123,
"total": 123,
"customer": {
"id": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"address": {
"street_number": "<string>",
"street_name": "<string>",
"street_address": "<string>",
"street_address_detail": "<string>",
"city": "<string>",
"region": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
},
"fees": [
{
"type": "DeliveryFee",
"amount": 123
}
],
"items": [
{
"quantity": 123,
"price": 123,
"product_id": "<string>",
"product_name": "<string>"
}
],
"merchant_id": "<string>",
"location_id": "<string>",
"fulfillment_method": "Delivery",
"fee_total": 123,
"dropoff_instructions": "<string>"
},
"messages": [
{
"context": "<string>",
"level": "Information",
"text": "<string>",
"data": {}
}
]
}Create a new order
curl --request POST \
--url https://api.satsuma.ai/order \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"id": "<string>",
"name": "<string>",
"address": {
"city": "<string>",
"region": "NY",
"country": "US",
"street_address": "<string>",
"postal_code": "<string>",
"street_address_detail": "<string>"
},
"phone_number": "+12345678901",
"email": "<string>"
},
"items": [
{
"product_id": "<string>",
"quantity": 2
}
],
"location_id": "<string>",
"fulfillment_method": "Delivery",
"tip": 123,
"dropoff_instructions": "<string>"
}
'{
"data": {
"id": "<string>",
"status": "Pending",
"currency": "USD",
"tip": 123,
"subtotal": 123,
"tax": 123,
"total": 123,
"customer": {
"id": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"address": {
"street_number": "<string>",
"street_name": "<string>",
"street_address": "<string>",
"street_address_detail": "<string>",
"city": "<string>",
"region": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
},
"fees": [
{
"type": "DeliveryFee",
"amount": 123
}
],
"items": [
{
"quantity": 123,
"price": 123,
"product_id": "<string>",
"product_name": "<string>"
}
],
"merchant_id": "<string>",
"location_id": "<string>",
"fulfillment_method": "Delivery",
"fee_total": 123,
"dropoff_instructions": "<string>"
},
"messages": [
{
"context": "<string>",
"level": "Information",
"text": "<string>",
"data": {}
}
]
}API Key authentication
Create order request
Customer information
Show child attributes
List of items
Show child attributes
Location ID
Fulfillment method
Delivery, Pickup, Shipping Tip amount
Dropoff instructions