API reference
Shop Orders_place Order
POST
shopApiKeyheader
AuthorizationBearer <token>The shop's API key.
application/json- body
quoteId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidmarkup?The shop's markup for one shipment. Without it: the quote's markup
application/json- response
data*curl -X POST 'https://api-stg.grailnetwork.com/shop/orders' \ -H 'Content-Type: application/json' \ -d '{ "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7"}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7", "buyerId": "string", "state": "pending", "reason": "balance_too_low", "refusedHoldingIds": [ "471cfae2-98a3-4584-9e8c-bc3be8d358a9" ], "address": { "name": "string", "line1": "string", "line2": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string", "phone": "string" }, "total": { "shippingCost": { "amountAtomic": "string", "currency": "USD" }, "markup": { "amountAtomic": "string", "currency": "USD" }, "buyerPrice": { "amountAtomic": "string", "currency": "USD" } }, "shipments": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "open", "carrier": "fedex", "carrierName": "string", "service": "string", "serviceName": "string", "shippingCost": { "amountAtomic": "string", "currency": "USD" }, "markup": { "amountAtomic": "string", "currency": "USD" }, "buyerPrice": { "amountAtomic": "string", "currency": "USD" }, "trackingNumber": "string", "leftAt": "2019-08-24T14:15:22Z", "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "holdingId": "51ebd04a-ea04-425f-9017-f69b7702e7a3", "itemId": "f11b669d-7201-4c21-88af-d85092f0c005", "canceledAt": "2019-08-24T14:15:22Z" } ] } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}