Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.04 KB

create-gift-card-request.md

File metadata and controls

29 lines (20 loc) · 1.04 KB

Create Gift Card Request

Represents a CreateGiftCard request.

Structure

CreateGiftCardRequest

Fields

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.

Example (as JSON)

{
  "gift_card": {
    "type": "DIGITAL"
  },
  "idempotency_key": "NC9Tm69EjbjtConu",
  "location_id": "81FN9BNFZTKS4"
}