How Quidkey represents money: integer minor units and ISO 4217 currencies
The Payment API represents money in a single, consistent way: amounts are integer minor units, and currencies are ISO 4217 codes. Getting this right is the single most important detail when creating a payment.
On the redirect, embedded, and hosted checkout endpoints, amount is an integer in the currency’s smallest unit: pence for GBP, cents for EUR/USD. For example, 1999 = £19.99.
The 100× footgun. Sending 20 does not mean £20; it means £0.20. To charge £20.00, send 2000. A decimal value such as 19.99 is rejected with a 400 validation error. Always multiply major units by 100 (for two-decimal currencies) before sending.
To convert a display price to minor units, multiply by 100 and round to an integer:
# £19.99 is sent as the integer 1999curl -X POST 'https://core.quidkey.com/api/v1/payment-requests:redirect' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "amount": 1999, "currency": "GBP", "locale": "en-GB" }'
Webhook payloads carry the same minor-unit value, but as a JSON string: data.object.amount (and the numeric fees fields) arrive as a stringified integer such as "1999", not the number 1999. Parse with Number(...) before doing arithmetic, and divide by 100 only at the presentation layer. See Webhooks.
The legacy POST /api/v1/payment-requests (v1) endpoint takes a decimal amount in major units ("19.99" for £19.99), not minor units. It is retained for backward compatibility only. New integrations should use the minor-unit endpoints (redirect, embedded, and hosted checkout).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Quidkey Docs","colors":{"primary":"#3A81FF","light":"#CEDFFF","dark":"#3A81FF"},"logo":{"light":"https://mintcdn.com/quidkey/7NkUiKnWcUGlDJSA/logo/light.svg?fit=max\u0026auto=format\u0026n=7NkUiKnWcUGlDJSA\u0026q=85\u0026s=1067f2a5004e7edba3ebd43a16c921cc","dark":"https://mintcdn.com/quidkey/7NkUiKnWcUGlDJSA/logo/dark.svg?fit=max\u0026auto=format\u0026n=7NkUiKnWcUGlDJSA\u0026q=85\u0026s=2b8257584b646c3ad15e653130392022"},"favicon":"https://storage.googleapis.com/quidkey-resources-public/quidkey-logo-fav.png","api":{"playground":{"display":"interactive","proxy":true}},"navbar":{"links":[{"href":"mailto:rabea@quidkey.com","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://console.quidkey.com"}},"footer":{"socials":{"x":"https://x.com/quidkeyHQ","github":"https://github.com/quidkey","linkedin":"https://linkedin.com/company/quidkey"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://quidkey.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quidkey","hasAudioNarration":false,"actualSubdomain":"quidkey","customDomains":["docs.quidkey.com"],"gitSource":{"type":"github","owner":"banqzinc","repo":"quidkey-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb4128b21018c2553e2a3b","collectionId":"b0313419-cbf9-46ab-90c3-dc4cc758e8ab","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb4128b21018c2553e2a3b"},"entitlements":{},"buildId":"6aee6f35f538f2c21575de14","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Payment API","count":24},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"API reference","count":13},{"language":"default","tag":"Core concepts","count":6},{"language":"default","tag":"Payment Links","count":6},{"language":"default","tag":"API Reference","count":4},{"language":"default","tag":"Embedded Flow (with Stripe)","count":4},{"language":"default","tag":"Getting started","count":3},{"language":"default","tag":"Accept a payment","count":3},{"language":"default","tag":"Get started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/payment-api/concepts/amounts-and-currencies","slug":"/guides/payment-api/concepts/amounts-and-currencies","pageMetadata":{"title":"Amounts \u0026 Currencies","description":"How Quidkey represents money: integer minor units and ISO 4217 currencies","icon":"coins","href":"/guides/payment-api/concepts/amounts-and-currencies"},"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: \"How Quidkey represents money: integer minor units and ISO 4217 currencies\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Heading,Note,Table,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The Payment API represents money in a single, consistent way: amounts are `,_jsx(_components.strong,{children:`integer minor units`}),`, and currencies are `,_jsx(_components.strong,{children:`ISO 4217`}),` codes. Getting this right is the single most important detail when creating a payment.`]}),`\n`,_jsx(Heading,{level:`2`,id:`amounts-are-integer-minor-units`,children:`Amounts Are Integer Minor Units`}),`\n`,_jsxs(_components.p,{children:[`On the redirect, embedded, and hosted checkout endpoints, `,_jsx(_components.code,{children:`amount`}),` is an `,_jsx(_components.strong,{children:`integer`}),` in the currency’s smallest unit: pence for GBP, cents for EUR/USD. For example, `,_jsx(_components.code,{children:`1999`}),` = £19.99.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Display amount`}),_jsx(_components.th,{children:`Currency`}),_jsxs(_components.th,{children:[_jsx(_components.code,{children:`amount`}),` to send`]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`£19.99`}),_jsx(_components.td,{children:`GBP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1999`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`£0.20`}),_jsx(_components.td,{children:`GBP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`20`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`€100.00`}),_jsx(_components.td,{children:`EUR`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10000`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`$5.00`}),_jsx(_components.td,{children:`USD`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1999`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GBP\"`}),_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:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en-GB\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The 100× footgun.`}),` Sending `,_jsx(_components.code,{children:`20`}),` does `,_jsx(_components.strong,{children:`not`}),` mean £20; it means `,_jsx(_components.strong,{children:`£0.20`}),`. To charge £20.00, send `,_jsx(_components.code,{children:`2000`}),`. A decimal value such as `,_jsx(_components.code,{children:`19.99`}),` is rejected with a `,_jsx(_components.code,{children:`400`}),` validation error. Always multiply major units by 100 (for two-decimal currencies) before sending.`]})}),`\n`,_jsx(_components.p,{children:`To convert a display price to minor units, multiply by 100 and round to an integer:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`2`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// £19.99 -> 1999`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`round`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`19.99`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 1999`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`2`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# £19.99 -> 1999`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`amount `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` round`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`19.99`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 1999`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,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:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# £19.99 is sent as the integer 1999`})}),`\n`,_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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://core.quidkey.com/api/v1/payment-requests:redirect'`}),_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 YOUR_ACCESS_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"amount\": 1999, \"currency\": \"GBP\", \"locale\": \"en-GB\" }'`})]}),`\n`]})})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Webhook payloads carry the same minor-unit `,_jsx(_components.strong,{children:`value`}),`, but as a `,_jsx(_components.strong,{children:`JSON string`}),`: `,_jsx(_components.code,{children:`data.object.amount`}),` (and the numeric `,_jsx(_components.code,{children:`fees`}),` fields) arrive as a stringified integer such as `,_jsx(_components.code,{children:`\"1999\"`}),`, not the number `,_jsx(_components.code,{children:`1999`}),`. Parse with `,_jsx(_components.code,{children:`Number(...)`}),` before doing arithmetic, and divide by 100 only at the presentation layer. See `,_jsx(_components.a,{href:`/guides/payment-api/concepts/webhooks`,children:`Webhooks`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`currencies-are-iso-4217`,children:`Currencies Are ISO 4217`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`currency`}),` field is an ISO 4217 currency code, for example `,_jsx(_components.code,{children:`GBP`}),`, `,_jsx(_components.code,{children:`EUR`}),`, or `,_jsx(_components.code,{children:`USD`}),`. The currency you send determines how `,_jsx(_components.code,{children:`amount`}),` is interpreted.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`There is `,_jsx(_components.strong,{children:`no FX (currency conversion)`}),` on the redirect payment path. The payment is created and settled in the currency you specify.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`legacy-decimal-endpoint`,children:`Legacy Decimal Endpoint`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The legacy `,_jsx(_components.code,{children:`POST /api/v1/payment-requests`}),` (v1) endpoint takes a `,_jsx(_components.strong,{children:`decimal`}),` amount in `,_jsx(_components.strong,{children:`major`}),` units (`,_jsx(_components.code,{children:`\"19.99\"`}),` for £19.99), not minor units. It is retained for backward compatibility only. `,_jsx(_components.strong,{children:`New integrations should use the minor-unit endpoints`}),` (`,_jsx(_components.a,{href:`/guides/payment-api/accept-a-payment/redirect`,children:`redirect`}),`, `,_jsx(_components.a,{href:`/guides/payment-api/accept-a-payment/embedded`,children:`embedded`}),`, and `,_jsx(_components.a,{href:`/guides/payment-api/accept-a-payment/hosted-checkout`,children:`hosted checkout`}),`).`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Amount format`}),_jsx(_components.th,{children:`Example for £19.99`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /api/v1/payment-requests:redirect`})}),_jsx(_components.td,{children:`Integer minor units`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1999`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Embedded / hosted checkout`}),_jsx(_components.td,{children:`Integer minor units`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1999`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /api/v1/payment-requests`}),` (legacy v1)`]}),_jsx(_components.td,{children:`Decimal major units`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"19.99\"`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Accept a Payment (Redirect)`,icon:`arrow-right-arrow-left`,href:`/guides/payment-api/accept-a-payment/redirect`,children:_jsx(_components.p,{children:`Create a payment with minor-unit amounts`})}),_jsx(Card,{title:`Errors`,icon:`triangle-exclamation`,href:`/guides/payment-api/concepts/errors`,children:_jsx(_components.p,{children:`Validation errors from bad amounts`})}),_jsx(Card,{title:`Webhooks`,icon:`webhook`,href:`/guides/payment-api/concepts/webhooks`,children:_jsx(_components.p,{children:`Amounts in webhook payloads`})}),_jsx(Card,{title:`Testing`,icon:`flask`,href:`/guides/payment-api/concepts/testing`,children:_jsx(_components.p,{children:`Try payments in the sandbox`})})]})]})}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":"Amounts \u0026 Currencies","description":"How Quidkey represents money: integer minor units and ISO 4217 currencies","icon":"coins","href":"/guides/payment-api/concepts/amounts-and-currencies"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Amounts Are Integer Minor Units","slug":"amounts-are-integer-minor-units","depth":2,"children":[]},{"title":"Currencies Are ISO 4217","slug":"currencies-are-iso-4217","depth":2,"children":[]},{"title":"Legacy Decimal Endpoint","slug":"legacy-decimal-endpoint","depth":2,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"quidkey","siteName":"Quidkey Docs","title":"Amounts \u0026 Currencies - Quidkey Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-17T06:13:18.863Z","originalFileLocation":"guides/payment-api/concepts/amounts-and-currencies.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=\"How Quidkey represents money: integer minor units and ISO 4217 currencies\">\u003cmeta data-mint-head name=\"application-name\" content=\"Quidkey Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://storage.googleapis.com/quidkey-resources-public/quidkey-logo-fav.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://storage.googleapis.com/quidkey-resources-public/quidkey-logo-fav.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://storage.googleapis.com/quidkey-resources-public/quidkey-logo-fav.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://storage.googleapis.com/quidkey-resources-public/quidkey-logo-fav.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Amounts \u0026amp; Currencies - Quidkey Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How Quidkey represents money: integer minor units and ISO 4217 currencies\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Quidkey Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://quidkey.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Amounts+%26+Currencies\u0026amp;description=How+Quidkey+represents+money%3A+integer+minor+units+and+ISO+4217+currencies\u0026amp;theme=6ebdeb000b14436295b343ed\u0026amp;signature=ac52b4c20976dae6e682faa1b263fce170feff6ff18671026f390087f8ceeb5f\">\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=\"Amounts \u0026amp; Currencies - Quidkey Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How Quidkey represents money: integer minor units and ISO 4217 currencies\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://quidkey.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Amounts+%26+Currencies\u0026amp;description=How+Quidkey+represents+money%3A+integer+minor+units+and+ISO+4217+currencies\u0026amp;theme=6ebdeb000b14436295b343ed\u0026amp;signature=ac52b4c20976dae6e682faa1b263fce170feff6ff18671026f390087f8ceeb5f\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/quidkey/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Quidkey Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3A81FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/payment-api/concepts/amounts-and-currencies.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.quidkey.com/#organization\",\"name\":\"Quidkey Docs\",\"url\":\"https://docs.quidkey.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/quidkey/7NkUiKnWcUGlDJSA/logo/light.svg?fit=max\u0026auto=format\u0026n=7NkUiKnWcUGlDJSA\u0026q=85\u0026s=1067f2a5004e7edba3ebd43a16c921cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.quidkey.com#website\",\"name\":\"Quidkey Docs\",\"url\":\"https://docs.quidkey.com\",\"publisher\":{\"@id\":\"https://docs.quidkey.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies#webpage\",\"url\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies\",\"name\":\"Amounts \u0026 Currencies\",\"description\":\"How Quidkey represents money: integer minor units and ISO 4217 currencies\",\"dateModified\":\"2026-06-17T06:13:18.863Z\",\"isPartOf\":{\"@id\":\"https://docs.quidkey.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://docs.quidkey.com/guides/payment-api/concepts/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Amounts \u0026 Currencies\",\"item\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies#article\",\"headline\":\"Amounts \u0026 Currencies\",\"name\":\"Amounts \u0026 Currencies\",\"description\":\"How Quidkey represents money: integer minor units and ISO 4217 currencies\",\"url\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies\",\"mainEntityOfPage\":{\"@id\":\"https://docs.quidkey.com/guides/payment-api/concepts/amounts-and-currencies#webpage\"},\"dateModified\":\"2026-06-17T06:13:18.863Z\",\"publisher\":{\"@id\":\"https://docs.quidkey.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.quidkey.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Quidkey Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Quidkey Docs","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://quidkey.com/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Payment API","groups":[{"group":"Get started","pages":[{"title":"Payment API","icon":"money-bill-transfer","href":"/guides/payment-api/overview"},{"title":"Quickstart","icon":"rocket","href":"/guides/payment-api/quickstart"}]},{"group":"Core concepts","pages":[{"title":"Authentication","icon":"key","href":"/guides/payment-api/concepts/authentication"},{"title":"Idempotency","icon":"fingerprint","href":"/guides/payment-api/concepts/idempotency"},{"title":"Errors","icon":"triangle-exclamation","href":"/guides/payment-api/concepts/errors"},{"title":"Webhooks","icon":"webhook","href":"/guides/payment-api/concepts/webhooks"},{"title":"Testing","description":"Run payments against the sandbox without moving real money","icon":"flask","href":"/guides/payment-api/concepts/testing"},{"title":"Amounts \u0026 Currencies","icon":"coins","href":"/guides/payment-api/concepts/amounts-and-currencies"}]},{"group":"Accept a payment","pages":[{"title":"Redirect (Pay by Bank)","description":"Create a payment and redirect the buyer to a Quidkey-hosted bank page","icon":"arrow-up-right-from-square","href":"/guides/payment-api/accept-a-payment/redirect"},{"title":"Embedded (with Stripe)","icon":"credit-card","href":"/guides/payment-api/accept-a-payment/embedded"},{"title":"Hosted Checkout","icon":"link","href":"/guides/payment-api/accept-a-payment/hosted-checkout"}]},{"group":"API reference","pages":[{"title":"Issue a new access token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/oauth2/token","href":"/api-reference/auth/issue-a-new-access-token"},{"title":"Refresh an existing access token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/oauth2/refresh","href":"/api-reference/auth/refresh-an-existing-access-token"},{"title":"Create a payment request via the redirect (Pay by Bank) flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/payment-requests:redirect","href":"/api-reference/payments/create-a-payment-request-via-the-redirect-pay-by-bank-flow"},{"title":"Retrieve the curated top banks for a market. `country` selects the market; optional `currency` filters further; `limit` caps the result count. Public and cacheable at the market level.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/banks/top","href":"/api-reference/banks/retrieve-the-curated-top-banks-for-a-market-`country`-selects-the-market;-optional-`currency`-filters-further;-`limit`-caps-the-result-count-public-and-cacheable-at-the-market-level"},{"title":"Create a payment request and return a payment_token for iframe flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/embedded/payment-requests","href":"/api-reference/embedded/create-a-payment-request-and-return-a-payment_token-for-iframe-flow"},{"title":"Update an embedded payment request (amount and/or rewards) before payment initiation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /api/v1/embedded/payment-requests","href":"/api-reference/embedded/update-an-embedded-payment-request-amount-andor-rewards-before-payment-initiation"},{"title":"Create a new payment link (Partner or Merchant authentication)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/payment-links","href":"/api-reference/payment-links/create-a-new-payment-link-partner-or-merchant-authentication"},{"title":"Get payment link details by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/payment-links/{id}","href":"/api-reference/payment-links/get-payment-link-details-by-id"},{"title":"Check the status of one of your payment requests by id. Documented fallback for missed webhooks.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/payment-requests/{paymentRequestId}/status","href":"/api-reference/payments/check-the-status-of-one-of-your-payment-requests-by-id-documented-fallback-for-missed-webhooks"},{"title":"List account balances","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v1/balances","href":"/api-reference/balances/list-account-balances"},{"title":"Register or update a merchant webhook URL","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/webhooks","href":"/api-reference/webhook/register-or-update-a-merchant-webhook-url"},{"title":"Generate a webhook signing secret for the authenticated merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/webhooks/secret","href":"/api-reference/webhook/generate-a-webhook-signing-secret-for-the-authenticated-merchant"},{"title":"Revoke the current webhook signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v1/webhooks/secret/revoke","href":"/api-reference/webhook/revoke-the-current-webhook-signing-secret"}]}]}]},"basePath":"","title":"Amounts \u0026 Currencies - Quidkey Docs","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}