Commerce and checkout
POST/v1/orders
Create order
curl -X POST "https://api.52-28-238-205.sslip.io/v1/orders" \ -H "Authorization: Bearer agk_test_..." \ -H "Content-Type: application/json" \ -d '{"items":[{"service_id":"svc_01jd2x3k4m5n6p7q8r9s0t1v2w","quantity":1}]}'Creates an open cart order of 1 to 20 line items (quantity 1 to 10 each) from one merchant; card services can't be added. Agent credential only; nothing is paid until checkout.
Server URL
https://api.52-28-238-205.sslip.ioPOST/v1/ordersBase URL: https://api.52-28-238-205.sslip.io
Authorization
agentKeyAuthorization: Bearer agk_test_...
Body
application/json · required. Fields are listed under Request body below.
agentKeyheader
AuthorizationBearer <agk_test_...>Agent credential
application/json- body
merchant_id?|Merchant id (mch_...).
items*array<>Items
1 <= items <= 20Success.
application/json- response
order*[key: string]?anyGETList orders
Lists orders with line items and the intents that paid them: an agent sees its own, a merchant its incoming orders, an organization all of its orders. Agent credential, or console session or API key with payment:read.
GETGet order
Returns one order with fulfillment status per line item and the intents that paid them. Agent credential, or console session or API key with payment:read.