Gift cards
Void a gift card
Cancels a card that has not been used, for example when its web shop order is refunded. A card that has been used, even in part, or is already void is refused with gift_card_already_used.
post/v1/locations/{locationId}/gift-cards/{giftCardId}/void
Request
- Base URL: https://api.cliento.com
- URL: https://api.cliento.com/v1/locations/{locationId}/gift-cards/{giftCardId}/void
- Auth: HTTP bearer
Path parameters
locationIdstring required
giftCardIdstring required
Headers
Idempotency-Keystring
A value you make up for this one request, such as a UUID. Send the same value when you retry and the first answer is returned; see Retrying safely.
Response
OK
Example response
{
"accountingType": "single_purpose",
"beneficiary": "Anna Andersson",
"code": "K7QX9M2D",
"createdAt": "2026-11-17T09:14:03Z",
"currency": "SEK",
"customerId": "per_2QCtWVSaVO7yCRYBj1zsbA",
"description": "Presentkort",
"externalReference": "shopify-5512340001-1",
"id": "gft_7Qm2xN0cT1kPz4Wb9LrEaD",
"locationId": "loc_4fK9xQ2mLr8TzB1vNc7HdW",
"merchantId": "mer_2Rk8sVh3Yq6Nf1Tz0JwUcM",
"note": "Web shop order 10042",
"remainingValue": "500.00",
"soldDate": "2026-11-17",
"status": "active",
"updatedAt": "2026-10-12T09:24:31.512Z",
"validUntil": "2027-11-17",
"value": "500.00",
"vatPercent": "25"
}Changes
No recorded changes to this operation across all 1 revision of this API.