POST /channels/{id}/rates.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
errors array[object]
-
days integer
-
missingRates boolean
-
unallocatedShipments boolean
-
totalPrice number
-
totalShipments integer
-
shipments array[object]
POST
/channels/{id}/rates.json
curl \
-X POST http://api.example.com/v1/channels/{id}/rates.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"errors":[{"type":"string","status":42.0,"title":"string"}],"days":42,"missingRates":true,"unallocatedShipments":true,"totalPrice":42.0,"totalShipments":42,"shipments":[{"dropshipProvider":{},"shipping_rate":{},"isDomestic":true,"fromCountry":"string","weight":42.0,"dimensions":{"length":42.0,"width":42.0,"height":42.0,"distanceUnit":"em","massUnit":"kg"},"totalItems":42,"orderValue":42.0,"price":42.0,"provider":"string","providerCode":"string","providerId":"string","days":42,"serviceLevel":"string","serviceLevelToken":"string","serviceLevelTerms":"string","quoteHash":"string","integration":"string","serviceCode":"string","handlingFee":42,"label":"string","signatureRequired":true,"fallback":true,"freeShipping":true,"saleItems":[{"quantity":42,"price":42.0,"variant":{}}],"errors":[{"type":"string","status":42.0,"title":"string"}],"alternatives":[{"price":42.0,"provider":"string","providerCode":"string","providerId":"string","days":42,"serviceLevel":"string","serviceLevelToken":"string","serviceLevelTerms":"string","quoteHash":"string","integration":"string","serviceCode":"string","handlingFee":42,"label":"string","signatureRequired":true,"fallback":true,"freeShipping":true}]}]}'
Request example
{
"errors": [
{
"type": "string",
"status": 42.0,
"title": "string"
}
],
"days": 42,
"missingRates": true,
"unallocatedShipments": true,
"totalPrice": 42.0,
"totalShipments": 42,
"shipments": [
{
"dropshipProvider": {},
"shipping_rate": {},
"isDomestic": true,
"fromCountry": "string",
"weight": 42.0,
"dimensions": {
"length": 42.0,
"width": 42.0,
"height": 42.0,
"distanceUnit": "em",
"massUnit": "kg"
},
"totalItems": 42,
"orderValue": 42.0,
"price": 42.0,
"provider": "string",
"providerCode": "string",
"providerId": "string",
"days": 42,
"serviceLevel": "string",
"serviceLevelToken": "string",
"serviceLevelTerms": "string",
"quoteHash": "string",
"integration": "string",
"serviceCode": "string",
"handlingFee": 42,
"label": "string",
"signatureRequired": true,
"fallback": true,
"freeShipping": true,
"saleItems": [
{
"quantity": 42,
"price": 42.0,
"variant": {}
}
],
"errors": [
{
"type": "string",
"status": 42.0,
"title": "string"
}
],
"alternatives": [
{
"price": 42.0,
"provider": "string",
"providerCode": "string",
"providerId": "string",
"days": 42,
"serviceLevel": "string",
"serviceLevelToken": "string",
"serviceLevelTerms": "string",
"quoteHash": "string",
"integration": "string",
"serviceCode": "string",
"handlingFee": 42,
"label": "string",
"signatureRequired": true,
"fallback": true,
"freeShipping": true
}
]
}
]
}
Response examples (200)
{
"errors": [
{
"type": "string",
"status": 42.0,
"title": "string"
}
],
"days": 42,
"missingRates": true,
"unallocatedShipments": true,
"totalPrice": 42.0,
"totalShipments": 42,
"shipments": [
{
"dropshipProvider": {},
"shipping_rate": {},
"isDomestic": true,
"fromCountry": "string",
"weight": 42.0,
"dimensions": {
"length": 42.0,
"width": 42.0,
"height": 42.0,
"distanceUnit": "em",
"massUnit": "kg"
},
"totalItems": 42,
"orderValue": 42.0,
"price": 42.0,
"provider": "string",
"providerCode": "string",
"providerId": "string",
"days": 42,
"serviceLevel": "string",
"serviceLevelToken": "string",
"serviceLevelTerms": "string",
"quoteHash": "string",
"integration": "string",
"serviceCode": "string",
"handlingFee": 42,
"label": "string",
"signatureRequired": true,
"fallback": true,
"freeShipping": true,
"saleItems": [
{
"quantity": 42,
"price": 42.0,
"variant": {}
}
],
"errors": [
{
"type": "string",
"status": 42.0,
"title": "string"
}
],
"alternatives": [
{
"price": 42.0,
"provider": "string",
"providerCode": "string",
"providerId": "string",
"days": 42,
"serviceLevel": "string",
"serviceLevelToken": "string",
"serviceLevelTerms": "string",
"quoteHash": "string",
"integration": "string",
"serviceCode": "string",
"handlingFee": 42,
"label": "string",
"signatureRequired": true,
"fallback": true,
"freeShipping": true
}
]
}
]
}