Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can’t be undone. PATCH is accepted as well as PUT.
Only an unredeemed card that hasn’t already been invalidated can be invalidated. The order must belong to the authenticated account.
The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.
A single mail piece within an order — one recipient's postcard, letter, notecard, magnacard or gift card.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"thanks.io Direct Mail Automation Toolkit","colors":{"primary":"#4c1180","light":"#8e56f3","dark":"#6822c7"},"logo":{"light":"https://mintcdn.com/thanksio/jRViseKcOKEicv0x/logo/light.svg?fit=max\u0026auto=format\u0026n=jRViseKcOKEicv0x\u0026q=85\u0026s=a63121814f9dc669a8d9dd480d2ed672","dark":"https://mintcdn.com/thanksio/jRViseKcOKEicv0x/logo/dark.svg?fit=max\u0026auto=format\u0026n=jRViseKcOKEicv0x\u0026q=85\u0026s=e0e960050738128dafc05dcb4aee7a69"},"favicon":"https://mintcdn.com/thanksio/jRViseKcOKEicv0x/favicon.svg?fit=max\u0026auto=format\u0026n=jRViseKcOKEicv0x\u0026q=85\u0026s=aecbb51507c67d60ae8911184b6d9fa0","api":{"playground":{"display":"interactive"},"examples":{"languages":["javascript","curl","python"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"icon":"headset","href":"https://calendly.com/thanks-io/","label":"Schedule API Consult"},{"icon":"gauge","href":"https://dashboard.thanks.io","label":"Dashboard"}],"primary":{"type":"button","label":"Create Free Account w/ $10 in Credits","href":"https://dashboard.thanks.io/register?signup_source=api_docs"}},"footer":{"socials":{"facebook":"https://www.facebook.com/groups/thanksio","github":"https://github.com/thanks-io","linkedin":"https://www.linkedin.com/company/11209125","youtube":"https://www.youtube.com/c/thanksio","x":"https://twitter.com/thanks_io_","instagram":"https://www.instagram.com/thanks.io"},"links":[{"header":"Resources","items":[{"label":"Help Docs","href":"https://help.thanks.io"},{"label":"Schedule API Consult","href":"https://calendly.com/thanks-io"},{"label":"Postman","href":"https://postman.thanks.io"}]},{"header":"Company","items":[{"label":"Website","href":"https://thanks.io"},{"label":"Contact","href":"mailto:support@thanks.io"}]}]},"integrations":{"posthog":{"apiKey":"phc_x9vVXcHH4npVKd6yxRGdCcSSLkfQ7hUYzDyhdhXrA6Uj","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thanksio","hasAudioNarration":false,"actualSubdomain":"thanksio","customDomains":["docs.thanks.io"],"gitSource":{"type":"github","owner":"thanks-io","repo":"thanks.io-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6af52e483d3498e3b9ae2baa","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"API Endpoints","count":61},{"language":"default","tag":"Design Gallery","count":46},{"language":"default","tag":"Inspirations","count":38},{"language":"default","tag":"Postcards","count":35},{"language":"default","tag":"Native Integrations","count":17},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Account","count":12},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"General Integrations","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/orders/invalidate-giftcard","slug":"/api-reference/endpoint/orders/invalidate-giftcard","pageMetadata":{"openapi":"put /order-items/{orderItemId}/invalidate-giftcard","title":"Invalidate Gift Card","description":"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the **Invalidate** button on the Order Details page, and it can't be undone. `PATCH` is accepted as well as `PUT`.\n\nOnly an unredeemed card that hasn't already been invalidated can be invalidated. The order must belong to the authenticated account.\n\nThe response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.","href":"/api-reference/endpoint/orders/invalidate-giftcard"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the \", _jsx(_components.strong, {\n children: \"Invalidate\"\n }), \" button on the Order Details page, and it can’t be undone. \", _jsx(_components.code, {\n children: \"PATCH\"\n }), \" is accepted as well as \", _jsx(_components.code, {\n children: \"PUT\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Only an unredeemed card that hasn’t already been invalidated can be invalidated. The order must belong to the authenticated account.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /order-items/{orderItemId}/invalidate-giftcard","title":"Invalidate Gift Card","description":"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the **Invalidate** button on the Order Details page, and it can't be undone. `PATCH` is accepted as well as `PUT`.\n\nOnly an unredeemed card that hasn't already been invalidated can be invalidated. The order must belong to the authenticated account.\n\nThe response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.","href":"/api-reference/endpoint/orders/invalidate-giftcard"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Orders"],"summary":"Invalidate Gift Card","description":"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the **Invalidate** button on the Order Details page, and it can't be undone. `PATCH` is accepted as well as `PUT`.\n\nOnly an unredeemed card that hasn't already been invalidated can be invalidated. The order must belong to the authenticated account.\n\nThe response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.","responses":{"200":"1ab32b6f-0919-4584-b34f-65c841ccd263","401":"86aeef25-b5bd-4ff0-b505-a06fccc9a0cf","404":"098233d4-f9fe-4541-a324-88d393c02461","422":"0838d74c-40d2-4542-bee4-4c1066ff815b"},"method":"put","type":"path","servers":["707b46ab-cdbf-4d64-b507-a18ba0668278"],"security":["a8bec680-428c-4b45-8ecd-d3fba3e2f21a"],"path":"/order-items/{orderItemId}/invalidate-giftcard","baseUrlOptions":["https://api.thanks.io/api/v2"],"title":"Invalidate Gift Card","codeSamples":[],"requestExampleLanguages":["javascript","bash","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"201e45f8-5d99-4870-bacd-f9c97682809b":{"name":"orderItemId","in":"path","schema":{"type":"integer","isRequired":true,"description":"ID of the order item whose gift card you want to invalidate. This is the `id` returned by List Order Items and carried by order item webhook events.","uniqueKey":"","typeLabel":"integer"},"required":true,"description":"ID of the order item whose gift card you want to invalidate. This is the `id` returned by List Order Items and carried by order item webhook events."}},"responses":{"1ab32b6f-0919-4584-b34f-65c841ccd263":{"description":"The gift card was invalidated.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"A single mail piece within an order — one recipient's postcard, letter, notecard, magnacard or gift card.","properties":{"id":{"type":"integer","description":"ID of the order item. This is the same identifier carried by order item webhook events.","example":2668662,"uniqueKey":"data.id","typeLabel":"integer"},"status":{"type":"string","description":"Current delivery status of this piece.","enum":["Processing","Printed","In Transit","In Local Area","Processed for Delivery","Delivered","Re-routed","Returned to Sender","Failed"],"example":"In Transit","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"delivery_date":{"oneOf":[{"type":"string","format":"date","description":"Date the piece was delivered, or `null` if it has not been delivered yet.","example":"2025-09-15","uniqueKey":"data.delivery_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date the piece was delivered, or `null` if it has not been delivered yet.","example":"2025-09-15","uniqueKey":"data.delivery_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.delivery_date","typeLabel":"string\u003cdate> | null"},"scans":{"type":"integer","description":"Number of times this piece's QR code has been scanned.","example":0,"uniqueKey":"data.scans","typeLabel":"integer"},"failure":{"oneOf":[{"type":"string","description":"Reason the piece could not be mailed or delivered, or `null` if there was no failure.","example":"USPS lists address as 'no-stat' - address is unlikely to receive mail.","uniqueKey":"data.failure.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reason the piece could not be mailed or delivered, or `null` if there was no failure.","example":"USPS lists address as 'no-stat' - address is unlikely to receive mail.","uniqueKey":"data.failure.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.failure","typeLabel":"string | null"},"recipient":{"type":"object","description":"Recipient details as submitted with the order — the mailing address plus the ten custom fields.","properties":{"name":{"oneOf":[{"type":"string","example":"Tobias Example","uniqueKey":"data.recipient.name.oneOf.0","typeLabel":"string"},{"type":"null","example":"Tobias Example","uniqueKey":"data.recipient.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","example":"thanks.io","uniqueKey":"data.recipient.company.oneOf.0","typeLabel":"string"},{"type":"null","example":"thanks.io","uniqueKey":"data.recipient.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.company","typeLabel":"string | null"},"address":{"oneOf":[{"type":"string","example":"12345 Main Street","uniqueKey":"data.recipient.address.oneOf.0","typeLabel":"string"},{"type":"null","example":"12345 Main Street","uniqueKey":"data.recipient.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.address","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","example":"Apartment 1","uniqueKey":"data.recipient.address2.oneOf.0","typeLabel":"string"},{"type":"null","example":"Apartment 1","uniqueKey":"data.recipient.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","example":"Any Town","uniqueKey":"data.recipient.city.oneOf.0","typeLabel":"string"},{"type":"null","example":"Any Town","uniqueKey":"data.recipient.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.city","typeLabel":"string | null"},"province":{"oneOf":[{"type":"string","description":"State or Province","example":"KS","uniqueKey":"data.recipient.province.oneOf.0","typeLabel":"string"},{"type":"null","description":"State or Province","example":"KS","uniqueKey":"data.recipient.province.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.province","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","example":"12345","uniqueKey":"data.recipient.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","example":"12345","uniqueKey":"data.recipient.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.postal_code","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","example":"US","uniqueKey":"data.recipient.country.oneOf.0","typeLabel":"string"},{"type":"null","example":"US","uniqueKey":"data.recipient.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.country","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","example":"tobias@example.com","uniqueKey":"data.recipient.email.oneOf.0","typeLabel":"string"},{"type":"null","example":"tobias@example.com","uniqueKey":"data.recipient.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","example":"5555555555","uniqueKey":"data.recipient.phone.oneOf.0","typeLabel":"string"},{"type":"null","example":"5555555555","uniqueKey":"data.recipient.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.phone","typeLabel":"string | null"},"custom1":{"oneOf":[{"type":"string","description":"Custom field 1 as submitted with the order.","example":"Unique Info","uniqueKey":"data.recipient.custom1.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 1 as submitted with the order.","example":"Unique Info","uniqueKey":"data.recipient.custom1.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom1","typeLabel":"string | null"},"custom2":{"oneOf":[{"type":"string","description":"Custom field 2 as submitted with the order.","example":"For example a product code or customer ID","uniqueKey":"data.recipient.custom2.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 2 as submitted with the order.","example":"For example a product code or customer ID","uniqueKey":"data.recipient.custom2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom2","typeLabel":"string | null"},"custom3":{"oneOf":[{"type":"string","description":"Custom field 3 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom3.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 3 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom3.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom3","typeLabel":"string | null"},"custom4":{"oneOf":[{"type":"string","description":"Custom field 4 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom4.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 4 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom4.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom4","typeLabel":"string | null"},"custom5":{"oneOf":[{"type":"string","description":"Custom field 5 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom5.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 5 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom5.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom5","typeLabel":"string | null"},"custom6":{"oneOf":[{"type":"string","description":"Custom field 6 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom6.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 6 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom6.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom6","typeLabel":"string | null"},"custom7":{"oneOf":[{"type":"string","description":"Custom field 7 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom7.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 7 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom7.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom7","typeLabel":"string | null"},"custom8":{"oneOf":[{"type":"string","description":"Custom field 8 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom8.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 8 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom8.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom8","typeLabel":"string | null"},"custom9":{"oneOf":[{"type":"string","description":"Custom field 9 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom9.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 9 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom9.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom9","typeLabel":"string | null"},"custom10":{"oneOf":[{"type":"string","description":"Custom field 10 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom10.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom field 10 as submitted with the order.","example":"","uniqueKey":"data.recipient.custom10.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.custom10","typeLabel":"string | null"},"absentee_address":{"oneOf":[{"type":"string","description":"The absentee (property) address as it was when this piece was sent, or null. Mail was delivered to `address`.","example":"742 Evergreen Terrace, Springfield, IL 62704","uniqueKey":"data.recipient.absentee_address.oneOf.0","typeLabel":"string"},{"type":"null","description":"The absentee (property) address as it was when this piece was sent, or null. Mail was delivered to `address`.","example":"742 Evergreen Terrace, Springfield, IL 62704","uniqueKey":"data.recipient.absentee_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recipient.absentee_address","typeLabel":"string | null"}},"uniqueKey":"data.recipient","typeLabel":"object"},"giftcard":{"oneOf":[{"type":"object","description":"Present only on gift card orders. `null` when the gift card for this piece has not been issued yet. The redemption code, claim link and rendered card image are never returned.","properties":{"brand":{"type":"string","description":"Brand code of the gift card.","example":"amazonus","uniqueKey":"data.giftcard.oneOf.0.brand","typeLabel":"string"},"amount":{"type":"integer","description":"Face value of the gift card in cents.","example":2500,"uniqueKey":"data.giftcard.oneOf.0.amount","typeLabel":"integer"},"redeemed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the recipient redeemed the gift card, or `null` if it has not been redeemed.","example":null,"uniqueKey":"data.giftcard.oneOf.0.redeemed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the recipient redeemed the gift card, or `null` if it has not been redeemed.","example":null,"uniqueKey":"data.giftcard.oneOf.0.redeemed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.giftcard.oneOf.0.redeemed_at","typeLabel":"string\u003cdate-time> | null"},"invalidated_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the gift card was invalidated, or `null` if it has not been. An invalidated gift card can no longer be redeemed.","example":null,"uniqueKey":"data.giftcard.oneOf.0.invalidated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the gift card was invalidated, or `null` if it has not been. An invalidated gift card can no longer be redeemed.","example":null,"uniqueKey":"data.giftcard.oneOf.0.invalidated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.giftcard.oneOf.0.invalidated_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.giftcard.oneOf.0","typeLabel":"object"},{"type":"null","description":"Present only on gift card orders. `null` when the gift card for this piece has not been issued yet. The redemption code, claim link and rendered card image are never returned.","properties":{"brand":{"type":"string","description":"Brand code of the gift card.","example":"amazonus"},"amount":{"type":"integer","description":"Face value of the gift card in cents.","example":2500},"redeemed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the recipient redeemed the gift card, or `null` if it has not been redeemed.","example":null},{"type":"null","format":"date-time","description":"When the recipient redeemed the gift card, or `null` if it has not been redeemed.","example":null}]},"invalidated_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the gift card was invalidated, or `null` if it has not been. An invalidated gift card can no longer be redeemed.","example":null},{"type":"null","format":"date-time","description":"When the gift card was invalidated, or `null` if it has not been. An invalidated gift card can no longer be redeemed.","example":null}]}},"uniqueKey":"data.giftcard.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.giftcard","typeLabel":"object | null"},"preview":{"type":"object","description":"The rendered proof of this recipient's piece, personalized with their name, address and custom fields. Each value is `null` until the piece has been rendered, which happens shortly after the order is placed, and stays `null` for a piece that failed before rendering. Absent on gift card orders: the rendered card carries the redemption code, so it is never returned.","properties":{"front":{"oneOf":[{"type":"string","format":"uri","description":"Image of the front of the piece. For a letter or windowless letter, the first page.","example":"https://cdn.thanks.io/orders/items/proofs/front-example.png","uniqueKey":"data.preview.front.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Image of the front of the piece. For a letter or windowless letter, the first page.","example":"https://cdn.thanks.io/orders/items/proofs/front-example.png","uniqueKey":"data.preview.front.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preview.front","typeLabel":"string\u003curi> | null"},"back":{"oneOf":[{"type":"string","format":"uri","description":"Image of the back of the piece. Postcards and magnacards only; `null` for other mailer types.","example":"https://cdn.thanks.io/orders/items/proofs/back-example.png","uniqueKey":"data.preview.back.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Image of the back of the piece. Postcards and magnacards only; `null` for other mailer types.","example":"https://cdn.thanks.io/orders/items/proofs/back-example.png","uniqueKey":"data.preview.back.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preview.back","typeLabel":"string\u003curi> | null"},"pdf":{"oneOf":[{"type":"string","format":"uri","description":"PDF proof of the full piece. Letters, windowless letters and notecards only; `null` for other mailer types.","example":null,"uniqueKey":"data.preview.pdf.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"PDF proof of the full piece. Letters, windowless letters and notecards only; `null` for other mailer types.","example":null,"uniqueKey":"data.preview.pdf.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preview.pdf","typeLabel":"string\u003curi> | null"}},"uniqueKey":"data.preview","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","example":"2025-09-08T16:05:12.000000Z","uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":{"id":2668662,"status":"Delivered","delivery_date":"2025-09-15","scans":0,"failure":null,"recipient":{"name":"Jane Doe","company":null,"address":"456 Another St","address2":"","city":"Fake City","province":"NY","postal_code":"55555","country":"US","email":null,"phone":null,"custom1":null,"custom2":null,"custom3":null,"custom4":null,"custom5":null,"custom6":null,"custom7":null,"custom8":null,"custom9":null,"custom10":null},"giftcard":{"brand":"amazonus","amount":2500,"redeemed_at":null,"invalidated_at":"2025-09-20T14:02:11.000000Z"},"created_at":"2025-09-08T16:05:12.000000Z"}},"examples":{"Example":{"title":"Example","value":{"data":{"id":2668662,"status":"Delivered","delivery_date":"2025-09-15","scans":0,"failure":null,"recipient":{"name":"Jane Doe","company":null,"address":"456 Another St","address2":"","city":"Fake City","province":"NY","postal_code":"55555","country":"US","email":null,"phone":null,"custom1":null,"custom2":null,"custom3":null,"custom4":null,"custom5":null,"custom6":null,"custom7":null,"custom8":null,"custom9":null,"custom10":null},"giftcard":{"brand":"amazonus","amount":2500,"redeemed_at":null,"invalidated_at":"2025-09-20T14:02:11.000000Z"},"created_at":"2025-09-08T16:05:12.000000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"86aeef25-b5bd-4ff0-b505-a06fccc9a0cf":{"description":"The access token is missing or invalid, or the order belongs to another account.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"failed","uniqueKey":"status","typeLabel":"string"},"errors":{"type":"array","items":{"type":"string","uniqueKey":"errors.items.[INDEX]","typeLabel":"string"},"example":["Unauthorized"],"uniqueKey":"errors","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"failed","errors":["Unauthorized"]}}},"exampleType":"generated"}},"exampleType":"generated"},"098233d4-f9fe-4541-a324-88d393c02461":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Not Found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Not Found"}}},"exampleType":"generated"}},"exampleType":"generated"},"0838d74c-40d2-4542-bee4-4c1066ff815b":{"description":"The gift card can't be invalidated: it was already redeemed or invalidated, the item isn't on a gift card order, or the item has no gift card.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"failed","uniqueKey":"status","typeLabel":"string"},"errors":{"type":"array","items":{"type":"string","uniqueKey":"errors.items.[INDEX]","typeLabel":"string"},"example":["Giftcard has already been redeemed."],"uniqueKey":"errors","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Already Redeemed":{"title":"Already Redeemed","value":{"status":"failed","errors":["Giftcard has already been redeemed."]}},"Already Invalidated":{"title":"Already Invalidated","value":{"status":"failed","errors":["Giftcard has already been invalidated."]}},"Not a Gift Card Order":{"title":"Not a Gift Card Order","value":{"status":"failed","errors":["Order is not a giftcard order."]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a8bec680-428c-4b45-8ecd-d3fba3e2f21a":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token authentication using your thanks.io API key","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"707b46ab-cdbf-4d64-b507-a18ba0668278":{"url":"https://api.thanks.io/api/v2","description":"The main API server for thanks.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token authentication using your thanks.io API key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication using your thanks.io API key","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"thanksio","siteName":"thanks.io Direct Mail Automation Toolkit","title":"Invalidate Gift Card - thanks.io Direct Mail Automation Toolkit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T03:06:25.370Z","originalFileLocation":"api-reference/endpoint/orders/invalidate-giftcard.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can\u0026#x27;t be undone. PATCH is accepted as well as PUT. Only an unredeemed card that hasn\u0026#x27;t already been invalidated can be invalidated. The order must belong to the authenticated account. The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\">\u003cmeta data-mint-head name=\"application-name\" content=\"thanks.io Direct Mail Automation Toolkit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Invalidate Gift Card - thanks.io Direct Mail Automation Toolkit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can\u0026#x27;t be undone. PATCH is accepted as well as PUT. Only an unredeemed card that hasn\u0026#x27;t already been invalidated can be invalidated. The order must belong to the authenticated account. The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"thanks.io Direct Mail Automation Toolkit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thanksio.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Invalidate+Gift+Card\u0026amp;description=Invalidate+the+gift+card+on+a+mailed+piece+so+it+can+no+longer+be+redeemed%2C+for+example+when+a+card+was+sent+by+mistake.+This+does+the+same+as+the+**Invalidate*\u0026amp;theme=1264b6494f3fd6a53e585726\u0026amp;signature=a80b855c9e4e72b34916ab5b55872d59fd23339cfb5912ad2ab503c584c31bad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Invalidate Gift Card - thanks.io Direct Mail Automation Toolkit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can\u0026#x27;t be undone. PATCH is accepted as well as PUT. Only an unredeemed card that hasn\u0026#x27;t already been invalidated can be invalidated. The order must belong to the authenticated account. The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thanksio.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Invalidate+Gift+Card\u0026amp;description=Invalidate+the+gift+card+on+a+mailed+piece+so+it+can+no+longer+be+redeemed%2C+for+example+when+a+card+was+sent+by+mistake.+This+does+the+same+as+the+**Invalidate*\u0026amp;theme=1264b6494f3fd6a53e585726\u0026amp;signature=a80b855c9e4e72b34916ab5b55872d59fd23339cfb5912ad2ab503c584c31bad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/thanksio/4A9jZiRamFPkvvwd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"thanks.io Direct Mail Automation Toolkit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4c1180\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/orders/invalidate-giftcard.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thanks.io/#organization\",\"name\":\"thanks.io Direct Mail Automation Toolkit\",\"url\":\"https://docs.thanks.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thanksio/jRViseKcOKEicv0x/logo/light.svg?fit=max\u0026auto=format\u0026n=jRViseKcOKEicv0x\u0026q=85\u0026s=a63121814f9dc669a8d9dd480d2ed672\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thanks.io#website\",\"name\":\"thanks.io Direct Mail Automation Toolkit\",\"url\":\"https://docs.thanks.io\",\"publisher\":{\"@id\":\"https://docs.thanks.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard#webpage\",\"url\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard\",\"name\":\"Invalidate Gift Card\",\"description\":\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can't be undone. PATCH is accepted as well as PUT. Only an unredeemed card that hasn't already been invalidated can be invalidated. The order must belong to the authenticated account. The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\",\"dateModified\":\"2026-09-28T03:06:25.370Z\",\"isPartOf\":{\"@id\":\"https://docs.thanks.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://docs.thanks.io/api-reference/recipients-usage\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Account\",\"item\":\"https://docs.thanks.io/api-reference/endpoint/sub-accounts/create-sub-account\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Invalidate Gift Card\",\"item\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard#apireference\",\"headline\":\"Invalidate Gift Card\",\"name\":\"Invalidate Gift Card\",\"description\":\"Invalidate the gift card on a mailed piece so it can no longer be redeemed, for example when a card was sent by mistake. This does the same as the Invalidate button on the Order Details page, and it can't be undone. PATCH is accepted as well as PUT. Only an unredeemed card that hasn't already been invalidated can be invalidated. The order must belong to the authenticated account. The response is the updated order item, in the same shape as List Order Items. The redemption code, claim link and rendered card image are never returned.\",\"url\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thanks.io/api-reference/endpoint/orders/invalidate-giftcard#webpage\"},\"dateModified\":\"2026-09-28T03:06:25.370Z\",\"publisher\":{\"@id\":\"https://docs.thanks.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thanks.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"thanks.io Direct Mail Automation Toolkit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"thanks.io Direct Mail Automation Toolkit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/orders/invalidate-giftcard.md","siteName":"thanks.io Direct Mail Automation Toolkit","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Design Gallery","pages":[{"title":"Design Gallery","href":"/design-gallery/introduction"}]},{"tab":"API Reference","groups":[{"group":"Get Started","icon":"play","pages":[{"title":"REST API Overview","href":"/api-reference/introduction"},{"title":"API Testing Mode","mode":"wide","href":"/api-reference/api-mode"},{"title":"API Log","href":"/api-reference/audit-log"},{"title":"Rate Limits","mode":"wide","href":"/api-reference/rate-limits"},{"title":"OpenAPI Specification","href":"/api-reference/openapi-link"}]},{"group":"Authentication","icon":"lock","pages":[{"title":"Choosing an Authentication Method","href":"/authentication/choosing-auth-method"},{"title":"Bearer Token","href":"/authentication/bearer-token"},{"title":"OAuth","href":"/authentication/oauth"}]},{"group":"API Endpoints","icon":"code","pages":[{"group":"Recipients","icon":"user","pages":[{"title":"Usage","href":"/api-reference/recipients-usage"},{"openapi":"post /recipients","title":"Create Recipient","href":"/api-reference/endpoint/recipients/create-recipient"},{"openapi":"get /recipients/{recipientId}","title":"Recipient Details","href":"/api-reference/endpoint/recipients/get-details"},{"openapi":"put /recipients/{recipientId}","title":"Update Recipient","href":"/api-reference/endpoint/recipients/update-recipient"},{"openapi":"delete /recipients/{recipientId}","title":"Delete Recipient","href":"/api-reference/endpoint/recipients/delete-recipient"},{"openapi":"post /recipients-utils/create-multiple","title":"Create Multiple Recipients","href":"/api-reference/endpoint/recipients/create-multiple-recipients"},{"openapi":"post /recipients-utils/delete-by-address","title":"Delete Recipient By Address","href":"/api-reference/endpoint/recipients/delete-recipient-by-address"}]},{"group":"Mailing Lists","icon":"list","pages":[{"title":"Usage","href":"/api-reference/mailing-lists-usage"},{"openapi":"get /mailing-lists/","title":"List All","href":"/api-reference/endpoint/mailing-lists/list-all"},{"openapi":"post /mailing-lists/","title":"Create Mailing List","href":"/api-reference/endpoint/mailing-lists/create-mailing-list"},{"openapi":"get /mailing-lists/{mailingListId}","title":"Get Details","href":"/api-reference/endpoint/mailing-lists/get-details"},{"openapi":"delete /mailing-lists/{mailingListId}","title":"Delete Mailing List","href":"/api-reference/endpoint/mailing-lists/delete-mailing-list"},{"openapi":"get /mailing-lists-utils/recipients/{mailingListId}","title":"List Recipients","href":"/api-reference/endpoint/mailing-lists/list-recipients"},{"openapi":"post /mailing-lists-utils/count-radius-search","title":"Radius Search Count","href":"/api-reference/endpoint/mailing-lists/radius-search-count"},{"openapi":"post /mailing-lists-utils/buy-radius-search","title":"Radius Search","href":"/api-reference/endpoint/mailing-lists/radius-search"}]},{"group":"Direct Send Orders","icon":"envelope","pages":[{"title":"Usage","href":"/api-reference/send-mailer-usage"},{"openapi":"post /send/postcard","title":"Send Postcard","href":"/api-reference/endpoint/send-mailer/send-postcard"},{"openapi":"post /send/windowedletter","title":"Send Windowed Letter","href":"/api-reference/endpoint/send-mailer/send-windowed-letter"},{"openapi":"post /send/windowlessletter","title":"Send Windowless Letter","href":"/api-reference/endpoint/send-mailer/send-windowless-letter"},{"openapi":"post /send/notecard","title":"Send Notecard","href":"/api-reference/endpoint/send-mailer/send-notecard"},{"openapi":"post /send/giftcard","title":"Send Giftcard","href":"/api-reference/endpoint/send-mailer/send-giftcard"},{"openapi":"post /send/magnacard","title":"Send Magnacard","href":"/api-reference/endpoint/send-mailer/send-magnacard"}]},{"group":"Order Estimates","icon":"calculator","pages":[{"openapi":"post /estimate/postcard","title":"Estimate Postcard","href":"/api-reference/endpoint/estimate/estimate-postcard"},{"openapi":"post /estimate/windowedletter","title":"Estimate Windowed Letter","href":"/api-reference/endpoint/estimate/estimate-windowed-letter"},{"openapi":"post /estimate/windowlessletter","title":"Estimate Windowless Letter","href":"/api-reference/endpoint/estimate/estimate-windowless-letter"},{"openapi":"post /estimate/notecard","title":"Estimate Notecard","href":"/api-reference/endpoint/estimate/estimate-notecard"},{"openapi":"post /estimate/giftcard","title":"Estimate Giftcard","href":"/api-reference/endpoint/estimate/estimate-giftcard"},{"openapi":"post /estimate/magnacard","title":"Estimate Magnacard","href":"/api-reference/endpoint/estimate/estimate-magnacard"}]},{"group":"Creatives Library","icon":"palette","pages":[{"title":"Usage","href":"/api-reference/creatives-library-usage"},{"openapi":"get /creatives/","title":"List Creatives","href":"/api-reference/endpoint/creatives-library/list-all-creatives"},{"openapi":"get /creatives/{creativeId}","title":"Get Creative","href":"/api-reference/endpoint/creatives-library/get-creative"}]},{"group":"Message Templates","icon":"message","pages":[{"title":"Usage","href":"/api-reference/message-templates-usage"},{"openapi":"get /message-templates/","title":"List Message Templates","href":"/api-reference/endpoint/message-templates/list-all-message-templates"},{"openapi":"post /message-templates/","title":"Create Message Template","href":"/api-reference/endpoint/message-templates/create-message-template"},{"openapi":"get /message-templates/{messageTemplateId}","title":"Get Message Template","href":"/api-reference/endpoint/message-templates/get-message-template"},{"openapi":"patch /message-templates/{messageTemplateId}","title":"Update Message Template","href":"/api-reference/endpoint/message-templates/update-message-template"},{"openapi":"delete /message-templates/{messageTemplateId}","title":"Delete Message Template","href":"/api-reference/endpoint/message-templates/delete-message-template"}]},{"group":"Account","icon":"gear","pages":[{"openapi":"post /sub-accounts/","title":"Create Sub-Account","href":"/api-reference/endpoint/sub-accounts/create-sub-account"},{"openapi":"get /sub-accounts/{subAccountId}","title":"Show Sub-Account","href":"/api-reference/endpoint/sub-accounts/get-details"},{"openapi":"put /sub-accounts/{subAccountId}","title":"Update Sub-Account","href":"/api-reference/endpoint/sub-accounts/update-sub-account"},{"openapi":"delete /sub-accounts/{subAccountId}","title":"Delete Sub-Account","href":"/api-reference/endpoint/sub-accounts/delete-sub-account"},{"openapi":"get /sub-accounts/","title":"List Sub-Accounts","href":"/api-reference/endpoint/sub-accounts/list-all"},{"openapi":"get /image-templates/","title":"List Image Templates","href":"/api-reference/endpoint/image-templates/list-all-image-templates"},{"openapi":"get /orders/list","title":"List Orders","href":"/api-reference/endpoint/orders/list-orders"},{"openapi":"get /orders/{orderId}/track","title":"Track Order","href":"/api-reference/endpoint/orders/track-order"},{"openapi":"get /orders/{orderId}/items","title":"List Order Items","href":"/api-reference/endpoint/orders/list-order-items"},{"openapi":"put /orders/{orderId}/cancel","title":"Cancel Order","href":"/api-reference/endpoint/orders/cancel-order"},{"openapi":"post /orders/{orderId}/replay","title":"Replay Order","description":"Submit a copy of a previously placed order as a brand-new order. The same creative is charged and mailed again, and the original order is left untouched. By default the replay is sent to the recipients the original actually reached (failed items are excluded). Supply a `recipients` array to send the same creative to a different audience instead.\n\nOnly settled, non-cancelled orders can be replayed. The replay is a fresh order that runs through the normal fulfillment pipeline, including Address Verification, Duplicate Prevention and suppression lists.","href":"/api-reference/endpoint/orders/replay-order"},{"openapi":"put /order-items/{orderItemId}/invalidate-giftcard","title":"Invalidate Gift Card","href":"/api-reference/endpoint/orders/invalidate-giftcard"}]},{"group":"Webhooks","icon":"list","pages":[{"openapi":"get /webhooks","title":"List Webhooks","description":"Return a paginated list of configured webhooks. Webhooks are available on paid subscriptions only.","href":"/api-reference/endpoint/webhooks/list-all"},{"openapi":"post /webhooks","title":"Create Webhook","href":"/api-reference/endpoint/webhooks/create-webhook"},{"openapi":"put /webhooks/{webhookId}","title":"Update Webhook","href":"/api-reference/endpoint/webhooks/update-webhook"},{"openapi":"delete /webhooks/{webhookId}","title":"Delete Webhook","href":"/api-reference/endpoint/webhooks/delete-webhook"}]},{"group":"Webhook Events","icon":"sparkles","pages":[{"openapi":"api-reference/openapi.json webhook orderItemStatusUpdate","title":"Order Item Status Change","href":"/api-reference/endpoint/webhook-events/order-item-status-change"},{"openapi":"api-reference/openapi.json webhook orderStatusUpdate","title":"Order Status Change","href":"/api-reference/endpoint/webhook-events/order-status-change"},{"openapi":"api-reference/openapi.json webhook orderItemDelivered","title":"Order Item Delivered","href":"/api-reference/endpoint/webhook-events/order-item-delivered"},{"openapi":"api-reference/openapi.json webhook qrCodeScanUpdate","title":"QR Code Scans","href":"/api-reference/endpoint/webhook-events/qr-code-scans"},{"openapi":"api-reference/openapi.json webhook scanBoardStatusUpdate","title":"Lead Board Stage Change","href":"/api-reference/endpoint/webhook-events/scan-board-stage-change"}]},{"group":"Utilities","icon":"wrench","pages":[{"openapi":"get /handwriting-styles","title":"List Handwriting Styles","href":"/api-reference/endpoint/handwriting-styles/list-styles"},{"openapi":"get /giftcard-brands-list","title":"List Gift Card Brands Flat","href":"/api-reference/endpoint/giftcards/list-brands-flat"},{"openapi":"get /giftcard-brands","title":"List Gift Card Brands","href":"/api-reference/endpoint/giftcards/list-brands"}]}]},{"group":"Examples","icon":"lightbulb","pages":[{"title":"Add Recipient to Campaign","icon":"address-card","tag":"Popular","href":"/workflows/campaign"},{"title":"PDF Letter Order","icon":"file-pdf","href":"/workflows/letter-pdf-order"},{"title":"Postcard Order","icon":"cards","href":"/workflows/postcard-order"},{"title":"Giftcard Order","icon":"gift","href":"/workflows/giftcard-order"}]}]},{"tab":"Native Integrations","pages":[{"title":"Native Integrations","href":"/native-integrations/introduction"}]},{"tab":"Webhooks ","pages":[{"title":"Webhooks ","href":"/webhooks/introduction"}]}]},"basePath":"","title":"Invalidate Gift Card - thanks.io Direct Mail Automation Toolkit","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}