🚀 New: Theme Control Plane API — build, customize, and deploy themes programmatically. Learn more →
curl --request GET \
--url https://api.shoppex.io/dev/v1/coupons/code/{code} \
--header 'Authorization: Bearer <token>'{
"data": {
"coupon": {
"code": "save10",
"type": "PERCENTAGE",
"value": "10"
}
}
}Validates a coupon server-side by code. Use product_id for single-product checks or cart with a JSON string payload for cart validation.
curl --request GET \
--url https://api.shoppex.io/dev/v1/coupons/code/{code} \
--header 'Authorization: Bearer <token>'{
"data": {
"coupon": {
"code": "save10",
"type": "PERCENTAGE",
"value": "10"
}
}
}