Skip to main content
POST
/
coupon
Apply coupon to cart
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/coupon \
  --header 'Content-Type: application/json' \
  --data '{
  "coupon": "<string>"
}'
{
  "message": "<string>",
  "coupon": "<string>",
  "response": true
}
This endpoint is available in CoCart Plus.

Body

application/json
coupon
string
required

Coupon code to apply.

Response

Coupon applied successfully.

message
string
coupon
string
response
boolean
I