Gift Cards

Issue, manage, resend and inspect Gift Cards, their delivery language and their deliveries.

Gift Cards are bearer cards: anyone with the code can redeem an active card at checkout when Gift Cards are enabled. Checkout does not check whether the shopper matches the recipient email or linked customer. Recipient details control delivery; they do not restrict who can redeem the card. Anyone with the code can use it. Keep the code and the View your gift card link safe. If a code is leaked, disable the card to pause redemption or cancel it to permanently revoke its remaining balance.

Gift Card object: recipient_name, recipient_email and recipient_phone describe the delivery recipient, not ownership or exclusive redemption rights. recipient_customer_id on issue associates the delivery recipient with a customer without restricting redemption. Balance checks require the code; recipient details alone cannot check a balance.

Use read_gift_cards to read settings, limits and card details, and write_gift_cards to issue, update, resend cards and show their codes. The full code is returned at issuance and by Show a Gift Card code (each call is recorded in the card's history and the store's audit log); keep codes secret and never log them. Use the supported currency precision and limits returned by the API.

Cards sold through orders are issued only after the order is paid; test orders and imported orders never issue cards. Each unit of a Gift Card line becomes its own card (source: order). It is sent to one destination, in this order: the recipient email, the recipient phone, then the buyer's email, then the buyer's phone. Email uses the store's Gift Card Delivery email template; phone uses the store's Gift Card message on its selected SMS or WhatsApp channel. A future delivery time chosen by the shopper keeps the card scheduled until then; any automatic expiry counts from that time. gift_cards/create fires at issuance, also for a scheduled card. Gift Card lines never require shipping, and Gift Card prices are never converted between currencies.

Issuing a card requires delivery_method: manual (nothing is sent; cannot be scheduled), email, phone or both, from the delivery_options the settings return; each sending method needs its recipient email, phone, or both. Delivery availability is checked again when issuing. Configure the store's messaging app and its Gift Card template before phone delivery.

Each delivery has a status: pending (waiting to send), sent (the email was handed to the email service or the text message to the store's messaging app; Tringify does not track it after that, so sent does not confirm receipt), not_sent or cancelled. not_sent deliveries and deliveries cancelled for a delivery failure carry last_error_code and a localized last_error_message giving the reason: template_unavailable, sender_unavailable, recipient_invalid, card_inactive, card_cancelled, card_expired, delivery_expired or send_failed. Resend a Gift Card sends only to saved recipient details. Edit an unsent, unused card first to change them. Clearing a schedule cancels its waiting send without sending now. Saving a future schedule creates or moves a delivery, using email when present, otherwise phone, and must be before expiry.

Every card has a locale, the language its email and text are sent in: its order's language for a card sold through an order (the store's default language when the store no longer offers it), and for an issued card the locale sent on issue or, when omitted, the default_locale of List Gift Card languages. A delivery uses the template's translation into that language when the store has one, else the store's default-language text. Change it with Update a Gift Card only while can_edit_delivery is true. Resend cannot change it; a language the store doesn't offer is refused with GIFT_CARD_LANGUAGE_UNAVAILABLE.

Card details include deliveries, balance movements and lifecycle history; events carry actor_name, the staff member or app that made the change (null for automatic events). Older cards retain known issuance and activation dates; earlier changes are not reconstructed. Refunds to the original card require a usable card. Expired, disabled and cancelled cards cannot receive a new refund credit.

Endpoints#

List Gift Card products

GET read_gift_cards + read_products

Find catalog products that issue Gift Cards after payment.

Uses the product cursor pagination, search and sorting contract. These are products, not issued codes or balances. Read/edit a product using /products/{id}. Product detail includes is_gift_card and gift_card_policy (can_edit_value, can_delete, and a localized reason when locked).

Query parameters

Name Type Description
include_total boolean

Set to false to omit total from a filtered first page. Pages read with cursor never include a filtered total. Unfiltered lists always include total.

Allowed values
truefalse
cursor string

Opaque cursor from a previous products.list response. Omit for the first page; reset when search, filters, or sorting changes.

limit integer

Page size from 1 to list_max_limit. Omit to use list_default_limit from Product limits. Values above the maximum are rejected.

status string

Filter: active, scheduled, draft, or archived.

type string

Filter: simple or variable.

ids string

Comma-separated product IDs, up to list_max_limit; returns only those products. Use it to fetch a known set in one call instead of one call per product. IDs that do not exist are left out.

Example: 326,331
category_id integer

Filter by assigned category ID.

category_ids string

Comma-separated category IDs; matches products in any listed category.

vendor_id integer

Filter by assigned vendor ID.

vendor_ids string

Comma-separated vendor IDs; matches any listed vendor.

brand_id integer

Filter by assigned brand ID.

brand_ids string

Comma-separated brand IDs; matches any listed brand.

tag_id integer

Filter by assigned tag ID. A tag that does not exist or is being deleted matches no products.

tag_ids string

Comma-separated assigned tag IDs. Use tag_match to choose whether any or all IDs must match. A tag that does not exist or is being deleted is rejected.

tag_match string

How tag_ids compose: any (default) or all.

collection_id uuid

Filter by collection membership. Collections are rule-based, so membership follows each collection's rules.

collection_ids string

Comma-separated collection UUIDs; matches membership in any listed collection.

location_id uuid

Filter to products with inventory at this location.

location_ids string

Comma-separated location UUIDs; matches inventory at any listed location.

channel_ids string

Comma-separated sales channel UUIDs; matches products assigned to any listed channel.

references_metaobject uuid

Custom content entry id: only products whose custom data references the entry (a metaobject reference or list of them). What Get where an entry is used counts.

variant_references_metaobject uuid

Custom content entry id: only products with a variant whose custom data references the entry.

low_stock_only boolean

Return products at or below a configured low-stock threshold.

stock_min integer

Minimum displayed available stock. Untracked products do not match.

stock_max integer

Maximum displayed available stock. Untracked products do not match.

price_min decimal string

Minimum regular price in the store currency.

price_max decimal string

Maximum regular price in the store currency.

search string

Search text; surrounding whitespace is removed. Text exceeding search_max_length is rejected.

search_field string

Defaults to all: matches product titles, product/variant SKUs and barcodes, tags, and full-text matches in titles, descriptions, vendor names and brand names. Choose title, sku, barcode, vendor, brand, tag, or variant_sku to narrow the search. sku searches product SKUs; variant_sku searches variant SKUs. barcode searches both product and variant barcodes.

sort_by string

A value from sort_columns in Product limits. Defaults to created_at. Price sorts use the store currency; variable products sort by their minimum variant price. total_stock sorts by available stock (quantity minus reserved) summed across all of the store's locations: a variable product sums its tracked variants, and an inventory group shared by several variants counts once. For an app, the response's total_stock leaves out locations owned by other apps; the order still uses the store-wide total. in_carts sorts by the number of shoppers' live carts that hold the product, as last measured (every ten minutes). units_sold_30 and views_30 sort by the last 30 days' units sold and product page views, from the daily product numbers. Equal values are ordered by product ID in the same direction; products without a value (no price in the currency, untracked stock, in no cart, no daily numbers yet) sort last in both directions.

sort_direction string

asc or desc; defaults to desc.

updated_since string

RFC 3339 timestamp. Only products whose updated_at is at or after it are listed. Composes with the other filters.

Example: 2026-06-09T12:00:00Z

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the read_products scope.

  • 400 INVALID_INPUT

    A query parameter is invalid; details.field names it. Boolean filters accept only true or false; stock bounds are whole numbers; ID filters take positive integers (vendor, brand, category, tag) or UUIDs (collection, location, channel), at most the products limits' list_filter_ids_max each; a collection or location ID must belong to the store; cursor must come from this endpoint with the same search, filters and sort; search cannot contain a NUL character.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    limit is not between 1 and list_max_limit.

  • 400 PRODUCT_MIN_EXCEEDS_MAX_PRICE

    price_min is greater than price_max.

  • 400 PRODUCT_REGULAR_PRICE_TOO_LARGE

    A price bound exceeds the store's maximum price.

  • 400 PRODUCT_REGULAR_PRICE_TOO_PRECISE

    A price bound has more decimal places than the currency allows.

  • 400 PRODUCT_VENDOR_NOT_FOUND

    A vendor ID filter does not belong to the store.

  • 400 PRODUCT_BRAND_NOT_FOUND

    A brand ID filter does not belong to the store.

  • 400 PRODUCT_CATEGORY_INVALID

    A category ID filter does not belong to the store.

  • 400 PRODUCT_SALES_CHANNEL_INVALID

    A channel ID filter does not belong to the store.

  • 400 PRODUCT_MAX_TAGS

    More tag IDs than the products limits' max_tags.

  • 400 PRODUCT_SEARCH_TOO_LONG

    The search text exceeds the maximum length, counted in characters.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a Gift Card product

POST write_gift_cards + write_products

Create a single-value Gift Card catalog product.

Send type: simple, a positive regular price in each currency the card is sold in (one prices row per currency), an SKU, status and explicit channel_ids. Gift Card prices are never converted: shoppers paying in a currency without a price cannot see or buy the product. The title is translated per language, not per currency, so use a currency-neutral name. Draft products and products without channels are not purchasable. No physical stock, shipping, tax classes, sale prices, quantity discounts or free-gift settings. Updates and deletion use /products/{id} and also require write_gift_cards. Once an order references the product (even unpaid), financial edits and deletion fail with GIFT_CARD_PRODUCT_LOCKED; archive or unpublish instead. Existing issued cards are unchanged by catalog edits. Existing variable Gift Card products remain readable and purchasable. Product webhooks use the ordinary product topics and is_gift_card; issued-card events use the separate Gift Card topics.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
title required string

Product title. Required on create; cannot be empty on update. Normalized to NFC. Control characters are rejected. See title_max_length in GET /products/limits.

Example: Trailblazer Tee
slug string

URL slug. Omit on create to generate it from the title. A source slug must use lowercase, hyphen-separated words and stay within slug_max_length. A duplicate source slug receives a suffix. On update, omit to keep it; changing it creates a redirect unless create_redirect is false.

type required string

Required on create: simple or variable. Cannot be changed after creation. Allowed values: simple, variable.

Example: simple
status string

Product status: draft, active, scheduled, or archived. Defaults to draft. Scheduled products require publish_at. Active products are available only through their assigned sales channels. Allowed values: active, scheduled, draft, archived.

Example: draft
publish_at string

Publication time, required when the resulting status is scheduled. Accepts an ISO 8601 timestamp; include an offset for an explicit instant, or use the store timezone for a local timestamp. Stay within publish_max_days_ahead from GET /products/limits. Invalid local times during a daylight-saving change are rejected; a repeated local time uses its first occurrence. Changing to another status clears the schedule.

description string

Rich HTML description. Unsafe HTML is removed. The sanitized HTML, including markup, must fit description_max_length.

short_description string

Plain-text summary. Surrounding whitespace is removed and control characters are rejected. See short_description_max_length.

vendor_id integer

Vendor ID in this store. On create, omit if unassigned. On update, omit or send null to keep the assignment; send 0 to clear it.

brand_id integer

Brand ID in this store. On create, omit if unassigned. On update, omit or send null to keep the assignment; send 0 to clear it.

category_ids array

Category IDs in this store, up to max_categories. Duplicates are removed. On update, replaces the assignment set; [] clears it and omission keeps it.

tag_ids array

Tag IDs in this store, up to max_tags. Duplicates are removed. On update, replaces the assignment set; [] clears it and omission keeps it.

channel_ids array

Sales-channel IDs in this store. Omission on create leaves the product unassigned. On update, replaces the assignment set; [] clears it and omission keeps it.

attribute_ids array

Attribute IDs that define the variant combinations. Required for variable products. Each variant must provide one value per declared attribute. On update, replaces the declaration, subject to the surviving variants and store limits. Variable products only.

seo_title string

Search-engine title. Whitespace is trimmed and control characters are rejected. See seo_title_max_length.

seo_description string

Search-engine description. Whitespace is trimmed and control characters are rejected. See seo_description_max_length.

template_handle string

Existing product template handle for this store. Use default_product for the default template. Omit on update to keep the assignment; an empty string is invalid. The handles are each template's handle in List theme templates (resource_type product).

sku required string

Required product SKU, including for a variable parent. ASCII letters, digits, hyphens, underscores, periods, and slashes are accepted. Trimmed and kept as entered, and unique across products, variants, and inventory groups in the store regardless of letter casing: ABC-1 and abc-1 are the same SKU. See sku_max_length.

Example: TRB-TEE
barcode string

Optional Barcode/GTIN for a simple product; variable products use variant barcodes. ASCII letters, digits, and hyphens are accepted. Must be unique across products and variants. See barcode_max_length. Any barcode is kept; only a valid GTIN (8, 12, 13 or 14 digits with a correct GS1 check digit) counts as a manufacturer identifier and is sent to channel feeds and structured data. Simple products only.

condition string

Merchandise condition. Defaults to new. Variants may override the parent condition. Allowed values: new, used, refurbished.

mpn string

Optional manufacturer part number. Not required to be unique. See mpn_max_length.

no_manufacturer_identifiers boolean

Set true only if the product has no manufacturer identifiers. Cannot be true with an MPN or a barcode that is a valid GTIN; a barcode that is not a GTIN may stay. The response’s identifier_status is provided when the barcode is a valid GTIN or an MPN is set, not_applicable when this flag is true, and unknown otherwise.

gift_only boolean

Defaults to false. When true, direct cart additions are rejected with CART_GIFT_ONLY; the product can be added only as an eligible free gift. A gift-only product is also left out of storefront listings and search (shop, category, collection, vendor and brand pages, search and recommendations), like hide_from_listings; its product page still opens by direct link.

hide_from_listings boolean

Defaults to false. Excludes the product from storefront search and browse listings while keeping its assigned-channel product page accessible by direct link. Does not change gift_only or channel assignments.

requires_shipping boolean

Defaults to true and can be changed on update. Variants follow this value unless they set their own requires_shipping. While it is false, the product and every variant that follows it reject weight, dimensions, customs fields, and per-item shipping prices; values stored earlier are kept but not used.

weight number

Positive weight within the store’s limit. Requires weight_unit.

weight_unit string

Weight unit; required with weight. Allowed values: kg, g, lb, oz.

length number

Positive package length within the store’s limit.

width number

Positive package width within the store’s limit.

height number

Positive package height within the store’s limit.

dimension_unit string

Dimension unit; required when any dimension is supplied. Allowed values: cm, mm, m, in, ft.

hs_code string

Customs HS code. See hs_code_max_length and the field constraints in GET /products/limits.

country_of_origin string

Two-letter ISO country code.

inventory_source string

Simple-product inventory mode: track for per-location stock, none for untracked stock, or group for an inventory-group link. Defaults to track. Changing modes on update may require confirmation. Allowed values: track, none, group. Simple products only.

inventory_group_id string

Inventory-group UUID. Required with inventory_source=group. The group must belong to this store. Simple products only.

max_order_quantity integer

Optional per-order quantity cap, independent of inventory mode. On update, 0 clears the explicit cap; omission or null leaves it unchanged. Without an explicit cap, the store’s default order cap may still apply.

overall_low_stock_threshold integer

Overall low-stock threshold for directly tracked simple products. Uses total available stock across locations. Zero is valid. On update, null disables the alert and omission keeps it. Not available for untracked or group-backed stock. To change only a threshold, use POST /products/{id}/set-threshold, which needs no expected_revision. Simple products only.

prices array

Simple products only. Rows are {currency_code, regular_price, sale_price?, cost_price?, sale_starts_at?, sale_ends_at?}. Amounts are JSON decimal strings with the currency’s permitted precision. Include the base currency. On update, supplying this array replaces the complete price set. A sale price may be zero but must be below the regular price. The base-currency sale schedule applies to all currency sale prices; a non-base sale requires a base sale. Omit sale prices from the replacement set to remove them.

Example: [{"currency_code": "USD", "regular_price": "29.00"}]
shipping_prices array

Simple products only. Per-currency flat shipping overrides: {currency_code, price}. Send price as an exact decimal string using that currency's precision.

images array

Gallery entries: {file_id, alt_text?, sort_order?}. Files may be images, videos, or 3D models. Non-empty file_id values require read_files. On update, the array replaces the gallery; [] clears it. An entry without alt_text keeps the alt text it already has, and a new entry starts with its file’s alt text; send an empty alt_text to clear it. The store’s max_images limit applies.

inventory array

Simple products with inventory_source=track. Rows are {location_id, quantity, low_stock_threshold?, expected_quantity?}. Quantities are non-negative integers within the store’s limits. On update, only named locations change. expected_quantity is the on-hand value previously read (0 for a missing row); a mismatch returns 409 PRODUCT_VERSION_STALE. You may use merchant-managed locations or locations owned by your app’s active installation.

tax_classes array

Per-market tax assignment: {market_id, tax_class_id}. Supplied array replaces the full set.

metafields array

Values as {definition_id, value}. Definitions must target products and permit your app to write them. On update, this array replaces the set your app can write; [] clears that set. Use the dedicated metafield endpoint for writes addressed by namespace and key.

variants array

Variable products only; required (at least one variant). The initial variant set, validated together: combination uniqueness against the declared attributes, attribute coverage, at least one variant, and store-wide SKU uniqueness. Each entry:

  • sku (string, required) — unique across the entire store.
  • attribute_values (array, required) — One entry per declared attribute: {attribute_id, option_id, sort_order?}, choosing one of that attribute's options. Without sort_order, an entry is stored at its position in this array. Attribute and option ids come from GET /attributes (the product's attribute_ids must cover every attribute_id used). Two variants can never share the same combination.
  • prices (array, required) — per-currency rows {currency_code, regular_price, sale_price?, cost_price?, sale_starts_at?, sale_ends_at?}; the base currency row is required. Amounts are decimal strings.
  • title (string, optional) — auto-composed from option labels ("Red / M") unless supplied.
  • barcode is variant-specific. condition, mpn, and no_manufacturer_identifiers can override the parent’s values. identifier_status describes whether identifiers are provided, unknown, or not applicable; use the identifier fields and declaration consistently.
  • weight, weight_unit, length, width, height, dimension_unit, hs_code, country_of_origin — physical overrides.
  • requires_shipping (boolean or null, optional) — this variant's own shipping setting, for example a hardcover that ships beside a PDF that does not. Omit it or send null to follow the product. A variant that does not ship cannot have weight, dimensions, customs fields, or shipping_prices.
  • inventory_source (track | none | group), inventory (per-location rows {location_id, quantity, low_stock_threshold?, expected_quantity?} when tracking), inventory_group_id (when group).
  • image_file_id (string, optional) — Media-library upload UUID; non-empty values require read_files in addition to write_products. image_id selects an existing product gallery row and does not require read_files.
  • max_order_quantity is an optional per-order cap; overall_low_stock_threshold (total available stock across all locations) applies only to directly tracked stock. Change it later with variants on Product update or the variant set-threshold endpoint.
  • sort_order (integer, optional) — the variant's place in variant lists. Without it, the variant is stored at its position in this array (0 for the first).

Create supplies the initial set here. Later edits use the delta fields on Product update; read operations use the paginated Variant endpoints.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 409 GIFT_CARD_PRODUCT_LOCKED

    The Gift Card product has an order reference. Omit financial fields when editing merchandising; archive instead of deleting.

  • 409 GIFT_CARD_PRODUCT_CONTROLS_INVALID

    Gift Card products do not support physical stock, shipping, tax classes, sale prices, quantity discounts or free-gift controls.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the write_products scope. A non-empty images[] file_id or variant image_file_id requires read_files scope in addition to write_products.

  • 404 PRODUCT_NOT_FOUND

    No product with this ID in the store.

  • 400 INVALID_INPUT

    The request shape or one of its field values is invalid. Money values must be JSON decimal strings and fit the referenced currency's precision.

  • 400 PRODUCT_PRICE_SET_REQUIRED

    A supplied Product or Variant price set is empty. Supply the complete set, including the store base currency.

  • 400 PRODUCT_VARIANT_DUPLICATE_UPDATE_ID

    The same Variant ID appears more than once in one Product update.

  • 400 PRODUCT_VARIANT_DUPLICATE_COMBINATION

    Two surviving or concurrently updated Variants resolve to the same attribute combination.

  • 400 PRODUCT_MARKET_OR_TAX_CLASS_INVALID

    A tax-class assignment does not belong to the Product's store and market.

  • 409 PRODUCT_VERSION_STALE

    Another Product write committed after validation began. Reload and retry against the current Product.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get Gift Card limits

GET read_gift_cards

Read Gift Card limits.

Returns issuance, balance adjustment (adjustment_max, formatted_adjustment_max), recipient-field, search, pagination, per-order, expiry (expires_after_days_max, the most days expires_after_days in settings accepts) and resend (resend_max_per_hour) limits. Use these values for client-side validation. status_options and source_options list the list filters' values, and adjustment_direction_options the directions of a balance adjustment (credit, debit), each with a label worded by the API.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List Gift Card languages

GET read_gift_cards

Read the languages a Gift Card can be delivered in.

Returns options, the store's languages (the default language first) with the store's label for each, and default_locale, the language a new card gets when locale is omitted on issue: with customer_id, the language of that customer's latest order when the store offers it, else the store's default language; without it, the store's default language. Sending customer_id also requires read_customers.

Query parameters

Name Type Description
customer_id string

A customer of this store: default_locale becomes their language. Requires read_customers.

Example: 00000000-0000-4000-8000-000000000002

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    The token lacks read_gift_cards, or customer_id was sent without read_customers.

  • 400 GIFT_CARD_INVALID

    customer_id is not a valid UUID.

  • 404 STOREFRONT_CUSTOMER_NOT_FOUND_MSG

    customer_id is not an active customer of this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get Gift Card settings

GET read_gift_cards

Read Gift Card checkout, expiry and balance check settings.

Returns checkout acceptance, paid-order expiry defaults, balance_check_enabled (whether the storefront Gift Card page is available), balance_check_path (that page's storefront path, read-only) and delivery_options (manual, plus email, phone and both when they can be sent). Availability can change; issuance validates the selected method again. Phone availability does not attest provider-specific template approval.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update Gift Card settings

PUT write_gift_cards

Change Gift Card checkout, expiry and balance check settings.

Updates the store's Gift Card settings. Omitted defaults are not inferred: send the complete settings object returned by the read endpoint. balance_check_path and delivery_options are read-only and ignored.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
enabled required boolean

Accept Gift Cards at checkout.

Example: true
expires_enabled required boolean

Apply automatic expiry to cards from paid orders.

Example: true
expires_after_days integer

Days until cards from paid orders expire, from 1 to expires_after_days_max in Get Gift Card limits. Required when expires_enabled is true; omit it when false.

Example: 365
max_cards_per_order required integer

Maximum Gift Cards accepted on one order.

Example: 5
balance_check_enabled required boolean

Let customers check Gift Card balances on your store. When true, the storefront Gift Card page at balance_check_path lets shoppers check a code's balance and opens the view link sent with each card. When false, that page and the view links are not available. Every store starts with true.

Example: true

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key belongs to a different issuance.

  • 400 GIFT_CARD_CODE_NOT_REDEEMABLE

    The card's lifecycle state does not allow this change.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List Gift Cards

GET read_gift_cards

List Gift Cards issued by the store.

Gift Cards are bearer cards: anyone with the code can redeem an active card at checkout when Gift Cards are enabled. Checkout does not check whether the shopper matches the recipient email or linked customer. Recipient details control delivery; they do not restrict who can redeem the card. Anyone with the code can use it. Returns masked codes only. Filter by lifecycle status, issuance source, or currency, and search by the last four code characters or recipient. Each card carries status_display and source_display, its status and source worded by the API.

Query parameters

Name Type Description
page integer

Page number.

Example: 1
limit integer

Page size.

Example: 20
search string

Last four code characters, recipient name, or recipient email.

Example: avery
status string

Lifecycle status, a value from status_options in the limits response: active, scheduled, disabled, depleted, expired, cancelled or refund_pending.

Example: active
source string

Issuance source, a value from source_options in the limits response: manual or order.

Example: manual
currency_code string

ISO 4217 currency code.

Example: USD
sort_by string

Sort field from list_sort_columns in the limits response: code_last4, status, balance, initial_amount, currency_code, recipient_name, source, issued_at or expires_at. Defaults to issued_at. Without a currency_code filter, amount sorts group cards by currency first.

Example: issued_at
sort_direction string

asc or desc. Defaults to desc.

Example: desc

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 VALIDATION_LIST_INVALID_PAGE

    Page must be positive.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    Limit is outside the Gift Card range.

  • 400 GIFT_CARD_INVALID

    A filter, sort, or search value is invalid.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Issue a Gift Card

POST write_gift_cards

Issue a Gift Card manually. Issuance creates stored-value liability, never sales revenue. Gift card products are never taxed or discounted.

Gift Cards are bearer cards: anyone with the code can redeem an active card at checkout when Gift Cards are enabled. Checkout does not check whether the shopper matches the recipient email or linked customer. Recipient details control delivery; they do not restrict who can redeem the card. Anyone with the code can use it. Keep the code and the View your gift card link safe. If a code is leaked, disable the card to pause redemption or cancel it to permanently revoke its remaining balance. The complete bearer code is returned when this request creates the card. Send Idempotency-Key: repeating the same request with the same details within an hour returns the card and its code again, so a lost response doesn't lose the code; after that, a repeat returns the card without its code. Reusing the key with different details returns GIFT_CARD_IDEMPOTENCY_CONFLICT. Webhook payloads never contain the code. locale sets the language the card is delivered in; omitted, it is the default_locale of List Gift Card languages for the card's recipient_customer_id (the store's default language without one).

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key required string

Stable key for this exact request, up to 200 characters. Reuse it only to repeat the same request after an uncertain response.

Example: 6c1f2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d

Body parameters

Name Type Description
currency_code required string

ISO 4217 currency code: the store's base currency or another currency enabled in Settings > Currencies.

Example: USD
amount required decimal string

Initial value in the selected currency.

Example: 50.00
reason required string

Merchant-visible issuance reason.

Example: Customer service credit
recipient_name string

Delivery recipient name; does not restrict redemption.

Example: Avery
recipient_email string

Delivery recipient email; checkout does not match it to the shopper.

Example: avery@example.com
recipient_phone string

Delivery recipient phone: validated international number including its calling code; does not restrict redemption.

Example: +15551234567
recipient_message string

Message sent with the card.

Example: Enjoy your gift
scheduled_at datetime

Future delivery and activation time.

Example: 2026-12-20T09:00:00Z
expires_at datetime

Future expiry time, later than scheduled_at when both are present.

Example: 2027-12-20T09:00:00Z
delivery_method required string

Choose manual, email, phone or both from delivery_options in the settings. Manual does not send and cannot be scheduled. Email, phone and both require the corresponding recipient email, phone, or both.

Example: manual
locale string

Language the card is delivered in, a value from List Gift Card languages. Omit for the default_locale of that endpoint for recipient_customer_id.

Example: fr
recipient_customer_id string

Associates the delivery recipient with an existing customer of this store; it does not restrict redemption to that customer. Requires the read_customers scope in addition to write_gift_cards.

Example: 00000000-0000-4000-8000-000000000002

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    The token lacks write_gift_cards, or a non-empty recipient_customer_id was sent without read_customers.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 400 GIFT_CARD_INVALID

    Idempotency-Key is missing, or a value is invalid: the amount, a recipient field, the delivery method, the schedule or expiry, or a limit from Get Gift Card limits.

  • 400 GIFT_CARD_CURRENCY_NOT_ENABLED

    currency_code is neither the store's base currency nor an enabled store currency.

  • 400 GIFT_CARD_LANGUAGE_UNAVAILABLE

    locale is not one of the store's languages.

  • 404 STOREFRONT_CUSTOMER_NOT_FOUND_MSG

    recipient_customer_id is not an active customer of this store.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key was already used to issue a card with different details.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a Gift Card

GET read_gift_cards

Read one Gift Card. Redeeming a gift card is payment for goods, reported as gift_card; neither gift cards nor store credit can pay for gift card products.

Gift Cards are bearer cards: anyone with the code can redeem an active card at checkout when Gift Cards are enabled. Checkout does not check whether the shopper matches the recipient email or linked customer. Recipient details control delivery; they do not restrict who can redeem the card. Anyone with the code can use it. Returns the store-scoped card with a masked code, current balance, recipient, delivery schedule and lifecycle dates. Recipient fields (recipient_name, recipient_email and recipient_phone) describe delivery, not ownership or exclusive redemption rights; recipient_customer_id on issue associates the delivery recipient with a customer without restricting redemption. status_display and source_display word the card's status and source. locale is the language the card is delivered in (one of the store's languages when it was set: the buying order's for a purchased card, the one chosen when it was issued) and locale_display the store's label for it (the language's name once the store no longer offers it); every delivery and resend uses it. Times are RFC 3339 in the store's timezone, with its offset; expires_at_iso and delivery_scheduled_at_iso repeat the expiry and delivery schedule when set. Detail responses include the first page of events, deliveries and movements, newest first, with events_next_cursor, deliveries_next_cursor and movements_next_cursor present only while that section has older entries. Read further pages from /gift-cards/{id}/history. An event has id, kind, kind_display, actor_name and created_at; actor_name is the staff member or app that resent the card, showed its code or adjusted its balance (resent, code_revealed, balance_adjusted), and null for automatic events. A delivery has id, channel (email or sms), destination, status, status_display, attempts, created_at and updated_at. A delivery's status is pending (waiting to send), sent (handed off: the email was submitted to the email provider, or the text was handed to the messaging app), not_sent (the platform could not hand it off) or cancelled (stopped before it was sent). Tringify records only the hand-off, never what a provider or carrier does afterwards, so sent is not a receipt. A not_sent delivery, or a cancelled delivery stopped for a delivery failure, also has last_error_code (template_unavailable, sender_unavailable, recipient_invalid, card_inactive, card_cancelled, card_expired, delivery_expired or send_failed) and last_error_message, localized by the API: display it directly. To send a card again, use Resend a Gift Card. Movement fields are id, kind, kind_display, amount, formatted_amount and created_at; kind is grant (issued), redeem, redemption_reversal, refund_credit, revoke (cancelled balance) or adjustment, and amount is signed (negative when balance left the card). An adjustment movement also has reason, the merchant's reason. can_edit_delivery controls recipient name/email/phone, message, language and Schedule delivery. edit_delivery_reason is empty when editable, otherwise sent, already_used, expired, depleted, cancelled, disabled or refund_pending; display edit_delivery_reason_display directly. can_edit_expiry independently controls expiry editing. can_resend and resend_reason/resend_reason_display control Resend; additional reasons are scheduled, no_recipient and code_unavailable. These capabilities appear on list and write responses too. Do not infer permissions from balance or the latest history page. Delivery configuration and hourly resend limits are validated when sending. can_adjust_balance says whether Adjust a Gift Card balance accepts the card now. kind_display words an event or movement kind, and status_display a delivery status.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List Gift Card history

GET read_gift_cards

Page one section of a Gift Card's history.

Returns one page of events, deliveries or movements, newest first, in the same shape as the detail response. Pass the section's next_cursor from the detail response or the previous page as cursor; next_cursor is null on the last page. limit defaults to 20 and cannot exceed 50. A cursor is only valid for the card and section that issued it.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Query parameters

Name Type Description
section required string

History section: events, deliveries or movements.

Example: movements
cursor string

The next_cursor of the previous page. Omit for the newest page.

limit integer

Page size, 1 to 50.

Example: 20

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID. Section is not events, deliveries or movements.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    Limit is outside the history page range.

  • 400 GIFT_CARD_HISTORY_CURSOR_INVALID

    Cursor is malformed or belongs to another card or section.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a Gift Card

PUT write_gift_cards

Update recipient, delivery, or expiry details.

Omitted fields remain unchanged. Only an unsent, unused card with can_edit_delivery: true accepts changes to recipient name/email/phone, message, language or delivery schedule. A redemption or debit locks these details even if its balance is later restored; sent or in-flight deliveries also lock them (GIFT_CARD_EDIT_LOCKED). Expired (including an elapsed expiry), depleted, cancelled and disabled cards cannot be edited (GIFT_CARD_EDIT_UNAVAILABLE); refunds in progress return GIFT_CARD_REFUND_PENDING. Expiry follows can_edit_expiry. Saving delivery_scheduled_at creates a delivery when none is waiting, or moves the waiting delivery, using email when present, otherwise phone through the configured messaging route. The time must be in the future and strictly before expiry, and a matching recipient, enabled delivery method and stored code are required. Clearing with clear_delivery_schedule: true cancels waiting delivery: it never sends now. Nothing is sent until scheduled again or explicitly resent. Clear flags cannot be combined with their corresponding value. Resend always uses the saved recipient and language.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
recipient_name string

Delivery recipient name; does not restrict redemption.

Example: Avery
recipient_email string

Delivery recipient email; checkout does not match it to the shopper.

Example: avery@example.com
recipient_phone string

Delivery recipient phone: validated international number including its calling code; does not restrict redemption.

Example: +15551234567
recipient_message string

Message sent with the card.

Example: Enjoy your gift
delivery_scheduled_at datetime

Future delivery and activation time.

Example: 2026-12-20T09:00:00Z
expires_at datetime

Future expiry time, later than scheduled_at when both are present.

Example: 2027-12-20T09:00:00Z
locale string

Language the card is delivered in, a value from List Gift Card languages. Only while can_edit_delivery is true.

Example: fr
clear_delivery_schedule boolean

Cancel the waiting delivery and remove the schedule. Does not send now.

Example: false
clear_expiry boolean

Remove the expiry.

Example: false

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key belongs to a different issuance.

  • 400 GIFT_CARD_CODE_NOT_REDEEMABLE

    The card's lifecycle state does not allow this change.

  • 409 GIFT_CARD_REFUND_PENDING

    A refund of the order that sold this card is in progress; try again when it finishes.

  • 400 GIFT_CARD_LANGUAGE_UNAVAILABLE

    locale is not one of the store's languages.

  • 409 GIFT_CARD_EDIT_LOCKED

    Sent, in-flight or used cards cannot change recipient, message, language or schedule.

  • 409 GIFT_CARD_EDIT_UNAVAILABLE

    Expired, depleted, cancelled or disabled cards cannot be edited.

  • 409 GIFT_CARD_CODE_UNAVAILABLE

    Scheduling needs a stored card code.

  • 409 GIFT_CARD_DELIVERY_BUSY

    Too many waiting deliveries; contact support.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Resend a Gift Card

POST write_gift_cards

Send a Gift Card again to its saved recipient.

Use can_resend and the server-provided resend_reason_display. Only active cards with positive balance that have not expired can be resent; scheduled, disabled, depleted, expired, cancelled and refund-pending cards cannot. Sent or partially used cards can be resent to their existing details. Resend cannot change recipient details or language (GIFT_CARD_RESEND_DETAILS_LOCKED); edit an eligible card first with Update a Gift Card. delivery_method must be email, phone or both, from the settings delivery options, with the matching saved recipient details. Each resend adds one delivery per channel and a resent event with its actor; it adds no value. Send Idempotency-Key: the same key and method does not send twice; changed details return GIFT_CARD_IDEMPOTENCY_CONFLICT. Cards without a stored code return GIFT_CARD_CODE_UNAVAILABLE. The server enforces resend_max_per_hour from Get Gift Card limits (GIFT_CARD_RESEND_LIMIT_REACHED).

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key required string

Stable key for this exact request, up to 200 characters. Reuse it only to repeat the same request after an uncertain response.

Example: 6c1f2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d

Body parameters

Name Type Description
delivery_method required string

email, phone or both, from delivery_options in settings, using saved recipient details.

Example: email

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID. Idempotency-Key is missing, the delivery method is not available, or the recipient email or phone is missing or invalid.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 409 GIFT_CARD_RESEND_DETAILS_LOCKED

    Resend cannot change the saved recipient or language.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 400 GIFT_CARD_RESEND_UNAVAILABLE

    The card is not active, has no positive balance or saved recipient, or it has expired.

  • 400 GIFT_CARD_LANGUAGE_UNAVAILABLE

    locale is not one of the store's languages.

  • 409 GIFT_CARD_CODE_UNAVAILABLE

    The card's full code is not stored.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key was already used with different details.

  • 409 GIFT_CARD_REFUND_PENDING

    A refund of the order that sold this card is in progress; try again when it finishes.

  • 429 GIFT_CARD_RESEND_LIMIT_REACHED

    The card was resent resend_max_per_hour times in the last hour.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Show a Gift Card code

POST write_gift_cards

Read a Gift Card's full code.

Returns the card's complete bearer code. Every call is recorded as a code_revealed event with actor_name in the card's history and in the store's audit log; the code itself is never written to the history, the audit log or webhooks. Cancelled cards and cards whose full code is not stored (cards issued before codes were kept) return GIFT_CARD_CODE_UNAVAILABLE.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 409 GIFT_CARD_CODE_UNAVAILABLE

    The card is cancelled, or its full code is not stored.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Change Gift Card status

POST write_gift_cards

Activate, disable, or cancel a Gift Card.

Send Idempotency-Key and a reason. If the code is leaked, disable or cancel the card. Cancelling permanently revokes the remaining balance; disabling pauses redemption and can be reversed by activating the card.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key required string

Stable key for this exact request, up to 200 characters. Reuse it only to repeat the same request after an uncertain response.

Example: 6c1f2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d

Body parameters

Name Type Description
status required string

New status: active, disabled, or cancelled.

Example: disabled
reason required string

Merchant-visible reason recorded in the audit log.

Example: Customer request

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key belongs to a different issuance.

  • 400 GIFT_CARD_CODE_NOT_REDEEMABLE

    The card's lifecycle state does not allow this change.

  • 409 GIFT_CARD_REFUND_PENDING

    A refund of the order that sold this card is in progress; try again when it finishes.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Adjust a Gift Card balance

POST write_gift_cards

Add balance to a Gift Card or remove balance from it. This is a signed liability adjustment, not a sale or refund of merchandise.

Send Idempotency-Key, a direction (credit adds, debit removes; values from adjustment_direction_options in Get Gift Card limits), a positive amount in the card's currency up to adjustment_max, and a reason. Only active and depleted cards that have not expired can be adjusted (can_adjust_balance); scheduled, disabled, expired and cancelled cards cannot. A debit can't take more than the card's balance, and a credit can't take the balance above balance_max. Crediting a depleted card makes it active again; debiting an active card to zero makes it depleted. Each adjustment adds an adjustment movement with the reason and a balance_adjusted event with actor_name, is recorded in the store's audit log and sends gift_cards/adjust. Repeating the request with the same key and details returns the card without adjusting it again; the same key with other details returns GIFT_CARD_IDEMPOTENCY_CONFLICT. Returns the card detail.

Path parameters

Name Type Description
id required string

Gift Card UUID.

Example: 9a435fcc-d233-4702-badf-c4f42d00133d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key required string

Stable key for this exact request, up to 200 characters. Reuse it only to repeat the same request after an uncertain response.

Example: 6c1f2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d

Body parameters

Name Type Description
direction required string

credit to add balance, debit to remove it.

Example: credit
amount required decimal string

Positive amount in the card's currency, up to adjustment_max.

Example: 5.00
reason required string

Merchant-visible reason, kept with the movement and in the audit log. Customers never see it.

Example: Goodwill for a late delivery

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 GIFT_CARD_INVALID

    Id is not a valid UUID. Idempotency-Key is missing, or the direction, amount or reason is invalid.

  • 404 GIFT_CARD_NOT_FOUND

    Gift Card does not exist in this store.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 400 GIFT_CARD_ADJUSTMENT_LIMIT_EXCEEDED

    The amount is more than adjustment_max.

  • 409 GIFT_CARD_ADJUSTMENT_UNAVAILABLE

    The card is not active or depleted, or it has expired.

  • 409 GIFT_CARD_ADJUSTMENT_EXCEEDS_BALANCE

    A debit is more than the card's balance.

  • 409 GIFT_CARD_BALANCE_LIMIT_EXCEEDED

    A credit would take the balance above balance_max.

  • 409 GIFT_CARD_REFUND_PENDING

    A refund of the order that sold this card is in progress; try again when it finishes.

  • 409 GIFT_CARD_IDEMPOTENCY_CONFLICT

    The idempotency key was already used with different details.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Change Gift Card statuses

POST write_gift_cards

Activate or disable many Gift Cards.

Send Idempotency-Key, up to bulk_max_count distinct card ids, a status of active or disabled, and a reason. Each card changes independently: updated lists the cards that now have the requested status and failed lists each card that could not change with its error code and localized message, so one refused card never blocks the others. Repeating the request with the same key does not repeat a change that already applied. Cancelling is permanent and is only available one card at a time through the single-card status endpoint. The response is compact: totals first, then each item's id and status only; read an item for its other fields. Failed items keep their full error.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key required string

Stable key for this exact request, up to 200 characters. Reuse it only to repeat the same request after an uncertain response.

Example: 6c1f2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d

Body parameters

Name Type Description
ids required array<string>

Gift Card UUIDs, 1 to bulk_max_count, without duplicates.

Example: ["9a435fcc-d233-4702-badf-c4f42d00133d"]
status required string

New status: active or disabled.

Example: disabled
reason required string

Merchant-visible reason recorded in each card's audit log.

Example: Suspected fraud

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body is not valid JSON.

  • 400 INVALID_INPUT

    A body field has the wrong JSON type.

  • 400 GIFT_CARD_INVALID

    Idempotency-Key is missing, or the ids, status or reason are invalid.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Buying a gift card creates a liability, not sales revenue: gift card lines are excluded from gross, net and total sales, product sales, frequently bought together and repeat purchases. They are never taxed or discounted. Spending a gift card pays for goods, which count as sales once on the order; the payment method is gift_card. Store credit is reported as store_credit. Completed refunds to either balance reduce sales once, on the day they complete; pending or failed refunds do not. Gift cards can't be bought with a gift card or store credit. In mixed carts, gift cards apply first to the non-gift-card payable amount. Store credit then applies to that eligible amount remaining after gift cards, subject to the customer's balance and the store's per-order limits. Neither field appears for a gift-card-only cart. A direct checkout attempt is refused with GIFT_CARD_PURCHASE_TENDER_FORBIDDEN: “Gift cards can’t be bought with a gift card or store credit”. The checkout editor's SAMPLEGIFT and sample store credit follow the same rule and never spend real balances. Gift-card-only orders count as orders but are excluded from average order value. Average order value = total sales ÷ recognized orders that have sales lines. Free merchandise and fully refunded merchandise orders still have sales lines. A mixed order contributes only its sales amount. A sale notification shows that same amount; a gift-card-only order says Gift card sold and shows the gift card purchase amount. Checkout started, payment chosen and purchase event values and items exclude gift card lines.

Order and payment webhooks remain complete transaction records: their order totals include gift card purchases and their payment records include stored-value tender. They are not sales totals. Sales analytics and advertising events exclude gift card lines. Gift card movement webhooks describe liability changes, never new merchandise revenue. Timestamps are RFC 3339 in the store timezone.

Historical order CSV imports preserve pricing_snapshot.items[].is_gift_card in the saved order-line classification. That flag comes from the validated original snapshot, not a current catalog lookup. Gift card evidence with non-zero tax or discounts is invalid. Imports never issue fresh cards; gift card lines remain excluded from sales, product counters and the AOV denominator. Gift-line refunds reverse liability, and surplus refunds are excluded from recognized sales deductions.

Webhook events#

Gift Cards are bearer cards: anyone with the code can redeem an active card at checkout when Gift Cards are enabled. Checkout does not check whether the shopper matches the recipient or linked customer. The payload's recipient_name, recipient_email, recipient_phone and recipient_message are delivery details, not ownership or exclusive redemption rights, and delivery_scheduled_at is when the delivery is due (null when it went on issue). Webhooks never include the full code. Keep the code and the View your gift card link safe. If a code is leaked, disable the card to pause redemption or cancel it to permanently revoke its remaining balance. gift_cards/update carries changed_fields, the payload fields the change touched: saving or clearing a delivery schedule names delivery_scheduled_at (clearing cancels the waiting send; it does not send immediately), an activation names status and activated_at. A merchant balance adjustment sends gift_cards/adjust instead: its movement is an adjustment with a signed amount (negative removes), balance_after and the merchant's reason. Resend uses saved recipient details and language, so it sends no update. The payload does not carry merchant edit or resend capabilities; fetch the card through the Store API for current can_edit_delivery, can_edit_expiry, can_resend and their reasons. Never infer edit permissions from a webhook balance or from a single delivery.

Gift Card balance adjusted

EVENT gift_cards/adjust App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a merchant adds balance to a Gift Card or removes it. The movement is an adjustment with a signed amount (negative removes), balance_after and the merchant's reason.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder
movement.id string Always present
movement.gift_card_id string Selectable in the Payload builder
movement.kind string Selectable in the Payload builder
movement.amount string Selectable in the Payload builder
movement.currency_code string Selectable in the Payload builder
movement.balance_after string Selectable in the Payload builder
movement.order_id string | null Selectable in the Payload builder
movement.reason string | null Selectable in the Payload builder
movement.created_at string Selectable in the Payload builder

Gift Card cancelled

EVENT gift_cards/cancel App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a Gift Card is cancelled.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder

Gift Card issued

EVENT gift_cards/create App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a Gift Card is issued.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder

Gift Card expired

EVENT gift_cards/expire App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a Gift Card expires with its final balance snapshot.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder

Gift Card redeemed

EVENT gift_cards/redeem App scope: read_gift_cards Staff permission: gift_cards:write

Fired when Gift Card value settles against an order.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder
movement.id string Always present
movement.gift_card_id string Selectable in the Payload builder
movement.kind string Selectable in the Payload builder
movement.amount string Selectable in the Payload builder
movement.currency_code string Selectable in the Payload builder
movement.balance_after string Selectable in the Payload builder
movement.order_id string | null Selectable in the Payload builder
movement.reason string | null Selectable in the Payload builder
movement.created_at string Selectable in the Payload builder

Gift Card redemption reversed

EVENT gift_cards/redemption_reversed App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a Gift Card redemption is reversed.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder
movement.id string Always present
movement.gift_card_id string Selectable in the Payload builder
movement.kind string Selectable in the Payload builder
movement.amount string Selectable in the Payload builder
movement.currency_code string Selectable in the Payload builder
movement.balance_after string Selectable in the Payload builder
movement.order_id string | null Selectable in the Payload builder
movement.reason string | null Selectable in the Payload builder
movement.created_at string Selectable in the Payload builder

Gift Card refunded

EVENT gift_cards/refund App scope: read_gift_cards Staff permission: gift_cards:write

Fired when value is returned to a Gift Card.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder
movement.id string Always present
movement.gift_card_id string Selectable in the Payload builder
movement.kind string Selectable in the Payload builder
movement.amount string Selectable in the Payload builder
movement.currency_code string Selectable in the Payload builder
movement.balance_after string Selectable in the Payload builder
movement.order_id string | null Selectable in the Payload builder
movement.reason string | null Selectable in the Payload builder
movement.created_at string Selectable in the Payload builder

Gift Card updated

EVENT gift_cards/update App scope: read_gift_cards Staff permission: gift_cards:write

Fired when a Gift Card's status, recipient, delivery details, schedule, language or expiry changes. changed_fields names the payload fields that changed. Balance adjustments send gift_cards/adjust instead.

Payload fields

Field Type Description
gift_card.id string Always present
gift_card.code_last4 string Selectable in the Payload builder
gift_card.currency_code string Selectable in the Payload builder
gift_card.initial_amount string Selectable in the Payload builder
gift_card.balance string Selectable in the Payload builder
gift_card.status string Selectable in the Payload builder
gift_card.source string Selectable in the Payload builder
gift_card.source_order_id string | null Selectable in the Payload builder
gift_card.recipient_email string | null Selectable in the Payload builder
gift_card.recipient_name string | null Selectable in the Payload builder
gift_card.recipient_phone string | null Selectable in the Payload builder
gift_card.recipient_message string | null Selectable in the Payload builder
gift_card.delivery_scheduled_at string | null Selectable in the Payload builder
gift_card.locale string Selectable in the Payload builder
gift_card.issued_at string Selectable in the Payload builder
gift_card.activated_at string | null Selectable in the Payload builder
gift_card.expires_at string | null Selectable in the Payload builder
gift_card.updated_at string Selectable in the Payload builder
changed_fields array Always present