Add coupon to order
POST {{baseUrl}}/coupon
Service urls:
http://yourdomain.com/api/rest/coupon
OR
http://yourdomain.com/index.php?route=rest/cart/coupon
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
X-Oc-Session
|
string | (Required) User session id | |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status OK
{
"success": 1,
"error": [
"Error description",
"Error description"
],
"data": {}
} |
ENDPOINTS