Gift Cards
These are the endpoints that are available under the /giftcards path, which lists all the different gift cards made available on your business' account.
Endpoint | Description |
---|---|
GET /giftcards/client/{clientId} | Returns all gift card objects that have been added to the specified client's account. |
POST /giftcards | Creates new gift card object or updates an existing gift card object. Request body/payload: Must pass a gift card object in request body/payload. For these calls, you need to pass a gift card object with all required fields and any fields you want to set or update filled in the body of the payload. We have an example of a gift card object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
DELETE /giftcards/{giftcardUUId} | Removes a gift card object from view by setting its active property to false. |
There are no parameters included with giftcards calls.
The objects below represent the minimum viable objects to pass that are needed to create or update a giftcards object. Check whether or not a property can be written to by looking at the Object Values table below to see if the property is writable.
Property Name | Type | Required | Description |
---|---|---|---|
active | boolean | Yes | Indicates whether or not specified gift card should return on GET calls. |
amount | integer | Yes | Displays as the total monetary amount of specified gift card. |
balanceAmount | integer | Yes | Displays as the current monetary amount of specified gift card. |
businessId | integer | Yes | Provides unique numeric ID for the business to which specified gift card belongs. |
clientId | integer | Yes | Provides unique numeric ID for the client connected to specified gift card. |
createdDate | integer | Displays as date specified gift card was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
createdUser | string | Displays as username of the user who created specified gift card. | |
expireDate | integer | Displays as a string in YYYY-MM-DD format. Not currently in use, but can be set as date specified coupon expires. | |
giftCardUUId | string | Provides unique alphanumeric ID for specified gift card. | |
modifiedDate | integer | Displays as date specified gift card was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
modifiedUser | string | Displays as username of the user who last modified specified gift card. | |
purchaseDate | integer | Yes | Displays as date specified gift card was purchased in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. |
status | string | Yes | Displays the status of specified gift card. Has acceptable values "Active", "Deleted", "Expired". |