Choose an exact stablecoin amount to send or an exact fiat amount to receive
Use exact-in when you know how much stablecoin you want to send. Use exact-out when you know how much fiat should reach the bank account. Crossmint calculates the other amount and includes both in the quote.
Exact-in
Enter how much USDC to send. Crossmint calculates the MXN payout.
Exact-out
Enter how much MXN to receive. Crossmint calculates the USDC deposit.
Both modes use Create Order. Set payment.currency to the stablecoin being sent, such as "usdc", and lineItems.currencyLocator to the payout currency, such as "fiat:mxn".Choose the mode with lineItems.executionParameters.mode. Pass executionParameters.amount as a decimal string, such as "300" or "4500.50". The mode determines its currency and allowed precision:
exact-in: the stablecoin amount to send. Use up to the token’s supported decimal places, which is 6 for USDC.
exact-out: the fiat amount to receive. Use up to the currency’s minor unit, which is 2 decimal places for MXN, USD, EUR, and COP. For MXN, "4500.50" is accepted; "4500.505" returns a 400 error.
The payer sends 300 USDC. After the 0.24 USDC fee, 299.76 USDC is converted into 5,061 MXN for the bank account. Fiat payouts are rounded to the currency’s minor unit, which is two decimal places for MXN.
The payout requires 266 USDC, plus a 0.2128 USDC fee. The payer deposits 266.2128 USDC, and the bank account receives 4,500 MXN.Use quote.totalPrice.amount to fund the order. In this mode, the amount in your request is the fiat payout.
Use these three fields to show the user how much they will send, how much they will receive, and the fee. Paths start inside the order object returned by Create Order and Get Order.
quote.totalPrice.amount: stablecoin to send, including the Crossmint fee.
lineItems[].quantity: fiat the bank account will receive, in the payout currency.
lineItems[].quote.charges.fees.amount: the Crossmint fee, in the stablecoin.
quantity is a JSON number; the other amounts are strings. Use quote.totalPrice.amount for the deposit. The per-unit price in charges.unit.amount is rounded, so multiplying it by quantity may give a different total.The prepared transaction represents the deposit in token base units. See the REST API quickstart for how to send it, and the Create Order reference for the full schema.
With exact-in, the fee comes out of the deposit. With exact-out, it is added to the stablecoin needed for the payout. In both cases, the total deposit already includes the Crossmint fee.Network gas is separate from the quoted deposit. The payer wallet pays it in the chain’s native token unless the transaction is sponsored.
The quote locks the exchange rate for about 10 minutes. To keep the quoted amounts, the deposit must be confirmed on-chain before quote.expiresAt. If no deposit arrives in time, the order expires and you create a new order to get a fresh quote. If your flow can take longer, such as waiting for user authorization or KYC, create the order only when the payer is ready to deposit.See Manage Orders for expired quotes, including cases where a deposit is already in flight.
Request and response fields for creating an offramp order.
Manage Orders
Track payouts and handle expired quotes or payment issues.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Crossmint Docs","colors":{"primary":"#36b37e","light":"#87ff8f","dark":"#001d01"},"logo":{"light":"https://mintcdn.com/crossmint/a8gPOTKEuVFcSfC3/logo/crossmint-light.png?fit=max\u0026auto=format\u0026n=a8gPOTKEuVFcSfC3\u0026q=85\u0026s=8c2671e4c8f7da6956e1508bd68c2928","dark":"https://mintcdn.com/crossmint/a8gPOTKEuVFcSfC3/logo/crossmint-dark.png?fit=max\u0026auto=format\u0026n=a8gPOTKEuVFcSfC3\u0026q=85\u0026s=272ecc17664d17b9ff24471758ff80b2"},"favicon":"https://mintcdn.com/crossmint/xq66q9GV6z6jjj95/favicon.png?fit=max\u0026auto=format\u0026n=xq66q9GV6z6jjj95\u0026q=85\u0026s=00fb89ddf6ba5b1022b9307039c08006","api":{"openapi":["api-reference/_open-api/MintingAPIs.json","api-reference/_open-api/AdminAPIs.json","api-reference/_open-api/VerifiableCredentialsAPIs.json","api-reference/_open-api/Wallets.json"],"examples":{"prefill":true}},"background":{"color":{"dark":"#090b0c"}},"navbar":{"links":[{"href":"https://www.crossmint.com/contact","label":"Support"},{"href":"https://staging.crossmint.com/console","label":"Staging Console"}],"primary":{"type":"button","label":"Console","href":"https://www.crossmint.com/console"}},"footer":{"socials":{"website":"https://www.crossmint.com","twitter":"https://twitter.com/crossmint","github":"https://github.com/crossmint"}},"integrations":{"ga4":{"measurementId":"G-CP5EDD6GVT"},"posthog":{"apiKey":"phc_tfgodwfjuO9v3Nw0tIWJNzACoi2opL7X2Ly0Mg2UCTz","apiHost":"https://eu.i.posthog.com","sessionRecording":false}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"crossmint","hasAudioNarration":false,"actualSubdomain":"crossmint","customDomains":["docs.crossmint.com"],"gitSource":{"type":"github","owner":"paella-labs","repo":"crossbit-main","deployBranch":"main","contentDirectory":"apps/crossmint-mintlify-docs/src","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"contextualFeedback":{"allowEmail":true},"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af465d8911eab1428db13c3","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":1094},{"language":"default","tag":"Wallets","count":870},{"language":"default","tag":"Kotlin SDK","count":427},{"language":"default","tag":"Swift SDK","count":237},{"language":"default","tag":"Checkout","count":196},{"language":"default","tag":"Classes","count":182},{"language":"default","tag":"Data Classes","count":182},{"language":"default","tag":"Typescript SDK","count":156},{"language":"default","tag":"Guides","count":134},{"language":"default","tag":"Structs","count":127}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"type":"link","url":"https://www.crossmint.com/contact/sales"}},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".tab-container [data-component-part=\"tabs-list\"]{flex-wrap:wrap;overflow:visible;row-gap:0.25rem}.tab-container [data-component-part=\"tabs-list\"]>li{white-space:nowrap}.nav-dropdown-item,.nav-dropdown-item *{font-weight:500!important;color:rgb(75, 85, 99)!important}.nav-dropdown-item:hover,.nav-dropdown-item:hover *{color:rgb(31, 41, 55)!important}.dark .nav-dropdown-item,.dark .nav-dropdown-item *{color:rgb(156, 163, 175)!important}.dark .nav-dropdown-item:hover,.dark .nav-dropdown-item:hover *{color:rgb(209, 213, 219)!important}"}],"page":{"pagePath":"offramp/guides/send-or-receive-an-exact-amount","slug":"/offramp/guides/send-or-receive-an-exact-amount","pageMetadata":{"title":"Send or Receive an Exact Amount","description":"Choose an exact stablecoin amount to send or an exact fiat amount to receive","href":"/offramp/guides/send-or-receive-an-exact-amount"},"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: \"Choose an exact stablecoin amount to send or an exact fiat amount to receive\"\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`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Columns,Frame,Heading,OptimizedImage}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`exact-in`}),` when you know how much stablecoin you want to send. Use `,_jsx(_components.code,{children:`exact-out`}),` when you know how much fiat should reach the bank account. Crossmint calculates the other amount and includes both in the quote.`]}),`\n`,_jsxs(Columns,{cols:2,children:[_jsxs(`div`,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Exact-in`})}),_jsx(Frame,{type:`simple`,caption:`Enter how much USDC to send. Crossmint calculates the MXN payout.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=677fe65514bb422f8f0da6a68ecff5c8`,alt:`Withdraw screen in exact-in mode: the You send card is highlighted with 300 USDC entered, and the You receive card shows the computed 5,061.29 MXN payout`,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`592`,height:`592`,\"data-path\":`images/offramp/exact-amount/exact-in-you-send-card.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=3629869d89f2155cf00ac3f06bb17630 280w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=ca42c2e5ca96685e1a87bd72c0ecc803 560w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=83afed8bad1dae00c4acd77087946893 840w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=141c2d513c05c4e073afe44c6c282d17 1100w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=80355f7c5cc5fc6cec2e8906cb38a9f3 1650w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-in-you-send-card.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=02b50377bbf2ae3087d50130249276c5 2500w`})})]}),_jsxs(`div`,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Exact-out`})}),_jsx(Frame,{type:`simple`,caption:`Enter how much MXN to receive. Crossmint calculates the USDC deposit.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=5a3ab0b20fbb9feeca64fcae27d1151d`,alt:`Withdraw screen in exact-out mode: the You receive card is highlighted with 4,500 MXN entered, and the You send card shows the computed 266.73 USDC deposit`,\"data-og-width\":`998`,width:`998`,\"data-og-height\":`584`,height:`584`,\"data-path\":`images/offramp/exact-amount/exact-out-you-receive-card.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=628753cadcf303fc94f9acb5497c7690 280w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=b3b44a014c902427392318505c05d8f9 560w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=ad138cd755ec440c041ffc180ea955e4 840w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=302d271a77ce71248a8e6b7491ee2481 1100w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=8181ae8532b06294a7907df59e27c8a1 1650w, https://mintcdn.com/crossmint/GNz5Lg-Hidyy3Bza/images/offramp/exact-amount/exact-out-you-receive-card.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=GNz5Lg-Hidyy3Bza\u0026q=85\u0026s=4e4ee1951447fe8168c6a8525dfc849c 2500w`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before You Start`}),`\n`,_jsxs(_components.p,{children:[`Both modes use `,_jsx(_components.a,{href:`/offramp/api-reference/create-order`,children:`Create Order`}),`. Set `,_jsx(_components.code,{children:`payment.currency`}),` to the stablecoin being sent, such as `,_jsx(_components.code,{children:`\"usdc\"`}),`, and `,_jsx(_components.code,{children:`lineItems.currencyLocator`}),` to the payout currency, such as `,_jsx(_components.code,{children:`\"fiat:mxn\"`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Choose the mode with `,_jsx(_components.code,{children:`lineItems.executionParameters.mode`}),`. Pass `,_jsx(_components.code,{children:`executionParameters.amount`}),` as a decimal string, such as `,_jsx(_components.code,{children:`\"300\"`}),` or `,_jsx(_components.code,{children:`\"4500.50\"`}),`. The mode determines its currency and allowed precision:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`exact-in`}),`: the stablecoin amount to send. Use up to the token’s supported decimal places, which is 6 for USDC.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`exact-out`}),`: the fiat amount to receive. Use up to the currency’s minor unit, which is 2 decimal places for MXN, USD, EUR, and COP. For MXN, `,_jsx(_components.code,{children:`\"4500.50\"`}),` is accepted; `,_jsx(_components.code,{children:`\"4500.505\"`}),` returns a 400 error.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`exact-in-send-an-exact-amount`,children:`Exact-in: Send an Exact Amount`}),`\n`,_jsxs(_components.p,{children:[`To cash out 300 USDC into MXN, use `,_jsx(_components.code,{children:`exact-in`}),` with an amount of `,_jsx(_components.code,{children:`\"300\"`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,highlight:`[11,12]`,numberOfLines:`15`,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:`15`,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:` \"recipient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"paymentMethodId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cpaymentMethodId>\"`}),_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:` \"payment\"`}),_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:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana\"`}),_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:`\"usdc\"`}),_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:` \"payerAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cpayerAddress>\"`})]}),`\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:` \"lineItems\"`}),_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:` \"currencyLocator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fiat:mxn\"`}),_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:` \"executionParameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"exact-in\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"300\"`})]}),`\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`]})})}),`\n`,_jsx(_components.p,{children:`In this example, the quote returns:`}),`\n`,_jsx(CodeBlock,{filename:`Quote excerpt`,highlight:`[6,9,13]`,numberOfLines:`15`,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:`15`,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:` \"lineItems\"`}),_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:` \"quote\"`}),_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:` \"charges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fees\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0.24\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"usdc\"`}),_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 line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5061`})]}),`\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:` \"quote\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"300\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"usdc\"`}),_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`]})})}),`\n`,_jsx(_components.p,{children:`The payer sends 300 USDC. After the 0.24 USDC fee, 299.76 USDC is converted into 5,061 MXN for the bank account. Fiat payouts are rounded to the currency’s minor unit, which is two decimal places for MXN.`}),`\n`,_jsx(Heading,{level:`2`,id:`exact-out-receive-an-exact-amount`,children:`Exact-out: Receive an Exact Amount`}),`\n`,_jsxs(_components.p,{children:[`To have the bank account receive exactly 4,500 MXN, use `,_jsx(_components.code,{children:`exact-out`}),` with an amount of `,_jsx(_components.code,{children:`\"4500\"`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,highlight:`[11,12]`,numberOfLines:`15`,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:`15`,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:` \"recipient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"paymentMethodId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cpaymentMethodId>\"`}),_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:` \"payment\"`}),_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:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana\"`}),_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:`\"usdc\"`}),_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:` \"payerAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cpayerAddress>\"`})]}),`\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:` \"lineItems\"`}),_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:` \"currencyLocator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fiat:mxn\"`}),_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:` \"executionParameters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"exact-out\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4500\"`})]}),`\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`]})})}),`\n`,_jsx(_components.p,{children:`The quote tells you how much USDC to deposit:`}),`\n`,_jsx(CodeBlock,{filename:`Quote excerpt`,highlight:`[6,9,13]`,numberOfLines:`15`,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:`15`,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:` \"lineItems\"`}),_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:` \"quote\"`}),_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:` \"charges\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fees\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0.2128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"usdc\"`}),_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 line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4500`})]}),`\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:` \"quote\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line line-highlight`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"266.2128\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"usdc\"`}),_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`]})})}),`\n`,_jsx(_components.p,{children:`The payout requires 266 USDC, plus a 0.2128 USDC fee. The payer deposits 266.2128 USDC, and the bank account receives 4,500 MXN.`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`quote.totalPrice.amount`}),` to fund the order. In this mode, the `,_jsx(_components.code,{children:`amount`}),` in your request is the fiat payout.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reading-the-quote`,children:`Reading the Quote`}),`\n`,_jsxs(_components.p,{children:[`Use these three fields to show the user how much they will send, how much they will receive, and the fee. Paths start inside the `,_jsx(_components.code,{children:`order`}),` object returned by Create Order and `,_jsx(_components.a,{href:`/offramp/api-reference/get-order`,children:`Get Order`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`quote.totalPrice.amount`}),`: stablecoin to send, including the Crossmint fee.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lineItems[].quantity`}),`: fiat the bank account will receive, in the payout currency.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lineItems[].quote.charges.fees.amount`}),`: the Crossmint fee, in the stablecoin.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`quantity`}),` is a JSON number; the other amounts are strings. Use `,_jsx(_components.code,{children:`quote.totalPrice.amount`}),` for the deposit. The per-unit price in `,_jsx(_components.code,{children:`charges.unit.amount`}),` is rounded, so multiplying it by `,_jsx(_components.code,{children:`quantity`}),` may give a different total.`]}),`\n`,_jsxs(_components.p,{children:[`The prepared transaction represents the deposit in token base units. See the `,_jsx(_components.a,{href:`/offramp/quickstarts/rest-api`,children:`REST API quickstart`}),` for how to send it, and the `,_jsx(_components.a,{href:`/offramp/api-reference/create-order`,children:`Create Order reference`}),` for the full schema.`]}),`\n`,_jsx(Heading,{level:`2`,id:`fees`,children:`Fees`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`exact-in`}),`, the fee comes out of the deposit. With `,_jsx(_components.code,{children:`exact-out`}),`, it is added to the stablecoin needed for the payout. In both cases, the total deposit already includes the Crossmint fee.`]}),`\n`,_jsx(_components.p,{children:`Network gas is separate from the quoted deposit. The payer wallet pays it in the chain’s native token unless the transaction is sponsored.`}),`\n`,_jsx(Heading,{level:`2`,id:`rate-lock`,children:`Rate Lock`}),`\n`,_jsxs(_components.p,{children:[`The quote locks the exchange rate for about 10 minutes. To keep the quoted amounts, the deposit must be confirmed on-chain before `,_jsx(_components.code,{children:`quote.expiresAt`}),`. If no deposit arrives in time, the order expires and you create a new order to get a fresh quote. If your flow can take longer, such as waiting for user authorization or KYC, create the order only when the payer is ready to deposit.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/offramp/guides/manage-orders#troubleshooting`,children:`Manage Orders`}),` for expired quotes, including cases where a deposit is already in flight.`]}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See Also`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Create Order`,icon:`code`,href:`/offramp/api-reference/create-order`,children:_jsx(_components.p,{children:`Request and response fields for creating an offramp order.`})}),_jsx(Card,{title:`Manage Orders`,icon:`list-check`,href:`/offramp/guides/manage-orders`,children:_jsx(_components.p,{children:`Track payouts and handle expired quotes or payment issues.`})})]})]})}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":"Send or Receive an Exact Amount","description":"Choose an exact stablecoin amount to send or an exact fiat amount to receive","href":"/offramp/guides/send-or-receive-an-exact-amount"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before You Start","slug":"before-you-start","depth":2,"children":[]},{"title":"Exact-in: Send an Exact Amount","slug":"exact-in-send-an-exact-amount","depth":2,"children":[]},{"title":"Exact-out: Receive an Exact Amount","slug":"exact-out-receive-an-exact-amount","depth":2,"children":[]},{"title":"Reading the Quote","slug":"reading-the-quote","depth":2,"children":[]},{"title":"Fees","slug":"fees","depth":2,"children":[]},{"title":"Rate Lock","slug":"rate-lock","depth":2,"children":[]},{"title":"See Also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/crossmint/d1c432d03c0c4224/scripts/dd.js","/_mintlify/custom/crossmint/7fc8d54052d3edb0/scripts/hubspot.js"],"subdomain":"crossmint","siteName":"Crossmint Docs","title":"Send or Receive an Exact Amount - Crossmint Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T23:21:36.133Z","originalFileLocation":"offramp/guides/send-or-receive-an-exact-amount.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=\"Choose an exact stablecoin amount to send or an exact fiat amount to receive\">\u003cmeta data-mint-head name=\"application-name\" content=\"Crossmint Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_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/crossmint/-1hhMU0vchFPUD3H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send or Receive an Exact Amount - Crossmint Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Choose an exact stablecoin amount to send or an exact fiat amount to receive\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Crossmint Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://crossmint.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Send+or+Receive+an+Exact+Amount\u0026amp;description=Choose+an+exact+stablecoin+amount+to+send+or+an+exact+fiat+amount+to+receive\u0026amp;theme=b8bba0b38c114479513683ad\u0026amp;signature=497412f311e21b213a11a3109a4f377386d1f198a052dc966d81bee42abfe8b7\">\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=\"Send or Receive an Exact Amount - Crossmint Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Choose an exact stablecoin amount to send or an exact fiat amount to receive\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://crossmint.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Send+or+Receive+an+Exact+Amount\u0026amp;description=Choose+an+exact+stablecoin+amount+to+send+or+an+exact+fiat+amount+to+receive\u0026amp;theme=b8bba0b38c114479513683ad\u0026amp;signature=497412f311e21b213a11a3109a4f377386d1f198a052dc966d81bee42abfe8b7\">\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/crossmint/-1hhMU0vchFPUD3H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Crossmint Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#36b37e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/offramp/guides/send-or-receive-an-exact-amount.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.crossmint.com/#organization\",\"name\":\"Crossmint Docs\",\"url\":\"https://docs.crossmint.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/crossmint/a8gPOTKEuVFcSfC3/logo/crossmint-light.png?fit=max\u0026auto=format\u0026n=a8gPOTKEuVFcSfC3\u0026q=85\u0026s=8c2671e4c8f7da6956e1508bd68c2928\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.crossmint.com#website\",\"name\":\"Crossmint Docs\",\"url\":\"https://docs.crossmint.com\",\"publisher\":{\"@id\":\"https://docs.crossmint.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount#webpage\",\"url\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount\",\"name\":\"Send or Receive an Exact Amount\",\"description\":\"Choose an exact stablecoin amount to send or an exact fiat amount to receive\",\"dateModified\":\"2026-09-10T23:21:36.133Z\",\"isPartOf\":{\"@id\":\"https://docs.crossmint.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.crossmint.com/offramp/guides/ui-customization\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send or Receive an Exact Amount\",\"item\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount#article\",\"headline\":\"Send or Receive an Exact Amount\",\"name\":\"Send or Receive an Exact Amount\",\"description\":\"Choose an exact stablecoin amount to send or an exact fiat amount to receive\",\"url\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crossmint.com/offramp/guides/send-or-receive-an-exact-amount#webpage\"},\"dateModified\":\"2026-09-10T23:21:36.133Z\",\"publisher\":{\"@id\":\"https://docs.crossmint.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.crossmint.com#website\"}}]}\u003c/script>","agentPointerHref":"/offramp/guides/send-or-receive-an-exact-amount.md","siteName":"Crossmint Docs","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/introduction/platform-overview"}]},{"tab":"Wallets","pages":[{"title":"Wallets","href":"/wallets/overview"}]},{"tab":"Identity","pages":[{"title":"Identity","href":"/identity/overview"}]},{"tab":"Stablecoin Orchestration","pages":[{"title":"Stablecoin Orchestration","href":"/stablecoin-orchestration/overview"}]},{"tab":"Checkout","pages":[{"title":"Checkout","href":"/payments/introduction"}]},{"tab":"Onramp","pages":[{"title":"Onramp","href":"/onramp/overview"}]},{"tab":"Offramp","groups":[{"group":"Introduction","pages":[{"title":"Overview","href":"/offramp/overview"},{"title":"Countries and Rails","sidebarTitle":"Countries \u0026 Rails","href":"/offramp/supported-countries-and-rails"}]},{"group":"Quickstarts ⚡","pages":[{"title":"REST API Quickstart","sidebarTitle":"REST API","href":"/offramp/quickstarts/rest-api"},{"title":"React Quickstart","sidebarTitle":"React","href":"/offramp/quickstarts/react"},{"title":"React Native Quickstart","sidebarTitle":"React Native","href":"/offramp/quickstarts/react-native"}]},{"group":"Concepts","pages":[{"title":"How It Works","href":"/offramp/concepts/how-it-works"},{"title":"KYC \u0026 Compliance","href":"/offramp/concepts/kyc-and-compliance"}]},{"group":"Guides","pages":[{"title":"UI Customization","href":"/offramp/guides/ui-customization"},{"title":"Handle Offramp Events and Errors","mode":"wide","href":"/offramp/guides/handle-events-and-errors"},{"title":"Import User KYC Data","href":"/offramp/guides/import-user-kyc-data"},{"title":"Manage Payment Methods","href":"/offramp/guides/collect-bank-accounts"},{"title":"Get an Offramp Quote","sidebarTitle":"Get a Quote","description":"Estimate the fiat payout and fees before placing an offramp order","href":"/offramp/guides/preview-a-quote"},{"title":"Send or Receive an Exact Amount","href":"/offramp/guides/send-or-receive-an-exact-amount"},{"title":"Offramp Orders on Solana","description":"Sign and broadcast the deposit transaction for an existing Solana offramp order.","href":"/offramp/guides/sign-deposit-solana"},{"title":"Manage Orders","href":"/offramp/guides/manage-orders"},{"title":"Institution IDs","mode":"wide","href":"/offramp/guides/institution-ids"},{"title":"Test a Failed Payout","href":"/offramp/guides/test-payout-failures"},{"title":"Launch in Production","href":"/offramp/guides/going-to-production"}]},{"group":"API Reference","pages":[{"group":"REST","icon":"brackets-curly","pages":[{"group":"Orders","pages":[{"title":"Create Order","openapi":"api-reference/_open-api/Orders.json POST /2022-06-09/orders","href":"/offramp/api-reference/create-order"},{"title":"Submit Deposit","openapi":"api-reference/_open-api/Orders.json POST /2022-06-09/orders/{orderId}/payment","href":"/offramp/api-reference/process-payment"},{"title":"Get Order","openapi":"api-reference/_open-api/Orders.json GET /2022-06-09/orders/{orderId}","href":"/offramp/api-reference/get-order"},{"title":"List Orders","openapi":"api-reference/_open-api/Orders.json GET /2022-06-09/orders","href":"/offramp/api-reference/list-orders"}]},{"group":"Offramp Sessions","pages":[{"title":"Create Offramp Session","openapi":"api-reference/_open-api/Orders.json POST /unstable/offramp-sessions","href":"/offramp/api-reference/create-offramp-session"}]},{"group":"Payment Methods","pages":[{"title":"The Payment Method Object","href":"/offramp/api-reference/payment-methods/payment-method-object"},{"title":"Create Payment Method","openapi":"api-reference/_open-api/PaymentMethods.json POST /2026-09-16/payment-methods","href":"/offramp/api-reference/payment-methods/create-payment-method"},{"title":"List Payment Methods by User","openapi":"api-reference/_open-api/PaymentMethods.json GET /2026-09-16/payment-methods","href":"/offramp/api-reference/payment-methods/list-payment-methods"},{"title":"Retrieve a Payment Method","openapi":"api-reference/_open-api/PaymentMethods.json GET /2026-09-16/payment-methods/{paymentMethodId}","href":"/offramp/api-reference/payment-methods/get-payment-method"},{"title":"Update a Payment Method","openapi":"api-reference/_open-api/PaymentMethods.json PATCH /2026-09-16/payment-methods/{paymentMethodId}","href":"/offramp/api-reference/payment-methods/update-payment-method"},{"title":"Delete a Payment Method","openapi":"api-reference/_open-api/PaymentMethods.json DELETE /2026-09-16/payment-methods/{paymentMethodId}","href":"/offramp/api-reference/payment-methods/delete-payment-method"},{"title":"List Bank Institutions","openapi":"api-reference/_open-api/PaymentMethods.json GET /2026-09-16/payment-methods/institutions","href":"/offramp/api-reference/payment-methods/list-institutions"}]}]},{"group":"React SDK","icon":"/images/icons/react.svg","pages":[{"title":"Get Started","href":"/sdk-reference/offramp/react/get-started"},{"title":"Providers","href":"/sdk-reference/offramp/react/providers"},{"title":"Components","href":"/sdk-reference/offramp/react/components"},{"title":"Types and Utilities","href":"/sdk-reference/offramp/react/types"}]},{"group":"React Native SDK","icon":"/images/icons/react-native.svg","pages":[{"title":"Get Started","href":"/sdk-reference/offramp/react-native/get-started"},{"title":"Providers","href":"/sdk-reference/offramp/react-native/providers"},{"title":"Components","href":"/sdk-reference/offramp/react-native/components"},{"title":"Types and Utilities","href":"/sdk-reference/offramp/react-native/types"}]}]}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/agents/overview"}]},{"tab":"Others","menu":[{"item":"Tokenization","pages":[{"title":"Tokenization","href":"/tokenization/introduction"}]}],"pages":[{"title":"Others","href":"/tokenization/introduction"}]}]},"basePath":"","title":"Send or Receive an Exact Amount - Crossmint Docs","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-u3J1-UOn.js","DynamicMarkdown-B-f2cqXQ.js","zoom-image-lightbox-DTFzvaXJ.js","lightbox-handle-r17bVUz3.js"]}