Commerce and checkout
POST/v1/orders

Create order

View as .md
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 URLhttps://api.52-28-238-205.sslip.io
POST/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.

Authorization

agentKey
headerAuthorizationBearer <agk_test_...>

Agent credential

Request Body

application/json
  1. body
merchant_id?|

Merchant id (mch_...).

items*array<>
Items1 <= items <= 20

Response Body

Success.

application/json
  1. response
order*
[key: string]?any