For the complete documentation index, see llms.txt. This page is also available as Markdown.

Gift Cards

Operations related to creating, retrieving, updating, and deleting gift cards.

List Gift Cards

get

Retrieves a list of all gift cards associated with the merchant's account. The list is paginated and contains detailed information for each gift card.

Authorizations
AuthorizationstringRequired

Basic Authentication requires a Base64 encoded string of your <Merchant_Id>:<Api_Key>.

Responses
200

A successful response returns a list of gift card objects.

application/json
hrefstring · uriOptional

The URL of the requested resource collection.

get/gift-cards

Create a Gift Card

post

Creates a new gift card with the specified details.

Authorizations
AuthorizationstringRequired

Basic Authentication requires a Base64 encoded string of your <Merchant_Id>:<Api_Key>.

Body
start_timeinteger · int64Optional

A Unix timestamp for when the gift card becomes valid.

expiry_timeinteger · int64Optional

A Unix timestamp for when the gift card expires. Use 0 for no expiration.

active_statusstring · enumOptional

The desired status of the gift card upon creation.

Possible values:
valuestringRequired

The monetary value of the gift card.

currencystringRequired

The currency of the gift card's value (e.g., "USD").

tagstringOptional

A tag for organizing or categorizing the gift card.

Responses
201

Gift Card created successfully.

application/json
hrefstring · uriOptional

The unique URL for this specific gift card resource.

typestringOptional

The type of object, in this case, "gift-card".

idstringOptional

The unique identifier for the gift card.

gift_card_codestringOptional

The code of the gift card used for redemption.

tagstringOptional

A tag for organizing or categorizing the gift card.

createdinteger · int64Optional

A Unix timestamp representing when the gift card was created.

start_timeinteger · int64Optional

A Unix timestamp for when the gift card becomes valid.

expiry_timeinteger · int64Optional

A Unix timestamp for when the gift card expires. A value of 0 indicates no expiration.

total_valuestringOptional

The initial value of the gift card.

balancestringOptional

The remaining balance on the gift card.

value_unitstringOptional

The unit of value (e.g., "value" for monetary amount).

currencystringOptional

The currency of the gift card's value (e.g., "USD").

active_statusstringOptional

The status of the gift card (e.g., "1" for active).

brand_idstringOptional

The identifier for the brand associated with the gift card (if any).

teamsstring[]Optional

A list of teams associated with the gift card.

post/gift-cards

Retrieve a specific Gift Card

get

Fetches the details of a single gift card by its unique ID.

Authorizations
AuthorizationstringRequired

Basic Authentication requires a Base64 encoded string of your <Merchant_Id>:<Api_Key>.

Path parameters
gift_card_idstringRequired

The unique identifier of the gift card to retrieve.

Example: gift-150399274159a51ba5d6b34
Responses
200

Successfully retrieved the details of the gift card.

application/json
hrefstring · uriOptional

The URL of the requested resource.

get/gift-cards/{gift_card_id}

Update a Gift Card

put

Updates the details of a specific gift card.

Authorizations
AuthorizationstringRequired

Basic Authentication requires a Base64 encoded string of your <Merchant_Id>:<Api_Key>.

Path parameters
gift_card_idstringRequired

The unique identifier of the gift card to update.

Example: gift-150676699459cf709263ede
Body
active_statusstring · enumOptional

The desired status of the gift card.

Possible values:
Responses
200

Gift Card updated successfully.

application/json
hrefstring · uriOptional

The URL of the requested resource.

put/gift-cards/{gift_card_id}

Delete a Gift Card

delete

Permanently deletes a specific gift card by its unique ID.

Authorizations
AuthorizationstringRequired

Basic Authentication requires a Base64 encoded string of your <Merchant_Id>:<Api_Key>.

Path parameters
gift_card_idstringRequired

The unique identifier of the gift card to delete.

Example: gift-150676699459cf709263ede
Responses
204

No Content. The gift card was successfully deleted.

No content

delete/gift-cards/{gift_card_id}

No content

Last updated