curl -X POST '{backend_url}/store/carts/{id}/gift-cards' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "{value}"
}'Add a Gift Card to a cart
curl -X POST '{backend_url}/store/carts/{id}/gift-cards' \
-H 'x-publishable-api-key: {your_publishable_api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "{value}"
}'Publishable API Key created in the Medusa Admin.
The cart's ID.
Comma-separated fields that should be included in the returned data.
if a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields.
without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data. If a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.
The details to add a gift card to the cart.
The gift card's code.
OK
The cart's details.
The cart's details.
Show child attributes