post https://{providerApiEndpoint}/api/giftcards
Creates a giftcard in a giftcard provider.
Used to create card (insert credit) in loyalty programs
REQUEST BODY
Name | Type | Mandatory | Description |
---|---|---|---|
relationName |
string | ||
emissionDate |
dateTime | ||
expiringDate |
dateTime | ||
caption |
string | ||
restrictedToOwner |
bool | ||
multipleRedemptions |
bool | ||
multipleCredits | bool | ||
profileId |
string |
RESPONSE BODY
Name | Type | Mandatory | Description |
---|---|---|---|
id |
string | Yes | Gift card id |
redemptionToken |
string | Yes | Gift card redemptionToken |
redemptionCode |
string | Yes | Gift card redemptionCode . Minimum of six characters |
balance |
number | Yes | Gift card current balance |
relationName |
string | Represents the relationship between the client and the store | |
emissionDate |
string | Yes | Important: It must be in the format YYYY-MM-DDThh:mm:ss.fff |
expiringDate |
string | Yes | Important: It must be in the format YYYY-MM-DDThh:mm:ss.fff |
caption |
string | The caption of the card |
|
provider |
string | Yes | provider name |
groupName |
string | ||
transaction |
object | Yes | |
↳ href |
string | Yes | Resource URL |