This endpoint is only available in SANDBOX. It returns 403 in production.
Authenticate with your merchant app's X-ClientId and Accept-Version: v4.0. No user token is needed. Do not send an Authorization: Bearer header: when a valid Bearer token is present, the API registers a device for that token's user as a side effect. See the Sandbox Testing guide.
Only active members of your sandbox merchant are returned: disabled users and disabled memberships are left out. Use this endpoint to find a test user’s id, and to check their points balance, tier and tags after a test step.
Always pass email, phone or user_id for a lookup. Listing every member is slow on merchants with many users; if you do page through all members, keep per_page moderate.
Parameters
Pass at most one of email, phone and user_id. With none of them, the endpoint lists all members of your merchant.
string
Exact email match (case-insensitive)
string
Matches the phone stored for the user. The value is normalized to E.164 format before the match, and phones are stored in E.164 too. Send E.164 (for example +14157582345) so the number is parsed with the right country code.
string
The user’s id
integer
The current page of paginated resources.
Default: 1.
integer
Number of records to be returned per API request.
Default: 10
Minimum: 1
Maximum: 100
Response
array
Show user
string
The user ID
string
The user’s email
string
The user’s phone number
string
The user’s first name
string
The user’s last name
hash
The user’s birth date (year, month, day), if provided
string
The user’s zip code
string
When the user’s membership at your merchant was last updated, in ISO8601 format
hash
Show loyalty
string
The user’s tier at your merchant. null if the merchant has no tiers.
decimal
The user’s points balance at your merchant. null if the merchant has no points experience.
string
When the user joined your merchant, in ISO8601 format
array
The tags of the returned users at your merchant
Show tag
string
The tag ID
string
The tag key
array(string)
The tag values
string
The user the tag belongs to
string
The merchant ID
hash
Pagination information
Show pagination
integer
Current page
integer
Number of records return per page
integer
The total number of available pages
Errors
Status
Code
When
400
BAD_REQUEST
More than one of email, phone and user_id was sent
400
CLIENT_ID_HEADER_INVALID
The X-ClientId header is missing or doesn’t match an app
401
AUTHENTICATION_GENERIC
An Authorization header was sent with an invalid token
403
FORBIDDEN
Called in production, or your X-ClientId isn’t tied to exactly one merchant
No match returns 200 with an empty users array, not a 404.
{"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":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b06f575ed766d66afcf8443","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Reference","count":102},{"language":"default","tag":"Consumer API","count":95},{"language":"default","tag":"Data Exports","count":40},{"language":"default","tag":"Partner API","count":30},{"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":11},{"language":"default","tag":"Loyalty API","count":11},{"language":"default","tag":"Users","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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"consumer/sandbox/get-users","slug":"/consumer/sandbox/get-users","pageMetadata":{"title":"Look Up Test Users","api":"GET /users","description":"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.","href":"/consumer/sandbox/get-users"},"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: \"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\"\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`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Table,Tip,Warning}=_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);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Please review proper request headers `,_jsx(_components.a,{href:`/consumer/usage/headers`,children:`here`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This endpoint is only available in `,_jsx(_components.strong,{children:`SANDBOX`}),`. It returns `,_jsx(_components.code,{children:`403`}),` in production.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Authenticate with your merchant app's `,_jsx(_components.code,{children:`X-ClientId`}),` and `,_jsx(_components.code,{children:`Accept-Version: v4.0`}),`. No user token is needed. Do not send an `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header: when a valid Bearer token is present, the API registers a device for that token's user as a side effect. See the `,_jsx(_components.a,{href:`/consumer/sandbox-testing`,children:`Sandbox Testing guide`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Only active members of your sandbox merchant are returned: disabled users and disabled memberships are left out. Use this endpoint to find a test user’s `,_jsx(_components.code,{children:`id`}),`, and to check their points balance, tier and tags after a test step.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Always pass `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`user_id`}),` for a lookup. Listing every member is slow on merchants with many users; if you do page through all members, keep `,_jsx(_components.code,{children:`per_page`}),` moderate.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[`Pass at most one of `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` and `,_jsx(_components.code,{children:`user_id`}),`. With none of them, the endpoint lists all members of your merchant.`]}),`\n`,_jsx(ParamField,{query:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Exact email match (case-insensitive)`})}),`\n`,_jsx(ParamField,{query:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Matches the phone stored for the user. The value is normalized to `,_jsx(_components.a,{href:`https://www.twilio.com/docs/glossary/what-e164`,children:`E.164 format`}),` before the match, and phones are stored in E.164 too. Send E.164 (for example `,_jsx(_components.code,{children:`+14157582345`}),`) so the number is parsed with the right country code.`]})}),`\n`,_jsx(ParamField,{query:`user_id`,type:`string`,id:`param-user-id`,children:_jsxs(_components.p,{children:[`The user’s `,_jsx(_components.code,{children:`id`})]})}),`\n`,_jsxs(ParamField,{query:`page`,type:`integer`,optional:true,id:`param-page`,children:[_jsx(_components.p,{children:`The current page of paginated resources.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{query:`per_page`,type:`integer`,optional:true,id:`param-per-page`,children:[_jsx(_components.p,{children:`Number of records to be returned per API request.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`10`})]}),`\n`,_jsxs(_components.li,{children:[`Minimum: `,_jsx(_components.code,{children:`1`})]}),`\n`,_jsxs(_components.li,{children:[`Maximum: `,_jsx(_components.code,{children:`100`})]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`users`,type:`array`,id:`param-users`,children:_jsxs(Expandable,{title:`user`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The user ID`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`The user’s email`})}),_jsx(ResponseField,{name:`phone`,type:`string`,id:`param-phone-1`,children:_jsx(_components.p,{children:`The user’s phone number`})}),_jsx(ResponseField,{name:`first_name`,type:`string`,id:`param-first-name`,children:_jsx(_components.p,{children:`The user’s first name`})}),_jsx(ResponseField,{name:`last_name`,type:`string`,id:`param-last-name`,children:_jsx(_components.p,{children:`The user’s last name`})}),_jsx(ResponseField,{name:`birth_date`,type:`hash`,id:`param-birth-date`,children:_jsxs(_components.p,{children:[`The user’s birth date (`,_jsx(_components.code,{children:`year`}),`, `,_jsx(_components.code,{children:`month`}),`, `,_jsx(_components.code,{children:`day`}),`), if provided`]})}),_jsx(ResponseField,{name:`zip_code`,type:`string`,id:`param-zip-code`,children:_jsx(_components.p,{children:`The user’s zip code`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`When the user’s membership at your merchant was last updated, in ISO8601 format`})}),_jsx(ResponseField,{name:`loyalty`,type:`hash`,id:`param-loyalty`,children:_jsxs(Expandable,{title:`loyalty`,children:[_jsx(ResponseField,{name:`tier`,type:`string`,id:`param-tier`,children:_jsxs(_components.p,{children:[`The user’s tier at your merchant. `,_jsx(_components.code,{children:`null`}),` if the merchant has no tiers.`]})}),_jsx(ResponseField,{name:`points_balance`,type:`decimal`,id:`param-points-balance`,children:_jsxs(_components.p,{children:[`The user’s points balance at your merchant. `,_jsx(_components.code,{children:`null`}),` if the merchant has no points experience.`]})}),_jsx(ResponseField,{name:`user_joined_at`,type:`string`,id:`param-user-joined-at`,children:_jsx(_components.p,{children:`When the user joined your merchant, in ISO8601 format`})})]})})]})}),`\n`,_jsxs(ResponseField,{name:`tags`,type:`array`,id:`param-tags`,children:[_jsx(_components.p,{children:`The tags of the returned users at your merchant`}),_jsxs(Expandable,{title:`tag`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The tag ID`})}),_jsx(ResponseField,{name:`key`,type:`string`,id:`param-key`,children:_jsx(_components.p,{children:`The tag key`})}),_jsx(ResponseField,{name:`values`,type:`array(string)`,id:`param-values`,children:_jsx(_components.p,{children:`The tag values`})}),_jsx(ResponseField,{name:`user_id`,type:`string`,id:`param-user-id-1`,children:_jsx(_components.p,{children:`The user the tag belongs to`})}),_jsx(ResponseField,{name:`merchant_id`,type:`string`,id:`param-merchant-id`,children:_jsx(_components.p,{children:`The merchant ID`})})]})]}),`\n`,_jsxs(ResponseField,{name:`pagination`,type:`hash`,id:`param-pagination`,children:[_jsx(_components.p,{children:`Pagination information`}),_jsxs(Expandable,{title:`pagination`,children:[_jsx(ResponseField,{name:`current_page`,type:`integer`,id:`param-current-page`,children:_jsx(_components.p,{children:`Current page`})}),_jsx(ResponseField,{name:`per_page`,type:`integer`,id:`param-per-page-1`,children:_jsx(_components.p,{children:`Number of records return per page`})}),_jsx(ResponseField,{name:`total_pages`,type:`integer`,id:`param-total-pages`,children:_jsx(_components.p,{children:`The total number of available pages`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BAD_REQUEST`})}),_jsxs(_components.td,{children:[`More than one of `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` and `,_jsx(_components.code,{children:`user_id`}),` was sent`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CLIENT_ID_HEADER_INVALID`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`X-ClientId`}),` header is missing or doesn’t match an app`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTHENTICATION_GENERIC`})}),_jsxs(_components.td,{children:[`An `,_jsx(_components.code,{children:`Authorization`}),` header was sent with an invalid token`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN`})}),_jsxs(_components.td,{children:[`Called in production, or your `,_jsx(_components.code,{children:`X-ClientId`}),` isn’t tied to exactly one merchant`]})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`No match returns `,_jsx(_components.code,{children:`200`}),` with an empty `,_jsx(_components.code,{children:`users`}),` array, not a `,_jsx(_components.code,{children:`404`}),`.`]})})]})}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":"Look Up Test Users","api":"GET /users","description":"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.","href":"/consumer/sandbox/get-users"}}},"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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Tip,Warning}=_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);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Please review proper request headers `,_jsx(_components.a,{href:`/consumer/usage/headers`,children:`here`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This endpoint is only available in `,_jsx(_components.strong,{children:`SANDBOX`}),`. It returns `,_jsx(_components.code,{children:`403`}),` in production.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Authenticate with your merchant app's `,_jsx(_components.code,{children:`X-ClientId`}),` and `,_jsx(_components.code,{children:`Accept-Version: v4.0`}),`. No user token is needed. Do not send an `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header: when a valid Bearer token is present, the API registers a device for that token's user as a side effect. See the `,_jsx(_components.a,{href:`/consumer/sandbox-testing`,children:`Sandbox Testing guide`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Only active members of your sandbox merchant are returned: disabled users and disabled memberships are left out. Use this endpoint to find a test user’s `,_jsx(_components.code,{children:`id`}),`, and to check their points balance, tier and tags after a test step.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Always pass `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`user_id`}),` for a lookup. Listing every member is slow on merchants with many users; if you do page through all members, keep `,_jsx(_components.code,{children:`per_page`}),` moderate.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[`Pass at most one of `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` and `,_jsx(_components.code,{children:`user_id`}),`. With none of them, the endpoint lists all members of your merchant.`]}),`\n`,_jsx(ParamField,{query:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Exact email match (case-insensitive)`})}),`\n`,_jsx(ParamField,{query:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Matches the phone stored for the user. The value is normalized to `,_jsx(_components.a,{href:`https://www.twilio.com/docs/glossary/what-e164`,children:`E.164 format`}),` before the match, and phones are stored in E.164 too. Send E.164 (for example `,_jsx(_components.code,{children:`+14157582345`}),`) so the number is parsed with the right country code.`]})}),`\n`,_jsx(ParamField,{query:`user_id`,type:`string`,id:`param-user-id`,children:_jsxs(_components.p,{children:[`The user’s `,_jsx(_components.code,{children:`id`})]})}),`\n`,_jsxs(ParamField,{query:`page`,type:`integer`,optional:true,id:`param-page`,children:[_jsx(_components.p,{children:`The current page of paginated resources.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`]})]}),`\n`,_jsxs(ParamField,{query:`per_page`,type:`integer`,optional:true,id:`param-per-page`,children:[_jsx(_components.p,{children:`Number of records to be returned per API request.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Default: `,_jsx(_components.code,{children:`10`})]}),`\n`,_jsxs(_components.li,{children:[`Minimum: `,_jsx(_components.code,{children:`1`})]}),`\n`,_jsxs(_components.li,{children:[`Maximum: `,_jsx(_components.code,{children:`100`})]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`users`,type:`array`,id:`param-users`,children:_jsxs(Expandable,{title:`user`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The user ID`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`The user’s email`})}),_jsx(ResponseField,{name:`phone`,type:`string`,id:`param-phone-1`,children:_jsx(_components.p,{children:`The user’s phone number`})}),_jsx(ResponseField,{name:`first_name`,type:`string`,id:`param-first-name`,children:_jsx(_components.p,{children:`The user’s first name`})}),_jsx(ResponseField,{name:`last_name`,type:`string`,id:`param-last-name`,children:_jsx(_components.p,{children:`The user’s last name`})}),_jsx(ResponseField,{name:`birth_date`,type:`hash`,id:`param-birth-date`,children:_jsxs(_components.p,{children:[`The user’s birth date (`,_jsx(_components.code,{children:`year`}),`, `,_jsx(_components.code,{children:`month`}),`, `,_jsx(_components.code,{children:`day`}),`), if provided`]})}),_jsx(ResponseField,{name:`zip_code`,type:`string`,id:`param-zip-code`,children:_jsx(_components.p,{children:`The user’s zip code`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`When the user’s membership at your merchant was last updated, in ISO8601 format`})}),_jsx(ResponseField,{name:`loyalty`,type:`hash`,id:`param-loyalty`,children:_jsxs(Expandable,{title:`loyalty`,children:[_jsx(ResponseField,{name:`tier`,type:`string`,id:`param-tier`,children:_jsxs(_components.p,{children:[`The user’s tier at your merchant. `,_jsx(_components.code,{children:`null`}),` if the merchant has no tiers.`]})}),_jsx(ResponseField,{name:`points_balance`,type:`decimal`,id:`param-points-balance`,children:_jsxs(_components.p,{children:[`The user’s points balance at your merchant. `,_jsx(_components.code,{children:`null`}),` if the merchant has no points experience.`]})}),_jsx(ResponseField,{name:`user_joined_at`,type:`string`,id:`param-user-joined-at`,children:_jsx(_components.p,{children:`When the user joined your merchant, in ISO8601 format`})})]})})]})}),`\n`,_jsxs(ResponseField,{name:`tags`,type:`array`,id:`param-tags`,children:[_jsx(_components.p,{children:`The tags of the returned users at your merchant`}),_jsxs(Expandable,{title:`tag`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The tag ID`})}),_jsx(ResponseField,{name:`key`,type:`string`,id:`param-key`,children:_jsx(_components.p,{children:`The tag key`})}),_jsx(ResponseField,{name:`values`,type:`array(string)`,id:`param-values`,children:_jsx(_components.p,{children:`The tag values`})}),_jsx(ResponseField,{name:`user_id`,type:`string`,id:`param-user-id-1`,children:_jsx(_components.p,{children:`The user the tag belongs to`})}),_jsx(ResponseField,{name:`merchant_id`,type:`string`,id:`param-merchant-id`,children:_jsx(_components.p,{children:`The merchant ID`})})]})]}),`\n`,_jsxs(ResponseField,{name:`pagination`,type:`hash`,id:`param-pagination`,children:[_jsx(_components.p,{children:`Pagination information`}),_jsxs(Expandable,{title:`pagination`,children:[_jsx(ResponseField,{name:`current_page`,type:`integer`,id:`param-current-page`,children:_jsx(_components.p,{children:`Current page`})}),_jsx(ResponseField,{name:`per_page`,type:`integer`,id:`param-per-page-1`,children:_jsx(_components.p,{children:`Number of records return per page`})}),_jsx(ResponseField,{name:`total_pages`,type:`integer`,id:`param-total-pages`,children:_jsx(_components.p,{children:`The total number of available pages`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BAD_REQUEST`})}),_jsxs(_components.td,{children:[`More than one of `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`phone`}),` and `,_jsx(_components.code,{children:`user_id`}),` was sent`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CLIENT_ID_HEADER_INVALID`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`X-ClientId`}),` header is missing or doesn’t match an app`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTHENTICATION_GENERIC`})}),_jsxs(_components.td,{children:[`An `,_jsx(_components.code,{children:`Authorization`}),` header was sent with an invalid token`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN`})}),_jsxs(_components.td,{children:[`Called in production, or your `,_jsx(_components.code,{children:`X-ClientId`}),` isn’t tied to exactly one merchant`]})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`No match returns `,_jsx(_components.code,{children:`200`}),` with an empty `,_jsx(_components.code,{children:`users`}),` array, not a `,_jsx(_components.code,{children:`404`}),`.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Look Up Test Users`,numberOfLines:`5`,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:`5`,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://api.thanxsandbox.com/users?email=jane.smith@example.com\"`}),_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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_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-Version: v4.0\"`}),_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/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:' \"X-ClientId: ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`37`,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:`37`,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:` \"pagination\"`}),_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:` \"current_page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` \"per_page\"`}),_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:` \"total_pages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\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:` \"users\"`}),_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:`\"fhwer123\"`}),_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:`\"jane.smith@example.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:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+14158672345\"`}),_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:` \"first_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jane\"`}),_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:` \"last_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Smith\"`}),_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:` \"birth_date\"`}),_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:` \"month\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_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:` \"day\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14`})]}),`\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:` \"gender\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unknown\"`}),_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:` \"zip_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345\"`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-17T15:04:05Z\"`}),_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:` \"loyalty\"`}),_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:` \"tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bronze\"`}),_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_balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120.0`}),_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:` \"user_joined_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-17T15:00:00Z\"`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_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:`\"wjtou290hyrw\"`}),_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:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"allergens\"`}),_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:` \"values\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gluten\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"soy\"`}),_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:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fhwer123\"`}),_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:` \"merchant_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ghwou3457f\"`})]}),`\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`]})})})})]})}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":"Look Up Test Users","api":"GET /users","description":"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.","href":"/consumer/sandbox/get-users"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Errors","slug":"errors","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Look Up Test Users","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=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.thanxsandbox.com/users?email=jane.smith@example.com\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> GET\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-Version: v4.0\"\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/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\"> \"X-ClientId: ${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">client_id\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","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=\"json\">\u003ccode language=\"json\" numberOfLines=\"37\">\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\"> \"pagination\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"current_page\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"per_page\"\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\"> \"total_pages\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\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\"> \"users\"\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\">\"fhwer123\"\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\">\"jane.smith@example.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\"> \"phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+14158672345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"first_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Jane\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"last_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Smith\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"birth_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"month\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">8\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"day\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">14\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\"> \"gender\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"unknown\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"zip_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-17T15:04:05Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"loyalty\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tier\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"bronze\"\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_balance\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">120.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_joined_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-17T15:00:00Z\"\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\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tags\"\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\">\"wjtou290hyrw\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"allergens\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"values\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gluten\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"soy\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"fhwer123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merchant_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ghwou3457f\"\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>"}],"attributes":[]}},"endpoint":{"title":"Look Up Test Users","path":"/users","method":"get","request":{"security":[],"parameters":{"query":{"email":{"schema":[{"type":"string","description":"Exact email match (case-insensitive)"}]},"phone":{"schema":[{"type":"string","description":"Matches the phone stored for the user. The value is normalized to E.164 format before the match, and phones are stored in E.164 too. Send E.164 (for example `+14157582345` ) so the number is parsed with the right country code."}]},"user_id":{"schema":[{"type":"string","description":"The user’s `id`"}]},"page":{"schema":[{"type":"integer","description":"The current page of paginated resources. Default: `1` ."}]},"per_page":{"schema":[{"type":"integer","description":"Number of records to be returned per API request. Default: `10` Minimum: `1` Maximum: `100`"}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"users":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The user ID"}],"email":[{"type":"string","description":"The user’s email"}],"phone":[{"type":"string","description":"The user’s phone number"}],"first_name":[{"type":"string","description":"The user’s first name"}],"last_name":[{"type":"string","description":"The user’s last name"}],"birth_date":[{"type":"string","description":"The user’s birth date ( `year` , `month` , `day` ), if provided"}],"zip_code":[{"type":"string","description":"The user’s zip code"}],"updated_at":[{"type":"string","description":"When the user’s membership at your merchant was last updated, in ISO8601 format"}],"loyalty":[{"type":"string"}]}}]}],"tags":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The tag ID"}],"key":[{"type":"string","description":"The tag key"}],"values":[{"type":"object","properties":{},"description":"The tag values"}],"user_id":[{"type":"string","description":"The user the tag belongs to"}],"merchant_id":[{"type":"string","description":"The merchant ID"}]}}],"description":"The tags of the returned users at your merchant"}],"pagination":[{"type":"string","description":"Pagination information"}]}}],"examples":{"example":{"value":{"users":[{"id":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","birth_date":"\u003cstring>","zip_code":"\u003cstring>","updated_at":"\u003cstring>","loyalty":"\u003cstring>"}],"tags":[{"id":"\u003cstring>","key":"\u003cstring>","values":{},"user_id":"\u003cstring>","merchant_id":"\u003cstring>"}],"pagination":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"thanx","siteName":"Thanx","title":"Look Up Test Users - Thanx","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T14:49:31.080Z","originalFileLocation":"consumer/sandbox/get-users.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=\"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\">\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=\"Look Up Test Users - Thanx\">\u003cmeta data-mint-head property=\"og:description\" content=\"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Thanx\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thanx.com/consumer/sandbox/get-users\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thanx.mintlify.site/_mintlify/api/og/v2?division=Sandbox+Testing\u0026amp;title=Look+Up+Test+Users\u0026amp;description=Looks+up+members+of+your+sandbox+merchant+by+email%2C+phone+or+user+id%2C+with+their+points+balance%2C+tier+and+tags.\u0026amp;theme=b4df6fb3c288da3b05f2dd02\u0026amp;signature=4213613671c4de34a3366eefc66e929f84c8705797b91b825c1da6faa1e7e8b6\">\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=\"Look Up Test Users - Thanx\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thanx.mintlify.site/_mintlify/api/og/v2?division=Sandbox+Testing\u0026amp;title=Look+Up+Test+Users\u0026amp;description=Looks+up+members+of+your+sandbox+merchant+by+email%2C+phone+or+user+id%2C+with+their+points+balance%2C+tier+and+tags.\u0026amp;theme=b4df6fb3c288da3b05f2dd02\u0026amp;signature=4213613671c4de34a3366eefc66e929f84c8705797b91b825c1da6faa1e7e8b6\">\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/consumer/sandbox/get-users\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/consumer/sandbox/get-users.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/consumer/sandbox/get-users#webpage\",\"url\":\"https://docs.thanx.com/consumer/sandbox/get-users\",\"name\":\"Look Up Test Users\",\"description\":\"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\",\"dateModified\":\"2026-11-25T14:49:31.080Z\",\"isPartOf\":{\"@id\":\"https://docs.thanx.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thanx.com/consumer/sandbox/get-users#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thanx.com/consumer/sandbox/get-users#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.thanx.com/consumer/users/create-user\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Look Up Test Users\",\"item\":\"https://docs.thanx.com/consumer/sandbox/get-users\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thanx.com/consumer/sandbox/get-users#apireference\",\"headline\":\"Look Up Test Users\",\"name\":\"Look Up Test Users\",\"description\":\"Looks up members of your sandbox merchant by email, phone or user id, with their points balance, tier and tags.\",\"url\":\"https://docs.thanx.com/consumer/sandbox/get-users\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thanx.com/consumer/sandbox/get-users#webpage\"},\"dateModified\":\"2026-11-25T14:49:31.080Z\",\"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\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Thanx\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/consumer/sandbox/get-users.md","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":[{"group":"Consumer API","pages":[{"title":"Overview","href":"/consumer/overview"},{"group":"Guides","pages":[{"title":"Points Integration","href":"/consumer/guides/points"},{"title":"Push Notifications","href":"/consumer/guides/push-notifications"},{"title":"Deep Linking","href":"/consumer/guides/deep-linking"}]},{"group":"Best Practices","pages":[{"title":"Design Best Practices","sidebarTitle":"Design","href":"/consumer/best-practices/design"},{"title":"Card Enrollment Best Practices","sidebarTitle":"Card Enrollment","href":"/consumer/best-practices/enrollment"},{"title":"Onboarding \u0026 Authentication","href":"/consumer/best-practices/onboarding-authentication"},{"title":"Loyalty \u0026 Rewards Best Practices","sidebarTitle":"Loyalty \u0026 Rewards","href":"/consumer/best-practices/loyalty"},{"title":"Feedback \u0026 Support Best Practices","sidebarTitle":"Feedback \u0026 Support","href":"/consumer/best-practices/feedback"},{"title":"Messaging Best Practices","sidebarTitle":"Messaging","href":"/consumer/best-practices/messaging"}]},{"group":"Usage","pages":[{"title":"Patterns","href":"/consumer/usage/patterns"},{"title":"Headers","href":"/consumer/usage/headers"},{"title":"Errors","href":"/consumer/usage/errors"},{"title":"Legal","href":"/consumer/usage/legal"},{"title":"Certification","href":"/consumer/usage/certification"}]},{"title":"Sandbox Testing","icon":"flask","href":"/consumer/sandbox-testing"}]},{"group":"Reference","pages":[{"group":"Users","pages":[{"title":"Create User","api":"POST /users","href":"/consumer/users/create-user"},{"title":"Get User","api":"GET /users/me","href":"/consumer/users/get-user"},{"title":"Update User","api":"PATCH /users/:id","href":"/consumer/users/update-user"},{"title":"Delete User","api":"DELETE /users/me","href":"/consumer/users/delete-user"},{"title":"Get Check In Code","api":"GET /users/:id/check_in_code","href":"/consumer/users/check-in-code"}]},{"group":"SSO","pages":[{"title":"Single Sign-On (SSO) Overview","sidebarTitle":"Overview","href":"/consumer/sso/overview"},{"title":"Legal Requirements","href":"/consumer/sso/legal-requirements"},{"title":"Acquire Authorization Code","api":"POST /oauth/authorize","href":"/consumer/sso/acquire-auth-code"},{"title":"Acquire Authorization Code (Cross-Domain)","api":"POST /oauth/authorize-cross-domain","href":"/consumer/sso/acquire-auth-code-cross-domain"},{"title":"Acquire Access Token","api":"POST /oauth/token","href":"/consumer/sso/acquire-access-token"},{"title":"Revoke Access Token","api":"POST /oauth/revoke","href":"/consumer/sso/revoke-access-token"}]},{"group":"Locations","pages":[{"title":"Get Locations","api":"GET /locations","href":"/consumer/locations/get-locations"}]},{"group":"Features","pages":[{"title":"Get Features","api":"GET /features","href":"/consumer/features/get-features"}]},{"group":"Cards","pages":[{"title":"Create Card","api":"POST https://secure.api.thanxsandbox.com/cards","href":"/consumer/cards/create-card"},{"title":"Get Cards","api":"GET /cards","href":"/consumer/cards/get-cards"},{"title":"Delete Card","api":"DELETE /cards/:id","href":"/consumer/cards/delete-card"}]},{"group":"Rewards","pages":[{"title":"Reward Overview","sidebarTitle":"Overview","href":"/consumer/rewards/overview"},{"title":"Get Rewards","api":"GET /rewards","href":"/consumer/rewards/get-rewards"},{"title":"Get Reward","api":"GET /rewards/:id","href":"/consumer/rewards/get-reward"},{"title":"Activate Reward","api":"PATCH /rewards/:id/activate","href":"/consumer/rewards/activate-reward"},{"title":"Finalize Reward","api":"PATCH /rewards/:id/finalize","href":"/consumer/rewards/finalize-reward"},{"title":"Grant Reward","api":"POST /rewards/grant","href":"/consumer/rewards/grant-reward"},{"title":"Update reward","api":"PATCH /rewards/:id","description":"This endpoint updates the redemption location for an active reward.","href":"/consumer/rewards/update-reward"}]},{"group":"Sandbox Testing","pages":[{"title":"Look Up Test Users","api":"GET /users","href":"/consumer/sandbox/get-users"},{"title":"List Campaigns","api":"GET /campaigns","description":"Lists the active granted campaigns at your sandbox merchant. Use a campaign's id as the campaign_id for Grant Reward.","href":"/consumer/sandbox/list-campaigns"},{"title":"Get a Test User's Rewards","api":"GET /users/{user_id}/rewards","href":"/consumer/sandbox/get-user-rewards"},{"title":"Get a Test User's Points Ledger","api":"GET /users/{user_id}/points_transactions","href":"/consumer/sandbox/get-points-transactions"},{"title":"Set a Test User's Tag","api":"PUT /users/{user_id}/tags","href":"/consumer/sandbox/set-user-tag"},{"title":"Remove a Test User's Tag","api":"DELETE /users/{user_id}/tags","href":"/consumer/sandbox/delete-user-tag"}]},{"group":"Signup Programs","pages":[{"title":"Get Signup Programs","api":"GET /signup_programs","href":"/consumer/signup-programs/get-signup-programs"},{"title":"Get Signup Program","api":"GET /signup_programs/:handle","href":"/consumer/signup-programs/get-signup-program"}]},{"group":"Tags","pages":[{"title":"Get Tags","api":"GET /tags","href":"/consumer/tags/get-tags"},{"title":"Update Tags","api":"PUT /tags","href":"/consumer/tags/update-tags"},{"title":"Delete Tag","api":"DELETE /tags/:id","href":"/consumer/tags/delete-tag"}]},{"group":"Communication Settings","pages":[{"title":"Get Communication Settings","api":"GET /communication_settings","href":"/consumer/communication-settings/get"},{"title":"Get Communication Setting by UID","api":"GET /communication_settings/:uid","href":"/consumer/communication-settings/get-by-uid"},{"title":"Update Communication Settings","api":"PATCH /communication_settings/:id","href":"/consumer/communication-settings/update"}]},{"group":"Push Registrations","pages":[{"title":"Create Push Registration","api":"PUT /push_registrations","href":"/consumer/push/create-push-registration"}]},{"group":"Points","pages":[{"title":"Get Points Experiences","api":"GET /points_experiences","href":"/consumer/points/get-experiences"},{"title":"Get Points Experience","api":"GET /points_experiences/:id","href":"/consumer/points/get-experience"},{"title":"Get Points Balance","api":"GET /points_experiences/:id/balance","href":"/consumer/points/get-points-balance"},{"title":"Get Points Products","api":"GET /points_products","href":"/consumer/points/get-products"},{"title":"Get Points Multipliers","api":"GET /points_multipliers","href":"/consumer/points/get-points-multipliers"},{"title":"Exchange Points Product","api":"POST /points_products/:id/rewards","href":"/consumer/points/exchange-product"}]},{"group":"Tiers","pages":[{"title":"Get Tiers Configurations","api":"GET /tier_configurations","href":"/consumer/tiers/get-configs"},{"title":"Get Tier Statuses","api":"GET /tier_statuses","href":"/consumer/tiers/get-statuses"},{"title":"Grant Tier Status","api":"PATCH /tier_statuses/:id","href":"/consumer/tiers/grant-status"}]},{"group":"Gift Cards","pages":[{"title":"Gift Cards Overview","sidebarTitle":"Overview","href":"/consumer/gift-cards/overview"},{"title":"Get Gift Cards","api":"GET /gift_cards","href":"/consumer/gift-cards/get-gift-cards"},{"title":"Create Gift Card","api":"POST /gift_cards","href":"/consumer/gift-cards/create-gift-card"},{"title":"Get Gift Card","api":"GET /gift_cards/{id}","href":"/consumer/gift-cards/get-gift-card"},{"title":"Delete Gift Card","api":"DELETE /gift_cards/{id}","href":"/consumer/gift-cards/delete-gift-card"},{"title":"Get Merchant Configuration","api":"GET /gift_cards/merchant_config","href":"/consumer/gift-cards/get-merchant-config"}]},{"group":"Purchases","pages":[{"title":"Create Purchase","api":"POST /purchases","href":"/consumer/purchases/create-purchase"},{"title":"Get Purchases","api":"GET /purchases","href":"/consumer/purchases/get-purchases"},{"title":"Get Purchase","api":"GET /purchases/:id","href":"/consumer/purchases/get-purchase"},{"title":"Update Purchase Tags","api":"PUT /purchases/:id/tags","href":"/consumer/purchases/update-tags"}]},{"group":"Receipts","pages":[{"title":"Overview","href":"/consumer/receipts/overview"},{"title":"Create Receipt","api":"POST /receipts","href":"/consumer/receipts/create-receipt"},{"title":"Get Receipts","api":"GET /receipts","href":"/consumer/receipts/get-receipts"},{"title":"Get Upload URL","api":"GET /upload_url","href":"/consumer/receipts/get-upload-url"}]},{"group":"Archive","pages":[{"title":"Archive Overview","sidebarTitle":"Overview","href":"/consumer/archive/overview"},{"title":"Get Loyalty Statuses","api":"GET /loyalty_statuses","href":"/consumer/loyalty/get-loyalty-statuses"}]}]}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/partner/overview"}]},{"tab":"Loyalty API","pages":[{"title":"Loyalty API","href":"/loyalty/overview"}]},{"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":"Look Up Test Users - Thanx","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js"]}