POST
/
carts
/
{id}
/
gift-card
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/carts/{id}/gift-card \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "gift_card_code": "<string>"
}'
{
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Access token

Path Parameters

id
string
required

Cart ID

Body

application/json
gift_card_code
string
required

Response

200 - application/json
OK
message
string
required
success
boolean
required