Gift a Digital Gift Card
Gifts a digital gift card to a recipient.
An optional designId records which artwork the customer selected. The design applies to the recipient's copy of the card. This works both when a new card is issued (giftCardId absent) and when an existing card is passed on (giftCardId present). The design is not echoed in the response. If passing on an existing card and designId is omitted, the recipient inherits the design currently assigned to the sender's card.
Headers
- Type: stringx
-application Source requiredA custom HTTP header that accepts a free-form string value. It is used to identify the application making the API request. For example, if Punchh invokes the API, the value could be "punchh".
- Type: stringX
- Location Id requiredThe unique location identifier for the store or business location processing the transaction.
- Type: stringContent
- Type requiredThe media type of the request body. Must be set to
application/json. - Type: stringAuthorizationrequired
Bearer token for API authorization. Send in the format:
Bearer ACCESS_TOKEN_GOES_HERE.
Body·
Request details to gift the card.
- Type: stringrecipient
User Id min length:1requiredThe unique identifier of the recipient user (provided by Punchh after onboarding).
- Type: stringreference
Number min length:1max length:40requiredA unique reference number for the transaction.
- Type: stringsender
User Id min length:1requiredThe unique identifier of the user gifting the card.
- Type: stringFormat: date-timetransaction
Date Time U T C requiredThe transaction date and time in UTC format.
- Type: number | nullFormat: doubleamount
The amount for the new gift card. Required when GiftCardId is not provided.
- Type: enumchannelvaluesNonePOSKiosk
- Type: stringdesign
Id max length:100Optional presentation identifier that records which artwork the user selected. Applies to the recipient's copy of the card. It has no effect on payment processing and is never sent to the payment gateway. Only a length limit applies; the value is stored and returned exactly as submitted.
- Type: string | nullgift
Card Id The gift card ID to transfer. When provided, an existing saved card is transferred to the recipient. When absent, a new virtual gift card is issued and gifted.
- Type: string | nullinvoice
Number max length:14A unique invoice number for the transaction.
- Type: enumpayment
Source valuesScanToPayOnlineNone - Type: string | nullsource
Transaction Id The credit card purchase transaction ID. Required when GiftCardId is not provided.
- Type: string | nullFormat: date-timetransaction
Date Time Local The transaction date and time in local format.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.partech.com/giftcard/v1/gift \
--request POST \
--header 'x-applicationSource: ' \
--header 'X-LocationId: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--data '{
"senderUserId": "user-abc123",
"recipientUserId": "user-xyz789",
"giftCardId": null,
"amount": 50,
"sourceTransactionId": "01JNXXXXXXXXXXXXXXXXXXXXXX",
"referenceNumber": "123456789",
"transactionDateTimeUTC": "2026-05-08T11:35:08.981Z",
"transactionDateTimeLocal": "2026-05-08T11:35:08.981+00:00",
"invoiceNumber": "INV001",
"paymentSource": "Online",
"channel": "None",
"designId": "holiday-snowflake"
}'
{
"parPayTransactionId": "01JNXXXXXXXXXXXXXXXXXXXXXX",
"giftCardId": "01JNXXXXXXXXXXXXXXXXXXXXXX",
"status": "Success",
"statusMessage": "APPROVAL",
"transactionDateTimeUTC": "2026-05-08T11:35:08.981Z"
}