Authorizations
API Key authentication
Path Parameters
Order identifier
Body
application/json
Request to submit an order with payment method
Stripe payment method identifier
curl --request POST \
--url https://api.satsuma.ai/order/{orderId}/submit \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<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": {}
}
]
}Submit an order for payment and fulfillment using a saved payment method
curl --request POST \
--url https://api.satsuma.ai/order/{orderId}/submit \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<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
Order identifier
Request to submit an order with payment method
Stripe payment method identifier