docs

Delete Gift Cards

The "Remove gift card" endpoint detaches a previously attached gift card from the current order. Internally, gift cards are managed as recurring payment options, so removal is performed through the generic recurring-payment-option endpoint by passing the id returned in the response of the Add gift card to the order endpoint as the path parameter. After the gift card is removed, the order total reverts to the amount payable without it, and any other payment options on the order are recalculated accordingly.

Note: This endpoint deletes any recurring payment option attached to the order, not only gift cards. Make sure the id you pass corresponds to the gift card you want to remove.

{% openapi-schemas spec="scayle-checkout-api" schemas="errorResponse,errors" grouped="true" %} OpenAPI scayle-checkout-api {% endopenapi-schemas %}