Documentation is still being updated. Some content maybe unfinished.
cURL
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 }
Applies a coupon to the cart.
Coupon code to apply.
Coupon applied successfully.
Was this page helpful?