Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.45 KB

unlink-customer-from-gift-card-response.md

File metadata and controls

56 lines (47 loc) · 1.45 KB

Unlink Customer From Gift Card Response

A response that contains the unlinked GiftCard object. If the request resulted in errors, the response contains a set of Error objects.

Structure

UnlinkCustomerFromGiftCardResponse

Fields

Name Type Tags Description Getter Setter
errors ?(Error[]) Optional Any errors that occurred during the request. getErrors(): ?array setErrors(?array errors): void
giftCard ?GiftCard Optional Represents a Square gift card. getGiftCard(): ?GiftCard setGiftCard(?GiftCard giftCard): void

Example (as JSON)

{
  "gift_card": {
    "balance_money": {
      "amount": 2500,
      "currency": "USD"
    },
    "created_at": "2021-03-25T05:13:01Z",
    "gan": "7783320005440920",
    "gan_source": "SQUARE",
    "id": "gftc:71ea002277a34f8a945e284b04822edb",
    "state": "ACTIVE",
    "type": "DIGITAL"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}