{ "code": 401, "message": "There was an error authenticating you."}
This endpoint returns all of the user’s usable rewards plus affordable points products — no basket filtering. To return only the rewards that would actually produce a discount against a specific basket (e.g. for an offers carousel before checkout), use Qualifying Rewards for a Basket.
Thanx Location UID. Providing this information allows Thanx to return rewards
that can be used at this location.If location_id is omitted or doesn’t match a Thanx location, rewards and
points products restricted to specific locations are not returned.A mapping of Thanx location identifiers can be provided by the Thanx developer
support team or fetched from the following endpoints depending on your integration type:
Currently either instore or online, defaults to online. This is used to
adjust which configured product IDs are returned in the applicable reward and
points product entities.
Filter rewards by state. Valid values: delivered, active. Defaults to
delivered if not provided. Multiple states can be specified to return
rewards matching any of the specified states.
The value of the discount. For amount rewards, the dollar amount off
(10.0 = $10 off). For percent rewards, the percentage off (10.0 =
10% off). This field is returned for every reward type, but it does not
describe the discount for item or fixed_price rewards — do not use it
for those types. Use label to describe them.
For conditional rewards (e.g. BOGO / “buy X get Y”), products lists only the
items the reward discounts, not the items required to trigger it, and
there is no field distinguishing conditional from simple rewards. To confirm
eligibility for these, send a checkout basket and read the returned
discount.
Reward IDs are not stable references — a reward leaves this list once it is
used, expired, or retired. Pull a fresh GET /account immediately before
submitting a basket and use the current rewards[].id; a stale ID returns a
not-found error at POST /baskets.
The value of the discount. For amount points products, the dollar amount off
(10.0 = $10 off). For percent points products, the percentage off (10.0 =
10% off). This field is returned for every points product type, but it does not
describe the discount for item or fixed_price points products — do not use it
for those types. Use label to describe them.
The state of the points product (redeemable, unredeemable). This will
be redeemable if the user has enough points for this points product and
unredeemable if the user does not have enough points for this points
product.
{ "code": 401, "message": "There was an error authenticating you."}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Thanx","public":true,"colors":{"primary":"#129B9B","light":"#13C1BF","dark":"#129B9B"},"logo":{"light":"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/light.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=8b3bd3f1ffbb1567714a92067df956d9","dark":"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/dark.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=9b7fc286cc5789385ace66cf725d131f"},"favicon":"https://mintcdn.com/thanx/slNzKdUXQiByOc6X/favicon.png?fit=max\u0026auto=format\u0026n=slNzKdUXQiByOc6X\u0026q=85\u0026s=bc7fda50982b59fe2dd5384ca7bd2961","api":{},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Help Center","icon":"book-bookmark","href":"https://help.thanx.com/hc/en-us"},{"anchor":"Thanx Product Updates","icon":"bullhorn","href":"https://thanx.launchnotes.io/"},{"anchor":"Status","icon":"wave-pulse","href":"https://status.thanx.com"},{"anchor":"Email Support","icon":"envelope","href":"mailto:developer.support@thanx.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thanx","hasAudioNarration":false,"actualSubdomain":"thanx","customDomains":["docs.thanx.com"],"gitSource":{"type":"github","owner":"thanx","repo":"thanx-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae11cec017d49fc88baee5e","collectionId":"5fe6e5e5-5979-44f1-bcb0-e50bec4fab97","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae11cec017d49fc88baee5e"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae11cec017d49fc88baee5e","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Reference","count":100},{"language":"default","tag":"Consumer API","count":90},{"language":"default","tag":"Data Exports","count":39},{"language":"default","tag":"Partner API","count":32},{"language":"default","tag":"Thanx Connex","count":24},{"language":"default","tag":"Destination Setup","count":23},{"language":"default","tag":"Overview","count":22},{"language":"default","tag":"Models","count":10},{"language":"default","tag":"Users","count":8},{"language":"default","tag":"Loyalty API","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"loyalty/get-account","slug":"/loyalty/get-account","pageMetadata":{"title":"Get Account","api":"GET https://loyalty.thanxsandbox.com/api/account","description":"This endpoint allows the retrieval of a user account information, including the user's rewards.","href":"/loyalty/get-account"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This endpoint allows the retrieval of a user account information, including the user’s rewards.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint returns `,_jsx(_components.em,{children:`all`}),` of the user’s usable rewards plus affordable points products — no basket filtering. To return only the rewards that would actually produce a discount against a specific basket (e.g. for an offers carousel before checkout), use `,_jsx(_components.a,{href:`/loyalty/qualifying-baskets`,children:`Qualifying Rewards for a Basket`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ParamField,{query:`location_id`,type:`string`,optional:true,id:`param-location-id`,children:[_jsx(_components.p,{children:`Thanx Location UID. Providing this information allows Thanx to return rewards\nthat can be used at this location.`}),_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`location_id`}),` is omitted or doesn’t match a Thanx location, rewards and\npoints products restricted to specific locations are not returned.`]}),_jsx(_components.p,{children:`A mapping of Thanx location identifiers can be provided by the Thanx developer\nsupport team or fetched from the following endpoints depending on your integration type:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Consumer API `,_jsx(_components.a,{href:`/consumer/locations/get-locations`,children:`Get Locations`}),` endpoint.`]}),`\n`,_jsxs(_components.li,{children:[`Partner API `,_jsx(_components.a,{href:`/partner/metadata/get-locations`,children:`Get Locations`}),` endpoint.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{query:`redemption_venue`,type:`string`,optional:true,id:`param-redemption-venue`,children:_jsxs(_components.p,{children:[`Currently either `,_jsx(_components.code,{children:`instore`}),` or `,_jsx(_components.code,{children:`online`}),`, defaults to `,_jsx(_components.code,{children:`online`}),`. This is used to\nadjust which configured product IDs are returned in the applicable reward and\npoints product entities.`]})}),`\n`,_jsx(ParamField,{query:`reward_states`,type:`array`,optional:true,id:`param-reward-states`,children:_jsxs(_components.p,{children:[`Filter rewards by state. Valid values: `,_jsx(_components.code,{children:`delivered`}),`, `,_jsx(_components.code,{children:`active`}),`. Defaults to\n`,_jsx(_components.code,{children:`delivered`}),` if not provided. Multiple states can be specified to return\nrewards matching any of the specified states.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of user`})}),`\n`,_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`The user’s email`})}),`\n`,_jsxs(ResponseField,{name:`rewards`,type:`array(hash)`,id:`param-rewards`,children:[_jsx(_components.p,{children:`The user’s rewards for the merchant specified in the header. This array can\nbe empty.`}),_jsxs(Expandable,{title:`rewards`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The Reward Identifier`})}),_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value`,children:_jsxs(_components.p,{children:[`The value of the discount. For `,_jsx(_components.code,{children:`amount`}),` rewards, the dollar amount off\n(`,_jsx(_components.code,{children:`10.0`}),` = $10 off). For `,_jsx(_components.code,{children:`percent`}),` rewards, the percentage off (`,_jsx(_components.code,{children:`10.0`}),` =\n10% off). This field is returned for every reward type, but it does not\ndescribe the discount for `,_jsx(_components.code,{children:`item`}),` or `,_jsx(_components.code,{children:`fixed_price`}),` rewards — do not use it\nfor those types. Use `,_jsx(_components.code,{children:`label`}),` to describe them.`]})}),_jsx(ResponseField,{name:`minimum`,type:`number`,id:`param-minimum`,children:_jsx(_components.p,{children:`The minimum spend for this reward, if applicable`})}),_jsx(ResponseField,{name:`maximum`,type:`number`,id:`param-maximum`,children:_jsx(_components.p,{children:`The maximum discount possible for this reward, if applicable`})}),_jsx(ResponseField,{name:`label`,type:`string`,id:`param-label`,children:_jsx(_components.p,{children:`The reward description`})}),_jsx(ResponseField,{name:`state`,type:`enum`,id:`param-state`,children:_jsxs(_components.p,{children:[`The state of the reward (`,_jsx(_components.code,{children:`redeemable`}),`, `,_jsx(_components.code,{children:`unredeemable`}),`)`]})}),_jsx(ResponseField,{name:`type`,type:`enum`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of reward (`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`percent`}),`, `,_jsx(_components.code,{children:`item`}),`, `,_jsx(_components.code,{children:`fixed_price`}),`)`]})}),_jsx(ResponseField,{name:`products`,type:`array(string)`,id:`param-products`,children:_jsx(_components.p,{children:`POS Identifiers for items this discount applies to, if applicable`})}),_jsx(ResponseField,{name:`fine_print`,type:`string`,id:`param-fine-print`,children:_jsx(_components.p,{children:`Any fine print for the reward.`})}),_jsx(ResponseField,{name:`retire_at`,type:`string`,id:`param-retire-at`,children:_jsx(_components.p,{children:`Time the reward will be automatically retired in ISO8601-format if a retire\ndate is set`})}),_jsx(ResponseField,{name:`restriction_location_ids`,type:`array(string)`,id:`param-restriction-location-ids`,children:_jsx(_components.p,{children:`The list of locations the reward can be redeemed.`})})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For conditional rewards (e.g. BOGO / “buy X get Y”), `,_jsx(_components.code,{children:`products`}),` lists only the\nitems the reward `,_jsx(_components.strong,{children:`discounts`}),`, not the items required to `,_jsx(_components.strong,{children:`trigger`}),` it, and\nthere is no field distinguishing conditional from simple rewards. To confirm\neligibility for these, send a `,_jsx(_components.code,{children:`checkout`}),` basket and read the returned\n`,_jsx(_components.code,{children:`discount`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reward IDs are not stable references — a reward leaves this list once it is\nused, expired, or retired. Pull a fresh `,_jsx(_components.code,{children:`GET /account`}),` immediately before\nsubmitting a basket and use the current `,_jsx(_components.code,{children:`rewards[].id`}),`; a stale ID returns a\nnot-found error at `,_jsx(_components.code,{children:`POST /baskets`}),`.`]})}),`\n`,_jsxs(ResponseField,{name:`points_products`,type:`array(hash)`,id:`param-points-products`,children:[_jsx(_components.p,{children:`The merchant’s configured points product available for online redemption.\nThis array can be empty.`}),_jsxs(Expandable,{title:`points_products`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:_jsx(_components.p,{children:`The points product ID`})}),_jsx(ResponseField,{name:`points_experience_id`,type:`string`,id:`param-points-experience-id`,children:_jsx(_components.p,{children:`The points experience ID`})}),_jsx(ResponseField,{name:`points`,type:`decimal`,id:`param-points`,children:_jsx(_components.p,{children:`The amount of points of the given currency this points product costs`})}),_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value-1`,children:_jsxs(_components.p,{children:[`The value of the discount. For `,_jsx(_components.code,{children:`amount`}),` points products, the dollar amount off\n(`,_jsx(_components.code,{children:`10.0`}),` = $10 off). For `,_jsx(_components.code,{children:`percent`}),` points products, the percentage off (`,_jsx(_components.code,{children:`10.0`}),` =\n10% off). This field is returned for every points product type, but it does not\ndescribe the discount for `,_jsx(_components.code,{children:`item`}),` or `,_jsx(_components.code,{children:`fixed_price`}),` points products — do not use it\nfor those types. Use `,_jsx(_components.code,{children:`label`}),` to describe them.`]})}),_jsx(ResponseField,{name:`minimum`,type:`number`,id:`param-minimum-1`,children:_jsx(_components.p,{children:`The minimum spend for the reward this points product can be exchanged\nfor, if applicable.`})}),_jsx(ResponseField,{name:`maximum`,type:`number`,id:`param-maximum-1`,children:_jsx(_components.p,{children:`The maximum discount possible for the reward this points product can be\nexchanged for, if applicable.`})}),_jsx(ResponseField,{name:`label`,type:`string`,id:`param-label-1`,children:_jsx(_components.p,{children:`The description of the reward this points product can be exchanged for`})}),_jsx(ResponseField,{name:`state`,type:`enum`,id:`param-state-1`,children:_jsxs(_components.p,{children:[`The state of the points product (`,_jsx(_components.code,{children:`redeemable`}),`, `,_jsx(_components.code,{children:`unredeemable`}),`). This will\nbe `,_jsx(_components.code,{children:`redeemable`}),` if the user has enough points for this points product and\n`,_jsx(_components.code,{children:`unredeemable`}),` if the user does not have enough points for this points\nproduct.`]})}),_jsx(ResponseField,{name:`type`,type:`enum`,id:`param-type-1`,children:_jsxs(_components.p,{children:[`The type of reward (`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`percent`}),`, `,_jsx(_components.code,{children:`item`}),`, `,_jsx(_components.code,{children:`fixed_price`}),`) that this\npoints product can be exchanged for.`]})}),_jsx(ResponseField,{name:`products`,type:`array(string)`,id:`param-products-1`,children:_jsx(_components.p,{children:`POS Identifiers for items the discount applies to, if applicable`})}),_jsx(ResponseField,{name:`fine_print`,type:`string`,id:`param-fine-print-1`,children:_jsx(_components.p,{children:`Any fine print for the reward this points product can be exchanged for.`})}),_jsx(ResponseField,{name:`restriction_location_ids`,type:`array(string)`,id:`param-restriction-location-ids-1`,children:_jsx(_components.p,{children:`The list of locations the points product can be redeemed.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`progress`,type:`hash`,id:`param-progress`,children:[_jsx(_components.p,{children:`A user’s progress toward their next loyalty reward`}),_jsx(Note,{children:`Only present for merchants that have not yet upgraded to points`}),_jsxs(Expandable,{title:`progress`,children:[_jsx(ResponseField,{name:`percentage`,type:`integer`,id:`param-percentage`,children:_jsx(_components.p,{children:`Percent progress toward the next loyalty reward`})}),_jsx(ResponseField,{name:`towards`,type:`string`,id:`param-towards`,children:_jsx(_components.p,{children:`Description of progress toward the next loyalty reward`})})]})]}),`\n`,_jsxs(ResponseField,{name:`points`,type:`array`,id:`param-points-1`,children:[_jsx(_components.p,{children:`Array of information about the configured points experiences and the current\nuser’s balance at each`}),_jsx(Note,{children:`Only present for merchants that have enabled points`}),_jsxs(Expandable,{title:`points`,children:[_jsx(ResponseField,{name:`points_experience_id`,type:`integer`,id:`param-points-experience-id-1`,children:_jsxs(_components.p,{children:[`ID of the points experience. This matches the IDs of the points\nexperiences returned in\n`,_jsx(_components.a,{href:`/consumer/points/get-experiences`,children:`GET /points_experiences`}),`.`]})}),_jsx(ResponseField,{name:`currency`,type:`hash`,id:`param-currency`,children:_jsxs(Expandable,{title:`currency`,children:[_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The points experience’s currency name`})}),_jsx(ResponseField,{name:`plural`,type:`string`,id:`param-plural`,children:_jsx(_components.p,{children:`The plural tense of the points experience’s currency name`})})]})}),_jsx(ResponseField,{name:`balance`,type:`decimal`,id:`param-balance`,children:_jsx(_components.p,{children:`The user’s current currency balance of the points experience`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Account","api":"GET https://loyalty.thanxsandbox.com/api/account","description":"This endpoint allows the retrieval of a user account information, including the user's rewards.","href":"/loyalty/get-account"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint returns `,_jsx(_components.em,{children:`all`}),` of the user’s usable rewards plus affordable points products — no basket filtering. To return only the rewards that would actually produce a discount against a specific basket (e.g. for an offers carousel before checkout), use `,_jsx(_components.a,{href:`/loyalty/qualifying-baskets`,children:`Qualifying Rewards for a Basket`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(ParamField,{query:`location_id`,type:`string`,optional:true,id:`param-location-id`,children:[_jsx(_components.p,{children:`Thanx Location UID. Providing this information allows Thanx to return rewards\nthat can be used at this location.`}),_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`location_id`}),` is omitted or doesn’t match a Thanx location, rewards and\npoints products restricted to specific locations are not returned.`]}),_jsx(_components.p,{children:`A mapping of Thanx location identifiers can be provided by the Thanx developer\nsupport team or fetched from the following endpoints depending on your integration type:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Consumer API `,_jsx(_components.a,{href:`/consumer/locations/get-locations`,children:`Get Locations`}),` endpoint.`]}),`\n`,_jsxs(_components.li,{children:[`Partner API `,_jsx(_components.a,{href:`/partner/metadata/get-locations`,children:`Get Locations`}),` endpoint.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{query:`redemption_venue`,type:`string`,optional:true,id:`param-redemption-venue`,children:_jsxs(_components.p,{children:[`Currently either `,_jsx(_components.code,{children:`instore`}),` or `,_jsx(_components.code,{children:`online`}),`, defaults to `,_jsx(_components.code,{children:`online`}),`. This is used to\nadjust which configured product IDs are returned in the applicable reward and\npoints product entities.`]})}),`\n`,_jsx(ParamField,{query:`reward_states`,type:`array`,optional:true,id:`param-reward-states`,children:_jsxs(_components.p,{children:[`Filter rewards by state. Valid values: `,_jsx(_components.code,{children:`delivered`}),`, `,_jsx(_components.code,{children:`active`}),`. Defaults to\n`,_jsx(_components.code,{children:`delivered`}),` if not provided. Multiple states can be specified to return\nrewards matching any of the specified states.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of user`})}),`\n`,_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`The user’s email`})}),`\n`,_jsxs(ResponseField,{name:`rewards`,type:`array(hash)`,id:`param-rewards`,children:[_jsx(_components.p,{children:`The user’s rewards for the merchant specified in the header. This array can\nbe empty.`}),_jsxs(Expandable,{title:`rewards`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The Reward Identifier`})}),_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value`,children:_jsxs(_components.p,{children:[`The value of the discount. For `,_jsx(_components.code,{children:`amount`}),` rewards, the dollar amount off\n(`,_jsx(_components.code,{children:`10.0`}),` = $10 off). For `,_jsx(_components.code,{children:`percent`}),` rewards, the percentage off (`,_jsx(_components.code,{children:`10.0`}),` =\n10% off). This field is returned for every reward type, but it does not\ndescribe the discount for `,_jsx(_components.code,{children:`item`}),` or `,_jsx(_components.code,{children:`fixed_price`}),` rewards — do not use it\nfor those types. Use `,_jsx(_components.code,{children:`label`}),` to describe them.`]})}),_jsx(ResponseField,{name:`minimum`,type:`number`,id:`param-minimum`,children:_jsx(_components.p,{children:`The minimum spend for this reward, if applicable`})}),_jsx(ResponseField,{name:`maximum`,type:`number`,id:`param-maximum`,children:_jsx(_components.p,{children:`The maximum discount possible for this reward, if applicable`})}),_jsx(ResponseField,{name:`label`,type:`string`,id:`param-label`,children:_jsx(_components.p,{children:`The reward description`})}),_jsx(ResponseField,{name:`state`,type:`enum`,id:`param-state`,children:_jsxs(_components.p,{children:[`The state of the reward (`,_jsx(_components.code,{children:`redeemable`}),`, `,_jsx(_components.code,{children:`unredeemable`}),`)`]})}),_jsx(ResponseField,{name:`type`,type:`enum`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of reward (`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`percent`}),`, `,_jsx(_components.code,{children:`item`}),`, `,_jsx(_components.code,{children:`fixed_price`}),`)`]})}),_jsx(ResponseField,{name:`products`,type:`array(string)`,id:`param-products`,children:_jsx(_components.p,{children:`POS Identifiers for items this discount applies to, if applicable`})}),_jsx(ResponseField,{name:`fine_print`,type:`string`,id:`param-fine-print`,children:_jsx(_components.p,{children:`Any fine print for the reward.`})}),_jsx(ResponseField,{name:`retire_at`,type:`string`,id:`param-retire-at`,children:_jsx(_components.p,{children:`Time the reward will be automatically retired in ISO8601-format if a retire\ndate is set`})}),_jsx(ResponseField,{name:`restriction_location_ids`,type:`array(string)`,id:`param-restriction-location-ids`,children:_jsx(_components.p,{children:`The list of locations the reward can be redeemed.`})})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For conditional rewards (e.g. BOGO / “buy X get Y”), `,_jsx(_components.code,{children:`products`}),` lists only the\nitems the reward `,_jsx(_components.strong,{children:`discounts`}),`, not the items required to `,_jsx(_components.strong,{children:`trigger`}),` it, and\nthere is no field distinguishing conditional from simple rewards. To confirm\neligibility for these, send a `,_jsx(_components.code,{children:`checkout`}),` basket and read the returned\n`,_jsx(_components.code,{children:`discount`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Reward IDs are not stable references — a reward leaves this list once it is\nused, expired, or retired. Pull a fresh `,_jsx(_components.code,{children:`GET /account`}),` immediately before\nsubmitting a basket and use the current `,_jsx(_components.code,{children:`rewards[].id`}),`; a stale ID returns a\nnot-found error at `,_jsx(_components.code,{children:`POST /baskets`}),`.`]})}),`\n`,_jsxs(ResponseField,{name:`points_products`,type:`array(hash)`,id:`param-points-products`,children:[_jsx(_components.p,{children:`The merchant’s configured points product available for online redemption.\nThis array can be empty.`}),_jsxs(Expandable,{title:`points_products`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:_jsx(_components.p,{children:`The points product ID`})}),_jsx(ResponseField,{name:`points_experience_id`,type:`string`,id:`param-points-experience-id`,children:_jsx(_components.p,{children:`The points experience ID`})}),_jsx(ResponseField,{name:`points`,type:`decimal`,id:`param-points`,children:_jsx(_components.p,{children:`The amount of points of the given currency this points product costs`})}),_jsx(ResponseField,{name:`value`,type:`number`,id:`param-value-1`,children:_jsxs(_components.p,{children:[`The value of the discount. For `,_jsx(_components.code,{children:`amount`}),` points products, the dollar amount off\n(`,_jsx(_components.code,{children:`10.0`}),` = $10 off). For `,_jsx(_components.code,{children:`percent`}),` points products, the percentage off (`,_jsx(_components.code,{children:`10.0`}),` =\n10% off). This field is returned for every points product type, but it does not\ndescribe the discount for `,_jsx(_components.code,{children:`item`}),` or `,_jsx(_components.code,{children:`fixed_price`}),` points products — do not use it\nfor those types. Use `,_jsx(_components.code,{children:`label`}),` to describe them.`]})}),_jsx(ResponseField,{name:`minimum`,type:`number`,id:`param-minimum-1`,children:_jsx(_components.p,{children:`The minimum spend for the reward this points product can be exchanged\nfor, if applicable.`})}),_jsx(ResponseField,{name:`maximum`,type:`number`,id:`param-maximum-1`,children:_jsx(_components.p,{children:`The maximum discount possible for the reward this points product can be\nexchanged for, if applicable.`})}),_jsx(ResponseField,{name:`label`,type:`string`,id:`param-label-1`,children:_jsx(_components.p,{children:`The description of the reward this points product can be exchanged for`})}),_jsx(ResponseField,{name:`state`,type:`enum`,id:`param-state-1`,children:_jsxs(_components.p,{children:[`The state of the points product (`,_jsx(_components.code,{children:`redeemable`}),`, `,_jsx(_components.code,{children:`unredeemable`}),`). This will\nbe `,_jsx(_components.code,{children:`redeemable`}),` if the user has enough points for this points product and\n`,_jsx(_components.code,{children:`unredeemable`}),` if the user does not have enough points for this points\nproduct.`]})}),_jsx(ResponseField,{name:`type`,type:`enum`,id:`param-type-1`,children:_jsxs(_components.p,{children:[`The type of reward (`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`percent`}),`, `,_jsx(_components.code,{children:`item`}),`, `,_jsx(_components.code,{children:`fixed_price`}),`) that this\npoints product can be exchanged for.`]})}),_jsx(ResponseField,{name:`products`,type:`array(string)`,id:`param-products-1`,children:_jsx(_components.p,{children:`POS Identifiers for items the discount applies to, if applicable`})}),_jsx(ResponseField,{name:`fine_print`,type:`string`,id:`param-fine-print-1`,children:_jsx(_components.p,{children:`Any fine print for the reward this points product can be exchanged for.`})}),_jsx(ResponseField,{name:`restriction_location_ids`,type:`array(string)`,id:`param-restriction-location-ids-1`,children:_jsx(_components.p,{children:`The list of locations the points product can be redeemed.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`progress`,type:`hash`,id:`param-progress`,children:[_jsx(_components.p,{children:`A user’s progress toward their next loyalty reward`}),_jsx(Note,{children:`Only present for merchants that have not yet upgraded to points`}),_jsxs(Expandable,{title:`progress`,children:[_jsx(ResponseField,{name:`percentage`,type:`integer`,id:`param-percentage`,children:_jsx(_components.p,{children:`Percent progress toward the next loyalty reward`})}),_jsx(ResponseField,{name:`towards`,type:`string`,id:`param-towards`,children:_jsx(_components.p,{children:`Description of progress toward the next loyalty reward`})})]})]}),`\n`,_jsxs(ResponseField,{name:`points`,type:`array`,id:`param-points-1`,children:[_jsx(_components.p,{children:`Array of information about the configured points experiences and the current\nuser’s balance at each`}),_jsx(Note,{children:`Only present for merchants that have enabled points`}),_jsxs(Expandable,{title:`points`,children:[_jsx(ResponseField,{name:`points_experience_id`,type:`integer`,id:`param-points-experience-id-1`,children:_jsxs(_components.p,{children:[`ID of the points experience. This matches the IDs of the points\nexperiences returned in\n`,_jsx(_components.a,{href:`/consumer/points/get-experiences`,children:`GET /points_experiences`}),`.`]})}),_jsx(ResponseField,{name:`currency`,type:`hash`,id:`param-currency`,children:_jsxs(Expandable,{title:`currency`,children:[_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The points experience’s currency name`})}),_jsx(ResponseField,{name:`plural`,type:`string`,id:`param-plural`,children:_jsx(_components.p,{children:`The plural tense of the points experience’s currency name`})})]})}),_jsx(ResponseField,{name:`balance`,type:`decimal`,id:`param-balance`,children:_jsx(_components.p,{children:`The user’s current currency balance of the points experience`})})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://loyalty.thanxsandbox.com/api/account`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Authorization: Bearer ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept: application/vnd.thanx-v1+json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Merchant-Key: ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`merchant_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -G`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"location_id=${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`location_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redemption_venue=online\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reward_states[]=delivered\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reward_states[]=active\"`})]}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`48`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`48`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wer23gtTT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"john.smith@example.com.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gheTfR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"minimum\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maximum\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A free hamburger\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redeemable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"products\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"234234-23423423\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3458-345345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fine_print\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reward fine print\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"retire_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2020-05-01T20:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"restriction_location_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points_products\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9xw6543wh8jmde0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points_experience_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"590485d6f0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"minimum\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maximum\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Onion rings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"redeemable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"products\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"234234-23423423\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3458-345345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fine_print\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Points product fine print\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"restriction_location_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"percentage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"towards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$5 off next purchase\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points_experience_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"590485d6f0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Star\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plural\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Stars\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10.0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 401,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"There was an error authenticating you.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Account","api":"GET https://loyalty.thanxsandbox.com/api/account","description":"This endpoint allows the retrieval of a user account information, including the user's rewards.","href":"/loyalty/get-account"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://loyalty.thanxsandbox.com/api/account\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer ${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">token\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Accept: application/vnd.thanx-v1+json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Merchant-Key: ${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">merchant_key\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -G\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"location_id=${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">location_id\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"redemption_venue=online\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reward_states[]=delivered\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reward_states[]=active\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"48\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"wer23gtTT\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"john.smith@example.com.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"rewards\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gheTfR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"minimum\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"maximum\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"label\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A free hamburger\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"state\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"redeemable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"products\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"234234-23423423\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3458-345345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fine_print\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Reward fine print\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"retire_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2020-05-01T20:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"restriction_location_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"b\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points_products\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"9xw6543wh8jmde0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points_experience_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"590485d6f0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"minimum\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"maximum\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"label\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Onion rings\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"state\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"redeemable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"products\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"234234-23423423\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3458-345345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fine_print\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Points product fine print\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"restriction_location_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"b\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"progress\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"percentage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"towards\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"$5 off next purchase\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points_experience_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"590485d6f0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Star\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"plural\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Stars\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"balance\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10.0\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\"> \"code\"\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 401,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\"> \"message\"\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"There was an error authenticating you.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Get Account","path":"/api/account","servers":[{"url":"https://loyalty.thanxsandbox.com"}],"method":"get","request":{"security":[],"parameters":{"query":{"location_id":{"schema":[{"type":"string","description":"Thanx Location UID. Providing this information allows Thanx to return rewards that can be used at this location. If `location_id` is omitted or doesn’t match a Thanx location, rewards and points products restricted to specific locations are not returned. A mapping of Thanx location identifiers can be provided by the Thanx developer support team or fetched from the following endpoints depending on your integration type: Consumer API Get Locations endpoint. Partner API Get Locations endpoint."}]},"redemption_venue":{"schema":[{"type":"string","description":"Currently either `instore` or `online` , defaults to `online` . This is used to adjust which configured product IDs are returned in the applicable reward and points product entities."}]},"reward_states":{"schema":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Filter rewards by state. Valid values: `delivered` , `active` . Defaults to `delivered` if not provided. Multiple states can be specified to return rewards matching any of the specified states."}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"The ID of user"}],"email":[{"type":"string","description":"The user’s email"}],"rewards":[{"type":"object","properties":{"id":[{"type":"string","description":"The Reward Identifier"}],"value":[{"type":"number","description":"The value of the discount. For `amount` rewards, the dollar amount off ( `10.0` = $10 off). For `percent` rewards, the percentage off ( `10.0` = 10% off). This field is returned for every reward type, but it does not describe the discount for `item` or `fixed_price` rewards — do not use it for those types. Use `label` to describe them."}],"minimum":[{"type":"number","description":"The minimum spend for this reward, if applicable"}],"maximum":[{"type":"number","description":"The maximum discount possible for this reward, if applicable"}],"label":[{"type":"string","description":"The reward description"}],"state":[{"type":"object","properties":{},"description":"The state of the reward ( `redeemable` , `unredeemable` )"}],"type":[{"type":"object","properties":{},"description":"The type of reward ( `amount` , `percent` , `item` , `fixed_price` )"}],"products":[{"type":"object","properties":{},"description":"POS Identifiers for items this discount applies to, if applicable"}],"fine_print":[{"type":"string","description":"Any fine print for the reward."}],"retire_at":[{"type":"string","description":"Time the reward will be automatically retired in ISO8601-format if a retire date is set"}],"restriction_location_ids":[{"type":"object","properties":{},"description":"The list of locations the reward can be redeemed."}]},"description":"The user’s rewards for the merchant specified in the header. This array can be empty."}],"points_products":[{"type":"object","properties":{"id":[{"type":"string","description":"The points product ID"}],"points_experience_id":[{"type":"string","description":"The points experience ID"}],"points":[{"type":"number","description":"The amount of points of the given currency this points product costs"}],"value":[{"type":"number","description":"The value of the discount. For `amount` points products, the dollar amount off ( `10.0` = $10 off). For `percent` points products, the percentage off ( `10.0` = 10% off). This field is returned for every points product type, but it does not describe the discount for `item` or `fixed_price` points products — do not use it for those types. Use `label` to describe them."}],"minimum":[{"type":"number","description":"The minimum spend for the reward this points product can be exchanged for, if applicable."}],"maximum":[{"type":"number","description":"The maximum discount possible for the reward this points product can be exchanged for, if applicable."}],"label":[{"type":"string","description":"The description of the reward this points product can be exchanged for"}],"state":[{"type":"object","properties":{},"description":"The state of the points product ( `redeemable` , `unredeemable` ). This will be `redeemable` if the user has enough points for this points product and `unredeemable` if the user does not have enough points for this points product."}],"type":[{"type":"object","properties":{},"description":"The type of reward ( `amount` , `percent` , `item` , `fixed_price` ) that this points product can be exchanged for."}],"products":[{"type":"object","properties":{},"description":"POS Identifiers for items the discount applies to, if applicable"}],"fine_print":[{"type":"string","description":"Any fine print for the reward this points product can be exchanged for."}],"restriction_location_ids":[{"type":"object","properties":{},"description":"The list of locations the points product can be redeemed."}]},"description":"The merchant’s configured points product available for online redemption. This array can be empty."}],"progress":[{"type":"string","description":"A user’s progress toward their next loyalty reward"}],"points":[{"type":"array","items":[{"type":"object","properties":{"points_experience_id":[{"type":"integer","description":"ID of the points experience. This matches the IDs of the points experiences returned in GET /points_experiences ."}],"currency":[{"type":"string"}],"balance":[{"type":"number","description":"The user’s current currency balance of the points experience"}]}}],"description":"Array of information about the configured points experiences and the current user’s balance at each"}]}}],"examples":{"example":{"value":{"id":"\u003cstring>","email":"\u003cstring>","rewards":{"id":"\u003cstring>","value":123,"minimum":123,"maximum":123,"label":"\u003cstring>","state":{},"type":{},"products":{},"fine_print":"\u003cstring>","retire_at":"\u003cstring>","restriction_location_ids":{}},"points_products":{"id":"\u003cstring>","points_experience_id":"\u003cstring>","points":123,"value":123,"minimum":123,"maximum":123,"label":"\u003cstring>","state":{},"type":{},"products":{},"fine_print":"\u003cstring>","restriction_location_ids":{}},"progress":"\u003cstring>","points":[{"points_experience_id":123,"currency":"\u003cstring>","balance":123}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"thanx","siteName":"Thanx","title":"Get Account - Thanx","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T19:05:14.476Z","originalFileLocation":"loyalty/get-account.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"This endpoint allows the retrieval of a user account information, including the user\u0026#x27;s rewards.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Thanx\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Account - Thanx\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint allows the retrieval of a user account information, including the user\u0026#x27;s rewards.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Thanx\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thanx.com/loyalty/get-account\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thanx.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Get+Account\u0026amp;description=This+endpoint+allows+the+retrieval+of+a+user+account+information%2C+including+the+user%27s+rewards.\u0026amp;theme=547b57199640445129b8df81\u0026amp;signature=e82c1d7ce0a78a2349dda2a45f34847d183f6f7da6c7bc1a6d05a25235deb3d6\">\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=\"Get Account - Thanx\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint allows the retrieval of a user account information, including the user\u0026#x27;s rewards.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thanx.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Get+Account\u0026amp;description=This+endpoint+allows+the+retrieval+of+a+user+account+information%2C+including+the+user%27s+rewards.\u0026amp;theme=547b57199640445129b8df81\u0026amp;signature=e82c1d7ce0a78a2349dda2a45f34847d183f6f7da6c7bc1a6d05a25235deb3d6\">\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/thanx/0JkP31DGq1SVLm6U/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Thanx\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#129B9B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thanx.com/loyalty/get-account\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/loyalty/get-account.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thanx.com/#organization\",\"name\":\"Thanx\",\"url\":\"https://docs.thanx.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/light.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=8b3bd3f1ffbb1567714a92067df956d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thanx.com#website\",\"name\":\"Thanx\",\"url\":\"https://docs.thanx.com\",\"publisher\":{\"@id\":\"https://docs.thanx.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thanx.com/loyalty/get-account#webpage\",\"url\":\"https://docs.thanx.com/loyalty/get-account\",\"name\":\"Get Account\",\"description\":\"This endpoint allows the retrieval of a user account information, including the user's rewards.\",\"dateModified\":\"2026-10-06T19:05:14.476Z\",\"isPartOf\":{\"@id\":\"https://docs.thanx.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thanx.com/loyalty/get-account#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thanx.com/loyalty/get-account#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.thanx.com/loyalty/headers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Account\",\"item\":\"https://docs.thanx.com/loyalty/get-account\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thanx.com/loyalty/get-account#apireference\",\"headline\":\"Get Account\",\"name\":\"Get Account\",\"description\":\"This endpoint allows the retrieval of a user account information, including the user's rewards.\",\"url\":\"https://docs.thanx.com/loyalty/get-account\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thanx.com/loyalty/get-account#webpage\"},\"dateModified\":\"2026-10-06T19:05:14.476Z\",\"publisher\":{\"@id\":\"https://docs.thanx.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thanx.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Thanx\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Thanx","nav":{"global":{"anchors":[{"anchor":"Help Center","icon":"book-bookmark","href":"https://help.thanx.com/hc/en-us"},{"anchor":"Thanx Product Updates","icon":"bullhorn","href":"https://thanx.launchnotes.io/"},{"anchor":"Status","icon":"wave-pulse","href":"https://status.thanx.com"},{"anchor":"Email Support","icon":"envelope","href":"mailto:developer.support@thanx.com"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/overview/intro"}]},{"tab":"Consumer API","pages":[{"title":"Consumer API","href":"/consumer/overview"}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/partner/overview"}]},{"tab":"Loyalty API","pages":[{"group":"Loyalty API","pages":[{"title":"Overview","href":"/loyalty/overview"},{"title":"AWS PrivateLink","href":"/loyalty/private-link"}]},{"group":"Reference","pages":[{"title":"Headers","description":"All Ordering / Loyalty integration API endpoints described below must include the following headers.","href":"/loyalty/headers"},{"title":"Get Account","api":"GET https://loyalty.thanxsandbox.com/api/account","href":"/loyalty/get-account"},{"title":"Create \u0026 Update Basket","api":"POST https://loyalty.thanxsandbox.com/api/baskets","description":"This endpoint is used to notify Thanx of the states that a basket is in, apply rewards to the order, and accrue loyalty progress or points for the order.","href":"/loyalty/create-update-basket"},{"title":"Qualifying Rewards for a Basket","api":"POST https://loyalty.thanxsandbox.com/api/baskets/qualifying","href":"/loyalty/qualifying-baskets"}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"Data Exports","pages":[{"title":"Data Exports","href":"/data/overview"}]},{"tab":"AI","icon":"sparkles","pages":[{"title":"AI","href":"/ai/overview"}]}]},"basePath":"","title":"Get Account - Thanx","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js"]}