Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.78 KB

create-gift-card-activity-response.md

File metadata and controls

58 lines (49 loc) · 1.78 KB

Create Gift Card Activity Response

A response that contains a GiftCardActivity that was created. The response might contain a set of Error objects if the request resulted in errors.

Structure

Create Gift Card Activity Response

Fields

Name Type Tags Description
errors List Error Optional Any errors that occurred during the request.
gift_card_activity Gift Card Activity Optional Represents an action performed on a gift card that affects its state or balance.
A gift card activity contains information about a specific activity type. For example, a REDEEM activity
includes a redeem_activity_details field that contains information about the redemption.

Example (as JSON)

{
  "gift_card_activity": {
    "activate_activity_details": {
      "amount_money": {
        "amount": 1000,
        "currency": "USD"
      },
      "line_item_uid": "eIWl7X0nMuO9Ewbh0ChIx",
      "order_id": "jJNGHm4gLI6XkFbwtiSLqK72KkAZY"
    },
    "created_at": "2021-05-20T22:26:54.000Z",
    "gift_card_balance_money": {
      "amount": 1000,
      "currency": "USD"
    },
    "gift_card_gan": "7783320002929081",
    "gift_card_id": "gftc:6d55a72470d940c6ba09c0ab8ad08d20",
    "id": "gcact_c8f8cbf1f24b448d8ecf39ed03f97864",
    "location_id": "81FN9BNFZTKS4",
    "type": "ACTIVATE"
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}