External shipping costs
How to manage shipping methods cost via external services
Fetching external shipping method costs
curl -g -X PATCH \
'https://yourdomain.commercelayer.io/api/shipping_methods/QWERtyUpBa' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "shipping_methods",
"id": "QWERtyUpBa",
"attributes": {
"scheme": "external",
"external_prices_url": "https://external_prices.yourbrand.com"
},
}
}'Request
Response
Example
Security
Callbacks securityLast updated