API reference
Shop Orders_create Quote
POST
shopApiKeyheader
AuthorizationBearer <token>The shop's API key.
application/json- body
holdingIds*array<>Items
1 <= items <= 50buyerId*stringThe shop's own id of the buyer, as on a pull
Length
1 <= length <= 200address*markup?The shop's markup for one shipment. Without it: the shop's own setting, else 0.00
application/json- response
data*curl -X POST 'https://api-stg.grailnetwork.com/shop/shipping-quotes' \ -H 'Content-Type: application/json' \ -d '{ "holdingIds": [ "b4b9d522-d7dc-4fd1-9865-2185fd7ed070" ], "buyerId": "string", "address": { "name": "string", "line1": "string", "line2": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string", "phone": "string" }}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "buyerId": "string", "address": { "name": "string", "line1": "string", "line2": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string", "phone": "string" }, "lines": [ { "holdingIds": [ "b4b9d522-d7dc-4fd1-9865-2185fd7ed070" ], "carrier": "fedex", "carrierName": "string", "service": "string", "serviceName": "string", "shippingCost": { "amountAtomic": "string", "currency": "USD" }, "markup": { "amountAtomic": "string", "currency": "USD" }, "buyerPrice": { "amountAtomic": "string", "currency": "USD" } } ], "total": { "shippingCost": { "amountAtomic": "string", "currency": "USD" }, "markup": { "amountAtomic": "string", "currency": "USD" }, "buyerPrice": { "amountAtomic": "string", "currency": "USD" } }, "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }}