Represents a CreateGiftCard request.
CreateGiftCardRequest
Name | Type | Tags | Description |
---|---|---|---|
idempotencyKey |
string |
Required | A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency. Constraints: Minimum Length: 1 , Maximum Length: 128 |
locationId |
string |
Required | The ID of the location where the gift card should be registered for reporting purposes. Gift cards can be redeemed at any of the seller's locations. Constraints: Minimum Length: 1 |
giftCard |
GiftCard |
Required | Represents a Square gift card. |
{
"gift_card": {
"type": "DIGITAL"
},
"idempotency_key": "NC9Tm69EjbjtConu",
"location_id": "81FN9BNFZTKS4"
}