Skip to main content
Version: 202607

Disable gift card

POST 

/openapi/2026-07/gift_cards/:id/disable

Disables a specific gift card using its unique ID.

Request

Path Parameters

    id stringrequired

    Gift card's unique ID

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    gift_card object

    Gift card

    idstring

    Gift card ID

    last_charactersstring

    Last four characters of the gift card code

    balancestring

    Current balance of the gift card

    initial_valuestring

    The initial value of the gift card

    notestring

    Note attached to the gift card

    expires_onstring

    Expiration date of the gift card (e.g., 2018-11-02T12:30:10Z)

    disabled_atstring

    Time when the gift card was disabled (e.g., 2018-11-02T12:30:10Z)

    enabledboolean

    Whether the gift card is currently enabled

    created_atstring

    Time when the gift card was created (e.g., 2018-11-02T12:30:10Z)

    updated_atstring

    Time when the gift card was last updated (e.g., 2018-11-02T12:30:10Z)

    statusstring

    Status of the gift card:

    • enable: gift card is active and usable
    • disable: gift card is disabled and cannot be used
    currencystring

    Currency in which the gift card is denominated

    line_item_idstring

    ID of the line item associated with the gift card

    order_idstring

    ID of the order associated with the gift card

    user_idstring

    User ID of the creator or owner of the gift card

    template_suffixstring

    Suffix of the template used to render the gift card online

    customer_idstring

    Customer ID associated with the gift card

    codestring

    The gift card code, consisting of alphanumeric characters (minimum: 8 characters, maximum: 20 characters)