Square: Gift card activities schemas
35 Square schemas with complete fields and constraints.
← Gift card activities operations · All schemas
Create Gift Card Activity — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to create a gift card activity. |
gift_card_activity | Model | Required within parent | Expand Create Gift Card Activity — request body — body gift card activity The activity to create for the gift card. This activity must specify `gift_card_id` or `gift_card_gan` for the target gift card, the `location_id` where the activity occurred, and the activity `type` along with the corresponding activity details. |
idempotency_key | string | Required within parent | A unique string that identifies the `CreateGiftCardActivity` request. Maximum length: 128 Minimum length: 1 |
Referenced models: Create Gift Card Activity — request body — body gift card activity
Create Gift Card Activity — request body — body gift card activity
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action performed on a [gift card](entity:GiftCard) 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. |
activate_activity_details | JSON | Optional | |
activate_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — request body — body gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id Additional details about an `ACTIVATE` activity, which is used to activate a gift card with an initial balance. |
activate_activity_details (anyOf 2) | null | Alternative | |
adjust_decrement_activity_details | JSON | Optional | |
adjust_decrement_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — request body — body gift card activity adjust decrement activity details amount money, reason Additional details about an `ADJUST_DECREMENT` activity, which is used to deduct money from a gift card outside of a typical `REDEEM` activity flow. |
adjust_decrement_activity_details (anyOf 2) | null | Alternative | |
adjust_increment_activity_details | JSON | Optional | |
adjust_increment_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — request body — body / gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED Additional details about an `ADJUST_INCREMENT` activity, which is used to add money to a gift card outside of a typical `ACTIVATE`, `LOAD`, or `REFUND` activity flow. |
adjust_increment_activity_details (anyOf 2) | null | Alternative | |
block_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity block activity details Additional details about a `BLOCK` activity, which Square uses to temporarily block a gift card. Read only: true |
clear_balance_activity_details | JSON | Optional | |
clear_balance_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — request body — body / gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON Additional details about a `CLEAR_BALANCE` activity, which is used to set the balance of a gift card to zero. |
clear_balance_activity_details (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the gift card activity was created, in RFC 3339 format. Read only: true |
deactivate_activity_details | JSON | Optional | |
deactivate_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — request body — body / gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE Additional details about a `DEACTIVATE` activity, which is used to deactivate a gift card. |
deactivate_activity_details (anyOf 2) | null | Alternative | |
gift_card_balance_money | Model | Optional | Expand Create Payment — request body — body tip money The final balance on the gift card after the action is completed. Read only: true |
gift_card_gan | JSON | Optional | |
gift_card_gan (anyOf 1) | string | Alternative | The gift card account number (GAN). When creating a gift card activity, `gift_card_gan` is not required if `gift_card_id` is specified. |
gift_card_gan (anyOf 2) | null | Alternative | |
gift_card_id | JSON | Optional | |
gift_card_id (anyOf 1) | string | Alternative | The gift card ID. When creating a gift card activity, `gift_card_id` is not required if `gift_card_gan` is specified. |
gift_card_id (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the gift card activity. Read only: true |
import_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity import activity details Additional details about an `IMPORT` activity, which Square uses to import a third-party gift card with a balance. Read only: true |
import_reversal_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity import reversal activity details Additional details about an `IMPORT_REVERSAL` activity, which Square uses to reverse the import of a third-party gift card. Read only: true |
load_activity_details | JSON | Optional | |
load_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — request body — body gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id Additional details about a `LOAD` activity, which is used to reload money onto a gift card. |
load_activity_details (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The ID of the [business location](entity:Location) where the activity occurred. |
redeem_activity_details | JSON | Optional | |
redeem_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — request body — body / gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED Additional details about a `REDEEM` activity, which is used to redeem a gift card for a purchase. For applications that process payments using the Square Payments API, Square creates a `REDEEM` activity that updates the gift card balance after the corresponding [CreatePayment](api-endpoint:Payments-CreatePayment) request is completed. Applications that use a custom payment processing system must call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REDEEM` activity. |
redeem_activity_details (anyOf 2) | null | Alternative | |
refund_activity_details | JSON | Optional | |
refund_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — request body — body gift card activity refund activity details amount money, payment id, redeem activity id, reference id Additional details about a `REFUND` activity, which is used to add money to a gift card when refunding a payment. For applications that refund payments to a gift card using the Square Refunds API, Square automatically creates a `REFUND` activity that updates the gift card balance after a [RefundPayment](api-endpoint:Refunds-RefundPayment) request is completed. Applications that use a custom processing system must call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REFUND` activity. |
refund_activity_details (anyOf 2) | null | Alternative | |
transfer_balance_from_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity transfer balance from activity details Additional details about a `TRANSFER_BALANCE_FROM` activity, which Square uses to deduct money from a gift as the result of a transfer to another gift card. Read only: true |
transfer_balance_to_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity transfer balance to activity details Additional details about a `TRANSFER_BALANCE_TO` activity, which Square uses to add money to a gift card as the result of a transfer from another gift card. Read only: true |
type | string | Required within parent | Indicates the type of [gift card activity](entity:GiftCardActivity). The type of gift card activity. See [Type](#type-type) for possible values One of: ACTIVATE, LOAD, REDEEM, CLEAR_BALANCE, DEACTIVATE, ADJUST_INCREMENT, ADJUST_DECREMENT, REFUND, UNLINKED_ACTIVITY_REFUND, IMPORT, BLOCK, UNBLOCK, IMPORT_REVERSAL, TRANSFER_BALANCE_FROM, TRANSFER_BALANCE_TO |
unblock_activity_details | Model | Optional | Expand Create Gift Card Activity — request body — body gift card activity unblock activity details Additional details about an `UNBLOCK` activity, which Square uses to unblock a gift card. Read only: true |
unlinked_activity_refund_activity_details | JSON | Optional | |
unlinked_activity_refund_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — request body — body gift card activity unlinked activity refund activity details amount money, payment id, reference id Additional details about an `UNLINKED_ACTIVITY_REFUND` activity. This activity is used to add money to a gift card when refunding a payment that was processed using a custom payment processing system and not linked to the gift card. |
unlinked_activity_refund_activity_details (anyOf 2) | null | Alternative |
Referenced models: Create Gift Card Activity — request body — body gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id, Create Gift Card Activity — request body — body gift card activity adjust decrement activity details amount money, reason, CreateGiftCardActivity — request body — body / gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED, Create Gift Card Activity — request body — body gift card activity block activity details, CreateGiftCardActivity — request body — body / gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON, CreateGiftCardActivity — request body — body / gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE, Create Gift Card Activity — request body — body gift card activity import activity details, Create Gift Card Activity — request body — body gift card activity import reversal activity details, Create Gift Card Activity — request body — body gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id, CreateGiftCardActivity — request body — body / gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED, Create Gift Card Activity — request body — body gift card activity refund activity details amount money, payment id, redeem activity id, reference id, Create Gift Card Activity — request body — body gift card activity transfer balance from activity details, Create Gift Card Activity — request body — body gift card activity transfer balance to activity details, Create Gift Card Activity — request body — body gift card activity unblock activity details, Create Gift Card Activity — request body — body gift card activity unlinked activity refund activity details amount money, payment id, reference id, Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ACTIVATE` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount added to the gift card. This value is a positive integer. Applications that use a custom order processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
amount_money (anyOf 2) | null | Alternative | |
buyer_payment_instrument_ids | JSON | Optional | |
buyer_payment_instrument_ids (anyOf 1) | array | Alternative | The payment instrument IDs used to process the gift card purchase, such as a credit card ID or bank account ID. Applications that use a custom order processing system must specify payment instrument IDs in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. Square uses this information to perform compliance checks. For applications that use the Square Orders API to process payments, Square has the necessary instrument IDs to perform compliance checks. Each buyer payment instrument ID can contain a maximum of 255 characters. |
buyer_payment_instrument_ids (anyOf 1)[] | string | Each item | |
buyer_payment_instrument_ids (anyOf 2) | null | Alternative | |
line_item_uid | JSON | Optional | |
line_item_uid (anyOf 1) | string | Alternative | The UID of the `GIFT_CARD` line item in the order that represents the gift card purchase. Applications that use the Square Orders API to process orders must specify the line item UID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
line_item_uid (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item. Applications that use the Square Orders API to process orders must specify the order ID [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
order_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom order processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity adjust decrement activity details amount money, reason
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ADJUST_DECREMENT` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount deducted from the gift card balance. This value is a positive integer. |
reason | string | Required within parent | Indicates the reason for deducting money from a [gift card](entity:GiftCard). The reason the gift card balance was adjusted. See [Reason](#type-reason) for possible values One of: SUSPICIOUS_ACTIVITY, BALANCE_ACCIDENTALLY_INCREASED, SUPPORT_ISSUE, PURCHASE_WAS_REFUNDED |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity block activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `BLOCK` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for blocking a [gift card](entity:GiftCard). The reason the gift card was blocked. See [Reason](#type-reason) for possible values One of: CHARGEBACK_BLOCK |
Create Gift Card Activity — request body — body gift card activity import activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `IMPORT` [gift card activity type](entity:GiftCardActivityType). This activity type is used when Square imports a third-party gift card, in which case the `gan_source` of the gift card is set to `OTHER`. |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The balance amount on the imported gift card. |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity import reversal activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `IMPORT_REVERSAL` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money cleared from the third-party gift card when the import was reversed. |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `LOAD` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount added to the gift card. This value is a positive integer. Applications that use a custom order processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
amount_money (anyOf 2) | null | Alternative | |
buyer_payment_instrument_ids | JSON | Optional | |
buyer_payment_instrument_ids (anyOf 1) | array | Alternative | The payment instrument IDs used to process the order for the additional funds, such as a credit card ID or bank account ID. Applications that use a custom order processing system must specify payment instrument IDs in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. Square uses this information to perform compliance checks. For applications that use the Square Orders API to process payments, Square has the necessary instrument IDs to perform compliance checks. Each buyer payment instrument ID can contain a maximum of 255 characters. |
buyer_payment_instrument_ids (anyOf 1)[] | string | Each item | |
buyer_payment_instrument_ids (anyOf 2) | null | Alternative | |
line_item_uid | JSON | Optional | |
line_item_uid (anyOf 1) | string | Alternative | The UID of the `GIFT_CARD` line item in the order that represents the additional funds for the gift card. Applications that use the Square Orders API to process orders must specify the line item UID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
line_item_uid (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item. Applications that use the Square Orders API to process orders must specify the order ID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
order_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom order processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity refund activity details amount money, payment id, redeem activity id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `REFUND` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount added to the gift card for the refund. This value is a positive integer. This field is required when creating a `REFUND` activity. The amount can represent a full or partial refund. |
amount_money (anyOf 2) | null | Alternative | |
payment_id | string | Optional | The ID of the refunded payment. Square populates this field if the refund is for a payment processed by Square. This field matches the `payment_id` in the corresponding [RefundPayment](api-endpoint:Refunds-RefundPayment) request. Read only: true |
redeem_activity_id | JSON | Optional | |
redeem_activity_id (anyOf 1) | string | Alternative | The ID of the refunded `REDEEM` gift card activity. Square populates this field if the `payment_id` in the corresponding [RefundPayment](api-endpoint:Refunds-RefundPayment) request represents a gift card redemption. For applications that use a custom payment processing system, this field is required when creating a `REFUND` activity. The provided `REDEEM` activity ID must be linked to the same gift card. |
redeem_activity_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity transfer balance from activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount deducted from the gift card for the transfer. This value is a positive integer. |
transfer_to_gift_card_id | string | Required within parent | The ID of the gift card to which the specified amount was transferred. |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity transfer balance to activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount added to the gift card balance for the transfer. This value is a positive integer. |
transfer_from_gift_card_id | string | Required within parent | The ID of the gift card from which the specified amount was transferred. |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — request body — body gift card activity unblock activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `UNBLOCK` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for unblocking a [gift card](entity:GiftCard). The reason the gift card was unblocked. See [Reason](#type-reason) for possible values One of: CHARGEBACK_UNBLOCK |
Create Gift Card Activity — request body — body gift card activity unlinked activity refund activity details amount money, payment id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount added to the gift card for the refund. This value is a positive integer. |
payment_id | string | Optional | The ID of the refunded payment. This field is not used starting in Square version 2022-06-16. Read only: true |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Gift Card Activity — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response that contains a `GiftCardActivity` that was created. The response might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
gift_card_activity | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity The gift card activity that was created. |
Referenced models: Get Shift — response body — errors item, Create Gift Card Activity — response body — gift card activity
Create Gift Card Activity — response body — gift card activity
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an action performed on a [gift card](entity:GiftCard) 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. |
activate_activity_details | JSON | Optional | |
activate_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — response body — gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id Additional details about an `ACTIVATE` activity, which is used to activate a gift card with an initial balance. |
activate_activity_details (anyOf 2) | null | Alternative | |
adjust_decrement_activity_details | JSON | Optional | |
adjust_decrement_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — response body — gift card activity adjust decrement activity details amount money, reason Additional details about an `ADJUST_DECREMENT` activity, which is used to deduct money from a gift card outside of a typical `REDEEM` activity flow. |
adjust_decrement_activity_details (anyOf 2) | null | Alternative | |
adjust_increment_activity_details | JSON | Optional | |
adjust_increment_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — response body — gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED Additional details about an `ADJUST_INCREMENT` activity, which is used to add money to a gift card outside of a typical `ACTIVATE`, `LOAD`, or `REFUND` activity flow. |
adjust_increment_activity_details (anyOf 2) | null | Alternative | |
block_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity block activity details Additional details about a `BLOCK` activity, which Square uses to temporarily block a gift card. Read only: true |
clear_balance_activity_details | JSON | Optional | |
clear_balance_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — response body — gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON Additional details about a `CLEAR_BALANCE` activity, which is used to set the balance of a gift card to zero. |
clear_balance_activity_details (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the gift card activity was created, in RFC 3339 format. Read only: true |
deactivate_activity_details | JSON | Optional | |
deactivate_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — response body — gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE Additional details about a `DEACTIVATE` activity, which is used to deactivate a gift card. |
deactivate_activity_details (anyOf 2) | null | Alternative | |
gift_card_balance_money | Model | Optional | Expand Pay Order — response body — order total money The final balance on the gift card after the action is completed. Read only: true |
gift_card_gan | JSON | Optional | |
gift_card_gan (anyOf 1) | string | Alternative | The gift card account number (GAN). When creating a gift card activity, `gift_card_gan` is not required if `gift_card_id` is specified. |
gift_card_gan (anyOf 2) | null | Alternative | |
gift_card_id | JSON | Optional | |
gift_card_id (anyOf 1) | string | Alternative | The gift card ID. When creating a gift card activity, `gift_card_id` is not required if `gift_card_gan` is specified. |
gift_card_id (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the gift card activity. Read only: true |
import_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity import activity details Additional details about an `IMPORT` activity, which Square uses to import a third-party gift card with a balance. Read only: true |
import_reversal_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity import reversal activity details Additional details about an `IMPORT_REVERSAL` activity, which Square uses to reverse the import of a third-party gift card. Read only: true |
load_activity_details | JSON | Optional | |
load_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — response body — gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id Additional details about a `LOAD` activity, which is used to reload money onto a gift card. |
load_activity_details (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The ID of the [business location](entity:Location) where the activity occurred. |
redeem_activity_details | JSON | Optional | |
redeem_activity_details (anyOf 1) | Model | Alternative | Expand CreateGiftCardActivity — response body — gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED Additional details about a `REDEEM` activity, which is used to redeem a gift card for a purchase. For applications that process payments using the Square Payments API, Square creates a `REDEEM` activity that updates the gift card balance after the corresponding [CreatePayment](api-endpoint:Payments-CreatePayment) request is completed. Applications that use a custom payment processing system must call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REDEEM` activity. |
redeem_activity_details (anyOf 2) | null | Alternative | |
refund_activity_details | JSON | Optional | |
refund_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — response body — gift card activity refund activity details amount money, payment id, redeem activity id, reference id Additional details about a `REFUND` activity, which is used to add money to a gift card when refunding a payment. For applications that refund payments to a gift card using the Square Refunds API, Square automatically creates a `REFUND` activity that updates the gift card balance after a [RefundPayment](api-endpoint:Refunds-RefundPayment) request is completed. Applications that use a custom processing system must call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REFUND` activity. |
refund_activity_details (anyOf 2) | null | Alternative | |
transfer_balance_from_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity transfer balance from activity details Additional details about a `TRANSFER_BALANCE_FROM` activity, which Square uses to deduct money from a gift as the result of a transfer to another gift card. Read only: true |
transfer_balance_to_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity transfer balance to activity details Additional details about a `TRANSFER_BALANCE_TO` activity, which Square uses to add money to a gift card as the result of a transfer from another gift card. Read only: true |
type | string | Required within parent | Indicates the type of [gift card activity](entity:GiftCardActivity). The type of gift card activity. See [Type](#type-type) for possible values Known values: ACTIVATE, LOAD, REDEEM, CLEAR_BALANCE, DEACTIVATE, ADJUST_INCREMENT, ADJUST_DECREMENT, REFUND, UNLINKED_ACTIVITY_REFUND, IMPORT, BLOCK, UNBLOCK, IMPORT_REVERSAL, TRANSFER_BALANCE_FROM, TRANSFER_BALANCE_TO |
unblock_activity_details | Model | Optional | Expand Create Gift Card Activity — response body — gift card activity unblock activity details Additional details about an `UNBLOCK` activity, which Square uses to unblock a gift card. Read only: true |
unlinked_activity_refund_activity_details | JSON | Optional | |
unlinked_activity_refund_activity_details (anyOf 1) | Model | Alternative | Expand Create Gift Card Activity — response body — gift card activity unlinked activity refund activity details amount money, payment id, reference id Additional details about an `UNLINKED_ACTIVITY_REFUND` activity. This activity is used to add money to a gift card when refunding a payment that was processed using a custom payment processing system and not linked to the gift card. |
unlinked_activity_refund_activity_details (anyOf 2) | null | Alternative |
Referenced models: Create Gift Card Activity — response body — gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id, Create Gift Card Activity — response body — gift card activity adjust decrement activity details amount money, reason, CreateGiftCardActivity — response body — gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED, Create Gift Card Activity — response body — gift card activity block activity details, CreateGiftCardActivity — response body — gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON, CreateGiftCardActivity — response body — gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE, Create Gift Card Activity — response body — gift card activity import activity details, Create Gift Card Activity — response body — gift card activity import reversal activity details, Create Gift Card Activity — response body — gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id, CreateGiftCardActivity — response body — gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED, Create Gift Card Activity — response body — gift card activity refund activity details amount money, payment id, redeem activity id, reference id, Create Gift Card Activity — response body — gift card activity transfer balance from activity details, Create Gift Card Activity — response body — gift card activity transfer balance to activity details, Create Gift Card Activity — response body — gift card activity unblock activity details, Create Gift Card Activity — response body — gift card activity unlinked activity refund activity details amount money, payment id, reference id, Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity activate activity details amount money, buyer payment instrument ids, line item uid, order id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ACTIVATE` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount added to the gift card. This value is a positive integer. Applications that use a custom order processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
amount_money (anyOf 2) | null | Alternative | |
buyer_payment_instrument_ids | JSON | Optional | |
buyer_payment_instrument_ids (anyOf 1) | array | Alternative | The payment instrument IDs used to process the gift card purchase, such as a credit card ID or bank account ID. Applications that use a custom order processing system must specify payment instrument IDs in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. Square uses this information to perform compliance checks. For applications that use the Square Orders API to process payments, Square has the necessary instrument IDs to perform compliance checks. Each buyer payment instrument ID can contain a maximum of 255 characters. |
buyer_payment_instrument_ids (anyOf 1)[] | string | Each item | |
buyer_payment_instrument_ids (anyOf 2) | null | Alternative | |
line_item_uid | JSON | Optional | |
line_item_uid (anyOf 1) | string | Alternative | The UID of the `GIFT_CARD` line item in the order that represents the gift card purchase. Applications that use the Square Orders API to process orders must specify the line item UID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
line_item_uid (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item. Applications that use the Square Orders API to process orders must specify the order ID [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
order_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom order processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity adjust decrement activity details amount money, reason
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ADJUST_DECREMENT` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount deducted from the gift card balance. This value is a positive integer. |
reason | string | Required within parent | Indicates the reason for deducting money from a [gift card](entity:GiftCard). The reason the gift card balance was adjusted. See [Reason](#type-reason) for possible values Known values: SUSPICIOUS_ACTIVITY, BALANCE_ACCIDENTALLY_INCREASED, SUPPORT_ISSUE, PURCHASE_WAS_REFUNDED |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity block activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `BLOCK` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for blocking a [gift card](entity:GiftCard). The reason the gift card was blocked. See [Reason](#type-reason) for possible values Known values: CHARGEBACK_BLOCK |
Create Gift Card Activity — response body — gift card activity import activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `IMPORT` [gift card activity type](entity:GiftCardActivityType). This activity type is used when Square imports a third-party gift card, in which case the `gan_source` of the gift card is set to `OTHER`. |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The balance amount on the imported gift card. |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity import reversal activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `IMPORT_REVERSAL` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount of money cleared from the third-party gift card when the import was reversed. |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity load activity details amount money, buyer payment instrument ids, line item uid, order id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `LOAD` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount added to the gift card. This value is a positive integer. Applications that use a custom order processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
amount_money (anyOf 2) | null | Alternative | |
buyer_payment_instrument_ids | JSON | Optional | |
buyer_payment_instrument_ids (anyOf 1) | array | Alternative | The payment instrument IDs used to process the order for the additional funds, such as a credit card ID or bank account ID. Applications that use a custom order processing system must specify payment instrument IDs in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. Square uses this information to perform compliance checks. For applications that use the Square Orders API to process payments, Square has the necessary instrument IDs to perform compliance checks. Each buyer payment instrument ID can contain a maximum of 255 characters. |
buyer_payment_instrument_ids (anyOf 1)[] | string | Each item | |
buyer_payment_instrument_ids (anyOf 2) | null | Alternative | |
line_item_uid | JSON | Optional | |
line_item_uid (anyOf 1) | string | Alternative | The UID of the `GIFT_CARD` line item in the order that represents the additional funds for the gift card. Applications that use the Square Orders API to process orders must specify the line item UID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
line_item_uid (anyOf 2) | null | Alternative | |
order_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item. Applications that use the Square Orders API to process orders must specify the order ID in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
order_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom order processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity refund activity details amount money, payment id, redeem activity id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `REFUND` [gift card activity type](entity:GiftCardActivityType). |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount added to the gift card for the refund. This value is a positive integer. This field is required when creating a `REFUND` activity. The amount can represent a full or partial refund. |
amount_money (anyOf 2) | null | Alternative | |
payment_id | string | Optional | The ID of the refunded payment. Square populates this field if the refund is for a payment processed by Square. This field matches the `payment_id` in the corresponding [RefundPayment](api-endpoint:Refunds-RefundPayment) request. Read only: true |
redeem_activity_id | JSON | Optional | |
redeem_activity_id (anyOf 1) | string | Alternative | The ID of the refunded `REDEEM` gift card activity. Square populates this field if the `payment_id` in the corresponding [RefundPayment](api-endpoint:Refunds-RefundPayment) request represents a gift card redemption. For applications that use a custom payment processing system, this field is required when creating a `REFUND` activity. The provided `REDEEM` activity ID must be linked to the same gift card. |
redeem_activity_id (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity transfer balance from activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount deducted from the gift card for the transfer. This value is a positive integer. |
transfer_to_gift_card_id | string | Required within parent | The ID of the gift card to which the specified amount was transferred. |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity transfer balance to activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount added to the gift card balance for the transfer. This value is a positive integer. |
transfer_from_gift_card_id | string | Required within parent | The ID of the gift card from which the specified amount was transferred. |
Referenced models: Pay Order — response body — order total money
Create Gift Card Activity — response body — gift card activity unblock activity details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `UNBLOCK` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for unblocking a [gift card](entity:GiftCard). The reason the gift card was unblocked. See [Reason](#type-reason) for possible values Known values: CHARGEBACK_UNBLOCK |
Create Gift Card Activity — response body — gift card activity unlinked activity refund activity details amount money, payment id, reference id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount added to the gift card for the refund. This value is a positive integer. |
payment_id | string | Optional | The ID of the refunded payment. This field is not used starting in Square version 2022-06-16. Read only: true |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. |
reference_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
CreateGiftCardActivity — request body — body / gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ADJUST_INCREMENT` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount added to the gift card balance. This value is a positive integer. |
reason | string | Required within parent | Indicates the reason for adding money to a [gift card](entity:GiftCard). The reason the gift card balance was adjusted. See [Reason](#type-reason) for possible values One of: COMPLIMENTARY, SUPPORT_ISSUE, TRANSACTION_VOIDED |
Referenced models: Create Payment — request body — body tip money
CreateGiftCardActivity — request body — body / gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `CLEAR_BALANCE` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for clearing the balance of a [gift card](entity:GiftCard). The reason the gift card balance was cleared. See [Reason](#type-reason) for possible values One of: SUSPICIOUS_ACTIVITY, REUSE_GIFTCARD, UNKNOWN_REASON |
CreateGiftCardActivity — request body — body / gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `DEACTIVATE` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for deactivating a [gift card](entity:GiftCard). The reason the gift card was deactivated. See [Reason](#type-reason) for possible values One of: SUSPICIOUS_ACTIVITY, UNKNOWN_REASON, CHARGEBACK_DEACTIVATE |
CreateGiftCardActivity — request body — body / gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `REDEEM` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount deducted from the gift card for the redemption. This value is a positive integer. Applications that use a custom payment processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
payment_id | string | Optional | The ID of the payment that represents the gift card redemption. Square populates this field if the payment was processed by Square. Read only: true |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom payment processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative | |
status | string | Optional | Indicates the status of a [gift card](entity:GiftCard) redemption. This status is relevant only for redemptions made from Square products (such as Square Point of Sale) because Square products use a two-state process. Gift cards redeemed using the Gift Card Activities API always have a `COMPLETED` status. The status of the gift card redemption. Gift cards redeemed from Square Point of Sale or the Square Seller Dashboard use a two-state process: `PENDING` to `COMPLETED` or `PENDING` to `CANCELED`. Gift cards redeemed using the Gift Card Activities API always have a `COMPLETED` status. See [Status](#type-status) for possible values One of: PENDING, COMPLETED, CANCELED Read only: true |
Referenced models: Create Payment — request body — body tip money
CreateGiftCardActivity — response body — gift_card_activity / adjust_increment_activity_details / reason: COMPLIMENTARY, SUPPORT ISSUE, TRANSACTION VOIDED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about an `ADJUST_INCREMENT` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount added to the gift card balance. This value is a positive integer. |
reason | string | Required within parent | Indicates the reason for adding money to a [gift card](entity:GiftCard). The reason the gift card balance was adjusted. See [Reason](#type-reason) for possible values Known values: COMPLIMENTARY, SUPPORT_ISSUE, TRANSACTION_VOIDED |
Referenced models: Pay Order — response body — order total money
CreateGiftCardActivity — response body — gift_card_activity / clear_balance_activity_details / reason: SUSPICIOUS ACTIVITY, REUSE GIFTCARD, UNKNOWN REASON
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `CLEAR_BALANCE` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for clearing the balance of a [gift card](entity:GiftCard). The reason the gift card balance was cleared. See [Reason](#type-reason) for possible values Known values: SUSPICIOUS_ACTIVITY, REUSE_GIFTCARD, UNKNOWN_REASON |
CreateGiftCardActivity — response body — gift_card_activity / deactivate_activity_details / reason: SUSPICIOUS ACTIVITY, UNKNOWN REASON, CHARGEBACK DEACTIVATE
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `DEACTIVATE` [gift card activity type](entity:GiftCardActivityType). |
reason | string | Required within parent | Indicates the reason for deactivating a [gift card](entity:GiftCard). The reason the gift card was deactivated. See [Reason](#type-reason) for possible values Known values: SUSPICIOUS_ACTIVITY, UNKNOWN_REASON, CHARGEBACK_DEACTIVATE |
CreateGiftCardActivity — response body — gift_card_activity / redeem_activity_details / status: PENDING, COMPLETED, CANCELED
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents details about a `REDEEM` [gift card activity type](entity:GiftCardActivityType). |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount deducted from the gift card for the redemption. This value is a positive integer. Applications that use a custom payment processing system must specify this amount in the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request. |
payment_id | string | Optional | The ID of the payment that represents the gift card redemption. Square populates this field if the payment was processed by Square. Read only: true |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID that associates the gift card activity with an entity in another system. Applications that use a custom payment processing system can use this field to track information related to an order or payment. |
reference_id (anyOf 2) | null | Alternative | |
status | string | Optional | Indicates the status of a [gift card](entity:GiftCard) redemption. This status is relevant only for redemptions made from Square products (such as Square Point of Sale) because Square products use a two-state process. Gift cards redeemed using the Gift Card Activities API always have a `COMPLETED` status. The status of the gift card redemption. Gift cards redeemed from Square Point of Sale or the Square Seller Dashboard use a two-state process: `PENDING` to `COMPLETED` or `PENDING` to `CANCELED`. Gift cards redeemed using the Gift Card Activities API always have a `COMPLETED` status. See [Status](#type-status) for possible values Known values: PENDING, COMPLETED, CANCELED Read only: true |
Referenced models: Pay Order — response body — order total money
List Gift Card Activities — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response that contains a list of `GiftCardActivity` objects. If the request resulted in errors, the response contains a set of `Error` objects. |
cursor | string | Optional | When a response is truncated, it includes a cursor that you can use in a subsequent request to retrieve the next set of activities. If a cursor is not present, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
gift_card_activities | array | Optional | The requested gift card activities or an empty object if none are found. |
gift_card_activities[] | Model | Each item | Expand Create Gift Card Activity — response body — gift card activity |
Referenced models: Get Shift — response body — errors item, Create Gift Card Activity — response body — gift card activity