External order validation
How to validate orders via external services
Triggering external validation
curl -g -X PATCH \
'https://yourdomain.commercelayer.io/api/orders/xYZkjABcde' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "orders",
"id": "xYZkjABcde",
"attributes": {
"_validate": true
}
}
}'Request
Response
Example
Security
Callbacks securityLast updated