Copy only the access_token value from the token response.
Open an endpoint in the API Reference and select Production or Staging.
Paste the token into the Bearer authentication field.
The playground sends it as Authorization: Bearer <access_token>. The token expires after 300 seconds (5 minutes), so obtain a new token when it expires.
A company admin can rotate your credentials in the PayEm app under Settings → Developer, by selecting Rotate secret on your app.Your client ID stays the same and a new client secret is shown. Rotation immediately invalidates the previous secret and revokes all active access tokens for your app.
Your integration has brief downtime until it authenticates again with the new secret. Plan rotations for a low-traffic window and update the secret in your integration right away.
Access tokens expire in 300 seconds (5 minutes). Cache the token and refresh before expiry; do not request a new token on every API call.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PayEm Partner API","colors":{"primary":"#542CF1","light":"#542CF1","dark":"#321A91"},"logo":{"light":"https://mintcdn.com/pay-em-inc/W9b88VLWDldAc0oG/payem-logo.png?fit=max\u0026auto=format\u0026n=W9b88VLWDldAc0oG\u0026q=85\u0026s=e6f1339fbe4b08eea7567b097c95ca8e","dark":"https://mintcdn.com/pay-em-inc/W9b88VLWDldAc0oG/payem-logo.png?fit=max\u0026auto=format\u0026n=W9b88VLWDldAc0oG\u0026q=85\u0026s=e6f1339fbe4b08eea7567b097c95ca8e"},"favicon":"https://mintcdn.com/pay-em-inc/W9b88VLWDldAc0oG/payem-logo.png?fit=max\u0026auto=format\u0026n=W9b88VLWDldAc0oG\u0026q=85\u0026s=e6f1339fbe4b08eea7567b097c95ca8e","api":{"openapi":"openapi/partner-schema.yml","playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true}},"navbar":{"links":[{"href":"/openapi/partner-schema.yml","label":"OpenAPI"}]},"footer":{"socials":{"website":"https://www.payem.co"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pay-em-inc","hasAudioNarration":false,"actualSubdomain":"pay-em-inc","customDomains":[],"gitSource":{"type":"github","owner":"payemcard","repo":"payem-server","deployBranch":"master","contentDirectory":"docs/partner-api","isPrivate":true,"mountPath":"","label":"","_id":"6adf63c78d250d16df2a4fff"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adf64758d250d16df2a5fb2","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":17},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"cards","count":7},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Core resources","count":3},{"language":"default","tag":"subsidiaries","count":2},{"language":"default","tag":"transactions","count":2},{"language":"default","tag":"users","count":2},{"language":"default","tag":"vendors","count":2},{"language":"default","tag":"classification","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"::selection{background:rgba(84,44,241,.3);color:inherit}::-moz-selection{background:rgba(84,44,241,.3);color:inherit}"}],"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"Obtain and use OAuth access tokens for the Partner API","href":"/authentication"},"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: \"Obtain and use OAuth access tokens for the Partner API\"\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={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`PayEm Partner API uses OAuth 2.0. Exchange your `,_jsx(_components.strong,{children:`client ID`}),` and `,_jsx(_components.strong,{children:`client secret`}),` for a short-lived access token outside the API Reference.`]}),`\n`,_jsx(Heading,{level:`2`,id:`client-credentials-recommended-for-server-to-server`,children:`Client credentials (recommended for server-to-server)`}),`\n`,_jsx(CodeBlock,{filename:``,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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.payemcard.com/oauth/token\"`}),_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:` --user`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cclient_id>:\u003cclient_secret>\"`}),_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/x-www-form-urlencoded\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grant_type=client_credentials\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"scope=PARTNER_API_V1_BASIC PARTNER_API_V1_CARDS\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`https://stage.payemcard.com/oauth/token`}),` when testing against Staging. Never paste your client secret into the API Reference.`]}),`\n`,_jsx(_components.p,{children:`Example response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"access_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"expires_in\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_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:` \"token_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer\"`}),_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:` \"scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PARTNER_API_V1_BASIC PARTNER_API_V1_CARDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`use-the-api-reference-playground`,children:`Use the API Reference playground`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Copy only the `,_jsx(_components.code,{children:`access_token`}),` value from the token response.`]}),`\n`,_jsxs(_components.li,{children:[`Open an endpoint in the API Reference and select `,_jsx(_components.strong,{children:`Production`}),` or `,_jsx(_components.strong,{children:`Staging`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Paste the token into the `,_jsx(_components.strong,{children:`Bearer`}),` authentication field.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The playground sends it as `,_jsx(_components.code,{children:`Authorization: Bearer \u003caccess_token>`}),`. The token expires after `,_jsx(_components.strong,{children:`300 seconds (5 minutes)`}),`, so obtain a new token when it expires.`]}),`\n`,_jsx(Heading,{level:`2`,id:`call-an-api`,children:`Call an API`}),`\n`,_jsx(_components.p,{children:`Pass the token as a Bearer header:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,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://app.payemcard.com/api/partner/v1/company\"`}),_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 \u003caccess_token>\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`scopes`,children:`Scopes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Access`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PARTNER_API_V1_BASIC`})}),_jsx(_components.td,{children:`Read-only access to general resources (users, transactions, company, vendors, subsidiaries) and card reads (list/retrieve)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PARTNER_API_V1_CARDS`})}),_jsxs(_components.td,{children:[`Card writes and actions (create, update, lock, unlock, terminate). Lock/unlock/terminate also require `,_jsx(_components.code,{children:`PARTNER_API_V1_BASIC`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Request only the scopes your integration needs.`}),`\n`,_jsx(Heading,{level:`2`,id:`generate-a-new-client-secret`,children:`Generate a new client secret`}),`\n`,_jsxs(_components.p,{children:[`A company admin can rotate your credentials in the PayEm app under `,_jsx(_components.strong,{children:`Settings → Developer`}),`, by selecting `,_jsx(_components.strong,{children:`Rotate secret`}),` on your app.`]}),`\n`,_jsx(_components.p,{children:`Your client ID stays the same and a new client secret is shown. Rotation immediately invalidates the previous secret and revokes all active access tokens for your app.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Your integration has brief downtime until it authenticates again with the new secret. Plan rotations for a low-traffic window and update the secret in your integration right away.`})}),`\n`,_jsx(Heading,{level:`2`,id:`token-lifetime`,children:`Token lifetime`}),`\n`,_jsxs(_components.p,{children:[`Access tokens expire in `,_jsx(_components.strong,{children:`300 seconds (5 minutes)`}),`. Cache the token and refresh before expiry; do not request a new token on every API call.`]})]})}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":"Authentication","description":"Obtain and use OAuth access tokens for the Partner API","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Client credentials (recommended for server-to-server)","slug":"client-credentials-recommended-for-server-to-server","depth":2,"children":[]},{"title":"Use the API Reference playground","slug":"use-the-api-reference-playground","depth":2,"children":[]},{"title":"Call an API","slug":"call-an-api","depth":2,"children":[]},{"title":"Scopes","slug":"scopes","depth":2,"children":[]},{"title":"Generate a new client secret","slug":"generate-a-new-client-secret","depth":2,"children":[]},{"title":"Token lifetime","slug":"token-lifetime","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pay-em-inc","siteName":"PayEm Partner API","title":"Authentication - PayEm Partner API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T14:32:59.852Z","originalFileLocation":"authentication.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=\"Obtain and use OAuth access tokens for the Partner API\">\u003cmeta data-mint-head name=\"application-name\" content=\"PayEm Partner API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_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/pay-em-inc/nOyZJqhz8yyuRhrl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - PayEm Partner API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Obtain and use OAuth access tokens for the Partner API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PayEm Partner API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://pay-em-inc.mintlify.app/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pay-em-inc.mintlify.app/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Obtain+and+use+OAuth+access+tokens+for+the+Partner+API\u0026amp;theme=f1a1766a3ea399d225d32c68\u0026amp;signature=034ae668555e8e69fcdc415848e4cd679be452d814b484211118f0d9941e4d0c\">\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=\"Authentication - PayEm Partner API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Obtain and use OAuth access tokens for the Partner API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pay-em-inc.mintlify.app/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Obtain+and+use+OAuth+access+tokens+for+the+Partner+API\u0026amp;theme=f1a1766a3ea399d225d32c68\u0026amp;signature=034ae668555e8e69fcdc415848e4cd679be452d814b484211118f0d9941e4d0c\">\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/pay-em-inc/nOyZJqhz8yyuRhrl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PayEm Partner API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#542CF1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://pay-em-inc.mintlify.app/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://pay-em-inc.mintlify.app/#organization\",\"name\":\"PayEm Partner API\",\"url\":\"https://pay-em-inc.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pay-em-inc/W9b88VLWDldAc0oG/payem-logo.png?fit=max\u0026auto=format\u0026n=W9b88VLWDldAc0oG\u0026q=85\u0026s=e6f1339fbe4b08eea7567b097c95ca8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://pay-em-inc.mintlify.app#website\",\"name\":\"PayEm Partner API\",\"url\":\"https://pay-em-inc.mintlify.app\",\"publisher\":{\"@id\":\"https://pay-em-inc.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://pay-em-inc.mintlify.app/authentication#webpage\",\"url\":\"https://pay-em-inc.mintlify.app/authentication\",\"name\":\"Authentication\",\"description\":\"Obtain and use OAuth access tokens for the Partner API\",\"dateModified\":\"2026-10-26T14:32:59.852Z\",\"isPartOf\":{\"@id\":\"https://pay-em-inc.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://pay-em-inc.mintlify.app/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://pay-em-inc.mintlify.app/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://pay-em-inc.mintlify.app/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://pay-em-inc.mintlify.app/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://pay-em-inc.mintlify.app/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Obtain and use OAuth access tokens for the Partner API\",\"url\":\"https://pay-em-inc.mintlify.app/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://pay-em-inc.mintlify.app/authentication#webpage\"},\"dateModified\":\"2026-10-26T14:32:59.852Z\",\"publisher\":{\"@id\":\"https://pay-em-inc.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://pay-em-inc.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PayEm Partner API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PayEm Partner API","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Introduction","description":"Build on PayEm with the Partner API","href":"/introduction"},{"title":"Authentication","href":"/authentication"},{"title":"Quickstart","description":"Make your first Partner API call in a few minutes","href":"/quickstart"},{"title":"Pagination","href":"/pagination"}]},{"group":"Core resources","pages":[{"title":"Cards","href":"/guides/cards"},{"title":"Transactions","href":"/guides/transactions"},{"title":"Users \u0026 company","href":"/guides/users-and-company"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/cards/get-cards"}]}]},"title":"Authentication - PayEm Partner API","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}