Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
FaxStore IconFaxStore

Gift cards

By Josh M. 1 min 16

The Gift Card API for FaxStore manages the creation, retrieval, and deletion of gift cards. It enables seamless handling of digital gift card balances and redemptions. > To add a gift card to an account. Refer to the accounts API (/api/accounts/:id/giftcards).

GET /api/giftcards

Returns an array of all gift cards that are in the store.

Parameters:

authorization[Header] A valid API token

Response: [Expand]

GET /api/giftcards/:id

Returns a single gift card with the provided ID.

Parameters:

authorization[Header] A valid API token
id[URL] The gift card internal ID

Response: [Expand]

DELETE /api/giftcards/:id

Delete an assigned gift card from the attached customer and from the store entirely

Parameters:

authorization[Header] A valid API token
id[URL] The gift card internal ID

Response: [Expand]