Skip to main content

Get Gift Card By ID

Retrieve a gift card by its internal identifier.

Endpoint

GET /v1/giftCards/{giftCardId}

Headers

HeaderTypeDescriptionRequired
X-Client-IdStringYour client ID✅ Yes
X-Client-SecretStringYour client secret✅ Yes

Path Parameters

ParameterTypeDescriptionRequired
giftCardIdString (UUID)The card's internal ID✅ Yes

Example Request

curl --location 'https://stage-platform-exlr8-incentives.exlr8now.com/v1/giftCards/9b2c4d6e-8f0a-4b1c-9d3e-5f7a1b2c3d4e' \
--header 'X-Client-Id: YOUR_CLIENT_ID' \
--header 'X-Client-Secret: YOUR_CLIENT_SECRET'

Response

Successful Response — 200 OK

{
"success": true,
"data": {
"giftCardId": "9b2c4d6e-8f0a-4b1c-9d3e-5f7a1b2c3d4e",
"merchantId": "b1946ac9-2c3d-4e5f-8a7b-6c5d4e3f2a1b",
"programId": "8f14e45f-ceea-467a-9d7f-1b2c3d4e5f60",
"giftCardTemplateId": "d4c3b2a1-6f5e-4d3c-8b2a-1f0e9d8c7b6a",
"codeHash": "3f2a1b...",
"cardNumberHash": "9c8d7e...",
"pinHash": "1a2b3c...",
"status": "ACTIVE",
"currency": "INR",
"initialBalance": 500,
"remainingBalance": 350,
"issuedAt": "2026-08-25T11:30:00Z",
"expiresAt": "2027-08-25T11:30:00Z",
"version": 3,
"createdAt": "2026-08-25T11:30:00Z",
"updatedAt": "2026-08-25T11:42:07Z"
}
}

Response Fields

FieldTypeDescription
giftCardIdStringInternal identifier
programIdStringThe campaign this card belongs to
giftCardTemplateIdStringThe template it was issued from
statusStringACTIVE, INACTIVE, EXPIRED or FROZEN
currencyStringInherited from the campaign
initialBalanceNumberFace value at issuance
remainingBalanceNumberWhat is left to spend
expiresAtStringRFC 3339, UTC
versionNumberOptimistic-concurrency counter, incremented on each balance change
updatedAtStringLast modification
codeHashStringSHA-256 of the digital code
cardNumberHashStringSHA-256 of the card number, when one was issued
pinHashStringSHA-256 of the PIN, when one was issued

The plaintext code, card number and PIN are not returned — only their hashes, which are of no use for redemption. The one time the plaintext exists in a response is issuance.

:::note Choosing between this and inquiry Use this endpoint when you already hold the giftCardId — reconciliation, support tooling, order lookups. Use Gift Card Inquiry at checkout, when all you have is the code the customer presented. Inquiry also returns the template's redemption rules, which this endpoint does not. :::

Error Responses

Error codeHTTPCause
BAD_REQUEST400giftCardId is not a valid UUID
RECORD_NOT_FOUND404No such card within your merchant

A card belonging to another merchant returns 404, identically to one that does not exist.