Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.16 KB

create-gift-card-activity-request.md

File metadata and controls

33 lines (24 loc) · 1.16 KB

Create Gift Card Activity Request

A request to create a gift card activity.

Structure

CreateGiftCardActivityRequest

Fields

Name Type Tags Description
idempotencyKey string Required A unique string that identifies the CreateGiftCardActivity request.
Constraints: Minimum Length: 1, Maximum Length: 128
giftCardActivity GiftCardActivity Required 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": {
      "line_item_uid": "eIWl7X0nMuO9Ewbh0ChIx",
      "order_id": "jJNGHm4gLI6XkFbwtiSLqK72KkAZY"
    },
    "gift_card_id": "gftc:6d55a72470d940c6ba09c0ab8ad08d20",
    "location_id": "81FN9BNFZTKS4",
    "type": "ACTIVATE"
  },
  "idempotency_key": "U16kfr-kA70er-q4Rsym-7U7NnY"
}