Revoke Gift Card
To revoke a gift card, you need to send a POST
request to the /api/gifts/revoke
endpoint.
The request body should contain the following:
orderId
: The order ID of the gift card. This is a required field of typestring
.
Example
Here is an example of how you can revoke a gift card using Roamify Gift Card API.
curl --request POST \
--url 'https://api-dev.getroamify.com/api/gifts/revoke' \
--header 'Authorization: Bearer Access Token' \
--header 'Content-Type: application/json' \
--data '{
"orderId": "your-order-id"
}'