PATCH
/
api
/
v2
/
platform
/
orders
/
{id}
/
apply_coupon_code
curl --request PATCH \
  --url http://{defaultHost}/api/v2/platform/orders/{id}/apply_coupon_code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "coupon_code": "<string>"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Body

application/json
coupon_code
string

Response

200
_mintlify/placeholder

coupon code applied