Skip to Content
Grail Network
API reference

Shop Orders_create Quote

POST
/shop/shipping-quotes

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Request Body

application/json
  1. body
holdingIds*array<>
Items1 <= items <= 50
buyerId*string

The shop's own id of the buyer, as on a pull

Length1 <= length <= 200
address*
markup?

The shop's markup for one shipment. Without it: the shop's own setting, else 0.00

Response Body

application/json
  1. response
data*
Example Request
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"  }}