SubblySubbly
Log inGet started
  • Get started
  • Developer resources
Private API reference
Docs
Information
    Base URLAuthenticationPaginationErrors
Customer
    Get list of customersCreate a customerGet customer by IDUpdate a customerDelete a customerChange a customer's store credit balanceCreate a customer noteUpdate a customer noteDelete a customer note
Address
    Create an addressUpdate an addressDelete an address
Pickup Info
    Get list of pickup infoCreate pickup infoUpdate pickup infoDelete pickup info
Subscription
    Get list of subscriptionsCreate a subscriptionGet subscription by IDUpdate a subscriptionCancel a subscriptionUndo cancellationPause a subscriptionResume a subscriptionSkip renewals until a dateReactivate a cancelled or expired subscriptionSwitch the subscription to another plan by starting overChange the plans of the subscription's itemsUpdate a subscription's shipping address and methodUpdate a subscription's payment methodUpdate a subscription's survey preferencesCreate a subscription itemShow a subscription itemUpdate a subscription itemRemove a subscription itemUpdate a subscription item's preferencesUpdate a subscription item's bundleChange the plan of a subscription itemChange the variant of a one-time itemApply a discount to a subscription itemRemove a subscription item discountApply a discount to a subscriptionRemove a subscription discount
Invoice
    Get list of invoicesGet invoice by IDSchedule the next payment for invoiceVoid an invoiceForgive an invoiceMark an invoice as paid
Order
    Get list of ordersGet order by IDUpdate an orderShip an orderCancel an orderMark an order as pendingArchive an orderMark an order as a future shipmentSync order shipping items
Payment Method
    Create a payment methodGet payment method by IDDelete a payment method
Transaction
    Get list of transactionsGet transaction by ID
Cancellation
    Get shop cancellation reasonsAdd a cancellation reasonRename a cancellation reasonDelete a cancellation reason
Product
    Get list of productsGet product by IDGet variant by IDUpdate variantGet plan by IDUpdate planCreate subscription productUpdate subscription productPublish subscription productUnpublish subscription productArchive subscription productSync subscription product metadataCreate one-time productUpdate one-time productPublish one-time productUnpublish one-time productArchive one-time productSync one-time product metadataCreate variantArchive variantBatch create/update/archive variantsCreate planArchive plan
Survey
    Get survey by IDGet list of surveys
Bundle
    Get list of bundlesCreate a new bundleGet bundle by IDUpdate a bundleGet list of bundle itemsCreate a bundle itemBatch create bundle itemsGet bundle item by IDUpdate a bundle itemDelete a bundle itemGet list of bundle groupsPublish a bundleUnpublish a bundleArchive a bundleSync bundle metadataCreate a bundle planGet bundle plan by IDUpdate a bundle planArchive a bundle plan
Tag
    Get list of tags
Metafield
    Get shop's metafieldsCreate a new metadataUpdate the metadataDelete a metafield
Metaobject
    List metaobjectsCreate a metaobjectGet a metaobjectUpdate a metaobjectDelete a metaobjectList the entries of a metaobjectCreate a metaobject entryGet a metaobject entryUpdate a metaobject entryDelete a metaobject entry
Funnel
    Get list of funnelsGet funnel by ID
Option
    Get list of options
Country
    Get list of countries
Currency
    Get list of currencies
Inventory
    Get list of inventory itemsCreate a new inventory itemGet inventory item by IDUpdate an inventory itemArchive an inventory itemGet list of inventory groupsCreate a new inventory groupGet inventory group by IDUpdate an inventory group
Coupon
    Get list of couponsCreate a couponGet coupon by IDUpdate a couponArchive a coupon
Custom Tax
    Get list of custom taxesCreate a custom taxGet a custom taxUpdate a custom taxDelete a custom taxPublish a custom taxUnpublish a custom taxGet list of custom tax groupsCreate a custom tax groupGet a custom tax groupUpdate a custom tax groupDelete a custom tax group
Product Collection
    Get list of product collectionsCreate a product collectionGet product collection by IDUpdate a product collectionPublish a product collectionUnpublish a product collectionArchive a product collectionGet list of collection groups with itemsSync collection items
Webhook
    Get list of webhook endpointsCreate a webhook endpointGet webhook delivery statisticsGet a webhook endpointUpdate a webhook endpointDelete a webhook endpointRotate the signing secretSend a test eventGet webhook deliveriesGet a delivery with its attemptsRetry a delivery manuallyGet the webhook event logGet one event with its deliveries across endpointsGet the catalogue of subscribable event types
Email Unsubscribe
    Unsubscribe an email address from marketing mail
Shipping
    Get list of shipping rulesCreate a shipping ruleGet shipping rule by IDUpdate a shipping ruleDelete a shipping rulePublish a shipping ruleUnpublish a shipping ruleGet list of shipping optionsCreate a shipping optionGet shipping option by IDUpdate a shipping optionDelete a shipping optionPublish a shipping optionUnpublish a shipping optionGet list of local pickupsCreate a local pickupGet local pickup by IDUpdate a local pickupDelete a local pickupPublish a local pickupUnpublish a local pickupGet list of local deliveriesCreate a local deliveryGet local delivery by IDUpdate a local deliveryDelete a local deliveryPublish a local deliveryUnpublish a local deliveryGet list of shipping methodsGet a shipping method
Team Member
    Get list of team membersAdd a team memberGet team member by IDUpdate a team memberRemove a team member
Shop
    Get the shop
Shop Settings
    Update the shop settings
Shop Owner
    Update the shop owner
Gateway
    Get list of gatewaysGet gateway by ID
Referral Program
    Update the referral program
ShopCurrency
    Get the shop currenciesAdd a shop currencyGet a shop currencyUpdate a shop currencyRemove a shop currencyPublish a shop currencyUnpublish a shop currency
StorefrontTranslation
    Get the storefront translationsAdd a storefront translationGet a storefront translationUpdate a storefront translationRemove a storefront translationPublish a storefront translationUnpublish a storefront translationMake a storefront translation primaryGet a storefront translation's textsUpdate a storefront translation's texts
Gift Card
    Get list of gift cardsIssue a gift cardGet gift card by IDUpdate a gift cardCancel a gift card
Metric
    Get list of metricsGet a metric

Gift Card

Private Gift Card API endpoints

Endpoints
  • GET/gift_cards
  • POST/gift_cards
  • GET/gift_cards/{gift_card}
  • PATCH/gift_cards/{gift_card}
  • POST/gift_cards/{gift_card}/cancel

Get list of gift cards

GET /gift_cards

A page of the shop's issued gift cards, newest first.

Query parameters

statuses[]optionalstring[]

Only cards in any of these statuses. Values must be distinct.

variant_ids[]optionalinteger[]

Only cards of these denominations (product_id). Values must be distinct.

customer_idoptionalinteger

Only cards redeemed by this customer of the shop.

buyer_idoptionalinteger

Only cards bought by this customer of the shop.

queryoptionalstring

Matches part of the code, the recipient's name or the recipient's email.

created_at[gte]optionalstring

Only cards issued on or after this time, UTC, in Y-m-dTH:i:s format with no timezone.

created_at[lte]optionalstring

Only cards issued on or before this time, UTC, in Y-m-dTH:i:s format with no timezone.

expiring_at[gte]optionalstring

Only cards expiring on or after this time, UTC, in Y-m-dTH:i:s format with no timezone.

expiring_at[lte]optionalstring

Only cards expiring on or before this time, UTC, in Y-m-dTH:i:s format with no timezone.

sort[field]optionalstring

Field to sort by. Required whenever any sort[...] key is present. When sort is omitted the list is ordered by id descending.

Possible values: id, created_at, expiring_at, redeemed_at, cancelled_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

expand[]optionalstring[]

List of relations to expand in the response. Each expandable field on the response schema names its key, e.g. expand[]=customer. Nested keys use dot notation, e.g. items.product or subscriptions.items. Fields marked as always present are returned without being requested. A list that was not requested is null. A requested list with no records is []. Unknown keys are ignored unless the endpoint says otherwise.

Returnsobject

Gift cards list response

Error responses

422object

A query parameter failed validation: an unknown status, a customer_id or buyer_id that is not a customer of the shop, a date not in 2026-11-01T00:00:00 format, sort[direction] without sort[field], an unknown sort field or direction, page below 1, or per_page outside 1 to 100.

curl https://api.subbly.co/private/v1/gift_cards \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 1842, "code": "9f1c2b7e-4d3a-4c8e-9b1a-2f6d8e0c7a51", "product_id": 5121, "product": { "id": 1, "bundle_plan_id": 1, "bundle_plan": {}, "name": "Yellow T-shirt with pokemon print", "description": "Yellow T-shirt with pokemon print", "price": 799, "price_schema": {}, "price_scheme": {}, "parent": {}, "product": {}, "metadata": [ {} ], "attributes": [ {} ], "options": [ {} ], "stock_count": 100, "published": true, "inventory_item_id": 1, "created_at": "2022-04-01T00:00:00.000000Z", "updated_at": "2022-04-01T00:00:00.000000Z" }, "invoice_id": 99812, "buyer_id": 10, "buyer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_id": 55, "customer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "amount": 5000, "balance": 3250, "message": "Happy birthday, Bob!", "status": "partially_used", "expiring_at": "2027-11-19T23:59:59.000000Z", "redeemed_at": "2026-11-20T09:14:03.000000Z", "cancelled_at": null, "created_at": "2026-11-19T12:30:00.000000Z", "updated_at": "2026-12-01T08:00:11.000000Z" } ] }

Issue a gift card

POST /gift_cards

Issue a gift card for a denomination, a variant of one of the shop's gift card products. The card is worth the denomination's price and starts issued. The gift card email is sent to the recipient unless notify_customer is false. Nothing is sent while the shop's gift card email is turned off.

Request body

variant_idRequiredinteger

The denomination, a variant of one of the shop's gift card products that is not archived. Unpublished variants are accepted. The card shows it as product_id.

customer_nameRequiredstring

The recipient's name.

customer_emailRequiredstring

The recipient's email.

Format: email.

messageoptionalstring | null

The message shown in the gift card email.

buyer_idoptionalinteger | null

The buyer, a customer of the shop who paid for the card.

expiring_atoptionalstring | null

The deadline to redeem the code, a future time in UTC. Omitted: the denomination's expiration months from now, at the end of that day, or no expiry when the denomination has none. null: no expiry. Format Y-m-dTH:i:s, with no timezone.

notify_customeroptionalboolean

Whether the gift card email is sent to the recipient.

Defaults to true.

ReturnsGiftCard

The issued gift card

Error responses

400object

Gift cards are not available for the shop (feature_not_available).

422object

A key failed validation: variant_id is not a variant of one of the shop's gift card products or is archived, buyer_id is not a customer of the shop, expiring_at is not a future time in 2027-11-19T23:59:59 format, customer_name or customer_email is missing, customer_email is not an email, message is longer than 255 characters, or notify_customer is not a boolean.

curl -X POST https://api.subbly.co/private/v1/gift_cards \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "variant_id": 5121, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "message": "Happy birthday, Bob!", "buyer_id": 10, "expiring_at": "2027-11-19T23:59:59", "notify_customer": true }'
Response
{ "id": 1842, "code": "9f1c2b7e-4d3a-4c8e-9b1a-2f6d8e0c7a51", "product_id": 5121, "product": { "id": 1, "bundle_plan_id": 1, "bundle_plan": {}, "name": "Yellow T-shirt with pokemon print", "description": "Yellow T-shirt with pokemon print", "price": 799, "price_schema": {}, "price_scheme": {}, "parent": {}, "product": {}, "metadata": [ {} ], "attributes": [ {} ], "options": [ {} ], "stock_count": 100, "published": true, "inventory_item_id": 1, "created_at": "2022-04-01T00:00:00.000000Z", "updated_at": "2022-04-01T00:00:00.000000Z" }, "invoice_id": 99812, "buyer_id": 10, "buyer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_id": 55, "customer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "amount": 5000, "balance": 3250, "message": "Happy birthday, Bob!", "status": "partially_used", "expiring_at": "2027-11-19T23:59:59.000000Z", "redeemed_at": "2026-11-20T09:14:03.000000Z", "cancelled_at": null, "created_at": "2026-11-19T12:30:00.000000Z", "updated_at": "2026-12-01T08:00:11.000000Z" }

Get gift card by ID

GET /gift_cards/{gift_card}

One of the shop's issued gift cards.

Path parameters

gift_cardRequiredinteger

Gift card ID

Query parameters

expand[]optionalstring[]

List of relations to expand in the response. Each expandable field on the response schema names its key, e.g. expand[]=customer. Nested keys use dot notation, e.g. items.product or subscriptions.items. Fields marked as always present are returned without being requested. A list that was not requested is null. A requested list with no records is []. Unknown keys are ignored unless the endpoint says otherwise.

ReturnsGiftCard

Gift card object response

Error responses

404object

The gift card does not exist or belongs to another shop.

curl https://api.subbly.co/private/v1/gift_cards/{gift_card} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 1842, "code": "9f1c2b7e-4d3a-4c8e-9b1a-2f6d8e0c7a51", "product_id": 5121, "product": { "id": 1, "bundle_plan_id": 1, "bundle_plan": {}, "name": "Yellow T-shirt with pokemon print", "description": "Yellow T-shirt with pokemon print", "price": 799, "price_schema": {}, "price_scheme": {}, "parent": {}, "product": {}, "metadata": [ {} ], "attributes": [ {} ], "options": [ {} ], "stock_count": 100, "published": true, "inventory_item_id": 1, "created_at": "2022-04-01T00:00:00.000000Z", "updated_at": "2022-04-01T00:00:00.000000Z" }, "invoice_id": 99812, "buyer_id": 10, "buyer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_id": 55, "customer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "amount": 5000, "balance": 3250, "message": "Happy birthday, Bob!", "status": "partially_used", "expiring_at": "2027-11-19T23:59:59.000000Z", "redeemed_at": "2026-11-20T09:14:03.000000Z", "cancelled_at": null, "created_at": "2026-11-19T12:30:00.000000Z", "updated_at": "2026-12-01T08:00:11.000000Z" }

Update a gift card

PATCH /gift_cards/{gift_card}

Partially update a gift card: send only the keys you want to change; every other value stays as it is. used and cancelled cards cannot be edited. An expired card accepts a request only when it sends expiring_at, which extends the card: it becomes issued when it was never redeemed, otherwise redeemed or partially_used by its balance.

Path parameters

gift_cardRequiredinteger

Gift card ID

Request body

balanceoptionalinteger

What is left to spend, in minor units of the shop's base currency, up to the card's amount. A redeemed or partially_used card becomes redeemed at the full amount and partially_used below it; an issued card stays issued.

expiring_atoptionalstring | null

The deadline to redeem the code, UTC, in the future; null removes it. On an expired card it extends the card. Format Y-m-dTH:i:s, with no timezone.

messageoptionalstring | null

The message shown in the gift card email; null removes it.

customer_nameoptionalstring

The recipient's name.

customer_emailoptionalstring

The recipient's email.

Format: email.

ReturnsGiftCard

Gift card object response

Error responses

400object

The card is used (gift_card_used) or cancelled (gift_card_cancelled), or it is expired and the request sends no expiring_at (gift_card_expired). An expired card with a cancelled_at cannot be extended (gift_card_cancelled), nor can one with a balance of 0 (gift_card_used).

404object

The gift card does not exist or belongs to another shop.

422object

Validation failed: balance is not a whole number from 1 to the card's amount, expiring_at is not in 2027-11-19T23:59:59 format or not in the future, message is longer than 255 characters, customer_name is empty or longer than 255 characters, or customer_email is not a valid email or is longer than 255 characters.

curl -X PATCH https://api.subbly.co/private/v1/gift_cards/{gift_card} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "balance": 5000, "expiring_at": "2027-11-19T23:59:59" }'
Response
{ "id": 1842, "code": "9f1c2b7e-4d3a-4c8e-9b1a-2f6d8e0c7a51", "product_id": 5121, "product": { "id": 1, "bundle_plan_id": 1, "bundle_plan": {}, "name": "Yellow T-shirt with pokemon print", "description": "Yellow T-shirt with pokemon print", "price": 799, "price_schema": {}, "price_scheme": {}, "parent": {}, "product": {}, "metadata": [ {} ], "attributes": [ {} ], "options": [ {} ], "stock_count": 100, "published": true, "inventory_item_id": 1, "created_at": "2022-04-01T00:00:00.000000Z", "updated_at": "2022-04-01T00:00:00.000000Z" }, "invoice_id": 99812, "buyer_id": 10, "buyer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_id": 55, "customer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "amount": 5000, "balance": 3250, "message": "Happy birthday, Bob!", "status": "partially_used", "expiring_at": "2027-11-19T23:59:59.000000Z", "redeemed_at": "2026-11-20T09:14:03.000000Z", "cancelled_at": null, "created_at": "2026-11-19T12:30:00.000000Z", "updated_at": "2026-12-01T08:00:11.000000Z" }

Cancel a gift card

POST /gift_cards/{gift_card}/cancel

Cancel an issued, redeemed, partially_used or expired card. Its code stops working at checkout and in renewals, and open carts drop it. The balance is kept. Cancelling a card that is already cancelled, or an expired card with a cancelled_at, changes nothing.

Path parameters

gift_cardRequiredinteger

Gift card ID

ReturnsGiftCard

The cancelled gift card

Error responses

400object

The card has no balance left (gift_card_used).

404object

The gift card does not exist or belongs to another shop.

curl -X POST https://api.subbly.co/private/v1/gift_cards/{gift_card}/cancel \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 1842, "code": "9f1c2b7e-4d3a-4c8e-9b1a-2f6d8e0c7a51", "product_id": 5121, "product": { "id": 1, "bundle_plan_id": 1, "bundle_plan": {}, "name": "Yellow T-shirt with pokemon print", "description": "Yellow T-shirt with pokemon print", "price": 799, "price_schema": {}, "price_scheme": {}, "parent": {}, "product": {}, "metadata": [ {} ], "attributes": [ {} ], "options": [ {} ], "stock_count": 100, "published": true, "inventory_item_id": 1, "created_at": "2022-04-01T00:00:00.000000Z", "updated_at": "2022-04-01T00:00:00.000000Z" }, "invoice_id": 99812, "buyer_id": 10, "buyer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_id": 55, "customer": { "id": 8435732, "user_id": 5512, "first_name": "John", "last_name": "Smith", "email": "test@test.com", "marketing_consent": false, "tos_consent_at": "2022-04-01T00:00:00.000000Z", "external_id": "crm-8842", "default_payment_method_id": 1, "default_payment_method": {}, "payment_methods": [ {} ], "subscriptions": [ {} ], "past_due_invoice_count": 0, "balance": 1500, "tags": [ "VIP" ], "tags_meta": [], "notes": [ {} ], "addresses": [ {} ], "metadata": [ {} ], "created_at": "2022-04-01T00:00:00.000000Z" }, "customer_name": "Bob Lee", "customer_email": "bob@mail.com", "amount": 5000, "balance": 3250, "message": "Happy birthday, Bob!", "status": "partially_used", "expiring_at": "2027-11-19T23:59:59.000000Z", "redeemed_at": "2026-11-20T09:14:03.000000Z", "cancelled_at": null, "created_at": "2026-11-19T12:30:00.000000Z", "updated_at": "2026-12-01T08:00:11.000000Z" }
paginationobject
dataGiftCard[]
idinteger
codestring

The redemption code.

product_idinteger

The denomination, the gift card product's variant the card was issued from.

productVariant | null

Expandable link to the denomination. null unless expand[]=product. Archived variants are still returned.

invoice_idinteger | null

The invoice the card was bought on; null when the merchant issued it.

buyer_idinteger | null

The buyer, the customer who paid for the card.

buyerCustomer | null

Expandable link to the buyer. null unless expand[]=buyer, and when the card has no buyer.

customer_idinteger | null

The redeemer, the customer who redeemed the code; null until the card is redeemed.

customerCustomer | null

Expandable link to the redeemer. null unless expand[]=customer, and until the card is redeemed.

customer_namestring

The recipient's name, the person the card is addressed to.

customer_emailstring

The recipient's email.

amountinteger

What the card is worth, in minor units of the shop's base currency.

balanceinteger

What is left to spend, in minor units of the shop's base currency.

messagestring | null

The message shown in the gift card email.

statusstring

issued: not redeemed yet. redeemed: redeemed, with the whole amount left. partially_used: part of the balance is spent. used: nothing is left. cancelled: the code no longer works. expired: expiring_at has passed.

Possible values: issued, redeemed, partially_used, used, cancelled, expired.

expiring_atstring | null

The deadline to redeem the code; null for no expiry.

Format: date-time.

redeemed_atstring | null

Format: date-time.

cancelled_atstring | null

Format: date-time.

created_atstring

When the card was issued.

Format: date-time.

updated_atstring

Format: date-time.

idinteger
codestring

The redemption code.

product_idinteger

The denomination, the gift card product's variant the card was issued from.

productVariant | null

Expandable link to the denomination. null unless expand[]=product. Archived variants are still returned.

invoice_idinteger | null

The invoice the card was bought on; null when the merchant issued it.

buyer_idinteger | null

The buyer, the customer who paid for the card.

buyerCustomer | null

Expandable link to the buyer. null unless expand[]=buyer, and when the card has no buyer.

customer_idinteger | null

The redeemer, the customer who redeemed the code; null until the card is redeemed.

customerCustomer | null

Expandable link to the redeemer. null unless expand[]=customer, and until the card is redeemed.

customer_namestring

The recipient's name, the person the card is addressed to.

customer_emailstring

The recipient's email.

amountinteger

What the card is worth, in minor units of the shop's base currency.

balanceinteger

What is left to spend, in minor units of the shop's base currency.

messagestring | null

The message shown in the gift card email.

statusstring

issued: not redeemed yet. redeemed: redeemed, with the whole amount left. partially_used: part of the balance is spent. used: nothing is left. cancelled: the code no longer works. expired: expiring_at has passed.

Possible values: issued, redeemed, partially_used, used, cancelled, expired.

expiring_atstring | null

The deadline to redeem the code; null for no expiry.

Format: date-time.

redeemed_atstring | null

Format: date-time.

cancelled_atstring | null

Format: date-time.

created_atstring

When the card was issued.

Format: date-time.

updated_atstring

Format: date-time.

idinteger
codestring

The redemption code.

product_idinteger

The denomination, the gift card product's variant the card was issued from.

productVariant | null

Expandable link to the denomination. null unless expand[]=product. Archived variants are still returned.

invoice_idinteger | null

The invoice the card was bought on; null when the merchant issued it.

buyer_idinteger | null

The buyer, the customer who paid for the card.

buyerCustomer | null

Expandable link to the buyer. null unless expand[]=buyer, and when the card has no buyer.

customer_idinteger | null

The redeemer, the customer who redeemed the code; null until the card is redeemed.

customerCustomer | null

Expandable link to the redeemer. null unless expand[]=customer, and until the card is redeemed.

customer_namestring

The recipient's name, the person the card is addressed to.

customer_emailstring

The recipient's email.

amountinteger

What the card is worth, in minor units of the shop's base currency.

balanceinteger

What is left to spend, in minor units of the shop's base currency.

messagestring | null

The message shown in the gift card email.

statusstring

issued: not redeemed yet. redeemed: redeemed, with the whole amount left. partially_used: part of the balance is spent. used: nothing is left. cancelled: the code no longer works. expired: expiring_at has passed.

Possible values: issued, redeemed, partially_used, used, cancelled, expired.

expiring_atstring | null

The deadline to redeem the code; null for no expiry.

Format: date-time.

redeemed_atstring | null

Format: date-time.

cancelled_atstring | null

Format: date-time.

created_atstring

When the card was issued.

Format: date-time.

updated_atstring

Format: date-time.

idinteger
codestring

The redemption code.

product_idinteger

The denomination, the gift card product's variant the card was issued from.

productVariant | null

Expandable link to the denomination. null unless expand[]=product. Archived variants are still returned.

invoice_idinteger | null

The invoice the card was bought on; null when the merchant issued it.

buyer_idinteger | null

The buyer, the customer who paid for the card.

buyerCustomer | null

Expandable link to the buyer. null unless expand[]=buyer, and when the card has no buyer.

customer_idinteger | null

The redeemer, the customer who redeemed the code; null until the card is redeemed.

customerCustomer | null

Expandable link to the redeemer. null unless expand[]=customer, and until the card is redeemed.

customer_namestring

The recipient's name, the person the card is addressed to.

customer_emailstring

The recipient's email.

amountinteger

What the card is worth, in minor units of the shop's base currency.

balanceinteger

What is left to spend, in minor units of the shop's base currency.

messagestring | null

The message shown in the gift card email.

statusstring

issued: not redeemed yet. redeemed: redeemed, with the whole amount left. partially_used: part of the balance is spent. used: nothing is left. cancelled: the code no longer works. expired: expiring_at has passed.

Possible values: issued, redeemed, partially_used, used, cancelled, expired.

expiring_atstring | null

The deadline to redeem the code; null for no expiry.

Format: date-time.

redeemed_atstring | null

Format: date-time.

cancelled_atstring | null

Format: date-time.

created_atstring

When the card was issued.

Format: date-time.

updated_atstring

Format: date-time.