1:I["8f048adc2ca3",[],"StyleSheetProvider",1] 2:I["911c8e14a321",[],"RevpressProvider",1] 3:I["b0b3943575f9",[],"Link",1] d:I["98d563c3c055",[],"ToastProvider",1] e:I["9ab2c8c971c4",[],"LayoutTopNav",1] f:I["3c81c6443917",[],"LayoutMenu",1] 10:I["98d563c3c055",[],"Tag",1] 11:I["98d563c3c055",[],"Action",1] 13:I["e7f2352d5acc",[],"ApiAuthentication",1] 15:I["9083c63ad443",[],"CopyAnchor",1] 16:I["741b00e3790d",[],"AIToolbar",1] 49:I["d4c6751a9c52",[],"HashObserver",1] 4a:I["98d563c3c055",[],"ToastContainer",1] :HL["/_assets/request-D65efmQn.css","stylesheet"] :HL["https://storage.googleapis.com/revolut-prod-apps_cdn/Brand/Retail/Logos/Wordmark/Revolut_Black.svg","image"] :HL["https://storage.googleapis.com/revolut-prod-apps_cdn/Brand/Retail/Logos/Wordmark/Revolut_White.svg","image"] 0:{"root":["$","html",null,{"suppressHydrationWarning":true,"lang":"en","data-feature-web-density":"true","data-banner-id":"$undefined","children":[["$","head",null,{"children":[[["$","meta",null,{"charSet":"utf-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta",null,{"name":"color-scheme","content":"light dark"}],["$","meta",null,{"name":"generator","content":"Revpress v0.8.0"}],["$","meta",null,{"property":"og:site_name","content":"Developer"}],["$","meta",null,{"property":"og:type","content":"website"}]],[["$","link","css:/_assets/request-D65efmQn.css",{"rel":"stylesheet","precedence":"vite-rsc/importer-resources","href":"/_assets/request-D65efmQn.css","data-rsc-css-href":"/_assets/request-D65efmQn.css"}],"$undefined"],["$","script",null,{"src":"/_assets/theme-init-add2a6d7.js"}],[["$","link",null,{"rel":"apple-touch-icon","sizes":"180x180","href":"/_assets/favicons/apple-touch-icon.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"32x32","href":"/_assets/favicons/favicon-32x32.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"16x16","href":"/_assets/favicons/favicon-16x16.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"192x192","href":"/_assets/favicons/android-chrome-192x192.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"512x512","href":"/_assets/favicons/android-chrome-512x512.png"}],["$","link",null,{"rel":"shortcut icon","href":"/_assets/favicons/favicon.ico"}]]]}],["$","body",null,{"className":"pjjwra0","children":["$","$L1",null,{"children":["$","$L2",null,{"nav":[{"item":{"id":"Guides","title":"Guides","items":[{"id":"/docs/guides/merchant/introduction","title":"Merchant","use":"$3","to":"/docs/guides/merchant/introduction","scope":"/docs/guides/merchant","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/introduction","title":"Accept Revolut Pay payments","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/introduction","title":"Accept card payments","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/introduction","title":"Accept Apple Pay and Google Pay payments","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/introduction","title":"Accept direct bank payments","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/introduction","title":"Accept payments with Revolut Checkout","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/introduction","title":"Accept payments via Hosted Checkout Page","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/introduction","title":"Accept payments via SEPA Direct Debit","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/introduction","title":"Plugins and integrations","use":"$3","to":"/docs/guides/merchant/accept-payments/no-code/plugins/introduction","scope":"/docs/guides/merchant"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/introduction","title":"In-person payments","use":"$3","to":"/docs/guides/merchant/accept-payments/in-person-payments/introduction","scope":"/docs/guides/merchant"}]},{"id":"/docs/guides/manage-accounts/introduction","title":"Business","use":"$3","to":"/docs/guides/manage-accounts/introduction","scope":"/docs/guides/manage-accounts","items":[{"id":"/docs/guides/manage-accounts/transfers/send-money","title":"Send money","use":"$3","to":"/docs/guides/manage-accounts/transfers/send-money","scope":"/docs/guides/manage-accounts"},{"id":"/docs/guides/manage-accounts/accounts-and-transactions/manage-your-accounts","title":"Manage your money","use":"$3","to":"/docs/guides/manage-accounts/accounts-and-transactions/manage-your-accounts","scope":"/docs/guides/manage-accounts"},{"id":"/docs/guides/manage-accounts/exchange-money","title":"Exchange currency","use":"$3","to":"/docs/guides/manage-accounts/exchange-money","scope":"/docs/guides/manage-accounts"},{"id":"/docs/guides/manage-accounts/cards/manage-cards","title":"Manage cards","use":"$3","to":"/docs/guides/manage-accounts/cards/manage-cards","scope":"/docs/guides/manage-accounts"},{"id":"/docs/guides/manage-accounts/teams/manage-team-members","title":"Manage your team","use":"$3","to":"/docs/guides/manage-accounts/teams/manage-team-members","scope":"/docs/guides/manage-accounts"}]},{"id":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/introduction","title":"Open Banking","use":"$3","to":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/introduction","scope":"/docs/guides/build-banking-apps","items":[{"id":"/docs/guides/build-banking-apps/tutorials/initiate-your-first-payment","title":"Make payments","use":"$3","to":"/docs/guides/build-banking-apps/tutorials/initiate-your-first-payment","scope":"/docs/guides/build-banking-apps"},{"id":"/docs/guides/build-banking-apps/tutorials/get-account-and-transaction-information","title":"Get account information","use":"$3","to":"/docs/guides/build-banking-apps/tutorials/get-account-and-transaction-information","scope":"/docs/guides/build-banking-apps"}]},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/introduction-to-revolut-ramp","title":"Crypto Ramp","use":"$3","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/introduction-to-revolut-ramp","scope":"/docs/guides/crypto-ramp","items":[{"id":"/docs/guides/crypto-ramp/get-started/integrate-with-revolut-ramp","title":"Integrate with Revolut Ramp","use":"$3","to":"/docs/guides/crypto-ramp/get-started/integrate-with-revolut-ramp","scope":"/docs/guides/crypto-ramp"}]},{"id":"/docs/guides/revolut-wallet/introduction","title":"Revolut Wallet","use":"$3","to":"/docs/guides/revolut-wallet/introduction","scope":"/docs/guides/revolut-wallet","items":[{"id":"/docs/guides/revolut-wallet/get-started","title":"Get started","use":"$3","to":"/docs/guides/revolut-wallet/get-started","scope":"/docs/guides/revolut-wallet"},{"id":"/docs/guides/revolut-wallet/operations/create-pass","title":"Create a pass","use":"$3","to":"/docs/guides/revolut-wallet/operations/create-pass","scope":"/docs/guides/revolut-wallet"},{"id":"/docs/guides/revolut-wallet/operations/update-pass","title":"Update a pass","use":"$3","to":"/docs/guides/revolut-wallet/operations/update-pass","scope":"/docs/guides/revolut-wallet"},{"id":"/docs/guides/revolut-wallet/operations/transaction-results","title":"Transaction results","use":"$3","to":"/docs/guides/revolut-wallet/operations/transaction-results","scope":"/docs/guides/revolut-wallet"}]}]}},{"item":{"id":"APIs","title":"APIs","items":[{"id":"/docs/api/merchant","title":"Merchant API","use":"$3","to":"/docs/api/merchant","items":[{"id":"/docs/api/merchant#tag-orders","title":"Orders","use":"$3","to":"/docs/api/merchant#tag-orders"},{"id":"/docs/api/merchant#tag-customers","title":"Customers","use":"$3","to":"/docs/api/merchant#tag-customers"},{"id":"/docs/api/merchant#tag-payments","title":"Payments","use":"$3","to":"/docs/api/merchant#tag-payments"},{"id":"/docs/api/merchant#tag-subscriptions","title":"Subscriptions","use":"$3","to":"/docs/api/merchant#tag-subscriptions"},{"id":"/docs/api/merchant#tag-payouts","title":"Payouts","use":"$3","to":"/docs/api/merchant#tag-payouts"},{"id":"/docs/api/merchant#tag-disputes","title":"Disputes","use":"$3","to":"/docs/api/merchant#tag-disputes"},{"id":"/docs/api/merchant#tag-report-runs","title":"Report runs","use":"$3","to":"/docs/api/merchant#tag-report-runs"},{"id":"/docs/api/merchant#tag-webhooks","title":"Webhooks","use":"$3","to":"/docs/api/merchant#tag-webhooks"},{"id":"/docs/api/merchant#tag-locations","title":"Locations","use":"$3","to":"/docs/api/merchant#tag-locations"}]},{"id":"/docs/api/business","title":"Business API","use":"$3","to":"/docs/api/business","items":[{"id":"/docs/api/business#tag-accounting","title":"Accounting settings","use":"$3","to":"/docs/api/business#tag-accounting"},{"id":"/docs/api/business#tag-accounts","title":"Accounts","use":"$3","to":"/docs/api/business#tag-accounts"},{"id":"/docs/api/business#tag-cards","title":"Cards","use":"$3","to":"/docs/api/business#tag-cards"},{"id":"/docs/api/business#tag-counterparties","title":"Counterparties","use":"$3","to":"/docs/api/business#tag-counterparties"},{"id":"/docs/api/business#tag-expenses","title":"Expenses","use":"$3","to":"/docs/api/business#tag-expenses"},{"id":"/docs/api/business#tag-foreign-exchange","title":"Foreign exchange","use":"$3","to":"/docs/api/business#tag-foreign-exchange"},{"id":"/docs/api/business#tag-payment-drafts","title":"Payment drafts","use":"$3","to":"/docs/api/business#tag-payment-drafts"},{"id":"/docs/api/business#tag-payout-links","title":"Payout links","use":"$3","to":"/docs/api/business#tag-payout-links"},{"id":"/docs/api/business#tag-team-members","title":"Team members","use":"$3","to":"/docs/api/business#tag-team-members"},{"id":"/docs/api/business#tag-transactions","title":"Transactions","use":"$3","to":"/docs/api/business#tag-transactions"},{"id":"/docs/api/business#tag-transfers","title":"Transfers","use":"$3","to":"/docs/api/business#tag-transfers"},{"id":"/docs/api/business#tag-webhooks-v2","title":"Webhooks","use":"$3","to":"/docs/api/business#tag-webhooks-v2"}]},{"id":"/docs/api/open-banking","title":"Open Banking API","use":"$3","to":"/docs/api/open-banking","items":[{"id":"/docs/api/open-banking#tag-accounts","title":"Accounts","use":"$3","to":"/docs/api/open-banking#tag-accounts"},{"id":"/docs/api/open-banking#tag-applications","title":"Applications","use":"$3","to":"/docs/api/open-banking#tag-applications"},{"id":"/docs/api/open-banking#tag-domestic-payment","title":"Payments","use":"$3","to":"/docs/api/open-banking#tag-domestic-payment"},{"id":"/docs/api/open-banking#tag-transactions","title":"Transactions","use":"$3","to":"/docs/api/open-banking#tag-transactions"}]},{"id":"/docs/api/crypto-ramp","title":"Crypto Ramp API","use":"$3","to":"/docs/api/crypto-ramp","items":[{"id":"/docs/api/crypto-ramp#tag-partners","title":"Partners","use":"$3","to":"/docs/api/crypto-ramp#tag-partners"},{"id":"/docs/api/crypto-ramp#tag-webhooks","title":"Webhooks","use":"$3","to":"/docs/api/crypto-ramp#tag-webhooks"}]},{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","title":"Crypto Exchange APIs","use":"$3","to":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","scope":"/docs/guides/exchange-fix-api","items":[{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","title":"Crypto Exchange FIX API","use":"$3","to":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","scope":"/docs/guides/exchange-fix-api"},{"id":"/docs/api/revolut-x-crypto-exchange","title":"Crypto Exchange REST API","use":"$3","to":"/docs/api/revolut-x-crypto-exchange"}]},{"id":"/docs/api/revolut-wallet-partner","title":"Revolut Wallet APIs","use":"$3","to":"/docs/api/revolut-wallet-partner","items":[{"id":"/docs/api/revolut-wallet-partner","title":"Partner API","use":"$3","to":"/docs/api/revolut-wallet-partner"},{"id":"/docs/api/revolut-wallet-callbacks","title":"Partner callbacks API","use":"$3","to":"/docs/api/revolut-wallet-callbacks"}]}]}},{"item":{"id":"SDKs","title":"SDKs","items":[{"id":"/docs/sdks/merchant-web-sdk/introduction","title":"Merchant Web SDKs","use":"$3","to":"/docs/sdks/merchant-web-sdk/introduction","scope":"/docs/sdks/merchant-web-sdk","items":[{"id":"/docs/sdks/merchant-web-sdk/payment-methods/embedded-checkout","title":"Revolut Checkout","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/embedded-checkout","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/revolut-pay","title":"Revolut Pay","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/revolut-pay","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/apple-pay-google-pay","title":"Apple Pay and Google Pay","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/apple-pay-google-pay","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/pay-by-bank","title":"Pay by Bank","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/pay-by-bank","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/sepa-direct-debit","title":"SEPA Direct Debit","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/sepa-direct-debit","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/card-field","title":"Card field","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/card-field","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/pop-up","title":"Card pop-up","use":"$3","to":"/docs/sdks/merchant-web-sdk/payment-methods/pop-up","scope":"/docs/sdks/merchant-web-sdk"},{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets/introduction","title":"Promotional widgets","use":"$3","to":"/docs/sdks/merchant-web-sdk/promotional-widgets/introduction","scope":"/docs/sdks/merchant-web-sdk"}]},{"id":"/docs/sdks/merchant-ios-sdk/introduction","title":"Merchant iOS SDKs","use":"$3","to":"/docs/sdks/merchant-ios-sdk/introduction","scope":"/docs/sdks/merchant-ios-sdk","items":[{"id":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/introduction","title":"Revolut Pay","use":"$3","to":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/introduction","scope":"/docs/sdks/merchant-ios-sdk"},{"id":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/introduction","title":"Apple Pay","use":"$3","to":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/introduction","scope":"/docs/sdks/merchant-ios-sdk"},{"id":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/introduction","title":"Tap to Pay","use":"$3","to":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/introduction","scope":"/docs/sdks/merchant-ios-sdk"},{"id":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/introduction","title":"Card Form","use":"$3","to":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/introduction","scope":"/docs/sdks/merchant-ios-sdk"}]},{"id":"/docs/sdks/merchant-android-sdk/introduction","title":"Merchant Android SDKs","use":"$3","to":"/docs/sdks/merchant-android-sdk/introduction","scope":"/docs/sdks/merchant-android-sdk","items":[{"id":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/introduction","title":"Revolut Pay","use":"$3","to":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/introduction","scope":"/docs/sdks/merchant-android-sdk"},{"id":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/introduction","title":"Card Form","use":"$3","to":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/introduction","scope":"/docs/sdks/merchant-android-sdk"}]}]}},{"item":{"id":"Resources","title":"Resources","items":[{"id":"/docs/resources/marketing-guidelines","title":"Revolut Pay marketing assets and guidelines","use":"$3","to":"/docs/resources/marketing-guidelines","scope":"/docs/resources"},{"id":"/docs/resources/revolut-pay-button-guidelines","title":"Revolut Pay button guidelines","use":"$3","to":"/docs/resources/revolut-pay-button-guidelines","scope":"/docs/resources"},{"id":"/docs/resources/open-banking-logo-guidelines","title":"Revolut Open Banking logo assets and guidelines","use":"$3","to":"/docs/resources/open-banking-logo-guidelines","scope":"/docs/resources"}]}},{"item":{"id":"More","title":"More","items":[{"id":"/blog","title":"Blog","use":"$3","to":"/blog","scope":"/blog"},{"id":"https://developer.revolut.com/portal/signup","title":"Developer Portal","use":"a","href":"https://developer.revolut.com/portal/signup","target":"_blank","rel":"noreferrer"}]}}],"menu":{"docs":[{"id":"/docs","title":"Docs","use":"$3","items":[{"id":"/docs/guides","title":"Guides","use":"$3","items":[]},{"id":"/docs/sdks","title":"Sdks","use":"$3","items":[]}]},{"id":"/docs/guides/build-banking-apps","title":"Build Banking Apps","use":"$3","root":true,"items":[{"id":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api","title":"Introduction to the Open Banking API","use":"$3","items":[{"id":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/introduction","title":"Introduction","to":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/introduction","use":"$3"},{"id":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/who-can-access-the-api","title":"Who can access the API","to":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/who-can-access-the-api","use":"$3"},{"id":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/global-customer-access-controls","title":"Global customer access controls","to":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/global-customer-access-controls","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/get-started","title":"Get started","use":"$3","items":[{"id":"/docs/guides/build-banking-apps/get-started/register-your-application-in-the-developer-portal","title":"1. Register your application in the Developer Portal","to":"/docs/guides/build-banking-apps/get-started/register-your-application-in-the-developer-portal","use":"$3"},{"id":"/docs/guides/build-banking-apps/get-started/prepare-sandbox-environment","title":"2. Prepare your Sandbox environment","to":"/docs/guides/build-banking-apps/get-started/prepare-sandbox-environment","use":"$3"},{"id":"/docs/guides/build-banking-apps/get-started/setup-prod-environment","title":"3. Set up production environment","to":"/docs/guides/build-banking-apps/get-started/setup-prod-environment","use":"$3"},{"id":"/docs/guides/build-banking-apps/get-started/get-access-token","title":"4. Get the access token","to":"/docs/guides/build-banking-apps/get-started/get-access-token","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr","title":"Register your application using DCR","use":"$3","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr","items":[{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-the-jwks-url","title":"1. Get the JWKs URL","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-the-jwks-url","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-the-software-statement","title":"2. Get the software statement","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-the-software-statement","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-your-certificates-distinguished-name","title":"3. Get your certificate's distinguished name","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-your-certificates-distinguished-name","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/create-a-jwt","title":"4. Create a JWT","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/create-a-jwt","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/validate-your-jwt","title":"5. Validate your JWT","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/validate-your-jwt","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-a-client-id","title":"6. Get a client ID","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/get-a-client-id","use":"$3"},{"id":"/docs/guides/build-banking-apps/register-your-application-using-dcr/open-id-configuration-urls","title":"Open ID configuration URLs","to":"/docs/guides/build-banking-apps/register-your-application-using-dcr/open-id-configuration-urls","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/manage-your-applications","title":"Manage your applications","use":"$3","items":[{"id":"/docs/guides/build-banking-apps/manage-your-applications/get-an-application","title":"Retrieve application data","to":"/docs/guides/build-banking-apps/manage-your-applications/get-an-application","use":"$3"},{"id":"/docs/guides/build-banking-apps/manage-your-applications/update-an-application","title":"Update application data","to":"/docs/guides/build-banking-apps/manage-your-applications/update-an-application","use":"$3"},{"id":"/docs/guides/build-banking-apps/manage-your-applications/update-certificates","title":"Update application certificates","to":"/docs/guides/build-banking-apps/manage-your-applications/update-certificates","use":"$3"},{"id":"/docs/guides/build-banking-apps/manage-your-applications/delete-an-application","title":"Delete an application","to":"/docs/guides/build-banking-apps/manage-your-applications/delete-an-application","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/tutorials","title":"Tutorials","use":"$3","items":[{"id":"/docs/guides/build-banking-apps/tutorials/get-account-and-transaction-information","title":"Get account and transaction information","to":"/docs/guides/build-banking-apps/tutorials/get-account-and-transaction-information","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/initiate-your-first-payment","title":"Initiate your first payment","to":"/docs/guides/build-banking-apps/tutorials/initiate-your-first-payment","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/test-with-postman","title":"Test with Postman","use":"$3","items":[{"id":"/docs/guides/build-banking-apps/tutorials/test-with-postman/set-up-postman","title":"Set up Postman","to":"/docs/guides/build-banking-apps/tutorials/test-with-postman/set-up-postman","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/test-with-postman/get-an-account-access-consent","title":"Get an account access consent","to":"/docs/guides/build-banking-apps/tutorials/test-with-postman/get-an-account-access-consent","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/test-with-postman/get-a-payment-consent","title":"Get a payment consent","to":"/docs/guides/build-banking-apps/tutorials/test-with-postman/get-a-payment-consent","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/tutorials/create-a-file-payment","title":"Create a file payment","to":"/docs/guides/build-banking-apps/tutorials/create-a-file-payment","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/create-your-first-draft-payment","title":"Create your first draft payment","to":"/docs/guides/build-banking-apps/tutorials/create-your-first-draft-payment","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/work-with-draft-payments","title":"Work with draft payments","to":"/docs/guides/build-banking-apps/tutorials/work-with-draft-payments","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/work-with-json-web-tokens","title":"Work with JSON Web Tokens","to":"/docs/guides/build-banking-apps/tutorials/work-with-json-web-tokens","use":"$3"},{"id":"/docs/guides/build-banking-apps/tutorials/work-with-json-web-signatures","title":"Work with JSON Web Signatures","to":"/docs/guides/build-banking-apps/tutorials/work-with-json-web-signatures","use":"$3"}]},{"id":"/docs/guides/build-banking-apps/api-metrics","title":"API metrics","to":"/docs/guides/build-banking-apps/api-metrics","use":"$3"},{"id":"/docs/guides/build-banking-apps/usage-and-limits","title":"Usage and limits","to":"/docs/guides/build-banking-apps/usage-and-limits","use":"$3"},{"id":"/docs/guides/build-banking-apps/glossary","title":"Glossary","to":"/docs/guides/build-banking-apps/glossary","use":"$3"},{"id":"/docs/guides/build-banking-apps/faqs","title":"FAQs","to":"/docs/guides/build-banking-apps/faqs","use":"$3"},{"id":"/docs/guides/build-banking-apps/errors","title":"Errors","to":"/docs/guides/build-banking-apps/errors","use":"$3"}]},{"id":"/docs/guides/crypto-ramp","title":"Crypto Ramp","use":"$3","root":true,"items":[{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp","title":"Introduction to Revolut Ramp","use":"$3","items":[{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/introduction-to-revolut-ramp","title":"Introduction","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/introduction-to-revolut-ramp","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/partner-journey","title":"Partner journey","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/partner-journey","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details","title":"Coverage and other details","use":"$3","items":[{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/crypto-tokens","title":"Tokens","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/crypto-tokens","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/currencies-and-regions","title":"Currencies and regions","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/currencies-and-regions","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/payment-options","title":"Payment options","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/payment-options","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/limits-and-fees","title":"Limits and fees","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/coverage-and-other-details/limits-and-fees","use":"$3"}]},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/integration-options","title":"Integration with Revolut Ramp","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/integration-options","use":"$3"},{"id":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/configuration-options","title":"Configuration options","to":"/docs/guides/crypto-ramp/introduction-to-revolut-ramp/configuration-options","use":"$3"}]},{"id":"/docs/guides/crypto-ramp/get-started","title":"Get started","use":"$3","items":[{"id":"/docs/guides/crypto-ramp/get-started/integrate-with-revolut-ramp","title":"Integrate with Revolut Ramp","to":"/docs/guides/crypto-ramp/get-started/integrate-with-revolut-ramp","use":"$3"},{"id":"/docs/guides/crypto-ramp/get-started/initiate-transaction","title":"Initiate a transaction","to":"/docs/guides/crypto-ramp/get-started/initiate-transaction","use":"$3"},{"id":"/docs/guides/crypto-ramp/get-started/customer-perspective","title":"Create an order - customer's perspective","to":"/docs/guides/crypto-ramp/get-started/customer-perspective","use":"$3"}]},{"id":"/docs/guides/crypto-ramp/tutorials","title":"API usage and testing","use":"$3","items":[{"id":"/docs/guides/crypto-ramp/tutorials/test-the-integration","title":"Test the integration","to":"/docs/guides/crypto-ramp/tutorials/test-the-integration","use":"$3"},{"id":"/docs/guides/crypto-ramp/tutorials/use-the-api","title":"Leverage the Crypto Ramp API","to":"/docs/guides/crypto-ramp/tutorials/use-the-api","use":"$3"},{"id":"/docs/guides/crypto-ramp/tutorials/work-with-webhooks","title":"Work with webhooks","use":"$3","items":[{"id":"/docs/guides/crypto-ramp/tutorials/work-with-webhooks/use-webhooks","title":"Track order and payment lifecycle","to":"/docs/guides/crypto-ramp/tutorials/work-with-webhooks/use-webhooks","use":"$3"},{"id":"/docs/guides/crypto-ramp/tutorials/work-with-webhooks/verify-the-payload-signature","title":"Verify the payload signature","to":"/docs/guides/crypto-ramp/tutorials/work-with-webhooks/verify-the-payload-signature","use":"$3"}]}]},{"id":"/docs/guides/crypto-ramp/glossary","title":"Glossary","to":"/docs/guides/crypto-ramp/glossary","use":"$3"}]},{"id":"/docs/guides/exchange-fix-api","title":"Exchange FIX API","use":"$3","root":true,"items":[{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api","title":"Introduction to the Revolut Exchange FIX API","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","title":"Introduction","to":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/exchange-fix-api","use":"$3"},{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/system-overview","title":"System overview","to":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/system-overview","use":"$3"},{"id":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/reading-instructions","title":"Reading instructions","to":"/docs/guides/exchange-fix-api/introduction-to-the-exchange-fix-api/reading-instructions","use":"$3"}]},{"id":"/docs/guides/exchange-fix-api/trading-fix-api","title":"Trading FIX API","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages","title":"Supported FIX messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/supported-fix-messages-trading-overview","title":"Overview","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/supported-fix-messages-trading-overview","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages","title":"Session level messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-A-logon","title":"A (Logon)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-A-logon","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-0-heartbeat","title":"0 (Heartbeat)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-0-heartbeat","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-1-test-request","title":"1 (Test request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-1-test-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-2-resend-request","title":"2 (Resend request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-2-resend-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-3-session-level-reject","title":"3 (Session level reject)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-3-session-level-reject","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-4-reset-sequence","title":"4 (Sequence reset)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-4-reset-sequence","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-5-logout","title":"5 (Logout)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-session-level-messages/message-5-logout","use":"$3"}]},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages","title":"Application level messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-header","title":"Standard message header","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-header","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-trailer","title":"Standard message trailer","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-trailer","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/order-state-transitions","title":"Order state transitions","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/order-state-transitions","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/currency-pairs","title":"Currency pairs","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/currency-pairs","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/order-rejection-codes","title":"Order rejection codes","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/order-rejection-codes","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-D-new-order-single","title":"D (New order - single)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-D-new-order-single","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-F-order-cancel-request","title":"F (Order cancel request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-F-order-cancel-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-G-order-cancel-replace-request","title":"G (Order cancel/replace request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-G-order-cancel-replace-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-H-order-status-request","title":"H (Order status request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-H-order-status-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-q-order-mass-cancel-request","title":"q (Order mass cancel request)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-q-order-mass-cancel-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-8-execution-report","title":"8 (Execution report)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-8-execution-report","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-9-order-cancel-reject","title":"9 (Order cancel reject)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-9-order-cancel-reject","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-j-business-message-reject","title":"j (Business message reject)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-j-business-message-reject","use":"$3"},{"id":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-r-order-mass-cancel-report","title":"r (Order mass cancel report)","to":"/docs/guides/exchange-fix-api/trading-fix-api/supported-fix-messages/fix-application-level-messages/message-r-order-mass-cancel-report","use":"$3"}]}]}]},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api","title":"Market Data FIX API","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages","title":"Supported FIX messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/supported-fix-messages-market-data-overview","title":"Overview","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/supported-fix-messages-market-data-overview","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages","title":"Session level messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-A-logon","title":"A (Logon)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-A-logon","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-0-heartbeat","title":"0 (Heartbeat)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-0-heartbeat","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-1-test-request","title":"1 (Test request)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-1-test-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-2-resend-request","title":"2 (Resend request)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-2-resend-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-3-session-level-reject","title":"3 (Session level reject)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-3-session-level-reject","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-4-reset-sequence","title":"4 (Sequence reset)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-4-reset-sequence","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-5-logout","title":"5 (Logout)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-session-level-messages/message-5-logout","use":"$3"}]},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages","title":"Application level messages","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-header","title":"Standard message header","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-header","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-trailer","title":"Standard message trailer","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/standard-message-trailer","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/currency-pairs","title":"Currency pairs","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/currency-pairs","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-v-market-data-request","title":"V (Market data request)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-v-market-data-request","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-w-full-refresh","title":"W (Market Data - Snapshot/Full refresh)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-w-full-refresh","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-x-incremental-refresh","title":"X (Market Data - Incremental Refresh)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-x-incremental-refresh","use":"$3"},{"id":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-y-market-data-request-reject","title":"Y (Market Data Request Reject)","to":"/docs/guides/exchange-fix-api/market-data-fix-api/supported-fix-messages/fix-application-level-messages/message-y-market-data-request-reject","use":"$3"}]}]}]},{"id":"/docs/guides/exchange-fix-api/fix-session-management","title":"FIX session management","use":"$3","items":[{"id":"/docs/guides/exchange-fix-api/fix-session-management/starting-session-and-authentication","title":"Starting session and authentication","to":"/docs/guides/exchange-fix-api/fix-session-management/starting-session-and-authentication","use":"$3"},{"id":"/docs/guides/exchange-fix-api/fix-session-management/session-termination","title":"Session termination","to":"/docs/guides/exchange-fix-api/fix-session-management/session-termination","use":"$3"},{"id":"/docs/guides/exchange-fix-api/fix-session-management/reject-handling","title":"Reject handling","to":"/docs/guides/exchange-fix-api/fix-session-management/reject-handling","use":"$3"}]}]},{"id":"/docs/guides/manage-accounts","title":"Manage Accounts","use":"$3","root":true,"items":[{"id":"/docs/guides/manage-accounts/introduction","title":"Introduction to the Business API","to":"/docs/guides/manage-accounts/introduction","use":"$3"},{"id":"/docs/guides/manage-accounts/use-cases","title":"Use cases","use":"$3","items":[{"id":"/docs/guides/manage-accounts/use-cases/accounts-and-transactions-syncing","title":"Accounts and transactions syncing","to":"/docs/guides/manage-accounts/use-cases/accounts-and-transactions-syncing","use":"$3"},{"id":"/docs/guides/manage-accounts/use-cases/expenses-and-receipts","title":"Expenses and receipts syncing","to":"/docs/guides/manage-accounts/use-cases/expenses-and-receipts","use":"$3"},{"id":"/docs/guides/manage-accounts/use-cases/payouts-automation","title":"Payouts automation","to":"/docs/guides/manage-accounts/use-cases/payouts-automation","use":"$3"}]},{"id":"/docs/guides/manage-accounts/get-started","title":"Get started","use":"$3","items":[{"id":"/docs/guides/manage-accounts/get-started/sign-up-for-revolut-business-account","title":"1. Sign up for Revolut Business account","to":"/docs/guides/manage-accounts/get-started/sign-up-for-revolut-business-account","use":"$3"},{"id":"/docs/guides/manage-accounts/get-started/prepare-sandbox-environment","title":"2. Set up a test environment with Revolut Sandbox","to":"/docs/guides/manage-accounts/get-started/prepare-sandbox-environment","use":"$3"},{"id":"/docs/guides/manage-accounts/get-started/make-your-first-api-request","title":"3. Make your first API request","to":"/docs/guides/manage-accounts/get-started/make-your-first-api-request","use":"$3"}]},{"id":"/docs/guides/manage-accounts/accounting","title":"Accounting settings","use":"$3","items":[{"id":"/docs/guides/manage-accounts/accounting/manage-accounting-settings","title":"Overview","to":"/docs/guides/manage-accounts/accounting/manage-accounting-settings","use":"$3"},{"id":"/docs/guides/manage-accounts/accounting/manage-accounting-categories","title":"Accounting categories","to":"/docs/guides/manage-accounts/accounting/manage-accounting-categories","use":"$3"},{"id":"/docs/guides/manage-accounts/accounting/manage-tax-rates","title":"Tax rates","to":"/docs/guides/manage-accounts/accounting/manage-tax-rates","use":"$3"},{"id":"/docs/guides/manage-accounts/accounting/manage-labels-and-label-groups","title":"Labels and label groups","to":"/docs/guides/manage-accounts/accounting/manage-labels-and-label-groups","use":"$3"}]},{"id":"/docs/guides/manage-accounts/accounts-and-transactions","title":"Accounts and transactions","use":"$3","items":[{"id":"/docs/guides/manage-accounts/accounts-and-transactions/manage-your-accounts","title":"Accounts","to":"/docs/guides/manage-accounts/accounts-and-transactions/manage-your-accounts","use":"$3"},{"id":"/docs/guides/manage-accounts/accounts-and-transactions/retrieve-expenses","title":"Expenses","to":"/docs/guides/manage-accounts/accounts-and-transactions/retrieve-expenses","use":"$3"},{"id":"/docs/guides/manage-accounts/accounts-and-transactions/retrieve-transactions","title":"Transactions","to":"/docs/guides/manage-accounts/accounts-and-transactions/retrieve-transactions","use":"$3"},{"id":"/docs/guides/manage-accounts/accounts-and-transactions/map-transaction-data","title":"Map transactions","to":"/docs/guides/manage-accounts/accounts-and-transactions/map-transaction-data","use":"$3"}]},{"id":"/docs/guides/manage-accounts/counterparties","title":"Counterparties","use":"$3","items":[{"id":"/docs/guides/manage-accounts/counterparties/create-a-counterparty","title":"Create a counterparty","to":"/docs/guides/manage-accounts/counterparties/create-a-counterparty","use":"$3"},{"id":"/docs/guides/manage-accounts/counterparties/retrieve-counterparties","title":"Retrieve counterparties","to":"/docs/guides/manage-accounts/counterparties/retrieve-counterparties","use":"$3"},{"id":"/docs/guides/manage-accounts/counterparties/update-counterparty-payment-method","title":"Update a counterparty's payment method","to":"/docs/guides/manage-accounts/counterparties/update-counterparty-payment-method","use":"$3"},{"id":"/docs/guides/manage-accounts/counterparties/confirmation-of-payee","title":"Confirmation of Payee (CoP)","to":"/docs/guides/manage-accounts/counterparties/confirmation-of-payee","use":"$3"}]},{"id":"/docs/guides/manage-accounts/transfers","title":"Transfers","use":"$3","items":[{"id":"/docs/guides/manage-accounts/transfers/send-money","title":"Send money","to":"/docs/guides/manage-accounts/transfers/send-money","use":"$3"},{"id":"/docs/guides/manage-accounts/transfers/bank-transfers","title":"Bank transfers","to":"/docs/guides/manage-accounts/transfers/bank-transfers","use":"$3"},{"id":"/docs/guides/manage-accounts/transfers/card-transfers","title":"Card transfers","to":"/docs/guides/manage-accounts/transfers/card-transfers","use":"$3"},{"id":"/docs/guides/manage-accounts/transfers/payout-links","title":"Payout links","to":"/docs/guides/manage-accounts/transfers/payout-links","use":"$3"},{"id":"/docs/guides/manage-accounts/transfers/payment-drafts","title":"Payment drafts","to":"/docs/guides/manage-accounts/transfers/payment-drafts","use":"$3"},{"id":"/docs/guides/manage-accounts/transfers/prepare-and-validate-transfers","title":"Prepare and validate transfers","to":"/docs/guides/manage-accounts/transfers/prepare-and-validate-transfers","use":"$3"}]},{"id":"/docs/guides/manage-accounts/exchange-money","title":"Foreign exchange","to":"/docs/guides/manage-accounts/exchange-money","use":"$3"},{"id":"/docs/guides/manage-accounts/cards","title":"Cards","use":"$3","items":[{"id":"/docs/guides/manage-accounts/cards/manage-cards","title":"Cards","to":"/docs/guides/manage-accounts/cards/manage-cards","use":"$3"},{"id":"/docs/guides/manage-accounts/cards/manage-card-invitations","title":"Card invitations","to":"/docs/guides/manage-accounts/cards/manage-card-invitations","use":"$3"}]},{"id":"/docs/guides/manage-accounts/teams","title":"Teams","use":"$3","items":[{"id":"/docs/guides/manage-accounts/teams/manage-team-members","title":"Members and roles","to":"/docs/guides/manage-accounts/teams/manage-team-members","use":"$3"}]},{"id":"/docs/guides/manage-accounts/webhooks","title":"Webhooks","use":"$3","items":[{"id":"/docs/guides/manage-accounts/webhooks/about-webhooks","title":"About webhooks","to":"/docs/guides/manage-accounts/webhooks/about-webhooks","use":"$3"},{"id":"/docs/guides/manage-accounts/webhooks/manage-webhooks","title":"Manage webhooks","to":"/docs/guides/manage-accounts/webhooks/manage-webhooks","use":"$3"},{"id":"/docs/guides/manage-accounts/webhooks/verify-the-payload-signature","title":"Verify the payload signature","to":"/docs/guides/manage-accounts/webhooks/verify-the-payload-signature","use":"$3"}]},{"id":"/docs/guides/manage-accounts/api-usage-and-testing","title":"API usage and testing","use":"$3","items":[{"id":"/docs/guides/manage-accounts/api-usage-and-testing/errors","title":"Errors","to":"/docs/guides/manage-accounts/api-usage-and-testing/errors","use":"$3"},{"id":"/docs/guides/manage-accounts/api-usage-and-testing/usage-and-limits","title":"Usage and limits","to":"/docs/guides/manage-accounts/api-usage-and-testing/usage-and-limits","use":"$3"},{"id":"/docs/guides/manage-accounts/api-usage-and-testing/test-flows-with-simulations","title":"Test your flows with simulations (Sandbox only)","to":"/docs/guides/manage-accounts/api-usage-and-testing/test-flows-with-simulations","use":"$3"}]}]},{"id":"/docs/guides/merchant","title":"Merchant","use":"$3","root":true,"items":[{"id":"/docs/guides/merchant/introduction","title":"Introduction","to":"/docs/guides/merchant/introduction","use":"$3"},{"id":"/docs/guides/merchant/get-started","title":"Get started","to":"/docs/guides/merchant/get-started","use":"$3"},{"id":"/docs/guides/merchant/test-and-go-live","title":"Test & go live","use":"$3","items":[{"id":"/docs/guides/merchant/test-and-go-live/set-up-sandbox","title":"Set up a test environment","to":"/docs/guides/merchant/test-and-go-live/set-up-sandbox","use":"$3"},{"id":"/docs/guides/merchant/test-and-go-live/testing","title":"Testing","use":"$3","items":[{"id":"/docs/guides/merchant/test-and-go-live/testing/implementation-checklists","title":"Implementation checklist","to":"/docs/guides/merchant/test-and-go-live/testing/implementation-checklists","use":"$3"},{"id":"/docs/guides/merchant/test-and-go-live/testing/test-flows","title":"Test payment flows","to":"/docs/guides/merchant/test-and-go-live/testing/test-flows","use":"$3"},{"id":"/docs/guides/merchant/test-and-go-live/testing/test-cards","title":"Test cards","to":"/docs/guides/merchant/test-and-go-live/testing/test-cards","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments","title":"Accept payments","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments","title":"Online payments","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout","title":"Revolut Checkout","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/web","title":"Web","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-checkout/web","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay","title":"Revolut Pay","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/web","title":"Web","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/web","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile","title":"Mobile","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/ios","title":"iOS","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/ios","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/android","title":"Android","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/android","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/react-native","title":"React Native","to":"/docs/guides/merchant/accept-payments/online-payments/revolut-pay/mobile/react-native","use":"$3"}]},{"id":"/docs/guides/merchant/optimise-checkout/fast-checkout","title":"Fast checkout","use":"$3","to":"/docs/guides/merchant/optimise-checkout/fast-checkout"}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments","title":"Card payments","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/web","title":"Web","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/web/card-field","title":"Card field","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/web/card-field","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/web/pop-up","title":"Card pop-up","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/web/pop-up","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile","title":"Mobile","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/ios","title":"iOS","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/ios","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/android","title":"Android","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/android","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/react-native","title":"React Native","to":"/docs/guides/merchant/accept-payments/online-payments/card-payments/mobile/react-native","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay","title":"Apple Pay and Google Pay","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/web","title":"Web","to":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/web","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/mobile","title":"Mobile","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/mobile/ios","title":"iOS","to":"/docs/guides/merchant/accept-payments/online-payments/apple-pay-google-pay/mobile/ios","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank","title":"Pay by Bank","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/web","title":"Web","to":"/docs/guides/merchant/accept-payments/online-payments/pay-by-bank/web","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit","title":"SEPA Direct Debit","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/web","title":"Web","to":"/docs/guides/merchant/accept-payments/online-payments/sepa-direct-debit/web","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page","title":"Hosted Checkout Page","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/payment-link","title":"Payment link","to":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/payment-link","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/api","title":"API","to":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/api","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments","title":"In-person payments","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/in-person-payments/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos","title":"Revolut POS","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app","title":"Web app","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/product-management","title":"Product and catalogue management","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/product-management","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/settings","title":"Settings","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/settings","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/staff-management","title":"Staff management","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/staff-management","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/analytics-orders","title":"Analytics and orders","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/web-app/analytics-orders","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app","title":"iOS app","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/order-management","title":"Order management","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/order-management","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/table-service","title":"Table service","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/table-service","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/catalogue","title":"Catalogue","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/catalogue","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/operational-settings","title":"Operational settings","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/operational-settings","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/hardware-settings","title":"Hardware settings","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/hardware-settings","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/reports","title":"Reports","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/ios-app/reports","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/order-pay","title":"Order and Pay","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/order-pay","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/support","title":"Support","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/support","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/pos/faq","title":"FAQs","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/faq","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal","title":"Revolut Terminal","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/manage-payments","title":"Manage payments","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/manage-payments","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/additional-features","title":"Additional features","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/additional-features","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/push-payments","title":"Push payments to Revolut Terminal","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/push-payments","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/pre-authorisation","title":"Pre-authorisation","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/pre-authorisation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/support-warranty","title":"Support and warranty","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/support-warranty","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader","title":"Revolut Reader","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/manage-payments","title":"Manage payments","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/manage-payments","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/additional-features","title":"Additional features","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/additional-features","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/support-warranty","title":"Support and warranty","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/support-warranty","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/reader/faq","title":"FAQs","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/faq","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay","title":"Tap to Pay","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/get-started","title":"Get started","to":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/get-started","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/integration-guide","title":"Integration guide","to":"/docs/guides/merchant/accept-payments/in-person-payments/tap-to-pay/integration-guide","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments/no-code","title":"No-code integrations","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins","title":"E-commerce plugins","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce","title":"WooCommerce","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/woocommerce/features","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop","title":"PrestaShop","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/prestashop/features","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/magento","title":"Adobe Commerce (Magento 2)","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/magento/features","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce","title":"BigCommerce","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/bigcommerce/features","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify","title":"Shopify","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/shopify/features","use":"$3"}]},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart","title":"OpenCart","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/introduction","title":"Introduction","to":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/introduction","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/installation","title":"Installation","to":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/installation","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/features","title":"Features and operations","to":"/docs/guides/merchant/accept-payments/no-code/plugins/opencart/features","use":"$3"}]}]},{"id":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/payment-link","title":"Payment links","use":"$3","to":"/docs/guides/merchant/accept-payments/online-payments/hosted-checkout-page/payment-link"},{"id":"/docs/guides/merchant/accept-payments/no-code/invoices","title":"Invoices","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/invoices/xero","title":"Xero invoices","use":"$3","items":[{"id":"/docs/guides/merchant/accept-payments/no-code/invoices/xero/configuration","title":"Configuration","to":"/docs/guides/merchant/accept-payments/no-code/invoices/xero/configuration","use":"$3"},{"id":"/docs/guides/merchant/accept-payments/no-code/invoices/xero/troubleshooting","title":"Troubleshooting","to":"/docs/guides/merchant/accept-payments/no-code/invoices/xero/troubleshooting","use":"$3"}]}]}]}]},{"id":"/docs/guides/merchant/operations","title":"Operations","use":"$3","items":[{"id":"/docs/guides/merchant/operations/capture-and-settlement","title":"Capture & settlement","use":"$3","items":[{"id":"/docs/guides/merchant/operations/capture-and-settlement/capture-later","title":"Authorise a payment to capture later","to":"/docs/guides/merchant/operations/capture-and-settlement/capture-later","use":"$3"},{"id":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation","title":"Advanced authorisation","use":"$3","items":[{"id":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/introduction","title":"Introduction","to":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/introduction","use":"$3"},{"id":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/pre-authorisation","title":"Pre-authorisation","to":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/pre-authorisation","use":"$3"},{"id":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/incremental-authorisation","title":"Incremental authorisation","to":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/incremental-authorisation","use":"$3"},{"id":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/clearing-windows","title":"Clearing windows","to":"/docs/guides/merchant/operations/capture-and-settlement/advanced-authorisation/clearing-windows","use":"$3"}]}]},{"id":"/docs/guides/merchant/operations/refunds","title":"Refund payments","to":"/docs/guides/merchant/operations/refunds","use":"$3"}]},{"id":"/docs/guides/merchant/optimise-checkout","title":"Optimise checkout","use":"$3","items":[{"id":"/docs/guides/merchant/optimise-checkout/save-payment-methods","title":"Save and charge payment methods","use":"$3","items":[{"id":"/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","title":"Charge a customer's saved payment method","to":"/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","use":"$3"},{"id":"/docs/guides/merchant/optimise-checkout/save-payment-methods/checkout-with-saved-card","title":"Save cards and speed up checkout","to":"/docs/guides/merchant/optimise-checkout/save-payment-methods/checkout-with-saved-card","use":"$3"},{"id":"/docs/guides/merchant/optimise-checkout/save-payment-methods/subscription-management","title":"Manage subscriptions","to":"/docs/guides/merchant/optimise-checkout/save-payment-methods/subscription-management","use":"$3"}]},{"id":"/docs/guides/merchant/optimise-checkout/fast-checkout","title":"Fast checkout","to":"/docs/guides/merchant/optimise-checkout/fast-checkout","use":"$3"},{"id":"/docs/guides/merchant/optimise-checkout/promo-banners","title":"Add Promotional banner to your checkout page","to":"/docs/guides/merchant/optimise-checkout/promo-banners","use":"$3"}]},{"id":"/docs/guides/merchant/monitor-and-observe","title":"Monitor & observe","use":"$3","items":[{"id":"/docs/guides/merchant/monitor-and-observe/reports-reconciliation","title":"Create CSV reports of transactions","to":"/docs/guides/merchant/monitor-and-observe/reports-reconciliation","use":"$3"},{"id":"/docs/guides/merchant/monitor-and-observe/webhooks","title":"Work with webhooks","use":"$3","items":[{"id":"/docs/guides/merchant/monitor-and-observe/webhooks/using-webhooks","title":"Use webhooks to track order and payment lifecycle","to":"/docs/guides/merchant/monitor-and-observe/webhooks/using-webhooks","use":"$3"},{"id":"/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature","title":"Verify the payload signature","to":"/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature","use":"$3"}]}]},{"id":"/docs/guides/merchant/reference","title":"Reference","use":"$3","items":[{"id":"/docs/guides/merchant/reference/versioning","title":"Versioning","use":"$3","items":[{"id":"/docs/guides/merchant/reference/versioning/api-versions","title":"API versions","to":"/docs/guides/merchant/reference/versioning/api-versions","use":"$3"},{"id":"/docs/guides/merchant/reference/versioning/deprecation-policy","title":"Deprecation policy","to":"/docs/guides/merchant/reference/versioning/deprecation-policy","use":"$3"},{"id":"/docs/guides/merchant/reference/versioning/changelog","title":"Changelog","to":"/docs/guides/merchant/reference/versioning/changelog","use":"$3"}]},{"id":"/docs/api/merchant","title":"API","use":"$3","to":"/docs/api/merchant"},{"id":"/docs/guides/merchant/reference/sdks","title":"SDKs","use":"$3","items":[{"id":"/docs/sdks/merchant-web-sdk/introduction","title":"Web SDK","use":"$3","to":"/docs/sdks/merchant-web-sdk/introduction"},{"id":"/docs/sdks/merchant-ios-sdk/introduction","title":"iOS SDK","use":"$3","to":"/docs/sdks/merchant-ios-sdk/introduction"},{"id":"/docs/sdks/merchant-android-sdk/introduction","title":"Android SDK","use":"$3","to":"/docs/sdks/merchant-android-sdk/introduction"}]},{"id":"/docs/guides/merchant/reference/3d-secure","title":"3D Secure","to":"/docs/guides/merchant/reference/3d-secure","use":"$3"},{"id":"/docs/guides/merchant/reference/error-codes","title":"Errors","use":"$3","items":[{"id":"/docs/guides/merchant/reference/error-codes/http-response-errors","title":"HTTP response errors","to":"/docs/guides/merchant/reference/error-codes/http-response-errors","use":"$3"},{"id":"/docs/guides/merchant/reference/error-codes/decline-reasons","title":"Decline reasons","to":"/docs/guides/merchant/reference/error-codes/decline-reasons","use":"$3"}]},{"id":"/docs/guides/merchant/reference/order-lifecycle","title":"Order and payment lifecycle","to":"/docs/guides/merchant/reference/order-lifecycle","use":"$3"}]},{"id":"/blog","title":"Updates","use":"$3","to":"/blog"}]},{"id":"/docs/guides/revolut-wallet","title":"Revolut Wallet","use":"$3","root":true,"items":[{"id":"/docs/guides/revolut-wallet/introduction","title":"Introduction","to":"/docs/guides/revolut-wallet/introduction","use":"$3"},{"id":"/docs/guides/revolut-wallet/get-started","title":"Get started","to":"/docs/guides/revolut-wallet/get-started","use":"$3"},{"id":"/docs/guides/revolut-wallet/operations","title":"Operations","use":"$3","items":[{"id":"/docs/guides/revolut-wallet/operations/introduction","title":"Introduction","to":"/docs/guides/revolut-wallet/operations/introduction","use":"$3"},{"id":"/docs/guides/revolut-wallet/operations/create-pass","title":"Create a pass","to":"/docs/guides/revolut-wallet/operations/create-pass","use":"$3"},{"id":"/docs/guides/revolut-wallet/operations/update-pass","title":"Update a pass","to":"/docs/guides/revolut-wallet/operations/update-pass","use":"$3"},{"id":"/docs/guides/revolut-wallet/operations/transaction-results","title":"Transaction results","to":"/docs/guides/revolut-wallet/operations/transaction-results","use":"$3"}]}]},{"id":"/docs/resources","title":"Resources","use":"$3","root":true,"items":[{"id":"/docs/resources/marketing-guidelines","title":"Revolut Pay marketing assets and guidelines","to":"/docs/resources/marketing-guidelines","use":"$3"},{"id":"/docs/resources/revolut-pay-button-guidelines","title":"Revolut Pay button guidelines","to":"/docs/resources/revolut-pay-button-guidelines","use":"$3"},{"id":"/docs/resources/open-banking-logo-guidelines","title":"Revolut Open Banking logo assets and guidelines","to":"/docs/resources/open-banking-logo-guidelines","use":"$3"}]},{"id":"/docs/sdks/merchant-android-sdk","title":"Merchant Android SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/merchant-android-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-android-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk","title":"Revolut Pay SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-android-sdk/revolut-pay-android-sdk/methods-parameters","use":"$3"}]},{"id":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk","title":"Revolut Card Form SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-android-sdk/revolut-card-form-android-sdk/methods-parameters","use":"$3"}]}]},{"id":"/docs/sdks/merchant-ios-sdk","title":"Merchant iOS SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/merchant-ios-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-ios-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk","title":"Revolut Pay SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-ios-sdk/revolut-pay-ios-sdk/methods-parameters","use":"$3"}]},{"id":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk","title":"Apple Pay SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-ios-sdk/apple-pay-ios-sdk/methods-parameters","use":"$3"}]},{"id":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk","title":"Tap to Pay SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-ios-sdk/tap-to-pay-sdk/methods-parameters","use":"$3"}]},{"id":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk","title":"Revolut Card Form SDK","use":"$3","items":[{"id":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/merchant-ios-sdk/revolut-card-form-ios-sdk/methods-parameters","use":"$3"}]}]},{"id":"/docs/sdks/merchant-web-sdk","title":"Merchant Web SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/merchant-web-sdk/introduction","title":"Introduction","to":"/docs/sdks/merchant-web-sdk/introduction","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/get-started","title":"Get started","to":"/docs/sdks/merchant-web-sdk/get-started","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/initialisation","title":"Initialisation","use":"$3","items":[{"id":"/docs/sdks/merchant-web-sdk/initialisation/token-based","title":"Token-based initialisation","to":"/docs/sdks/merchant-web-sdk/initialisation/token-based","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/initialisation/direct","title":"Direct initialisation","to":"/docs/sdks/merchant-web-sdk/initialisation/direct","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/initialisation/payments-module","title":"Payments module initialisation","to":"/docs/sdks/merchant-web-sdk/initialisation/payments-module","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/initialisation/upsell-module","title":"Upsell module initialisation","to":"/docs/sdks/merchant-web-sdk/initialisation/upsell-module","use":"$3"}]},{"id":"/docs/sdks/merchant-web-sdk/payment-methods","title":"Payment methods","use":"$3","items":[{"id":"/docs/sdks/merchant-web-sdk/payment-methods/introduction","title":"Introduction","to":"/docs/sdks/merchant-web-sdk/payment-methods/introduction","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/embedded-checkout","title":"Embedded checkout","to":"/docs/sdks/merchant-web-sdk/payment-methods/embedded-checkout","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/revolut-pay","title":"Revolut Pay","to":"/docs/sdks/merchant-web-sdk/payment-methods/revolut-pay","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/apple-pay-google-pay","title":"Apple Pay / Google Pay","to":"/docs/sdks/merchant-web-sdk/payment-methods/apple-pay-google-pay","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/card-field","title":"Card field","to":"/docs/sdks/merchant-web-sdk/payment-methods/card-field","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/pop-up","title":"Card pop-up","to":"/docs/sdks/merchant-web-sdk/payment-methods/pop-up","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/pay-by-bank","title":"Pay by Bank","to":"/docs/sdks/merchant-web-sdk/payment-methods/pay-by-bank","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/payment-methods/sepa-direct-debit","title":"SEPA Direct Debit","to":"/docs/sdks/merchant-web-sdk/payment-methods/sepa-direct-debit","use":"$3"}]},{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets","title":"Promotional widgets","use":"$3","items":[{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets/introduction","title":"Introduction","to":"/docs/sdks/merchant-web-sdk/promotional-widgets/introduction","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets/card-gateway-banner","title":"Card gateway banner","to":"/docs/sdks/merchant-web-sdk/promotional-widgets/card-gateway-banner","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets/promotional-banner","title":"Promotional banner","to":"/docs/sdks/merchant-web-sdk/promotional-widgets/promotional-banner","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/promotional-widgets/enrollment-confirmation-banner","title":"Enrollment confirmation banner","to":"/docs/sdks/merchant-web-sdk/promotional-widgets/enrollment-confirmation-banner","use":"$3"}]},{"id":"/docs/sdks/merchant-web-sdk/types","title":"Types","use":"$3","items":[{"id":"/docs/sdks/merchant-web-sdk/types/introduction","title":"Introduction","to":"/docs/sdks/merchant-web-sdk/types/introduction","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/types/locale","title":"Locale","to":"/docs/sdks/merchant-web-sdk/types/locale","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/types/address","title":"Address","to":"/docs/sdks/merchant-web-sdk/types/address","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/types/customer-details","title":"CustomerDetails","to":"/docs/sdks/merchant-web-sdk/types/customer-details","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/types/revolut-checkout-error","title":"RevolutCheckoutError","to":"/docs/sdks/merchant-web-sdk/types/revolut-checkout-error","use":"$3"},{"id":"/docs/sdks/merchant-web-sdk/types/validation-error","title":"ValidationError","to":"/docs/sdks/merchant-web-sdk/types/validation-error","use":"$3"}]},{"id":"/docs/sdks/merchant-web-sdk/integration-examples","title":"Integration examples","to":"/docs/sdks/merchant-web-sdk/integration-examples","use":"$3"}]},{"id":"/docs/sdks/reverywhere-web-sdk","title":"RevEverywhere Web SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/reverywhere-web-sdk/introduction-and-setup","title":"Introduction and setup","to":"/docs/sdks/reverywhere-web-sdk/introduction-and-setup","use":"$3"}]},{"id":"/docs/sdks/revolut-id-sdk","title":"(BETA) Revolut ID SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/revolut-id-sdk/introduction","title":"Introduction","to":"/docs/sdks/revolut-id-sdk/introduction","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web","title":"Web","use":"$3","items":[{"id":"/docs/sdks/revolut-id-sdk/web/introduction","title":"Introduction","to":"/docs/sdks/revolut-id-sdk/web/introduction","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/configure-client","title":"Configure client","to":"/docs/sdks/revolut-id-sdk/web/configure-client","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/integrate-sdk","title":"Integrate SDK","use":"$3","items":[{"id":"/docs/sdks/revolut-id-sdk/web/integrate-sdk/java-script","title":"JavaScript","to":"/docs/sdks/revolut-id-sdk/web/integrate-sdk/java-script","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/integrate-sdk/react","title":"React","to":"/docs/sdks/revolut-id-sdk/web/integrate-sdk/react","use":"$3"}]},{"id":"/docs/sdks/revolut-id-sdk/web/code-exchange","title":"Code exchange","to":"/docs/sdks/revolut-id-sdk/web/code-exchange","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/api-reference","title":"API reference","use":"$3","to":"/docs/sdks/revolut-id-sdk/web/api-reference","items":[{"id":"/docs/sdks/revolut-id-sdk/web/api-reference/revolut-id","title":"RevolutId","to":"/docs/sdks/revolut-id-sdk/web/api-reference/revolut-id","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/api-reference/revolutid-loader","title":"RevolutIdLoader","to":"/docs/sdks/revolut-id-sdk/web/api-reference/revolutid-loader","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/api-reference/button-client","title":"ButtonClient","to":"/docs/sdks/revolut-id-sdk/web/api-reference/button-client","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/api-reference/button-style","title":"ButtonStyle","to":"/docs/sdks/revolut-id-sdk/web/api-reference/button-style","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/web/api-reference/openid-configuration","title":"OIDC Configuration","to":"/docs/sdks/revolut-id-sdk/web/api-reference/openid-configuration","use":"$3"}]}]},{"id":"/docs/sdks/revolut-id-sdk/ios","title":"iOS","use":"$3","items":[{"id":"/docs/sdks/revolut-id-sdk/ios/introduction","title":"Introduction","to":"/docs/sdks/revolut-id-sdk/ios/introduction","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/ios/integration-guide","title":"Integration guide","to":"/docs/sdks/revolut-id-sdk/ios/integration-guide","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/ios/code-exchange","title":"Code exchange","to":"/docs/sdks/revolut-id-sdk/ios/code-exchange","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/ios/api-reference","title":"Methods and parameters","use":"$3","to":"/docs/sdks/revolut-id-sdk/ios/api-reference","items":[]}]},{"id":"/docs/sdks/revolut-id-sdk/android","title":"Android","use":"$3","items":[{"id":"/docs/sdks/revolut-id-sdk/android/introduction","title":"Introduction","to":"/docs/sdks/revolut-id-sdk/android/introduction","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/android/integration-guide","title":"Integration guide","to":"/docs/sdks/revolut-id-sdk/android/integration-guide","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/android/code-exchange","title":"Code exchange","to":"/docs/sdks/revolut-id-sdk/android/code-exchange","use":"$3"},{"id":"/docs/sdks/revolut-id-sdk/android/methods-parameters","title":"Methods and parameters","to":"/docs/sdks/revolut-id-sdk/android/methods-parameters","use":"$3"}]}]},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk","title":"UI Kit MiniApp Web SDK","use":"$3","root":true,"items":[{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/introduction","title":"Introduction","to":"/docs/sdks/ui-kit-miniapp-web-sdk/introduction","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components","title":"Components","use":"$3","items":[{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Action","title":"Action","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Action","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ActionButton","title":"ActionButton","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ActionButton","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Avatar","title":"Avatar","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Avatar","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Badge","title":"Badge","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Badge","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/BottomSheet","title":"BottomSheet","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/BottomSheet","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Button","title":"Button","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Button","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Calendar","title":"Calendar","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Calendar","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Cell","title":"Cell","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Cell","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/CellSkeleton","title":"CellSkeleton","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/CellSkeleton","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Checkbox","title":"Checkbox","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Checkbox","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/CompactInput","title":"CompactInput","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/CompactInput","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Copyable","title":"Copyable","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Copyable","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/DetailsCell","title":"DetailsCell","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/DetailsCell","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Dropdown","title":"Dropdown","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Dropdown","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/FilterButton","title":"FilterButton","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/FilterButton","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Footnote","title":"Footnote","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Footnote","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Group","title":"Group","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Group","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/HStack","title":"HStack","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/HStack","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Icon","title":"Icon","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Icon","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Image","title":"Image","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Image","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Input","title":"Input","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Input","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Link","title":"Link","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Link","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/List","title":"List","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/List","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/MessageBubble","title":"MessageBubble","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/MessageBubble","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Page","title":"Page","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Page","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Placeholder","title":"Placeholder","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Placeholder","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Popup","title":"Popup","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Popup","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ProgressSteps","title":"ProgressSteps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ProgressSteps","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Radio","title":"Radio","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Radio","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/RootProvider","title":"RootProvider","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/RootProvider","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Search","title":"Search","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Search","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Spacer","title":"Spacer","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Spacer","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Subheader","title":"Subheader","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Subheader","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Switch","title":"Switch","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Switch","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/TabBar","title":"TabBar","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/TabBar","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Text","title":"Text","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Text","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/TextArea","title":"TextArea","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/TextArea","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ToggleButton","title":"ToggleButton","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/ToggleButton","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Toast","title":"Toast","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/Toast","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/VStack","title":"VStack","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/VStack","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/components/VisuallyHidden","title":"VisuallyHidden","to":"/docs/sdks/ui-kit-miniapp-web-sdk/components/VisuallyHidden","use":"$3"}]},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/hooks","title":"Hooks","use":"$3","items":[{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/hooks/useStatusSheet","title":"useStatusSheet","to":"/docs/sdks/ui-kit-miniapp-web-sdk/hooks/useStatusSheet","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/hooks/useToast","title":"useToast","to":"/docs/sdks/ui-kit-miniapp-web-sdk/hooks/useToast","use":"$3"}]},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/constants","title":"Constants","use":"$3","items":[{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/constants/token","title":"Token","to":"/docs/sdks/ui-kit-miniapp-web-sdk/constants/token","use":"$3"}]},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types","title":"Types","use":"$3","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types","items":[{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/HTMLTag","title":"HTMLTag","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/HTMLTag","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/IconName","title":"IconName","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/IconName","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeButtonProps","title":"NativeButtonProps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeButtonProps","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeDivProps","title":"NativeDivProps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeDivProps","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeHeadingProps","title":"NativeHeadingProps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeHeadingProps","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeMainProps","title":"NativeMainProps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeMainProps","use":"$3"},{"id":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeSpanProps","title":"NativeSpanProps","to":"/docs/sdks/ui-kit-miniapp-web-sdk/types/NativeSpanProps","use":"$3"}]}]}],"blog":[{"id":"/blog/2026-07-14-tap-to-pay-sdk","title":"New: Tap to Pay SDK for iOS","use":"$3","to":"/blog/2026-07-14-tap-to-pay-sdk"},{"id":"/blog/2026-07-06-revolut-checkout-hide-customer-details","title":"Revolut Checkout: hide customer details with pre-fill","use":"$3","to":"/blog/2026-07-06-revolut-checkout-hide-customer-details"},{"id":"/blog/2026-06-02-react-native-merchant-sdks","title":"New: Revolut Pay and Card Form SDKs for React Native","use":"$3","to":"/blog/2026-06-02-react-native-merchant-sdks"},{"id":"/blog/2026-05-28-incremental-authorisation-sandbox","title":"Incremental Authorisation: Sandbox testing now available","use":"$3","to":"/blog/2026-05-28-incremental-authorisation-sandbox"},{"id":"/blog/2026-05-06-revolut-checkout-sdk-reference","title":"Revolut Checkout: full SDK reference and shipping options now documented","use":"$3","to":"/blog/2026-05-06-revolut-checkout-sdk-reference"},{"id":"/blog/2026-04-22-merchant-api-version-2026-04-20","title":"New Merchant API version: 2026-04-20","use":"$3","to":"/blog/2026-04-22-merchant-api-version-2026-04-20"},{"id":"/blog/2026-03-14-billing-address-card-payments","title":"Billing address is now required for card payments in the Web SDK","use":"$3","to":"/blog/2026-03-14-billing-address-card-payments"},{"id":"/blog/2026-03-01-hosted-checkout-page","title":"Merchant API: Hosted Checkout Page documentation restructuring","use":"$3","to":"/blog/2026-03-01-hosted-checkout-page"},{"id":"/blog/2026-02-05-incremental-authorisation","title":"New: Incremental Authorisation for card payments","use":"$3","to":"/blog/2026-02-05-incremental-authorisation"},{"id":"/blog/2026-02-01-revolut-checkout","title":"Release announcement: Revolut Checkout","use":"$3","to":"/blog/2026-02-01-revolut-checkout"},{"id":"/blog/2025-12-15-open-banking-minor-updates","title":"Open Banking API: Updates to OpenID config file, account subtype, and DCR scopes","use":"$3","to":"/blog/2025-12-15-open-banking-minor-updates"},{"id":"/blog/2025-12-01-push-payments-to-terminal","title":"Merchant API: Push payments to Revolut Terminal","use":"$3","to":"/blog/2025-12-01-push-payments-to-terminal"},{"id":"/blog/2025-08-15-pay-by-bank-example","title":"New Pay by Bank integration example on GitHub","use":"$3","to":"/blog/2025-08-15-pay-by-bank-example"},{"id":"/blog/2025-07-11-revolut-openapi-github-repository","title":"Revolut APIs: Public API Specs on GitHub","use":"$3","to":"/blog/2025-07-11-revolut-openapi-github-repository"},{"id":"/blog/2025-06-18-new-disputes-endpoints","title":"Merchant API: New Disputes endpoints","use":"$3","to":"/blog/2025-06-18-new-disputes-endpoints"},{"id":"/blog/2025-06-03-apple-pay-unregister","title":"Merchant API: New Apple Pay unregistration endpoint","use":"$3","to":"/blog/2025-06-03-apple-pay-unregister"},{"id":"/blog/2025-05-28-pay-by-bank","title":"Release announcement: Pay by Bank","use":"$3","to":"/blog/2025-05-28-pay-by-bank"},{"id":"/blog/2025-03-19-open-banking-refresh-tokens","title":"Open Banking API Refresh Tokens","use":"$3","to":"/blog/2025-03-19-open-banking-refresh-tokens"},{"id":"/blog/2025-03-04-open-banking-fapi1-advanced","title":"Financial-grade API 1.0 (FAPI 1) Advanced","use":"$3","to":"/blog/2025-03-04-open-banking-fapi1-advanced"},{"id":"/blog/2025-02-03-open-banking-accounts-endpoint","title":"Open Banking API SCA restrictions update","use":"$3","to":"/blog/2025-02-03-open-banking-accounts-endpoint"},{"id":"/blog/2024-09-16-open-banking-ais-restrictions","title":"Restrictions on AIS endpoints","use":"$3","to":"/blog/2024-09-16-open-banking-ais-restrictions"},{"id":"/blog/2024-09-14-open-banking-payment-status","title":"Payment Initiation status update","use":"$3","to":"/blog/2024-09-14-open-banking-payment-status"},{"id":"/blog/2024-08-16-open-banking-migration-of-swiss-users","title":"Migration of Swiss users","use":"$3","to":"/blog/2024-08-16-open-banking-migration-of-swiss-users"}],"openapiByPath":{"/docs/api/business":{"items":[{"id":"/docs/api/business#tag-accounting","title":"Accounting","use":"a","href":"#tag-accounting","items":[{"id":"/docs/api/business#create-accounting-category","title":"Create an accounting category","use":"a","href":"#create-accounting-category","options":{"method":"post"}},{"id":"/docs/api/business#get-accounting-categories","title":"Retrieve a list of accounting categories","use":"a","href":"#get-accounting-categories","options":{"method":"get"}},{"id":"/docs/api/business#get-accounting-category","title":"Retrieve accounting category details","use":"a","href":"#get-accounting-category","options":{"method":"get"}},{"id":"/docs/api/business#update-accounting-category","title":"Update accounting category settings","use":"a","href":"#update-accounting-category","options":{"method":"patch"}},{"id":"/docs/api/business#delete-accounting-category","title":"Delete an accounting category","use":"a","href":"#delete-accounting-category","options":{"method":"delete"}},{"id":"/docs/api/business#create-label-group","title":"Create a new label group","use":"a","href":"#create-label-group","options":{"method":"post"}},{"id":"/docs/api/business#get-label-groups","title":"Retrieve a list of label groups","use":"a","href":"#get-label-groups","options":{"method":"get"}},{"id":"/docs/api/business#get-label-group","title":"Retrieve label group details","use":"a","href":"#get-label-group","options":{"method":"get"}},{"id":"/docs/api/business#update-label-group","title":"Update label group settings","use":"a","href":"#update-label-group","options":{"method":"patch"}},{"id":"/docs/api/business#delete-label-group","title":"Delete a label group","use":"a","href":"#delete-label-group","options":{"method":"delete"}},{"id":"/docs/api/business#create-label","title":"Create a new label","use":"a","href":"#create-label","options":{"method":"post"}},{"id":"/docs/api/business#get-labels","title":"Retrieve a list of labels from a label group","use":"a","href":"#get-labels","options":{"method":"get"}},{"id":"/docs/api/business#update-label","title":"Update a label","use":"a","href":"#update-label","options":{"method":"patch"}},{"id":"/docs/api/business#delete-label","title":"Delete a label","use":"a","href":"#delete-label","options":{"method":"delete"}},{"id":"/docs/api/business#create-tax-rate","title":"Create a new tax rate","use":"a","href":"#create-tax-rate","options":{"method":"post"}},{"id":"/docs/api/business#get-tax-rates","title":"Retrieve a list of tax rates","use":"a","href":"#get-tax-rates","options":{"method":"get"}},{"id":"/docs/api/business#get-tax-rate","title":"Retrieve tax rate details","use":"a","href":"#get-tax-rate","options":{"method":"get"}},{"id":"/docs/api/business#update-tax-rate","title":"Update tax rate settings","use":"a","href":"#update-tax-rate","options":{"method":"patch"}},{"id":"/docs/api/business#delete-tax-rate","title":"Delete a tax rate","use":"a","href":"#delete-tax-rate","options":{"method":"delete"}}]},{"id":"/docs/api/business#tag-accounts","title":"Accounts","use":"a","href":"#tag-accounts","items":[{"id":"/docs/api/business#get-accounts","title":"Retrieve all accounts","use":"a","href":"#get-accounts","options":{"method":"get"}},{"id":"/docs/api/business#get-account","title":"Retrieve an account","use":"a","href":"#get-account","options":{"method":"get"}},{"id":"/docs/api/business#get-account-details","title":"Retrieve account's full bank details","use":"a","href":"#get-account-details","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-cards","title":"Cards","use":"a","href":"#tag-cards","items":[{"id":"/docs/api/business#get-cards","title":"Retrieve a list of cards","use":"a","href":"#get-cards","options":{"method":"get"}},{"id":"/docs/api/business#create-card","title":"Create a card","use":"a","href":"#create-card","options":{"method":"post"}},{"id":"/docs/api/business#get-card","title":"Retrieve card details","use":"a","href":"#get-card","options":{"method":"get"}},{"id":"/docs/api/business#update-card","title":"Update card settings","use":"a","href":"#update-card","options":{"method":"patch"}},{"id":"/docs/api/business#delete-card","title":"Terminate a card","use":"a","href":"#delete-card","options":{"method":"delete"}},{"id":"/docs/api/business#update-card-contacts","title":"Update card contacts","use":"a","href":"#update-card-contacts","options":{"method":"put"}},{"id":"/docs/api/business#update-card-references","title":"Update card references","use":"a","href":"#update-card-references","options":{"method":"put"}},{"id":"/docs/api/business#freeze-card","title":"Freeze a card","use":"a","href":"#freeze-card","options":{"method":"post"}},{"id":"/docs/api/business#unfreeze-card","title":"Unfreeze a card","use":"a","href":"#unfreeze-card","options":{"method":"post"}},{"id":"/docs/api/business#lock-card","title":"Lock a card","use":"a","href":"#lock-card","options":{"method":"post"}},{"id":"/docs/api/business#unlock-card","title":"Unlock a card","use":"a","href":"#unlock-card","options":{"method":"post"}},{"id":"/docs/api/business#get-sensitive-card-details","title":"Retrieve sensitive card details","use":"a","href":"#get-sensitive-card-details","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-card-invitations","title":"Card invitations","use":"a","href":"#tag-card-invitations","items":[{"id":"/docs/api/business#create-card-invitation","title":"Create a card invitation","use":"a","href":"#create-card-invitation","options":{"method":"post"}},{"id":"/docs/api/business#get-card-invitations","title":"Retrieve a list of card invitations","use":"a","href":"#get-card-invitations","options":{"method":"get"}},{"id":"/docs/api/business#get-card-invitation","title":"Retrieve card invitation details","use":"a","href":"#get-card-invitation","options":{"method":"get"}},{"id":"/docs/api/business#update-card-invitation","title":"Update card invitation settings","use":"a","href":"#update-card-invitation","options":{"method":"patch"}},{"id":"/docs/api/business#cancel-card-invitation","title":"Cancel a card invitation","use":"a","href":"#cancel-card-invitation","options":{"method":"post"}}]},{"id":"/docs/api/business#tag-counterparties","title":"Counterparties","use":"a","href":"#tag-counterparties","items":[{"id":"/docs/api/business#validate-account-name","title":"Validate an account name (CoP/VoP)","use":"a","href":"#validate-account-name","options":{"method":"post"}},{"id":"/docs/api/business#get-counterparties","title":"Retrieve a list of counterparties","use":"a","href":"#get-counterparties","options":{"method":"get"}},{"id":"/docs/api/business#add-counterparty","title":"Create a counterparty","use":"a","href":"#add-counterparty","options":{"method":"post"}},{"id":"/docs/api/business#get-counterparty-countries","title":"Check supported countries and currencies","use":"a","href":"#get-counterparty-countries","options":{"method":"get"}},{"id":"/docs/api/business#get-counterparty-requirements","title":"Check counterparty field requirements","use":"a","href":"#get-counterparty-requirements","options":{"method":"get"}},{"id":"/docs/api/business#get-counterparty","title":"Retrieve a counterparty","use":"a","href":"#get-counterparty","options":{"method":"get"}},{"id":"/docs/api/business#delete-counterparty","title":"Delete a counterparty","use":"a","href":"#delete-counterparty","options":{"method":"delete"}},{"id":"/docs/api/business#update-counterparty-payment-method","title":"Update a counterparty's payment method","use":"a","href":"#update-counterparty-payment-method","options":{"method":"patch"}}]},{"id":"/docs/api/business#tag-expenses","title":"Expenses","use":"a","href":"#tag-expenses","items":[{"id":"/docs/api/business#get-expenses","title":"Retrieve a list of expenses","use":"a","href":"#get-expenses","options":{"method":"get"}},{"id":"/docs/api/business#get-expense","title":"Retrieve an expense","use":"a","href":"#get-expense","options":{"method":"get"}},{"id":"/docs/api/business#get-expense-receipt","title":"Retrieve a receipt related to an expense","use":"a","href":"#get-expense-receipt","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-foreign-exchange","title":"Foreign exchange","use":"a","href":"#tag-foreign-exchange","items":[{"id":"/docs/api/business#get-rate","title":"Get an exchange rate","use":"a","href":"#get-rate","options":{"method":"get"}},{"id":"/docs/api/business#exchange-money","title":"Exchange money","use":"a","href":"#exchange-money","options":{"method":"post"}},{"id":"/docs/api/business#get-exchange-reasons","title":"Get exchange reasons","use":"a","href":"#get-exchange-reasons","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-payment-drafts","title":"Payment drafts","use":"a","href":"#tag-payment-drafts","items":[{"id":"/docs/api/business#get-payment-drafts","title":"Retrieve a list of payment drafts","use":"a","href":"#get-payment-drafts","options":{"method":"get"}},{"id":"/docs/api/business#create-payment-draft","title":"Create a payment draft","use":"a","href":"#create-payment-draft","options":{"method":"post"}},{"id":"/docs/api/business#get-payment-draft","title":"Retrieve a payment draft","use":"a","href":"#get-payment-draft","options":{"method":"get"}},{"id":"/docs/api/business#delete-payment-draft","title":"Delete a payment draft","use":"a","href":"#delete-payment-draft","options":{"method":"delete"}},{"id":"/docs/api/business#update-payment-draft","title":"Update a payment draft","use":"a","href":"#update-payment-draft","options":{"method":"patch"}},{"id":"/docs/api/business#add-payment-draft-payment","title":"Add a payment to a payment draft","use":"a","href":"#add-payment-draft-payment","options":{"method":"post"}},{"id":"/docs/api/business#update-payment-draft-payment","title":"Update a payment in a payment draft","use":"a","href":"#update-payment-draft-payment","options":{"method":"patch"}},{"id":"/docs/api/business#delete-payment-draft-payment","title":"Delete a payment from a payment draft","use":"a","href":"#delete-payment-draft-payment","options":{"method":"delete"}}]},{"id":"/docs/api/business#tag-payout-links","title":"Payout links","use":"a","href":"#tag-payout-links","items":[{"id":"/docs/api/business#create-payout-link","title":"Create a payout link","use":"a","href":"#create-payout-link","options":{"method":"post"}},{"id":"/docs/api/business#get-payout-links","title":"Retrieve a list of payout links","use":"a","href":"#get-payout-links","options":{"method":"get"}},{"id":"/docs/api/business#get-payout-link","title":"Retrieve a payout link","use":"a","href":"#get-payout-link","options":{"method":"get"}},{"id":"/docs/api/business#cancel-payout-link","title":"Cancel a payout link","use":"a","href":"#cancel-payout-link","options":{"method":"post"}}]},{"id":"/docs/api/business#tag-simulations","title":"Simulations","use":"a","href":"#tag-simulations","items":[{"id":"/docs/api/business#simulate-transfer-state-update","title":"Simulate a transfer state update (Sandbox only)","use":"a","href":"#simulate-transfer-state-update","options":{"method":"post"}},{"id":"/docs/api/business#simulate-top-up","title":"Simulate an account top-up (Sandbox only)","use":"a","href":"#simulate-top-up","options":{"method":"post"}}]},{"id":"/docs/api/business#tag-team-members","title":"Team members","use":"a","href":"#tag-team-members","items":[{"id":"/docs/api/business#get-team-members","title":"Retrieve a list of team members","use":"a","href":"#get-team-members","options":{"method":"get"}},{"id":"/docs/api/business#invite-team-member","title":"Invite a new member to your business","use":"a","href":"#invite-team-member","options":{"method":"post"}},{"id":"/docs/api/business#delete-team-member","title":"Delete a team member","use":"a","href":"#delete-team-member","options":{"method":"delete"}},{"id":"/docs/api/business#get-roles","title":"Retrieve team roles","use":"a","href":"#get-roles","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-transactions","title":"Transactions","use":"a","href":"#tag-transactions","items":[{"id":"/docs/api/business#get-transactions","title":"Retrieve a list of transactions","use":"a","href":"#get-transactions","options":{"method":"get"}},{"id":"/docs/api/business#get-transaction","title":"Retrieve a transaction","use":"a","href":"#get-transaction","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-transfers","title":"Transfers","use":"a","href":"#tag-transfers","items":[{"id":"/docs/api/business#create-payment","title":"Create a transfer to another account or card","use":"a","href":"#create-payment","options":{"method":"post"}},{"id":"/docs/api/business#get-indicative-quote","title":"Get an indicative quote for a transfer","use":"a","href":"#get-indicative-quote","options":{"method":"post"}},{"id":"/docs/api/business#get-payment-requirements","title":"Check transfer field requirements","use":"a","href":"#get-payment-requirements","options":{"method":"post"}},{"id":"/docs/api/business#create-transfer","title":"Move money between your accounts","use":"a","href":"#create-transfer","options":{"method":"post"}},{"id":"/docs/api/business#get-transfer-reasons","title":"Get transfer reasons","use":"a","href":"#get-transfer-reasons","options":{"method":"get"}}]},{"id":"/docs/api/business#tag-webhooks-v1-deprecated","title":"Webhooks (v1) (deprecated)","use":"a","href":"#tag-webhooks-v1-deprecated","items":[{"id":"/docs/api/business#get-webhook-v1","title":"Retrieve a webhook","use":"a","href":"#get-webhook-v1","options":{"method":"get"}},{"id":"/docs/api/business#set-up-webhook","title":"Set a webhook","use":"a","href":"#set-up-webhook","options":{"method":"post"}},{"id":"/docs/api/business#delete-webhook-v1","title":"Delete a webhook","use":"a","href":"#delete-webhook-v1","options":{"method":"delete"}}]},{"id":"/docs/api/business#tag-webhooks-v2","title":"Webhooks (v2)","use":"a","href":"#tag-webhooks-v2","items":[{"id":"/docs/api/business#create-webhook","title":"Create a new webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/business#get-webhooks","title":"Retrieve a list of webhooks","use":"a","href":"#get-webhooks","options":{"method":"get"}},{"id":"/docs/api/business#get-webhook","title":"Retrieve a webhook","use":"a","href":"#get-webhook","options":{"method":"get"}},{"id":"/docs/api/business#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/business#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/business#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}},{"id":"/docs/api/business#get-failed-webhook-events","title":"Retrieve a list of failed webhook events","use":"a","href":"#get-failed-webhook-events","options":{"method":"get"}}]}],"versions":"$undefined"},"/docs/api/crypto-ramp/2.0.0":{"items":[{"id":"/docs/api/crypto-ramp/2.0.0#tag-partners","title":"Partners","use":"a","href":"#tag-partners","items":[{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-configuration","title":"Retrieve configuration","use":"a","href":"#retrieve-configuration","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-an-order-quote","title":"Retrieve an order quote","use":"a","href":"#retrieve-an-order-quote","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-a-redirect-url","title":"Retrieve a redirect URL","use":"a","href":"#retrieve-a-redirect-url","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-an-order","title":"Retrieve an order","use":"a","href":"#retrieve-an-order","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-all-orders","title":"Retrieve all orders","use":"a","href":"#retrieve-all-orders","options":{"method":"get"}}]},{"id":"/docs/api/crypto-ramp/2.0.0#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-a-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-a-webhook","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#update-a-webhook","title":"Update a webhook","use":"a","href":"#update-a-webhook","options":{"method":"patch"}},{"id":"/docs/api/crypto-ramp/2.0.0#delete-a-webhook","title":"Delete a webhook","use":"a","href":"#delete-a-webhook","options":{"method":"delete"}},{"id":"/docs/api/crypto-ramp/2.0.0#retrieve-a-list-of-webhooks","title":"Retrieve a list of webhooks","use":"a","href":"#retrieve-a-list-of-webhooks","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/2.0.0#create-a-webhook","title":"Create a webhook","use":"a","href":"#create-a-webhook","options":{"method":"post"}}]}],"versions":[{"label":"2.0.0","path":"/docs/api/crypto-ramp","latest":true},{"label":"1.0.0","path":"/docs/api/crypto-ramp/1.0.0","latest":false}]},"/docs/api/crypto-ramp/1.0.0":{"items":[{"id":"/docs/api/crypto-ramp/1.0.0#tag-partners","title":"Partners","use":"a","href":"#tag-partners","items":[{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-configuration","title":"Retrieve configuration","use":"a","href":"#retrieve-configuration","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-an-order-quote","title":"Retrieve an order quote","use":"a","href":"#retrieve-an-order-quote","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-a-redirect-url","title":"Retrieve a redirect URL","use":"a","href":"#retrieve-a-redirect-url","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-an-order","title":"Retrieve an order","use":"a","href":"#retrieve-an-order","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-all-orders","title":"Retrieve all orders","use":"a","href":"#retrieve-all-orders","options":{"method":"get"}}]},{"id":"/docs/api/crypto-ramp/1.0.0#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-a-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-a-webhook","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#update-a-webhook","title":"Update a webhook","use":"a","href":"#update-a-webhook","options":{"method":"patch"}},{"id":"/docs/api/crypto-ramp/1.0.0#delete-a-webhook","title":"Delete a webhook","use":"a","href":"#delete-a-webhook","options":{"method":"delete"}},{"id":"/docs/api/crypto-ramp/1.0.0#retrieve-a-list-of-webhooks","title":"Retrieve a list of webhooks","use":"a","href":"#retrieve-a-list-of-webhooks","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp/1.0.0#create-a-webhook","title":"Create a webhook","use":"a","href":"#create-a-webhook","options":{"method":"post"}}]}],"versions":[{"label":"2.0.0","path":"/docs/api/crypto-ramp","latest":true},{"label":"1.0.0","path":"/docs/api/crypto-ramp/1.0.0","latest":false}]},"/docs/api/crypto-ramp":{"items":[{"id":"/docs/api/crypto-ramp#tag-partners","title":"Partners","use":"a","href":"#tag-partners","items":[{"id":"/docs/api/crypto-ramp#retrieve-configuration","title":"Retrieve configuration","use":"a","href":"#retrieve-configuration","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#retrieve-an-order-quote","title":"Retrieve an order quote","use":"a","href":"#retrieve-an-order-quote","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#retrieve-a-redirect-url","title":"Retrieve a redirect URL","use":"a","href":"#retrieve-a-redirect-url","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#retrieve-an-order","title":"Retrieve an order","use":"a","href":"#retrieve-an-order","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#retrieve-all-orders","title":"Retrieve all orders","use":"a","href":"#retrieve-all-orders","options":{"method":"get"}}]},{"id":"/docs/api/crypto-ramp#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/crypto-ramp#retrieve-a-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-a-webhook","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#update-a-webhook","title":"Update a webhook","use":"a","href":"#update-a-webhook","options":{"method":"patch"}},{"id":"/docs/api/crypto-ramp#delete-a-webhook","title":"Delete a webhook","use":"a","href":"#delete-a-webhook","options":{"method":"delete"}},{"id":"/docs/api/crypto-ramp#retrieve-a-list-of-webhooks","title":"Retrieve a list of webhooks","use":"a","href":"#retrieve-a-list-of-webhooks","options":{"method":"get"}},{"id":"/docs/api/crypto-ramp#create-a-webhook","title":"Create a webhook","use":"a","href":"#create-a-webhook","options":{"method":"post"}}]}],"versions":[{"label":"2.0.0","path":"/docs/api/crypto-ramp","latest":true},{"label":"1.0.0","path":"/docs/api/crypto-ramp/1.0.0","latest":false}]},"/docs/api/merchant/2026-04-20":{"items":[{"id":"/docs/api/merchant/2026-04-20#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2026-04-20#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#increment-authorisation","title":"Increment authorisation","use":"a","href":"#increment-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2026-04-20#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2026-04-20#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant/2026-04-20#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2026-04-20#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant/2026-04-20#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2026-04-20#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2026-04-20#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant/2026-04-20#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2026-04-20#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-04-20#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2026-04-20#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2026-04-20#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2026-04-20#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-04-20#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2026-04-20#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-04-20#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-04-20#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2026-03-12":{"items":[{"id":"/docs/api/merchant/2026-03-12#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2026-03-12#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#increment-authorisation","title":"Increment authorisation","use":"a","href":"#increment-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2026-03-12#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2026-03-12#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant/2026-03-12#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2026-03-12#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant/2026-03-12#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2026-03-12#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2026-03-12#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant/2026-03-12#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2026-03-12#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2026-03-12#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2026-03-12#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2026-03-12#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2026-03-12#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2026-03-12#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2026-03-12#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2026-03-12#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2026-03-12#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2025-12-04":{"items":[{"id":"/docs/api/merchant/2025-12-04#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2025-12-04#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#increment-authorisation","title":"Increment authorisation","use":"a","href":"#increment-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2025-12-04#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2025-12-04#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant/2025-12-04#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2025-12-04#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant/2025-12-04#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2025-12-04#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2025-12-04#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant/2025-12-04#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2025-12-04#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-12-04#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2025-12-04#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2025-12-04#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2025-12-04#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-12-04#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2025-12-04#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-12-04#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-12-04#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2025-10-16":{"items":[{"id":"/docs/api/merchant/2025-10-16#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2025-10-16#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#increment-order-authorisation","title":"Increment authorisation","use":"a","href":"#increment-order-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2025-10-16#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2025-10-16#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant/2025-10-16#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2025-10-16#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant/2025-10-16#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2025-10-16#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2025-10-16#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant/2025-10-16#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2025-10-16#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2025-10-16#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2025-10-16#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2025-10-16#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2025-10-16#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2025-10-16#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2025-10-16#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2025-10-16#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2025-10-16#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2024-09-01":{"items":[{"id":"/docs/api/merchant/2024-09-01#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2024-09-01#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#increment-order-authorisation","title":"Increment authorisation","use":"a","href":"#increment-order-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2024-09-01#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2024-09-01#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant/2024-09-01#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2024-09-01#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant/2024-09-01#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2024-09-01#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2024-09-01#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant/2024-09-01#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2024-09-01#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-09-01#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2024-09-01#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2024-09-01#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2024-09-01#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-09-01#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2024-09-01#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-09-01#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-09-01#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2024-05-01":{"items":[{"id":"/docs/api/merchant/2024-05-01#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2024-05-01#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#increment-order-authorisation","title":"Increment authorisation","use":"a","href":"#increment-order-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#refund-order-deprecated","title":"Refund an order (Deprecated)","use":"a","href":"#refund-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2024-05-01#create-customer-deprecated","title":"Create a customer (Deprecated)","use":"a","href":"#create-customer-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-all-customers-deprecated","title":"Retrieve a customer list (Deprecated)","use":"a","href":"#retrieve-all-customers-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-customer-deprecated","title":"Retrieve a customer (Deprecated)","use":"a","href":"#retrieve-customer-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#update-customer-deprecated","title":"Update a customer (Deprecated)","use":"a","href":"#update-customer-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-05-01#delete-customer-deprecated","title":"Delete a customer (Deprecated)","use":"a","href":"#delete-customer-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-all-payment-methods-deprecated","title":"Retrieve all payment methods of a customer (Deprecated)","use":"a","href":"#retrieve-all-payment-methods-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-payment-method-deprecated","title":"Retrieve a customer's payment method (Deprecated)","use":"a","href":"#retrieve-payment-method-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#update-payment-method-deprecated","title":"Update a customer's payment method (Deprecated)","use":"a","href":"#update-payment-method-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-05-01#delete-payment-method-deprecated","title":"Delete a customer's payment method (Deprecated)","use":"a","href":"#delete-payment-method-deprecated","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2024-05-01#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2024-05-01#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2024-05-01#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2024-05-01#create-webhook-deprecated","title":"Create a webhook (Deprecated)","use":"a","href":"#create-webhook-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-all-webhooks-deprecated","title":"Retrieve a webhook list (Deprecated)","use":"a","href":"#retrieve-all-webhooks-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-webhook-deprecated","title":"Retrieve a webhook (Deprecated)","use":"a","href":"#retrieve-webhook-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#update-webhook-deprecated","title":"Update a webhook (Deprecated)","use":"a","href":"#update-webhook-deprecated","options":{"method":"put"}},{"id":"/docs/api/merchant/2024-05-01#delete-webhook-deprecated","title":"Delete a webhook (Deprecated)","use":"a","href":"#delete-webhook-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/2024-05-01#rotate-webhook-signing-secret-deprecated","title":"Rotate a webhook signing secret (Deprecated)","use":"a","href":"#rotate-webhook-signing-secret-deprecated","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2024-05-01#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2024-05-01#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2024-05-01#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2024-05-01#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2024-05-01#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2024-05-01#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2024-05-01#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2024-05-01#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2024-05-01#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/2023-09-01":{"items":[{"id":"/docs/api/merchant/2023-09-01#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/2023-09-01#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#refund-order-deprecated","title":"Refund an order (Deprecated)","use":"a","href":"#refund-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/2023-09-01#create-customer-deprecated","title":"Create a customer (Deprecated)","use":"a","href":"#create-customer-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-all-customers-deprecated","title":"Retrieve a customer list (Deprecated)","use":"a","href":"#retrieve-all-customers-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-customer-deprecated","title":"Retrieve a customer (Deprecated)","use":"a","href":"#retrieve-customer-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#update-customer-deprecated","title":"Update a customer (Deprecated)","use":"a","href":"#update-customer-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/2023-09-01#delete-customer-deprecated","title":"Delete a customer (Deprecated)","use":"a","href":"#delete-customer-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-all-payment-methods-deprecated","title":"Retrieve all payment methods of a customer (Deprecated)","use":"a","href":"#retrieve-all-payment-methods-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-payment-method-deprecated","title":"Retrieve a customer's payment method (Deprecated)","use":"a","href":"#retrieve-payment-method-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#update-payment-method-deprecated","title":"Update a customer's payment method (Deprecated)","use":"a","href":"#update-payment-method-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/2023-09-01#delete-payment-method-deprecated","title":"Delete a customer's payment method (Deprecated)","use":"a","href":"#delete-payment-method-deprecated","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/2023-09-01#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant/2023-09-01#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/2023-09-01#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/2023-09-01#create-webhook-deprecated","title":"Create a webhook (Deprecated)","use":"a","href":"#create-webhook-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-all-webhooks-deprecated","title":"Retrieve a webhook list (Deprecated)","use":"a","href":"#retrieve-all-webhooks-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-webhook-deprecated","title":"Retrieve a webhook (Deprecated)","use":"a","href":"#retrieve-webhook-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#update-webhook-deprecated","title":"Update a webhook (Deprecated)","use":"a","href":"#update-webhook-deprecated","options":{"method":"put"}},{"id":"/docs/api/merchant/2023-09-01#delete-webhook-deprecated","title":"Delete a webhook (Deprecated)","use":"a","href":"#delete-webhook-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/2023-09-01#rotate-webhook-signing-secret-deprecated","title":"Rotate a webhook signing secret (Deprecated)","use":"a","href":"#rotate-webhook-signing-secret-deprecated","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/2023-09-01#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/2023-09-01#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant/2023-09-01#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant/2023-09-01#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/2023-09-01#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/2023-09-01#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/2023-09-01#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/2023-09-01#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/2023-09-01#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant/Legacy":{"items":[{"id":"/docs/api/merchant/Legacy#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant/Legacy#create-order-deprecated","title":"Create an order (Deprecated)","use":"a","href":"#create-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-order-list-deprecated","title":"Retrieve an order list (Deprecated)","use":"a","href":"#retrieve-order-list-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#retrieve-order-deprecated","title":"Retrieve an order (Deprecated)","use":"a","href":"#retrieve-order-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#update-order-deprecated","title":"Update an order (Deprecated)","use":"a","href":"#update-order-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/Legacy#capture-order-deprecated","title":"Capture an order (Deprecated)","use":"a","href":"#capture-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#cancel-order-deprecated","title":"Cancel an order (Deprecated)","use":"a","href":"#cancel-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#refund-order-deprecated","title":"Refund an order (Deprecated)","use":"a","href":"#refund-order-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant/Legacy#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant/Legacy#create-customer-deprecated","title":"Create a customer (Deprecated)","use":"a","href":"#create-customer-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-all-customers-deprecated","title":"Retrieve a customer list (Deprecated)","use":"a","href":"#retrieve-all-customers-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#retrieve-customer-deprecated","title":"Retrieve a customer (Deprecated)","use":"a","href":"#retrieve-customer-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#update-customer-deprecated","title":"Update a customer (Deprecated)","use":"a","href":"#update-customer-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/Legacy#delete-customer-deprecated","title":"Delete a customer (Deprecated)","use":"a","href":"#delete-customer-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/Legacy#retrieve-all-payment-methods-deprecated","title":"Retrieve all payment methods of a customer (Deprecated)","use":"a","href":"#retrieve-all-payment-methods-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#retrieve-payment-method-deprecated","title":"Retrieve a customer's payment method (Deprecated)","use":"a","href":"#retrieve-payment-method-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#update-payment-method-deprecated","title":"Update a customer's payment method (Deprecated)","use":"a","href":"#update-payment-method-deprecated","options":{"method":"patch"}},{"id":"/docs/api/merchant/Legacy#delete-payment-method-deprecated","title":"Delete a customer's payment method (Deprecated)","use":"a","href":"#delete-payment-method-deprecated","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/Legacy#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant/Legacy#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant/Legacy#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant/Legacy#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant/Legacy#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant/Legacy#create-webhook-deprecated","title":"Create a webhook (Deprecated)","use":"a","href":"#create-webhook-deprecated","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-all-webhooks-deprecated","title":"Retrieve a webhook list (Deprecated)","use":"a","href":"#retrieve-all-webhooks-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#retrieve-webhook-deprecated","title":"Retrieve a webhook (Deprecated)","use":"a","href":"#retrieve-webhook-deprecated","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#update-webhook-deprecated","title":"Update a webhook (Deprecated)","use":"a","href":"#update-webhook-deprecated","options":{"method":"put"}},{"id":"/docs/api/merchant/Legacy#delete-webhook-deprecated","title":"Delete a webhook (Deprecated)","use":"a","href":"#delete-webhook-deprecated","options":{"method":"delete"}},{"id":"/docs/api/merchant/Legacy#rotate-webhook-signing-secret-deprecated","title":"Rotate a webhook signing secret (Deprecated)","use":"a","href":"#rotate-webhook-signing-secret-deprecated","options":{"method":"post"}}]},{"id":"/docs/api/merchant/Legacy#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant/Legacy#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant/Legacy#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant/Legacy#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant/Legacy#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant/Legacy#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant/Legacy#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant/Legacy#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant/Legacy#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/merchant":{"items":[{"id":"/docs/api/merchant#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/merchant#create-order","title":"Create an order","use":"a","href":"#create-order","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-order-list","title":"Retrieve an order list","use":"a","href":"#retrieve-order-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-order","title":"Retrieve an order","use":"a","href":"#retrieve-order","options":{"method":"get"}},{"id":"/docs/api/merchant#update-order","title":"Update an order","use":"a","href":"#update-order","options":{"method":"patch"}},{"id":"/docs/api/merchant#increment-authorisation","title":"Increment authorisation","use":"a","href":"#increment-authorisation","options":{"method":"post"}},{"id":"/docs/api/merchant#capture-order","title":"Capture an order","use":"a","href":"#capture-order","options":{"method":"post"}},{"id":"/docs/api/merchant#cancel-order","title":"Cancel an order","use":"a","href":"#cancel-order","options":{"method":"post"}},{"id":"/docs/api/merchant#refund-order","title":"Refund an order","use":"a","href":"#refund-order","options":{"method":"post"}},{"id":"/docs/api/merchant#pay-order","title":"Pay for an order","use":"a","href":"#pay-order","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-payment-list","title":"Retrieve payment list of an order","use":"a","href":"#retrieve-payment-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant#tag-customers","title":"Customers","use":"a","href":"#tag-customers","items":[{"id":"/docs/api/merchant#create-customer","title":"Create a customer","use":"a","href":"#create-customer","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-customer-list","title":"Retrieve a customer list","use":"a","href":"#retrieve-customer-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-customer","title":"Retrieve a customer","use":"a","href":"#retrieve-customer","options":{"method":"get"}},{"id":"/docs/api/merchant#update-customer","title":"Update a customer","use":"a","href":"#update-customer","options":{"method":"patch"}},{"id":"/docs/api/merchant#delete-customer","title":"Delete a customer","use":"a","href":"#delete-customer","options":{"method":"delete"}},{"id":"/docs/api/merchant#retrieve-payment-method-list","title":"Retrieve payment method list of a customer","use":"a","href":"#retrieve-payment-method-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-payment-method","title":"Retrieve a customer's payment method","use":"a","href":"#retrieve-payment-method","options":{"method":"get"}},{"id":"/docs/api/merchant#update-payment-method","title":"Update a customer's payment method","use":"a","href":"#update-payment-method","options":{"method":"patch"}},{"id":"/docs/api/merchant#delete-payment-method","title":"Delete a customer's payment method","use":"a","href":"#delete-payment-method","options":{"method":"delete"}}]},{"id":"/docs/api/merchant#tag-payments","title":"Payments","use":"a","href":"#tag-payments","items":[{"id":"/docs/api/merchant#retrieve-payment-details","title":"Retrieve payment details","use":"a","href":"#retrieve-payment-details","options":{"method":"get"}}]},{"id":"/docs/api/merchant#tag-subscriptions","title":"Subscriptions","use":"a","href":"#tag-subscriptions","items":[{"id":"/docs/api/merchant#create-subscription-plan","title":"Create a subscription plan","use":"a","href":"#create-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-subscription-plan-list","title":"Retrieve a subscription plan list","use":"a","href":"#retrieve-subscription-plan-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-subscription-plan","title":"Retrieve a subscription plan","use":"a","href":"#retrieve-subscription-plan","options":{"method":"get"}},{"id":"/docs/api/merchant#create-subscription","title":"Create a subscription","use":"a","href":"#create-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-subscription-list","title":"Retrieve a subscription list","use":"a","href":"#retrieve-subscription-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-subscription","title":"Retrieve a subscription","use":"a","href":"#retrieve-subscription","options":{"method":"get"}},{"id":"/docs/api/merchant#update-subscription","title":"Update a subscription","use":"a","href":"#update-subscription","options":{"method":"patch"}},{"id":"/docs/api/merchant#change-subscription-plan","title":"Change a subscription plan","use":"a","href":"#change-subscription-plan","options":{"method":"post"}},{"id":"/docs/api/merchant#update-subscription-renewal-date","title":"Update a subscription renewal date","use":"a","href":"#update-subscription-renewal-date","options":{"method":"post"}},{"id":"/docs/api/merchant#cancel-subscription","title":"Cancel a subscription","use":"a","href":"#cancel-subscription","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-subscription-cycle-list","title":"Retrieve a subscription cycle list","use":"a","href":"#retrieve-subscription-cycle-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-subscription-cycle","title":"Retrieve a subscription cycle","use":"a","href":"#retrieve-subscription-cycle","options":{"method":"get"}},{"id":"/docs/api/merchant#create-subscription-usage","title":"Create a subscription usage","use":"a","href":"#create-subscription-usage","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-subscription-usage-list","title":"Retrieve a subscription usage list","use":"a","href":"#retrieve-subscription-usage-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-subscription-usage","title":"Retrieve a subscription usage","use":"a","href":"#retrieve-subscription-usage","options":{"method":"get"}},{"id":"/docs/api/merchant#update-subscription-usage","title":"Update a subscription usage","use":"a","href":"#update-subscription-usage","options":{"method":"patch"}},{"id":"/docs/api/merchant#delete-subscription-usage","title":"Delete a subscription usage","use":"a","href":"#delete-subscription-usage","options":{"method":"delete"}}]},{"id":"/docs/api/merchant#tag-payouts","title":"Payouts","use":"a","href":"#tag-payouts","items":[{"id":"/docs/api/merchant#retrieve-payout-list","title":"Retrieve a payout list","use":"a","href":"#retrieve-payout-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-payout","title":"Retrieve a payout","use":"a","href":"#retrieve-payout","options":{"method":"get"}}]},{"id":"/docs/api/merchant#tag-disputes","title":"Disputes","use":"a","href":"#tag-disputes","items":[{"id":"/docs/api/merchant#retrieve-dispute-list","title":"Retrieve a dispute list","use":"a","href":"#retrieve-dispute-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-dispute","title":"Retrieve a dispute","use":"a","href":"#retrieve-dispute","options":{"method":"get"}},{"id":"/docs/api/merchant#accept-dispute","title":"Accept a dispute","use":"a","href":"#accept-dispute","options":{"method":"post"}},{"id":"/docs/api/merchant#upload-dispute-evidence","title":"Upload evidence for a dispute","use":"a","href":"#upload-dispute-evidence","options":{"method":"post"}},{"id":"/docs/api/merchant#challenge-dispute","title":"Challenge a dispute","use":"a","href":"#challenge-dispute","options":{"method":"post"}}]},{"id":"/docs/api/merchant#tag-report-runs","title":"Report runs","use":"a","href":"#tag-report-runs","items":[{"id":"/docs/api/merchant#create-report-run","title":"Create a report run","use":"a","href":"#create-report-run","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-report-run","title":"Retrieve a report run","use":"a","href":"#retrieve-report-run","options":{"method":"get"}},{"id":"/docs/api/merchant#download-report-file","title":"Download report file","use":"a","href":"#download-report-file","options":{"method":"get"}}]},{"id":"/docs/api/merchant#tag-webhooks","title":"Webhooks","use":"a","href":"#tag-webhooks","items":[{"id":"/docs/api/merchant#create-webhook","title":"Create a webhook","use":"a","href":"#create-webhook","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-webhook-list","title":"Retrieve a webhook list","use":"a","href":"#retrieve-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-webhook","title":"Retrieve a webhook","use":"a","href":"#retrieve-webhook","options":{"method":"get"}},{"id":"/docs/api/merchant#update-webhook","title":"Update a webhook","use":"a","href":"#update-webhook","options":{"method":"patch"}},{"id":"/docs/api/merchant#delete-webhook","title":"Delete a webhook","use":"a","href":"#delete-webhook","options":{"method":"delete"}},{"id":"/docs/api/merchant#rotate-webhook-signing-secret","title":"Rotate a webhook signing secret","use":"a","href":"#rotate-webhook-signing-secret","options":{"method":"post"}}]},{"id":"/docs/api/merchant#tag-locations","title":"Locations","use":"a","href":"#tag-locations","items":[{"id":"/docs/api/merchant#create-location","title":"Create a location","use":"a","href":"#create-location","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-location-list","title":"Retrieve location list","use":"a","href":"#retrieve-location-list","options":{"method":"get"}},{"id":"/docs/api/merchant#retrieve-location","title":"Retrieve a location","use":"a","href":"#retrieve-location","options":{"method":"get"}},{"id":"/docs/api/merchant#update-location","title":"Update a location","use":"a","href":"#update-location","options":{"method":"patch"}},{"id":"/docs/api/merchant#delete-location","title":"Delete a location","use":"a","href":"#delete-location","options":{"method":"delete"}}]},{"id":"/docs/api/merchant#tag-terminals","title":"Terminals","use":"a","href":"#tag-terminals","items":[{"id":"/docs/api/merchant#retrieve-terminal-list","title":"Retrieve terminal list","use":"a","href":"#retrieve-terminal-list","options":{"method":"get"}}]},{"id":"/docs/api/merchant#tag-payment-intents","title":"Payment intents","use":"a","href":"#tag-payment-intents","items":[{"id":"/docs/api/merchant#create-payment-intent","title":"Create a payment intent","use":"a","href":"#create-payment-intent","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-payment-intent","title":"Retrieve a payment intent","use":"a","href":"#retrieve-payment-intent","options":{"method":"get"}},{"id":"/docs/api/merchant#cancel-payment-intent","title":"Cancel a payment intent","use":"a","href":"#cancel-payment-intent","options":{"method":"post"}}]},{"id":"/docs/api/merchant#tag-apple-pay-merchant-registration","title":"Apple Pay merchant registration","use":"a","href":"#tag-apple-pay-merchant-registration","items":[{"id":"/docs/api/merchant#register-domain-apple-pay","title":"Register domain for Apple Pay","use":"a","href":"#register-domain-apple-pay","options":{"method":"post"}},{"id":"/docs/api/merchant#unregister-domain-apple-pay","title":"Unregister domain for Apple Pay","use":"a","href":"#unregister-domain-apple-pay","options":{"method":"post"}}]},{"id":"/docs/api/merchant#tag-other","title":"Other","use":"a","href":"#tag-other","items":[{"id":"/docs/api/merchant#register-address-validation-endpoint","title":"Register address validation endpoint for Fast checkout","use":"a","href":"#register-address-validation-endpoint","options":{"method":"post"}},{"id":"/docs/api/merchant#retrieve-synchronous-webhook-list","title":"Retrieve a synchronous webhook list","use":"a","href":"#retrieve-synchronous-webhook-list","options":{"method":"get"}},{"id":"/docs/api/merchant#delete-synchronous-webhook","title":"Delete a synchronous webhook","use":"a","href":"#delete-synchronous-webhook","options":{"method":"delete"}}]}],"versions":[{"label":"2026-04-20","path":"/docs/api/merchant","latest":true},{"label":"2026-03-12","path":"/docs/api/merchant/2026-03-12","latest":false},{"label":"2025-12-04","path":"/docs/api/merchant/2025-12-04","latest":false},{"label":"2025-10-16","path":"/docs/api/merchant/2025-10-16","latest":false},{"label":"2024-09-01","path":"/docs/api/merchant/2024-09-01","latest":false},{"label":"2024-05-01","path":"/docs/api/merchant/2024-05-01","latest":false},{"label":"2023-09-01","path":"/docs/api/merchant/2023-09-01","latest":false},{"label":"Legacy","path":"/docs/api/merchant/Legacy","latest":false}]},"/docs/api/open-banking":{"items":[{"id":"/docs/api/open-banking#tag-applications","title":"Applications","use":"a","href":"#tag-applications","items":[{"id":"/docs/api/open-banking#get-distinguished-name","title":"Get a distinguished name (DN)","use":"a","href":"#get-distinguished-name","options":{"method":"get"}},{"id":"/docs/api/open-banking#register-application","title":"Register an application","use":"a","href":"#register-application","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-application","title":"Get an application","use":"a","href":"#get-application","options":{"method":"get"}},{"id":"/docs/api/open-banking#update-application","title":"Update an application","use":"a","href":"#update-application","options":{"method":"put"}},{"id":"/docs/api/open-banking#delete-application","title":"Delete an application","use":"a","href":"#delete-application","options":{"method":"delete"}}]},{"id":"/docs/api/open-banking#tag-accounts","title":"Accounts","use":"a","href":"#tag-accounts","items":[{"id":"/docs/api/open-banking#create-account-access-consents","title":"Create an account access consent","use":"a","href":"#create-account-access-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-account-access-consents-consent-id","title":"Retrieve an account access consent","use":"a","href":"#get-account-access-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#delete-account-access-consents-consent-id","title":"Delete an account access consent","use":"a","href":"#delete-account-access-consents-consent-id","options":{"method":"delete"}},{"id":"/docs/api/open-banking#get-accounts","title":"Retrieve all accounts","use":"a","href":"#get-accounts","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-accounts-account-id","title":"Retrieve an account","use":"a","href":"#get-accounts-account-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-accounts-account-id-balances","title":"Retrieve an account balance","use":"a","href":"#get-accounts-account-id-balances","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-accounts-account-id-beneficiaries","title":"Retrieve all account's beneficiaries","use":"a","href":"#get-accounts-account-id-beneficiaries","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-transactions","title":"Transactions","use":"a","href":"#tag-transactions","items":[{"id":"/docs/api/open-banking#get-accounts-account-id-direct-debits","title":"Retrieve all account's direct debits","use":"a","href":"#get-accounts-account-id-direct-debits","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-accounts-account-id-standing-orders","title":"Retrieve all account's standing orders","use":"a","href":"#get-accounts-account-id-standing-orders","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-accounts-account-id-transactions","title":"Retrieve all transactions","use":"a","href":"#get-accounts-account-id-transactions","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-domestic-payment","title":"Domestic payment","use":"a","href":"#tag-domestic-payment","items":[{"id":"/docs/api/open-banking#create-domestic-payment-consents","title":"Create a domestic payment consent","use":"a","href":"#create-domestic-payment-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-payment-consents-consent-id","title":"Retrieve a domestic payment consent","use":"a","href":"#get-domestic-payment-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-domestic-payment-consents-consent-id-funds-confirmation","title":"Get funds confirmation for a domestic payment consent","use":"a","href":"#get-domestic-payment-consents-consent-id-funds-confirmation","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-domestic-payments","title":"Create a domestic payment","use":"a","href":"#create-domestic-payments","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-payments-domestic-payment-id","title":"Retrieve a domestic payment","use":"a","href":"#get-domestic-payments-domestic-payment-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-domestic-scheduled-payment","title":"Domestic scheduled payment","use":"a","href":"#tag-domestic-scheduled-payment","items":[{"id":"/docs/api/open-banking#create-domestic-scheduled-payment-consents","title":"Create a domestic scheduled payment consent","use":"a","href":"#create-domestic-scheduled-payment-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-scheduled-payment-consents-consent-id","title":"Retrieve a domestic scheduled payment consent","use":"a","href":"#get-domestic-scheduled-payment-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-domestic-scheduled-payments","title":"Create a domestic scheduled payment","use":"a","href":"#create-domestic-scheduled-payments","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-scheduled-payments-domestic-scheduled-payment-id","title":"Retrieve a domestic scheduled payment","use":"a","href":"#get-domestic-scheduled-payments-domestic-scheduled-payment-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-domestic-standing-order","title":"Domestic standing order","use":"a","href":"#tag-domestic-standing-order","items":[{"id":"/docs/api/open-banking#create-domestic-standing-order-consents","title":"Create a domestic standing order consent","use":"a","href":"#create-domestic-standing-order-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-standing-order-consents-consent-id","title":"Retrieve a domestic standing order consent","use":"a","href":"#get-domestic-standing-order-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-domestic-standing-orders","title":"Create a domestic standing order","use":"a","href":"#create-domestic-standing-orders","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-domestic-standing-orders-domestic-standing-order-id","title":"Retrieve a domestic standing order","use":"a","href":"#get-domestic-standing-orders-domestic-standing-order-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-file-payment","title":"File payment","use":"a","href":"#tag-file-payment","items":[{"id":"/docs/api/open-banking#create-file-payment-consents","title":"Create a file payment consent","use":"a","href":"#create-file-payment-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-file-payment-consents-consent-id-file","title":"Retrieve an uploaded payment file","use":"a","href":"#get-file-payment-consents-consent-id-file","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-file-payment-consents-consent-id-file","title":"Upload a payment file","use":"a","href":"#create-file-payment-consents-consent-id-file","options":{"method":"post"}},{"id":"/docs/api/open-banking#create-file-payments","title":"Create a file payment","use":"a","href":"#create-file-payments","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-file-payments-file-payment-id","title":"Retrieve a file payment","use":"a","href":"#get-file-payments-file-payment-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-file-payments-file-payment-id-report-file","title":"Retrieve all payments of a file payment","use":"a","href":"#get-file-payments-file-payment-id-report-file","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-international-payment","title":"International payment","use":"a","href":"#tag-international-payment","items":[{"id":"/docs/api/open-banking#create-international-payment-consents","title":"Create an international payment consent","use":"a","href":"#create-international-payment-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-payment-consents-consent-id","title":"Retrieve an international payment consent","use":"a","href":"#get-international-payment-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-international-payment-consents-consent-id-funds-confirmation","title":"Get funds confirmation for an international payment consent","use":"a","href":"#get-international-payment-consents-consent-id-funds-confirmation","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-international-payments","title":"Create an international payment","use":"a","href":"#create-international-payments","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-payments-international-payment-id","title":"Retrieve an international payment","use":"a","href":"#get-international-payments-international-payment-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-international-scheduled-payment","title":"International scheduled payment","use":"a","href":"#tag-international-scheduled-payment","items":[{"id":"/docs/api/open-banking#create-international-scheduled-payment-consents","title":"Create an international scheduled payment consent","use":"a","href":"#create-international-scheduled-payment-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-scheduled-payment-consents-consent-id","title":"Retrieve an international scheduled payment consent","use":"a","href":"#get-international-scheduled-payment-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#get-international-scheduled-payment-consents-consent-id-funds-confirmation","title":"Get funds confirmation for an international scheduled payment","use":"a","href":"#get-international-scheduled-payment-consents-consent-id-funds-confirmation","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-international-scheduled-payments","title":"Create an international scheduled payment","use":"a","href":"#create-international-scheduled-payments","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-scheduled-payments-international-scheduled-payment-id","title":"Retrieve an international scheduled payment","use":"a","href":"#get-international-scheduled-payments-international-scheduled-payment-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-international-standing-order","title":"International standing order","use":"a","href":"#tag-international-standing-order","items":[{"id":"/docs/api/open-banking#create-international-standing-order-consents","title":"Create an international standing order consent","use":"a","href":"#create-international-standing-order-consents","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-standing-order-consents-consent-id","title":"Retrieve an international standing order consent","use":"a","href":"#get-international-standing-order-consents-consent-id","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-international-standing-orders","title":"Create an international standing order","use":"a","href":"#create-international-standing-orders","options":{"method":"post"}},{"id":"/docs/api/open-banking#get-international-standing-orders-international-standing-order-id","title":"Retrieve an international standing order","use":"a","href":"#get-international-standing-orders-international-standing-order-id","options":{"method":"get"}}]},{"id":"/docs/api/open-banking#tag-draft-payment","title":"Draft payment","use":"a","href":"#tag-draft-payment","items":[{"id":"/docs/api/open-banking#list-draft-payment","title":"List draft payments","use":"a","href":"#list-draft-payment","options":{"method":"get"}},{"id":"/docs/api/open-banking#create-draft-payment","title":"Create a draft payment","use":"a","href":"#create-draft-payment","options":{"method":"post"}},{"id":"/docs/api/open-banking#delete-draft-payment-transfer","title":"Delete a draft payment transfer","use":"a","href":"#delete-draft-payment-transfer","options":{"method":"delete"}},{"id":"/docs/api/open-banking#find-draft-payment","title":"Retrieve a draft payment","use":"a","href":"#find-draft-payment","options":{"method":"get"}},{"id":"/docs/api/open-banking#delete-draft-payment","title":"Delete a draft payment","use":"a","href":"#delete-draft-payment","options":{"method":"delete"}}]},{"id":"/docs/api/open-banking#tag-untagged","title":"Untagged","use":"a","href":"#tag-untagged","items":[{"id":"/docs/api/open-banking#get-file-payment-consents-consent-id","title":"Retrieve a file payment consent","use":"a","href":"#get-file-payment-consents-consent-id","options":{"method":"get"}}]}],"versions":"$undefined"},"/docs/api/revolut-wallet-callbacks":{"items":[{"id":"/docs/api/revolut-wallet-callbacks#tag-transaction-outcomes","title":"Transaction outcomes","use":"a","href":"#tag-transaction-outcomes","items":[{"id":"/docs/api/revolut-wallet-callbacks#search-transaction-outcomes","title":"Fetch transaction outcomes for a transaction","use":"a","href":"#search-transaction-outcomes","options":{"method":"post"}}]},{"id":"/docs/api/revolut-wallet-callbacks#tag-passes","title":"Passes","use":"a","href":"#tag-passes","items":[{"id":"/docs/api/revolut-wallet-callbacks#fetch-pass","title":"Retrieve a pass","use":"a","href":"#fetch-pass","options":{"method":"get"}}]}],"versions":"$undefined"},"/docs/api/revolut-wallet-partner":{"items":[{"id":"/docs/api/revolut-wallet-partner#tag-passes","title":"Passes","use":"a","href":"#tag-passes","items":[{"id":"/docs/api/revolut-wallet-partner#create-pass","title":"Create a pass","use":"a","href":"#create-pass","options":{"method":"post"}},{"id":"/docs/api/revolut-wallet-partner#push-pass-update","title":"Update a pass","use":"a","href":"#push-pass-update","options":{"method":"put"}}]}],"versions":"$undefined"},"/docs/api/revolut-x-crypto-exchange":{"items":[{"id":"/docs/api/revolut-x-crypto-exchange#tag-balance","title":"Balance","use":"a","href":"#tag-balance","items":[{"id":"/docs/api/revolut-x-crypto-exchange#get-all-balances","title":"Get all balances","use":"a","href":"#get-all-balances","options":{"method":"get"}}]},{"id":"/docs/api/revolut-x-crypto-exchange#tag-configuration","title":"Configuration","use":"a","href":"#tag-configuration","items":[{"id":"/docs/api/revolut-x-crypto-exchange#get-all-currencies","title":"Get all currencies","use":"a","href":"#get-all-currencies","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-all-currency-pairs","title":"Get all currency pairs","use":"a","href":"#get-all-currency-pairs","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-all-public-currencies","title":"Get all currencies public","use":"a","href":"#get-all-public-currencies","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-all-public-currency-pairs","title":"Get all currency pairs public","use":"a","href":"#get-all-public-currency-pairs","options":{"method":"get"}}]},{"id":"/docs/api/revolut-x-crypto-exchange#tag-public-market-data","title":"Public Market Data","use":"a","href":"#tag-public-market-data","items":[{"id":"/docs/api/revolut-x-crypto-exchange#get-last-trades","title":"Get last trades","use":"a","href":"#get-last-trades","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-all-trades-public","title":"Get public trades (market history)","use":"a","href":"#get-all-trades-public","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-public-order-book","title":"Get order book","use":"a","href":"#get-public-order-book","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-public-order-book-v2","title":"Get order book V2","use":"a","href":"#get-public-order-book-v2","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-public-candles","title":"Get public historical OHLCV candles","use":"a","href":"#get-public-candles","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-public-tickers","title":"Get public tickers","use":"a","href":"#get-public-tickers","options":{"method":"get"}}]},{"id":"/docs/api/revolut-x-crypto-exchange#tag-orders","title":"Orders","use":"a","href":"#tag-orders","items":[{"id":"/docs/api/revolut-x-crypto-exchange#place-order","title":"Place order","use":"a","href":"#place-order","options":{"method":"post"}},{"id":"/docs/api/revolut-x-crypto-exchange#cancel-all-orders","title":"Cancel all active orders","use":"a","href":"#cancel-all-orders","options":{"method":"delete"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-active-orders","title":"Get active orders","use":"a","href":"#get-active-orders","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-historical-orders","title":"Get historical orders","use":"a","href":"#get-historical-orders","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-order","title":"Get order by ID","use":"a","href":"#get-order","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#cancel-order","title":"Cancel order by ID","use":"a","href":"#cancel-order","options":{"method":"delete"}},{"id":"/docs/api/revolut-x-crypto-exchange#replace-order","title":"Replace order","use":"a","href":"#replace-order","options":{"method":"put"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-order-fills","title":"Get fills of order by ID","use":"a","href":"#get-order-fills","options":{"method":"get"}}]},{"id":"/docs/api/revolut-x-crypto-exchange#tag-trades","title":"Trades","use":"a","href":"#tag-trades","items":[{"id":"/docs/api/revolut-x-crypto-exchange#get-all-trades","title":"Get public trades for a specific symbol (market history)","use":"a","href":"#get-all-trades","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-private-trades","title":"Get client trades (associated with the provided API key) for a specific symbol","use":"a","href":"#get-private-trades","options":{"method":"get"}}]},{"id":"/docs/api/revolut-x-crypto-exchange#tag-market-data","title":"Market Data","use":"a","href":"#tag-market-data","items":[{"id":"/docs/api/revolut-x-crypto-exchange#get-order-book","title":"Get order book snapshot","use":"a","href":"#get-order-book","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-candles","title":"Get historical OHLCV candles","use":"a","href":"#get-candles","options":{"method":"get"}},{"id":"/docs/api/revolut-x-crypto-exchange#get-ticker","title":"Get all tickers","use":"a","href":"#get-ticker","options":{"method":"get"}}]}],"versions":"$undefined"}},"alphaByPath":{}},"children":["$undefined","$L4","$L5"]}]}]}]]}]} 5:["$","footer",null,{"className":"_19k157u0","children":["$","div",null,{"className":"_19k157u1","children":[["$","div",null,{"className":"_19k157u2","children":[["$","img",null,{"data-revpress-display":"light","className":"_19k157u8","src":"https://storage.googleapis.com/revolut-prod-apps_cdn/Brand/Retail/Logos/Wordmark/Revolut_Black.svg","alt":"Revolut"}],["$","img",null,{"data-revpress-display":"dark","className":"_19k157u8","src":"https://storage.googleapis.com/revolut-prod-apps_cdn/Brand/Retail/Logos/Wordmark/Revolut_White.svg","alt":"Revolut"}],[["$","div","0",{"className":"_19k157u4","children":[["$","span",null,{"className":"_19k157u3","children":"Company and products"}],[["$","$L3","0",{"className":"_19k157u5","to":"https://revolut.com/","children":"Discover Revolut"}],["$","$L3","1",{"className":"_19k157u5","to":"https://www.revolut.com/careers/","children":"Join the team!"}],["$","$L3","2",{"className":"_19k157u5","to":"mailto:api-requests@revolut.com","children":"Email us for API support"}]]]}],["$","div","1",{"className":"_19k157u4","children":[["$","span",null,{"className":"_19k157u3","children":"Build Banking Apps"}],[["$","$L3","0",{"className":"_19k157u5","to":"/docs/guides/build-banking-apps/introduction-to-the-open-banking-api/introduction","children":"Documentation"}],["$","$L3","1",{"className":"_19k157u5","to":"/docs/api/open-banking","children":"Open Banking API"}],["$","$L3","2",{"className":"_19k157u5","to":"/docs/guides/build-banking-apps/api-metrics","children":"API Status"}],["$","$L3","3",{"className":"_19k157u5","to":"https://developer.revolut.com/portal/signup","children":"Developer Portal"}],["$","$L3","4",{"className":"_19k157u5","to":"mailto:api-requests@revolut.com","children":"Request Sandbox access"}]]]}],["$","div","2",{"className":"_19k157u4","children":[["$","span",null,{"className":"_19k157u3","children":"Manage Accounts"}],[["$","$L3","0",{"className":"_19k157u5","to":"/docs/guides/manage-accounts/introduction","children":"Documentation"}],["$","$L3","1",{"className":"_19k157u5","to":"/docs/api/business","children":"Business API"}]]]}],["$","div","3",{"className":"_19k157u4","children":[["$","span",null,{"className":"_19k157u3","children":"Accept Payments"}],[["$","$L3","0",{"className":"_19k157u5","to":"/docs/guides/merchant/introduction","children":"Documentation"}],["$","$L3","1",{"className":"_19k157u5","to":"/docs/api/merchant","children":"Merchant API"}],["$","$L3","2",{"className":"_19k157u5","to":"/docs/sdks/merchant-web-sdk/introduction","children":"Merchant Web SDKs"}],["$","$L3","3",{"className":"_19k157u5","to":"/docs/sdks/merchant-ios-sdk/introduction","children":"Merchant iOS SDKs"}],["$","$L3","4",{"className":"_19k157u5","to":"/docs/sdks/merchant-android-sdk/introduction","children":"Merchant Android SDKs"}]]]}],["$","div","4",{"className":"_19k157u4","children":[["$","span",null,{"className":"_19k157u3","children":"In-person Payments"}],[["$","$L3","0",{"className":"_19k157u5","to":"/docs/guides/merchant/accept-payments/in-person-payments/introduction","children":"Documentation"}],["$","$L3","1",{"className":"_19k157u5","to":"/docs/guides/merchant/accept-payments/in-person-payments/pos/introduction","children":"Revolut POS"}],["$","$L3","2",{"className":"_19k157u5","to":"https://apps.apple.com/gb/app/revolut-pos/id1604861598","children":"Download the Revolut POS app"}],["$","$L3","3",{"className":"_19k157u5","to":"/docs/guides/merchant/accept-payments/in-person-payments/reader/introduction","children":"Revolut Reader"}],["$","$L3","4",{"className":"_19k157u5","to":"/docs/guides/merchant/accept-payments/in-person-payments/terminal/introduction","children":"Revolut Terminal"}]]]}]]]}],["$","div",null,{"data-has-links":true,"className":"_19k157u6","children":[["$","p",null,{"className":"_19k157u7","children":["© Revolut Ltd ",2026]}],[["$","p","0",{"className":"_19k157u7","children":"If you would like to find out more about which Revolut entity you receive services from, or if you have any other questions, please reach out to us via the in-app chat in the Revolut app. Revolut Ltd (No. 08804411) is authorised by the Financial Conduct Authority under the Electronic Money Regulations 2011 (Firm Reference 900562). Registered address: 30 South Colonnade, Canary Wharf, London, England, E14 5HX. Insurance related-products are arranged by Revolut Travel Ltd which is authorised by the Financial Conduct Authority to undertake insurance distribution activities (FCA No: 780586) and by Revolut Ltd, an Appointed Representative of Revolut Travel Ltd in relation to insurance distribution activities. Trading and investment products are provided by Revolut Trading Ltd (No. 832790) is wholly owned subsidiary of Revolut Ltd and is an appointed representative of Resolution Compliance Ltd which is authorised and regulated by the Financial Conduct Authority."}],"$L6","$L7"]]}]]}]}] 6:["$","p","1",{"className":"_19k157u7","children":"We are also registered with the Financial Conduct Authority to offer cryptocurrency services under the Money Laundering, Terrorist Financing and Transfer of Funds (Information on the Payer) Regulations 2017."}] 7:["$","p","2",{"className":"_19k157u7","children":"Revolut's commodities service is not regulated by the FCA."}] 8:T742,Welcome to the Revolut Merchant API - your solution to managing the core aspects of e-commerce and accepting online payments. Whether you're a startup, a growing business, or an established enterprise in the e-commerce industry, our API helps you streamline your operations. As a Revolut Business customer with a Merchant Account, you can use the Merchant API to leverage the following features: - [Order management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-orders) - [Customer management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-customers) - [Payment management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-payments) - [Reporting analytics](https://developer.revolut.com/docs/api/merchant/Legacy#tag-report-runs) - [Webhook management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-webhooks) - [Location management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-locations) ... and more. ### API versions :::warning We highly recommend using versioning in your API calls. If you don't provide a version header on the operations where it's required, you will receive an error response. ::: The Merchant API uses request header versioning. Where it is required you need to use the `Revolut-Api-Version` header parameter to specify an API version. Each request, where it is indicated in the API specification, must contain a version header in the following format: ``` 'Revolut-Api-Version: 2023-09-01' ``` :::info For more information, see: [API versions](https://developer.revolut.com/docs/guides/merchant/reference/versioning/api-versions) ::: ### Test the Merchant API You can test the Merchant API in Postman by forking this collection: [![View in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/revolut-api/workspace/revolut-developers/overview)9:T742,Welcome to the Revolut Merchant API - your solution to managing the core aspects of e-commerce and accepting online payments. Whether you're a startup, a growing business, or an established enterprise in the e-commerce industry, our API helps you streamline your operations. As a Revolut Business customer with a Merchant Account, you can use the Merchant API to leverage the following features: - [Order management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-orders) - [Customer management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-customers) - [Payment management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-payments) - [Reporting analytics](https://developer.revolut.com/docs/api/merchant/Legacy#tag-report-runs) - [Webhook management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-webhooks) - [Location management](https://developer.revolut.com/docs/api/merchant/Legacy#tag-locations) ... and more. ### API versions :::warning We highly recommend using versioning in your API calls. If you don't provide a version header on the operations where it's required, you will receive an error response. ::: The Merchant API uses request header versioning. Where it is required you need to use the `Revolut-Api-Version` header parameter to specify an API version. Each request, where it is indicated in the API specification, must contain a version header in the following format: ``` 'Revolut-Api-Version: 2023-09-01' ``` :::info For more information, see: [API versions](https://developer.revolut.com/docs/guides/merchant/reference/versioning/api-versions) ::: ### Test the Merchant API You can test the Merchant API in Postman by forking this collection: [![View in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/revolut-api/workspace/revolut-developers/overview)4:[["$","title",null,{"children":"Merchant API | Developer"}],["$","meta",null,{"property":"og:title","content":"Merchant API | Developer"}],[["$","meta",null,{"name":"description","content":"$8"}],["$","meta",null,{"property":"og:description","content":"$9"}]],"$undefined","$La","$Lb","$Lc"] a:["$","meta",null,{"property":"og:url","content":"https://developer.revolut.com/docs/api/merchant/Legacy"}] b:[["$","meta",null,{"property":"og:image","content":"https://developer.revolut.com/_assets/og/docs/api/merchant/Legacy.png"}],["$","meta",null,{"property":"og:image:width","content":"1200"}],["$","meta",null,{"property":"og:image:height","content":"630"}],["$","meta",null,{"property":"og:image:type","content":"image/png"}],["$","meta",null,{"name":"twitter:card","content":"summary_large_image"}]] c:["$","$Ld",null,{"children":["$","div",null,{"data-variant":"menu-wide","data-has-feed":false,"data-revpress":"layout","className":"wp3eky1","children":[["$","$Le",null,{"actions":"$undefined"}],["$","$Lf",null,{}],["$","main",null,{"data-variant":"$undefined","className":"_12jbm4g0","children":[["$","nav",null,{"className":"e43y4a0","data-event-key":"breadcrumbs","children":["$","ol",null,{"className":"e43y4a1","children":[["$","li","/-0",{"className":"e43y4a2","children":["$","$L3",null,{"className":"e43y4a3","to":"/","children":"Home"}]}],["$","li","/docs/api/merchant/Legacy-1",{"className":"e43y4a2","children":null}]]}]}],["$","div",null,{"className":"nizrjz0","children":[["$","h1",null,{"className":"nizrjz2","children":["Merchant API",["$","span",null,{"className":"ubxf1y0","children":["$","$L10",null,{"variant":"faded","color":"accent","children":"Legacy"}]}]]}],["$","div",null,{"className":"nizrjz1","children":["$","$L11",null,{"color":"var(--rui-color-grey-tone-50)","className":"_107lvaj3","useIcon":"16/Code","use":"a","href":"/docs/api/merchant/Legacy.yaml","target":"_blank","rel":"noreferrer noopener","children":"View schema"}]}]]}],["$","article",null,{"className":"_8qmzte0 ubxf1y1","children":[["$","div",null,{"className":"_107lvaj0","children":["$undefined","$L12",["$","$L13",null,{"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L14"}}}]]}],[["$","div","tag-orders",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-orders","children":["Orders",["$","$L15",null,{"id":"tag-orders"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-orders.md"}]]}],"$L17"]}]}],"$undefined"]}],["$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20"]]}],["$","div","tag-customers",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-customers","children":["Customers",["$","$L15",null,{"id":"tag-customers"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-customers.md"}]]}],"$L21"]}]}],"$undefined"]}],["$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a"]]}],["$","div","tag-payments",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-payments","children":["Payments",["$","$L15",null,{"id":"tag-payments"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-payments.md"}]]}],"$L2b"]}]}],"$undefined"]}],["$L2c"]]}],["$","div","tag-report-runs",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-report-runs","children":["Report runs",["$","$L15",null,{"id":"tag-report-runs"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-report-runs.md"}]]}],"$L2d"]}]}],"$undefined"]}],["$L2e","$L2f","$L30"]]}],["$","div","tag-webhooks",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-webhooks","children":["Webhooks",["$","$L15",null,{"id":"tag-webhooks"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-webhooks.md"}]]}],"$L31"]}]}],"$undefined"]}],["$L32","$L33","$L34","$L35","$L36","$L37"]]}],["$","div","tag-locations",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-locations","children":["Locations",["$","$L15",null,{"id":"tag-locations"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-locations.md"}]]}],"$L38"]}]}],"$undefined"]}],["$L39","$L3a","$L3b","$L3c","$L3d"]]}],["$","div","tag-apple-pay-merchant-registration",{"children":["$L3e",["$L3f","$L40"]]}],"$L41"],"$L42"]}]]}],"$L43"]}]}] 3e:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-apple-pay-merchant-registration","children":["Apple Pay merchant registration",["$","$L15",null,{"id":"tag-apple-pay-merchant-registration"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-apple-pay-merchant-registration.md"}]]}],"$L44"]}]}],"$undefined"]}] 41:["$","div","tag-other",{"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"_107lvaj1","children":[["$","div",null,{"className":"_107lvaj2","children":[["$","h2",null,{"id":"tag-other","children":["Other",["$","$L15",null,{"id":"tag-other"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/tags/tag-other.md"}]]}],"$L45"]}]}],"$undefined"]}],["$L46","$L47","$L48"]]}] 42:["$","$L49",null,{"sectionIds":["tag-orders","create-order-deprecated","retrieve-order-list-deprecated","retrieve-order-deprecated","update-order-deprecated","capture-order-deprecated","cancel-order-deprecated","refund-order-deprecated","pay-order","retrieve-payment-list","tag-customers","create-customer-deprecated","retrieve-all-customers-deprecated","retrieve-customer-deprecated","update-customer-deprecated","delete-customer-deprecated","retrieve-all-payment-methods-deprecated","retrieve-payment-method-deprecated","update-payment-method-deprecated","delete-payment-method-deprecated","tag-payments","retrieve-payment-details","tag-report-runs","create-report-run","retrieve-report-run","download-report-file","tag-webhooks","create-webhook-deprecated","retrieve-all-webhooks-deprecated","retrieve-webhook-deprecated","update-webhook-deprecated","delete-webhook-deprecated","rotate-webhook-signing-secret-deprecated","tag-locations","create-location","retrieve-location-list","retrieve-location","update-location","delete-location","tag-apple-pay-merchant-registration","register-domain-apple-pay","unregister-domain-apple-pay","tag-other","register-address-validation-endpoint","retrieve-synchronous-webhook-list","delete-synchronous-webhook"]}] 43:["$","div",null,{"className":"wp3eky0","children":["$","$L4a",null,{}]}] 4c:I["98d563c3c055",[],"Icon",1] 14:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L4b","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 17:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The Orders resource in the Merchant API offers a comprehensive solution for managing the lifecycle of orders within your e-commerce or retail platform. Designed to streamline order processing, this resource encapsulates a suite of operations that allow for efficiently handling order management-related tasks. For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}],"\n",["$","p","p-1",{"children":"These operations are equipped to handle various order management scenarios, providing a robust interface for businesses to interact with their order data."}],"\n",["$","p","p-2",{"children":["To process a payment related to your customers' purchases, you need to create an ",["$","code","code-0",{"children":"Order"}]," object. Then you can use an order's unique ",["$","code","code-1",{"children":"token"}]," to process and accept payments via the Revolut Checkout Widget."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-order","target":"_blank","rel":"noreferrer","children":"Create an order endpoint"}]," was updated to a new version and now returns ",["$","code","code-0",{"children":"token"}]," as the public identifier for the order. Previous integrations might still use the deprecated endpoint returning ",["$","code","code-1",{"children":"public_id"}],"."]}],["$","p","p-1",{"children":["We strongly advise upgrading to the new ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-order","target":"_blank","rel":"noreferrer","children":"Create an order endpoint"}],"."]}]]}]]}]]}] 21:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The Customers resource in the Merchant API is a pivotal tool for tracking and managing customer-related transactions within your e-commerce or retail platform. This resource provides a structured approach to customer management, enabling you to maintain a consistent record of customer transactions."}],"\n",["$","p","p-1",{"children":["A ",["$","code","code-0",{"children":"Customer"}]," object can be created using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-customer","target":"_blank","rel":"noreferrer","children":"Create a customer"}]," endpoint and you can then retrieve, update and delete a customer using its ",["$","code","code-1",{"children":"id"}],". ",["$","code","code-2",{"children":"Customer"}]," objects enable you to track multiple transactions in your system associated with the same customer in the Merchant API."]}],"\n",["$","p","p-2",{"children":["You can save and store payment methods of a customer in the ",["$","code","code-0",{"children":"payment_method"}]," object, for more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","target":"_blank","rel":"noreferrer","children":"Charge a customer's saved payment method"}],". A merchant can store the details of the payment securely and group transactions from the same payment method in their system."]}],"\n",["$","p","p-3",{"children":"A payment method is unique for each customer. For example, if the same card is used for a transaction by two different customers, two payment method objects are created linked to each customer."}],"\n",["$","p","p-4",{"children":"Similar principle applies when saving payment methods via Revolut Pay for merchant initiated transaction (MIT - useful for recurring payments). If a customer saves their details through Revolut Pay for MIT in separate sessions, each session will create a new payment method object linked to the customer."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"You cannot create a payment method explicitly because they are generated as part of a payment. You can only retrieve, update or delete a payment method, or you can retrieve all payment methods of a customer."}]}]]}]]}] 2b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Payment operations enable you to initiate payments, or track payment status transitions. You can use the ID of the payment to retrieve information about a specific payment."}],"\n",["$","p","p-1",{"children":["For more information about the payment lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]]}] 2d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Use ",["$","strong","strong-0",{"children":"Report runs"}]," operations to generate CSV reports of your Merchant account transactions. Choose from the following report types based on your use case:"]}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All payments, including failed and declined ones.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All transactions that contributed to a specific payout.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"IC++ fee components broken down per transaction for a specific IC++ charge.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about how to generate CSV reports, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/reports-reconciliation","target":"_blank","rel":"noreferrer","children":"Create CSV reports of transactions"}],"."]}]}]]}]]}] 31:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A ",["$","code","code-0",{"children":"webhook"}]," (also called a web callback) allows your system to receive an event from a different app immediately after it happens."]}],"\n",["$","p","p-1",{"children":["For example, you can subscribe to a webhook when an order changes from ",["$","code","code-0",{"children":"pending"}]," to ",["$","code","code-1",{"children":"completed"}]," status. When the payment is cleared and the order is completed, Revolut servers send a notification to the URL of your choice. This is a more efficient way to know when an order is paid as opposed to trying to get the status of the order every few seconds."]}],"\n",["$","p","p-2",{"children":["Many events that happen to a Revolut Merchant account are synchronous, which means they arrive instantly and have immediate results. For example, a successful request to create a customer immediately returns a ",["$","code","code-0",{"children":"Customer"}]," object. Such requests don't require webhooks."]}],"\n",["$","p","p-3",{"children":["The Revolut Merchant API supports webhooks for events including ",["$","code","code-0",{"children":"ORDER_COMPLETED"}]," and ",["$","code","code-1",{"children":"ORDER_AUTHORISED"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Because we cannot guarantee the delivery order of the status (",["$","code","code-0",{"children":"events"}],"), you might receive the status not in the expected order. Make sure that your implementation does not rely on the order that the events are being received in."]}]}]]}],"\n",["$","p","p-4",{"children":["For example, for a completed order, you should receive the ",["$","code","code-0",{"children":"ORDER_AUTHORISED"}]," status first and then ",["$","code","code-1",{"children":"ORDER_COMPLETED"}],". However, if the ",["$","code","code-2",{"children":"ORDER_AUTHORISED"}]," status isn't sent successfully at first, it's moved to the queue to be resent in the next few minutes. Before then, if the ",["$","code","code-3",{"children":"ORDER_COMPLETED"}]," status is sent successfully, you get ",["$","code","code-4",{"children":"ORDER_COMPLETED"}]," first and then ",["$","code","code-5",{"children":"ORDER_AUTHORISED"}],"."]}],"\n",["$","p","p-5",{"children":["Check out our tutorial for ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/using-webhooks","target":"_blank","rel":"noreferrer","children":"Using webhooks to keep track of the payment lifecycle"}],"."]}],"\n",["$","div","inlinealert-1",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order and payment lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 38:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The Locations API is designed to help merchants manage multiple points of sale, including both ",["$","strong","strong-0",{"children":"online storefronts"}]," and ",["$","strong","strong-1",{"children":"physical stores"}],". Registering locations lets you differentiate and group your orders from different stores. You can also introduce custom business logic for each location, such as different inventory management, pricing, or shipping rules."]}],"\n",["$","p","p-1",{"children":"To start using locations, follow the relevant use case for your business:"}],"\n",["$","h3","h3-0",{"children":"Online locations"}],"\n",["$","ol","ol-0",{"children":["\n",["$","li","li-0",{"children":["Register an online location using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-location","target":"_blank","rel":"noreferrer","children":"Create a location"}]," endpoint, setting the ",["$","code","code-0",{"children":"type"}]," to ",["$","code","code-1",{"children":"online"}],"."]}],"\n",["$","li","li-1",{"children":"Configure your custom processes on your backend for each registered location (e.g., grouping orders, custom pricing, etc.)."}],"\n",["$","li","li-2",{"children":["Send the ",["$","code","code-0",{"children":"location_id"}]," parameter in the request body during ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-order","target":"_blank","rel":"noreferrer","children":"order creation"}]," to assign the order to a specific location."]}],"\n"]}],"\n",["$","h5","h5-0",{"children":"Physical locations"}],"\n",["$","ol","ol-1",{"children":["\n",["$","li","li-0",{"children":["Register a physical location using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-location","target":"_blank","rel":"noreferrer","children":"Create a location"}]," endpoint, setting the ",["$","code","code-0",{"children":"type"}]," to ",["$","code","code-1",{"children":"physical"}],"."]}],"\n",["$","li","li-1",{"children":["In case of Revolut POS, our system handles order creation including ",["$","code","code-0",{"children":"location_id"}]," to associate the order with your location."]}],"\n"]}],"\n",["$","h4","h4-0",{"children":"Fast checkout for multiple storefronts"}],"\n",["$","p","p-2",{"children":["Locations are particularly useful for tailoring the user experience on each of your online storefronts, especially when using features like ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/fast-checkout","target":"_blank","rel":"noreferrer","children":["$","strong","strong-0",{"children":"Fast checkout"}]}],"."]}],"\n",["$","p","p-3",{"children":["For example, if you operate two online stores with different shipping rules, you can register two separate ",["$","code","code-0",{"children":"online"}]," locations. By then using the ",["$","code","code-1",{"children":"location_id"}]," to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#register-address-validation-endpoint","target":"_blank","rel":"noreferrer","children":"register a distinct address validation endpoint"}]," for each one, your backend can apply the correct shipping logic and pricing for the specific storefront a customer is buying from."]}]]}] 4e:I["5a58dc8a966f",[],"Media",1] 44:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Operations for managing a merchant's domain registration and configuration with Apple for integration of Apple Pay via Revolut."}],"\n",["$","p","p-1",{"children":"This includes initiating domain validation with Apple, a necessary step for merchants to offer Apple Pay as a payment method on their websites or apps."}],"\n",["$","p","p-2",{"children":["These endpoints interact with Apple's ",["$","a","a-0",{"href":"https://developer.apple.com/documentation/applepaywebmerchantregistrationapi","target":"_blank","rel":"noreferrer","children":"Apple Pay Web Merchant Registration services"}],"."]}]]}] 45:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Other operations that can be done with the Merchant API."}]]}] 12:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Welcome to the Revolut Merchant API - your solution to managing the core aspects of e-commerce and accepting online payments. Whether you're a startup, a growing business, or an established enterprise in the e-commerce industry, our API helps you streamline your operations."}],"\n",["$","p","p-1",{"children":"As a Revolut Business customer with a Merchant Account, you can use the\nMerchant API to leverage the following features:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-orders","target":"_blank","rel":"noreferrer","children":"Order management"}]}],"\n",["$","li","li-1",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-customers","target":"_blank","rel":"noreferrer","children":"Customer management"}]}],"\n",["$","li","li-2",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-payments","target":"_blank","rel":"noreferrer","children":"Payment management"}]}],"\n",["$","li","li-3",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-report-runs","target":"_blank","rel":"noreferrer","children":"Reporting analytics"}]}],"\n",["$","li","li-4",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-webhooks","target":"_blank","rel":"noreferrer","children":"Webhook management"}]}],"\n",["$","li","li-5",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#tag-locations","target":"_blank","rel":"noreferrer","children":"Location management"}]}],"\n"]}],"\n",["$","p","p-2",{"children":"... and more."}],"\n",["$","h2","h2-0",{"children":"API versions"}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"We highly recommend using versioning in your API calls. If you don't provide a version header on the operations where it's required, you will receive an error response."}]}]]}],"\n",["$","p","p-3",{"children":["The Merchant API uses request header versioning. Where it is required you need to use the ",["$","code","code-0",{"children":"Revolut-Api-Version"}]," header parameter to specify an API version. Each request, where it is indicated in the API specification, must contain a version header in the following format:"]}],"\n","$L4d","\n",["$","div","inlinealert-1",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/versioning/api-versions","target":"_blank","rel":"noreferrer","children":"API versions"}]]}]}]]}],"\n",["$","h4","h4-0",{"children":"Test the Merchant API"}],"\n",["$","p","p-4",{"children":"You can test the Merchant API in Postman by forking this collection:"}],"\n",["$","p","p-5",{"children":["$","a","a-0",{"href":"https://www.postman.com/revolut-api/workspace/revolut-developers/overview","target":"_blank","rel":"noreferrer","children":["$","$L4e","img-0",{"src":"https://run.pstmn.io/button.svg","alt":"View in Postman"}]}]}]]}] 4f:I["50460d952402",[],"ScrollArea",1] 50:I["669a0b877249",[],"CopyButton",1] 4b:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 4d:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Revolut-Api-Version: 2023-09-01'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Revolut-Api-Version: 2023-09-01'\n"}]}]]}] 51:"$Sreact.fragment" 52:I["18c949fc15ff",[],"ApiEndpointProvider",1] 5a:I["fb6f11acc98a",[],"Request",1] 5e:I["1ec75fa958bc",[],"Response",1] 5f:I["f366e5914c23",[],"CodeSnippets",1] 60:T8b5,
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
61:Td9d,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
62:T6c9,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
63:T1541,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
64:T1461,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
65:T8bd,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
66:Tda5,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
67:T6d1,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
68:T1549,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
69:T1469,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
26:["$","$51","delete-customer-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"No Content","descriptionNode":"$L53"},"401":{"description":"Unauthorized","descriptionNode":"$L54"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L55"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L56"}},"required":["errorId","timestamp"]}}},"descriptionNode":"$L57"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"delete-customer-deprecated","children":[["$L58",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"delete-customer-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/delete-customer-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L59",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":["Bearer sk_1234567890ABCdefGHIjklMNOpqrSTUvwxYZ_1234567890-Ab_cdeFGHijkLMNopq"]},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L5b"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L5c"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L5d"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$26:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$60","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$61","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$62","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$63","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$64","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$65","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$66","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$67","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$68","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$69","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"delete","servers":["https://merchant.revolut.com","https://sandbox-merchant.revolut.com"],"path":"/api/1.0/customers/{customer_id}","parameters":["$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$L6a"],"$L6b","$L6c"]}]]}]]}]}],false]}] 7b:T8d2,
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
7c:Tdba,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
7d:T6e6,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.delete(url, headers=headers)
print(response.json())
7e:T155e,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
7f:T147e,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
80:T8da,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
81:Tdc2,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
82:T6ee,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.delete(url, headers=headers)
print(response.json())
83:T1566,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
84:T1486,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
2a:["$","$51","delete-payment-method-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"No Content","descriptionNode":"$L6d"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L6e"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L6f"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L70"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L71"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L72"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L73"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"delete-payment-method-deprecated","children":[["$L74",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"delete-payment-method-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/delete-payment-method-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L75",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L76"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L77"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L78"},{"name":"payment_method_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L79"},"required":true,"description":"The ID of the payment method.","descriptionNode":"$L7a"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$2a:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X DELETE \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$7b","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$7c","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$7d","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$7e","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$7f","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$80","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$81","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$82","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$83","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$84","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"delete","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}/payment-methods/{payment_method_id}","parameters":["$2a:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$2a:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1","$2a:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:2"]}],"$L85"],"$L86","$L87"]}]]}]]}]}],false]}] 94:T8b4,
fetch("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
95:Td9c,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
96:T6c8,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
97:T1540,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
98:T1460,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
99:T8bc,
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
9a:Tda4,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
9b:T6d0,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
9c:T1548,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
9d:T1468,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
36:["$","$51","delete-webhook-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"No Content","descriptionNode":"$L88"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L89"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L8a"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L8b"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L8c"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L8d"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L8e"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"delete-webhook-deprecated","children":[["$L8f",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"delete-webhook-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/delete-webhook-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L90",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L91"},{"name":"webhook_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L92"},"required":true,"description":"The ID of the webhook.","descriptionNode":"$L93"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$36:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$94","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$95","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$96","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$97","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$98","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$99","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$9a","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$9b","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$9c","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$9d","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"delete","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks/{webhook_id}","parameters":["$36:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$36:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$L9e"],"$L9f","$La0"]}]]}]]}]}],false]}] ad:T8b1,
fetch("https://merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
ae:Td99,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
af:T6c5,
import requests

url = "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
b0:T153d,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
b1:T145d,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
b2:T8b9,
fetch("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
b3:Tda1,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
b4:T6cd,
import requests

url = "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
b5:T1545,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
b6:T1465,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
3d:["$","$51","delete-location",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"Location deleted","descriptionNode":"$La1"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$La2"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$La3"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$La4"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$La5"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$La6"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$La7"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"delete-location","children":[["$La8","$undefined"],["$","$L15",null,{"id":"delete-location"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/delete-location.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$La9",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$Laa"},{"name":"location_id","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$Lab"},"in":"path","required":true,"description":"The ID of the location.","descriptionNode":"$Lac"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$3d:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$ad","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$ae","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$af","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$b0","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$b1","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$b2","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$b3","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$b4","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$b5","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$b6","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"delete","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/locations/{location_id}","parameters":["$3d:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$3d:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$Lb7"],"$Lb8","$Lb9"]}]]}]]}]}],false]}] ba:I["9e60c70d72c7",[],"Authorization",1] bc:I["48c2ae8093a4",[],"RequestSample",1] bd:I["b2446624eec0",[],"ResponseSample",1] 6a:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Lbb"}}}] 6b:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 6c:["$","$Lbd",null,{"exampleBlocks":{"204":{},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lbe"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 85:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Lbf"}}}] 86:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 87:["$","$Lbd",null,{"exampleBlocks":{"204":{},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc0"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc1"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 9e:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Lc2"}}}] 9f:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] a0:["$","$Lbd",null,{"exampleBlocks":{"204":{},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc3"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc4"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] b7:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Lc5"}}}] b8:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] b9:["$","$Lbd",null,{"exampleBlocks":{"204":{},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc6"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Lc7"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] d2:T8bc,
fetch("https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
d3:Tda4,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
d4:T6d0,
import requests

url = "https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
d5:T1548,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
d6:T1468,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
d7:T8c4,
fetch("https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__", {
  method: "DELETE",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
d8:Tdac,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
d9:T6d8,
import requests

url = "https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.delete(url, headers=headers)
print(response.json())
da:T1550,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .DELETE(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
db:T1470,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Delete,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
48:["$","$51","delete-synchronous-webhook",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"Synchronous webhook deleted","descriptionNode":"$Lc8"},"401":{"description":"Unauthorized","descriptionNode":"$Lc9"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$Lca"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$Lcb"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$Lcc"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"delete-synchronous-webhook","children":[["$Lcd","$undefined"],["$","$L15",null,{"id":"delete-synchronous-webhook"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/delete-synchronous-webhook.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$Lce",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$Lcf"},{"name":"synchronous_webhook_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$Ld0"},"required":true,"description":"The ID of the synchronous webhook.","descriptionNode":"$Ld1"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$48:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$d2","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$d3","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$d4","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$d5","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$d6","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X DELETE \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X DELETE \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\", {\n method: \"DELETE\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$d7","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"DELETE\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$d8","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.json())","templateHtml":"$d9","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .DELETE(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$da","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Delete,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$db","tokens":[{"marker":"__RP_TOK_0__","paramName":"synchronous_webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:synchronous_webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"delete","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/synchronous-webhooks/{synchronous_webhook_id}","parameters":["$48:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$48:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$Ldc"],"$Ldd","$Lde"]}]]}]]}]}],false]}] dc:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Ldf"}}}] dd:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] de:["$","$Lbd",null,{"exampleBlocks":{"204":{},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$Le0"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 2f:["$","$51","retrieve-report-run",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"Report run found","content":{"application/json":{"schema":{"title":"ReportRunDetails","type":"object","description":"The `ReportRunDetails` object contains all information associated with a specific report run, identified by the `report_run_id`.","properties":{"report_run_id":{"type":"string","format":"uuid","description":"Unique ID used for accessing report details. Use this to check report generation status.","descriptionNode":"$Le1"},"status":{"type":"string","description":"Current status of the report run.\n\n| Value | Description |\n| ----- | ----------- |\n| `processing` | Report generation is still in progress. |\n| `completed` | Report generation finished successfully and the file is available to download for 24 hours via `file_url`. |\n| `failed` | Report generation failed and no report file is available. |\n| `expired` | Report generation previously completed, but the 24-hour file availability window has elapsed and the file can no longer be downloaded. |","enum":["processing","completed","failed","expired"],"descriptionNode":"$Le2"},"file_url":{"type":"string","description":"Use this link to download the report file. Available only when `status` is `completed`, and only for 24 hours after report generation finishes.","descriptionNode":"$Le3"}},"required":["report_run_id","status"],"descriptionNode":"$Le4"},"examples":{"report_run_processing":{"summary":"Report run processing","value":{"report_run_id":"d6f6ef64-f668-4e64-8967-1cdf8afb2561","status":"processing"}},"report_run_completed":{"summary":"Report run completed","value":{"report_run_id":"d6f6ef64-f668-4e64-8967-1cdf8afb2561","status":"completed","file_url":"https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file"}},"report_run_expired":{"summary":"Report run expired","value":{"report_run_id":"d6f6ef64-f668-4e64-8967-1cdf8afb2561","status":"expired"}}}}},"descriptionNode":"$Le5"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Le6"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Le7"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Le8"}}}}},"descriptionNode":"$Le9"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Lea"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Leb"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Lec"}}}}},"descriptionNode":"$Led"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Lee"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Lef"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Lf0"}}}}},"descriptionNode":"$Lf1"}},"requestBody":"$undefined","variantLabels":["Report run processing","Report run completed","Report run expired"],"children":["$Lf2","$Lf3"]}]}],false]}] 58:"Delete a customer (Deprecated)" f2:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-report-run","children":[["$Lf4","$undefined"],["$","$L15",null,{"id":"retrieve-report-run"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-report-run.md"}]]}]}],"$undefined"]}] f9:T8b0,
fetch("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
fa:Td98,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/report-runs/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
fb:T6c4,
import requests

url = "https://merchant.revolut.com/api/report-runs/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
fc:T153c,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
fd:T145c,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
fe:T8b8,
fetch("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
ff:Tda0,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
100:T6cc,
import requests

url = "https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
101:T1544,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
102:T1464,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
f3:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$Lf5",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$Lf6"},{"name":"report_run_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$Lf7"},"required":true,"description":"Unique ID of the report run.","descriptionNode":"$Lf8"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$2f:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$f9","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$fa","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$fb","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$fc","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$fd","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$fe","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$ff","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$100","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$101","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$102","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/report-runs/{report_run_id}","parameters":["$f3:props:children:0:props:children:1:props:parameters:0","$f3:props:children:0:props:children:1:props:parameters:1"]}],"$L103"],"$L104","$L105"]}]]}] 74:"Delete a customer's payment method (Deprecated)" 8f:"Delete a webhook (Deprecated)" a8:"Delete a location" cd:"Delete a synchronous webhook" 103:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L106"}}}] 104:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 105:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"report_run_processing","label":"Report run processing","rawValue":"$2f:props:children:0:props:children:props:responses:200:content:application/json:examples:report_run_processing:value","block":"$L107"},{"key":"report_run_completed","label":"Report run completed","rawValue":"$2f:props:children:0:props:children:props:responses:200:content:application/json:examples:report_run_completed:value","block":"$L108"},{"key":"report_run_expired","label":"Report run expired","rawValue":"$2f:props:children:0:props:children:props:responses:200:content:application/json:examples:report_run_expired:value","block":"$L109"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L10a"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L10b"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L10c"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 53:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"No Content"}]]}] 54:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 55:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 56:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 57:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 59:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Delete the profile of a specific ",["$","code","code-0",{"children":"customer"}],"."]}]]}] 5b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 5c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 5d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 6d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"No Content"}]]}] 6e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 6f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 70:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 71:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 72:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 73:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 75:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Delete a specific payment method. The payment method is completely deleted from the customer payment methods."}],"\n",["$","p","p-1",{"children":"To reuse the payment method that is deleted, direct your customer to the checkout page and save the card details again."}]]}] 76:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 77:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 78:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 79:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 7a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 88:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"No Content"}]]}] 89:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 8a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 8b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 8c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 8d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 8e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 90:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Delete a webhook so that events are not sent to the specified URL any more."}]]}] 91:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 92:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 93:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location deleted"}]]}] a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] a4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] a5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] a6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] a7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] a9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Delete a specific location, based on its ID."}]]}] aa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] ab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] ac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the location."}]]}] bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L10d","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L10e","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L10f","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L110","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Synchronous webhook deleted"}]]}] c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Delete a specific synchronous webhook registration, based on its ID."}]]}] cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the synchronous webhook."}]]}] f4:"Retrieve a report run" 113:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|33:["$","$51","retrieve-all-webhooks-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"title":"Webhook","type":"object","description":"A `webhook` (also called a web callback) allows your system to receive an event from a different app immediately after it happens. \n\nFor example, you can subscribe to a webhook when an order changes from Pending to Completed. When the payment is cleared and the order is completed, Revolut servers will send a notification to the URL of your choice. This is a much more efficient way to know when an order is paid as opposed to trying to get the status of the order every few seconds.\n\nMany events that happen to a Revolut Merchant account are synchronous, which means that they arrive instantly and have immediate results. For example, a successful request to create a customer immediately returns a Customer object. Such requests don't require webhooks.\n\nThe Revolut Merchant API supports webhooks for events such as `ORDER_COMPLETED` and `ORDER_AUTHORISED`.","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the webhook.","descriptionNode":"$L111"},"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L112"},"events":{"type":"array","description":"$113","items":{"type":"string","description":"The available event types your can listen to.","enum":["ORDER_COMPLETED","ORDER_AUTHORISED","ORDER_CANCELLED","ORDER_FAILED","ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED","ORDER_INCREMENTAL_AUTHORISATION_DECLINED","ORDER_INCREMENTAL_AUTHORISATION_FAILED","ORDER_PAYMENT_AUTHENTICATION_CHALLENGED","ORDER_PAYMENT_AUTHENTICATED","ORDER_PAYMENT_AUTHORISATION_STARTED","ORDER_PAYMENT_DECLINED","ORDER_PAYMENT_FAILED","SUBSCRIPTION_INITIATED","SUBSCRIPTION_FINISHED","SUBSCRIPTION_CANCELLED","SUBSCRIPTION_OVERDUE","PAYOUT_INITIATED","PAYOUT_COMPLETED","PAYOUT_FAILED","DISPUTE_ACTION_REQUIRED","DISPUTE_UNDER_REVIEW","DISPUTE_WON","DISPUTE_LOST"],"descriptionNode":"$L114"},"minItems":1,"descriptionNode":"$L115"}},"required":["id"],"descriptionNode":"$L116"}},"examples":{"list_of_webhooks":{"summary":"List of webhooks","value":[{"id":"6fc8db62-6489-4470-a9e0-84b462fe3908","url":"https://revolut.com/webhooks","events":["ORDER_COMPLETED"]},{"id":"b466ab77-4932-4850-beb0-113bfc1166f8","url":"https://business.revolut.com/webhooks","events":["ORDER_COMPLETED","ORDER_AUTHORISED"]},{"id":"4a31c8a3-8037-4260-a09e-090475d37025","url":"https://developer.revolut.com/webhooks","events":["ORDER_AUTHORISED"]},{"id":"5d815041-5753-46bc-aebc-315fe99f30aa","url":"https://example.com/webhooks","events":["ORDER_COMPLETED","ORDER_AUTHORISED"]}]}}}},"descriptionNode":"$L117"},"401":{"description":"Unauthorized","descriptionNode":"$L118"}},"requestBody":"$undefined","variantLabels":[],"children":["$L119","$L11a"]}]}],false]}] 11d:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|34:["$","$51","retrieve-webhook-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Webhook with signing secret","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the webhook.","descriptionNode":"$L11b"},"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L11c"},"events":{"type":"array","description":"$11d","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L11e"},"minItems":1,"descriptionNode":"$L11f"},"signing_secret":{"type":"string","description":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload.","descriptionNode":"$L120"}},"required":["id","signing_secret"]},"examples":{"retrieved_webhook":{"summary":"Retrieved webhook","value":{"id":"c6b981f4-53b3-47d5-9b24-4f87af1160eb","url":"https://example.com/webhooks","events":["ORDER_AUTHORISED","ORDER_COMPLETED"],"signing_secret":"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK"}}}}},"descriptionNode":"$L121"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L122"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L123"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L124"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L125"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L126"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L127"}},"requestBody":"$undefined","variantLabels":[],"children":["$L128","$L129"]}]}],false]}] df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L12a","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] e1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID used for accessing report details. Use this to check report generation status."}]]}] e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Current status of the report run."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation is still in progress.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Report generation finished successfully and the file is available to download for 24 hours via ",["$","code","code-0",{"children":"file_url"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"failed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation failed and no report file is available.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"expired"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation previously completed, but the 24-hour file availability window has elapsed and the file can no longer be downloaded.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Use this link to download the report file. Available only when ",["$","code","code-0",{"children":"status"}]," is ",["$","code","code-1",{"children":"completed"}],", and only for 24 hours after report generation finishes."]}]]}] e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"ReportRunDetails"}]," object contains all information associated with a specific report run, identified by the ",["$","code","code-1",{"children":"report_run_id"}],"."]}]]}] e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Report run found"}]]}] e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] e8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] e9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] ea:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] eb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] ec:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] ed:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] ee:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] ef:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 119:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-all-webhooks-deprecated","children":[["$L12b",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-all-webhooks-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-all-webhooks-deprecated.md"}]]}]}],"$undefined"]}] 12e:T8a4,
fetch("https://merchant.revolut.com/api/1.0/webhooks", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_0__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
12f:Td8c,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
130:T6b8,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks"
headers = {
  "Authorization": "__RP_TOK_0__"
}

response = requests.get(url, headers=headers)
print(response.json())
131:T1530,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks"))
      .header("Authorization", "__RP_TOK_0__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
132:T1450,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
133:T8ac,
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_0__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
134:Td94,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
135:T6c0,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks"
headers = {
  "Authorization": "__RP_TOK_0__"
}

response = requests.get(url, headers=headers)
print(response.json())
136:T1538,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks"))
      .header("Authorization", "__RP_TOK_0__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
137:T1458,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
11a:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L12c",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L12d"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$33:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/webhooks\" \\\n -H \"Authorization: __RP_TOK_0__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/webhooks\" \\\n  -H \"Authorization: __RP_TOK_0__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/webhooks\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_0__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$12e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$12f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks\"\nheaders = {\n \"Authorization\": \"__RP_TOK_0__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$130","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks\"))\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$131","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$132","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\" \\\n -H \"Authorization: __RP_TOK_0__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\" \\\n  -H \"Authorization: __RP_TOK_0__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_0__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$133","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$134","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"\nheaders = {\n \"Authorization\": \"__RP_TOK_0__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$135","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"))\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$136","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$137","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks","parameters":["$11a:props:children:0:props:children:1:props:parameters:0"]}],"$L138"],"$L139","$L13a"]}]]}] 128:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-webhook-deprecated","children":[["$L13b",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-webhook-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-webhook-deprecated.md"}]]}]}],"$undefined"]}] 140:T8b1,
fetch("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
141:Td99,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
142:T6c5,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
143:T153d,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
144:T145d,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
145:T8b9,
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
146:Tda1,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
147:T6cd,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
148:T1545,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
149:T1465,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
129:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L13c",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L13d"},{"name":"webhook_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L13e"},"required":true,"description":"The ID of the webhook.","descriptionNode":"$L13f"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$34:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$140","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$141","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$142","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$143","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$144","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$145","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$146","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$147","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$148","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$149","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks/{webhook_id}","parameters":["$129:props:children:0:props:children:1:props:parameters:0","$129:props:children:0:props:children:1:props:parameters:1"]}],"$L14a"],"$L14b","$L14c"]}]]}] f0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] f1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve details of a report run, based on the ",["$","code","code-0",{"children":"report_run_id"}],"."]}],"\n",["$","p","p-1",{"children":"Use this method to check the status of a report run."}],"\n",["$","p","p-2",{"children":["If a report run's ",["$","code","code-0",{"children":"status"}]," is ",["$","code","code-1",{"children":"completed"}],", the report file can be downloaded using the ",["$","code","code-2",{"children":"file_url"}]," for 24 hours after report generation finishes."]}],"\n",["$","p","p-3",{"children":["Once that 24-hour window elapses, the report run remains retrievable but transitions to ",["$","code","code-0",{"children":"expired"}],", and the file can no longer be downloaded."]}]]}] f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID of the report run."}]]}] 138:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L14d"}}}] 139:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 13a:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"list_of_webhooks","label":"List of webhooks","rawValue":"$33:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_webhooks:value","block":"$L14e"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 14a:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L14f"}}}] 14b:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 14c:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"retrieved_webhook","label":"Retrieved webhook","rawValue":"$34:props:children:0:props:children:props:responses:200:content:application/json:examples:retrieved_webhook:value","block":"$L150"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L151"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L152"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 106:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L153","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 15c:T554,
curl -X POST "https://merchant.revolut.com/api/apple-pay/domains/register" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "domain": "revolut.com"
}'
15d:Td65,
const payload = {
  "domain": "revolut.com"
};
fetch("https://merchant.revolut.com/api/apple-pay/domains/register", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
15e:T144c,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/apple-pay/domains/register"
  jsonData := []byte(`
{
  "domain": "revolut.com"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
15f:Ta9b,
import requests

url = "https://merchant.revolut.com/api/apple-pay/domains/register"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "domain": "revolut.com"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
160:T19b3,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "domain": "revolut.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/apple-pay/domains/register"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
161:T1c11,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/apple-pay/domains/register"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""domain"": ""revolut.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
162:T55c,
curl -X POST "https://sandbox-merchant.revolut.com/api/apple-pay/domains/register" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "domain": "revolut.com"
}'
163:Td6d,
const payload = {
  "domain": "revolut.com"
};
fetch("https://sandbox-merchant.revolut.com/api/apple-pay/domains/register", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
164:T1454,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/apple-pay/domains/register"
  jsonData := []byte(`
{
  "domain": "revolut.com"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
165:Taa3,
import requests

url = "https://sandbox-merchant.revolut.com/api/apple-pay/domains/register"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "domain": "revolut.com"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
166:T19bb,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "domain": "revolut.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/apple-pay/domains/register"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
167:T1c19,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/apple-pay/domains/register"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""domain"": ""revolut.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
3f:["$","$51","register-domain-apple-pay",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"Domain registered successfully","descriptionNode":"$L154"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L155"},"message":{"type":"string","description":"Human readable text describing what went wrong.","descriptionNode":"$L156"}},"required":["code"]},"examples":{"error_message":{"summary":"Error message","value":{"code":"validation","message":"Exactly one value must be supplied for client_id"}}}}},"descriptionNode":"$L157"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name of your website without the scheme (i.e. without `http://` or `https://`).","examples":["revolut.com"],"descriptionNode":"$L158"}},"required":["domain"]},"examples":{"example_request":{"summary":"Example domain registration request for Apple Pay","value":{"domain":"revolut.com"}}}}}},"variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"register-domain-apple-pay","children":[["$L159","$undefined"],["$","$L15",null,{"id":"register-domain-apple-pay"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/register-domain-apple-pay.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L15a",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L15b"}],"requestBody":"$3f:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$3f:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/apple-pay/domains/register\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"domain\": \"revolut.com\"\n}'","templateHtml":"$15c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"domain\": \"revolut.com\"\n};\nfetch(\"https://merchant.revolut.com/api/apple-pay/domains/register\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$15d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/apple-pay/domains/register\"\n jsonData := []byte(`\n{\n \"domain\": \"revolut.com\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$15e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/apple-pay/domains/register\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"domain\": \"revolut.com\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$15f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"domain\": \"revolut.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/apple-pay/domains/register\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$160","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/apple-pay/domains/register\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"domain\"\": \"\"revolut.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$161","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"domain\": \"revolut.com\"\n}'","templateHtml":"$162","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"domain\": \"revolut.com\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$163","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\"\n jsonData := []byte(`\n{\n \"domain\": \"revolut.com\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$164","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"domain\": \"revolut.com\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$165","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"domain\": \"revolut.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$166","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/register\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"domain\"\": \"\"revolut.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$167","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/apple-pay/domains/register","parameters":["$3f:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0"]}],"$L168"],"$L169","$L16a"]}]]}]]}]}],false]}] 47:["$","$51","retrieve-synchronous-webhook-list",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"Synchronous webhook list returned","content":{"application/json":{"schema":{"type":"array","items":{"title":"SynchronousWebhook","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the synchronous webhook object.","descriptionNode":"$L16b"},"signing_key":{"type":"string","pattern":"^swsk_[a-zA-Z0-9]{32}$","description":"A randomly generated signing key, which can be used by merchants to authenticate requests from Revolut by verifying the signature. For more information, see: [Payload Signature](https://developer.revolut.com/docs/api/merchant#authentication).","descriptionNode":"$L16c"},"url":{"type":"string","format":"uri","pattern":"^https:\\/{2}.+/gi","maxLength":2000,"description":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L16d"},"event_type":{"type":"string","enum":["fast_checkout.validate_address"],"description":"Type of event this synchronous webhook is configured for.\n\n:::note\nAt the moment, synchronous webhooks only support address validation events. \n:::","descriptionNode":"$L16e"},"location_id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L16f"}},"required":["id","signing_key","url","event_type"]}},"examples":{"example_without_location":{"summary":"List of synchronous webhooks","value":[{"id":"f6abc4df-eb48-417c-8e75-f7c6d7ad394f","signing_key":"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1","url":"https://example.com/webhooks/validate-address","event_type":"fast_checkout.validate_address"},{"id":"5c08dcc1-cd60-4b7d-a255-e42d24d7365c","signing_key":"swsk_VsuFcq6FIpa9gOWUu0n2WxiCbsDHIJlN","url":"https://groceries.example.com/webhooks/validate-address","event_type":"fast_checkout.validate_address","location_id":"b0ebede4-5cbc-4951-977f-70329faa8769"},{"id":"dbebe6f8-4c47-4176-a94f-576d76e1d0b6","signing_key":"swsk_0TKYlzoakBgGGVvojCiRRqInMD1ufLZn","url":"https://clothes.example.com/webhooks/validate-address","event_type":"fast_checkout.validate_address","location_id":"6ebd3d2b-7a51-42e4-84f4-3c513621edd3"}]}}}},"descriptionNode":"$L170"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L171"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L172"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L173"},"401":{"description":"Unauthorized","descriptionNode":"$L174"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-synchronous-webhook-list","children":[["$L175","$undefined"],["$","$L15",null,{"id":"retrieve-synchronous-webhook-list"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-synchronous-webhook-list.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":"$L176"}],"$L177"]}]]}]}],false]}] 12b:"Retrieve a webhook list (Deprecated)" 13b:"Retrieve a webhook (Deprecated)" 168:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L178"}}}] 169:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_request","label":"Example domain registration request for Apple Pay","rawValue":"$3f:props:children:0:props:children:props:requestBody:content:application/json:examples:example_request:value","block":"$L179"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 16a:["$","$Lbd",null,{"exampleBlocks":{"204":{},"400":{"application/json":{"variants":[{"key":"error_message","label":"Error message","rawValue":"$3f:props:children:0:props:children:props:responses:400:content:application/json:examples:error_message:value","block":"$L17a"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 176:["$L17b",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L17c"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$47:props:children:0:props:children:props:responses","headingAs":"h3"}]] 17d:T8ac,
fetch("https://merchant.revolut.com/api/synchronous-webhooks", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_0__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
17e:Td94,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/synchronous-webhooks"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
17f:T6c0,
import requests

url = "https://merchant.revolut.com/api/synchronous-webhooks"
headers = {
  "Authorization": "__RP_TOK_0__"
}

response = requests.get(url, headers=headers)
print(response.json())
180:T1538,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/synchronous-webhooks"))
      .header("Authorization", "__RP_TOK_0__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
181:T1458,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/synchronous-webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
182:T8b4,
fetch("https://sandbox-merchant.revolut.com/api/synchronous-webhooks", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_0__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
183:Td9c,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/synchronous-webhooks"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
184:T6c8,
import requests

url = "https://sandbox-merchant.revolut.com/api/synchronous-webhooks"
headers = {
  "Authorization": "__RP_TOK_0__"
}

response = requests.get(url, headers=headers)
print(response.json())
185:T1540,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/synchronous-webhooks"))
      .header("Authorization", "__RP_TOK_0__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
186:T1460,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/synchronous-webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
177:["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/synchronous-webhooks\" \\\n -H \"Authorization: __RP_TOK_0__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/synchronous-webhooks\" \\\n  -H \"Authorization: __RP_TOK_0__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/synchronous-webhooks\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_0__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$17d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/synchronous-webhooks\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$17e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/synchronous-webhooks\"\nheaders = {\n \"Authorization\": \"__RP_TOK_0__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$17f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/synchronous-webhooks\"))\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$180","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/synchronous-webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$181","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\" \\\n -H \"Authorization: __RP_TOK_0__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\" \\\n  -H \"Authorization: __RP_TOK_0__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_0__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$182","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$183","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"\nheaders = {\n \"Authorization\": \"__RP_TOK_0__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$184","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"))\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$185","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$186","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/synchronous-webhooks","parameters":["$176:1:props:parameters:0"]}],"$L187"],"$L188","$L189"]}] 111:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 112:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 11b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 11c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 11e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 11f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 120:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload."}]]}] 121:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 122:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 123:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 124:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 125:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 126:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 127:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 187:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L18a"}}}] 188:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 189:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"example_without_location","label":"List of synchronous webhooks","rawValue":"$47:props:children:0:props:children:props:responses:200:content:application/json:examples:example_without_location:value","block":"$L18b"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L18c"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 197:T6c5,
curl -X POST "https://merchant.revolut.com/api/apple-pay/domains/unregister" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -H "Revolut-Api-Version: __RP_TOK_1__" \
  -d '{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}'
198:Tfb6,
const payload = {
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
};
fetch("https://merchant.revolut.com/api/apple-pay/domains/unregister", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__",
    "Revolut-Api-Version": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
199:T16aa,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/apple-pay/domains/unregister"
  jsonData := []byte(`
{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")
  req.Header.Add("Revolut-Api-Version", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
19a:Tcea,
import requests

url = "https://merchant.revolut.com/api/apple-pay/domains/unregister"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__",
  "Revolut-Api-Version": "__RP_TOK_1__"
}
payload = {
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
19b:T1c0e,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/apple-pay/domains/unregister"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .header("Revolut-Api-Version", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
19c:T1f82,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/apple-pay/domains/unregister"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
    { "Revolut-Api-Version", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""domain"": ""revolut.com"",
  ""reason"": ""Unregister due to domain change.""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
19d:T6cd,
curl -X POST "https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -H "Revolut-Api-Version: __RP_TOK_1__" \
  -d '{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}'
19e:Tfbe,
const payload = {
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
};
fetch("https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__",
    "Revolut-Api-Version": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
19f:T16b2,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister"
  jsonData := []byte(`
{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")
  req.Header.Add("Revolut-Api-Version", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
1a0:Tcf2,
import requests

url = "https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__",
  "Revolut-Api-Version": "__RP_TOK_1__"
}
payload = {
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
1a1:T1c16,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "domain": "revolut.com",
  "reason": "Unregister due to domain change."
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .header("Revolut-Api-Version", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
1a2:T1f8a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
    { "Revolut-Api-Version", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""domain"": ""revolut.com"",
  ""reason"": ""Unregister due to domain change.""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
40:["$","$51","unregister-domain-apple-pay",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"204":{"description":"Domain ungistered successfully","descriptionNode":"$L18d"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L18e"},"message":{"type":"string","description":"Human readable text describing what went wrong.","descriptionNode":"$L18f"}},"required":["code"]},"examples":{"error_message":{"summary":"Error message","value":{"code":"validation","message":"Exactly one value must be supplied for client_id"}}}}},"descriptionNode":"$L190"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name of your website without the scheme (i.e. without `http://` or `https://`).","examples":["revolut.com"],"descriptionNode":"$L191"},"reason":{"type":"string","description":"A short explanation why you remove the domain.","maxLength":1024,"descriptionNode":"$L192"}},"required":["domain","reason"]},"examples":{"example_request":{"summary":"Example domain registration request for Apple Pay","value":{"domain":"revolut.com","reason":"Unregister due to domain change."}}}}}},"variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"unregister-domain-apple-pay","children":[["$L193","$undefined"],["$","$L15",null,{"id":"unregister-domain-apple-pay"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/unregister-domain-apple-pay.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L194",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L195"},{"name":"Revolut-Api-Version","in":"header","schema":{"type":"string","format":"date","enum":["2023-09-01","2024-05-01","2024-09-01","2025-10-16","2025-12-04","2026-03-12","2026-04-20"],"examples":["2026-04-20"]},"description":"The version of the Merchant API, specified in `YYYY-MM-DD` format.\n\n:::info\nFor more information about API versioning, see: [API versions](https://developer.revolut.com/docs/guides/merchant/reference/versioning/api-versions).\n:::","x-config-always-visible-in-example":true,"descriptionNode":"$L196"}],"requestBody":"$40:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$40:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/apple-pay/domains/unregister\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -H \"Revolut-Api-Version: __RP_TOK_1__\" \\\n -d '{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}'","templateHtml":"$197","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n};\nfetch(\"https://merchant.revolut.com/api/apple-pay/domains/unregister\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\",\n \"Revolut-Api-Version\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$198","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/apple-pay/domains/unregister\"\n jsonData := []byte(`\n{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n req.Header.Add(\"Revolut-Api-Version\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$199","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/apple-pay/domains/unregister\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\",\n \"Revolut-Api-Version\": \"__RP_TOK_1__\"\n}\npayload = {\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$19a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/apple-pay/domains/unregister\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .header(\"Revolut-Api-Version\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$19b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/apple-pay/domains/unregister\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n { \"Revolut-Api-Version\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"domain\"\": \"\"revolut.com\"\",\n \"\"reason\"\": \"\"Unregister due to domain change.\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$19c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -H \"Revolut-Api-Version: __RP_TOK_1__\" \\\n -d '{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}'","templateHtml":"$19d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\",\n \"Revolut-Api-Version\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$19e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\"\n jsonData := []byte(`\n{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n req.Header.Add(\"Revolut-Api-Version\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$19f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\",\n \"Revolut-Api-Version\": \"__RP_TOK_1__\"\n}\npayload = {\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$1a0","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .header(\"Revolut-Api-Version\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$1a1","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/apple-pay/domains/unregister\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n { \"Revolut-Api-Version\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"domain\"\": \"\"revolut.com\"\",\n \"\"reason\"\": \"\"Unregister due to domain change.\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$1a2","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Revolut-Api-Version","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Revolut-Api-Version":"2023-09-01"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/apple-pay/domains/unregister","parameters":["$40:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$40:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$L1a3"],"$L1a4","$L1a5"]}]]}]]}]}],false]}] 114:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 115:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 116:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A ",["$","code","code-0",{"children":"webhook"}]," (also called a web callback) allows your system to receive an event from a different app immediately after it happens."]}],"\n",["$","p","p-1",{"children":"For example, you can subscribe to a webhook when an order changes from Pending to Completed. When the payment is cleared and the order is completed, Revolut servers will send a notification to the URL of your choice. This is a much more efficient way to know when an order is paid as opposed to trying to get the status of the order every few seconds."}],"\n",["$","p","p-2",{"children":"Many events that happen to a Revolut Merchant account are synchronous, which means that they arrive instantly and have immediate results. For example, a successful request to create a customer immediately returns a Customer object. Such requests don't require webhooks."}],"\n",["$","p","p-3",{"children":["The Revolut Merchant API supports webhooks for events such as ",["$","code","code-0",{"children":"ORDER_COMPLETED"}]," and ",["$","code","code-1",{"children":"ORDER_AUTHORISED"}],"."]}]]}] 117:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 118:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 12c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Get a list of webhooks that you are currently subscribed to."}]]}] 12d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 13c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Get the details of a specific webhook."}]]}] 13d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 13e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 13f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 159:"Register domain for Apple Pay" 1a3:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L1a6"}}}] 1a4:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_request","label":"Example domain registration request for Apple Pay","rawValue":"$40:props:children:0:props:children:props:requestBody:content:application/json:examples:example_request:value","block":"$L1a7"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 1a5:["$","$Lbd",null,{"exampleBlocks":{"204":{},"400":{"application/json":{"variants":[{"key":"error_message","label":"Error message","rawValue":"$40:props:children:0:props:children:props:responses:400:content:application/json:examples:error_message:value","block":"$L1a8"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 175:"Retrieve a synchronous webhook list" 14d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L1a9","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 14f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L1aa","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 23:["$","$51","retrieve-all-customers-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"title":"Customer","type":"object","description":"","properties":{"id":{"type":"string","description":"Permanent customer ID used to retrieve, update, and delete a customer.","descriptionNode":"$L1ab"},"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L1ac"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L1ad"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L1ae"},"created_at":{"type":"string","description":"The date and time the customer was created.","format":"date-time","descriptionNode":"$L1af"},"updated_at":{"type":"string","description":"The data and time the customer was last updated.","format":"date-time","descriptionNode":"$L1b0"},"email":{"type":"string","description":"The email address of the customer.","format":"email","descriptionNode":"$L1b1"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L1b2"}},"required":["id","created_at","updated_at","email"]}},"examples":{"list_of_customers":{"summary":"List of customers","value":[{"id":"9dfb8491-bfb0-4420-ad63-0fa7bdd3dffb","full_name":"First Customer","email":"first.customer@example.com","date_of_birth":"1990-01-01","created_at":"2020-06-24T12:12:56.596703Z","updated_at":"2020-06-24T12:12:56.737082Z"},{"id":"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae","full_name":"Second Customer","business_name":"Second Business","email":"second.customer@example.com","phone":"+441234567890","created_at":"2020-06-24T12:03:39.979397Z","updated_at":"2020-06-25T10:03:39.134417Z"},{"id":"014f0ad6-c45b-4d7d-83c6-80eea94fceac","full_name":"Third Customer","email":"third.customer@example.com","phone":"+441234567890","created_at":"2020-06-23T14:13:08.262336Z","updated_at":"2020-06-24T10:47:11.173027Z"}]}}}},"descriptionNode":"$L1b3"},"401":{"description":"Unauthorized","descriptionNode":"$L1b4"}},"requestBody":"$undefined","variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-all-customers-deprecated","children":[["$L1b5",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-all-customers-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-all-customers-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L1b6",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L1b7"},{"schema":{"type":"integer","default":100,"minimum":1,"maximum":100},"in":"query","name":"limit","description":"The maximum number of customers returned per page. Used for **pagination**.","descriptionNode":"$L1b8"},{"schema":{"type":"integer","default":0,"minimum":0},"in":"query","name":"page","description":"A zero-based page index for the paginated results, used in conjunction with `limit`.","descriptionNode":"$L1b9"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$23:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":"$L1ba"}]]}]]}]}],false]}] be:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c0:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c1:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c3:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c4:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c6:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] c7:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 1bd:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|37:["$","$51","rotate-webhook-signing-secret-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Webhook with signing secret","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the webhook.","descriptionNode":"$L1bb"},"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L1bc"},"events":{"type":"array","description":"$1bd","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L1be"},"minItems":1,"descriptionNode":"$L1bf"},"signing_secret":{"type":"string","description":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload.","descriptionNode":"$L1c0"}},"required":"$34:props:children:0:props:children:props:responses:200:content:application/json:schema:required"},"examples":{"updated_webhook":{"summary":"Updated webhook","value":{"id":"c6b981f4-53b3-47d5-9b24-4f87af1160eb","url":"http://business.revolut.com","events":["ORDER_COMPLETED"],"signing_secret":"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT6aG"}}}}},"descriptionNode":"$L1c1"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L1c2"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L1c3"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L1c4"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L1c5"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L1c6"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L1c7"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L1c8"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L1c9"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L1ca"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expiration_period":{"type":"string","format":"duration","description":"The expiration period of the signing secret in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Durations). \n\nIf defined, when the signing secret is rotated, it continues to be valid until the expiration period passes.\n\nOtherwise, it is invalidated immediately.\n\nMaximum expiration period is 7 days.","examples":["PT5H30M"],"descriptionNode":"$L1cb"}}},"examples":{"webhook_signing_secret_rotate_request":{"summary":"Webhook signing secret rotation request","value":{"expiration_period":"PT5H30M"}}}}}},"variantLabels":[],"children":["$L1cc","$L1cd"]}]}],false]}] 154:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain registered successfully"}]]}] 155:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 156:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Human readable text describing what went wrong."}]]}] 157:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 158:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Domain name of your website without the scheme (i.e. without ",["$","code","code-0",{"children":"http://"}]," or ",["$","code","code-1",{"children":"https://"}],")."]}]]}] 15a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Register your website's domain to accept payments via Apple Pay."}],"\n",["$","p","p-1",{"children":"Before you call this endpoint, make sure that you have completed the following steps:"}],"\n",["$","ol","ol-0",{"children":["\n",["$","li","li-0",{"children":["Download the latest ",["$","a","a-0",{"href":"https://assets.revolut.com/api-docs/merchant-api/files/apple-developer-merchantid-domain-association","target":"_blank","rel":"noreferrer","children":"domain validation file"}],"."]}],"\n",["$","li","li-1",{"children":["Upload the domain validation file to your website in the following folder ",["$","code","code-0",{"children":"/.well-known/"}],". For example, if your website is ",["$","code","code-1",{"children":"example.com"}],", the file should be available on ",["$","code","code-2",{"children":"example.com/.well-known/apple-developer-merchantid-domain-association"}],", where ",["$","code","code-3",{"children":"apple-developer-merchantid-domain-association"}]," indicates the name of the file."]}],"\n"]}]]}] 15b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 193:"Unregister domain for Apple Pay" 16b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the synchronous webhook object."}]]}] 16c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A randomly generated signing key, which can be used by merchants to authenticate requests from Revolut by verifying the signature. For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Payload Signature"}],"."]}]]}] 16d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be ",["$","code","code-0",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 16e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of event this synchronous webhook is configured for."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"At the moment, synchronous webhooks only support address validation events."}]}]]}]]}] 16f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 170:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Synchronous webhook list returned"}]]}] 171:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 172:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 173:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 174:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 1ce:T8cf,
fetch("https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
1cf:Tdb7,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
1d0:T6e3,
import requests

url = "https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
1d1:T155b,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
1d2:T147b,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
1d3:T8d7,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
1d4:Tdbf,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
1d5:T6eb,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
1d6:T1563,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
1d7:T1483,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
1ba:[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$1ce","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$1cf","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$1d0","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$1d1","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$1d2","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$1d3","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$1d4","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$1d5","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$1d6","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers?limit=__RP_TOK_0__&page=__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$1d7","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"page","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:page":"0"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers","parameters":["$23:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$23:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1","$23:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:2"]}],"$L1d8"],"$L1d9","$L1da"] 1cc:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"rotate-webhook-signing-secret-deprecated","children":[["$L1db",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"rotate-webhook-signing-secret-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/rotate-webhook-signing-secret-deprecated.md"}]]}]}],"$undefined"]}] 1e0:T570,
curl -X POST "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "expiration_period": "PT5H30M"
}'
1e1:Td81,
const payload = {
  "expiration_period": "PT5H30M"
};
fetch("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
1e2:T1468,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"
  jsonData := []byte(`
{
  "expiration_period": "PT5H30M"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
1e3:Tab7,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "expiration_period": "PT5H30M"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
1e4:T19cf,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "expiration_period": "PT5H30M"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
1e5:T1c2d,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""expiration_period"": ""PT5H30M""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
1e6:T578,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "expiration_period": "PT5H30M"
}'
1e7:Td89,
const payload = {
  "expiration_period": "PT5H30M"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
1e8:T1470,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"
  jsonData := []byte(`
{
  "expiration_period": "PT5H30M"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
1e9:Tabf,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "expiration_period": "PT5H30M"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
1ea:T19d7,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "expiration_period": "PT5H30M"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
1eb:T1c35,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""expiration_period"": ""PT5H30M""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
1cd:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L1dc",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L1dd"},{"name":"webhook_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L1de"},"required":true,"description":"The ID of the webhook.","descriptionNode":"$L1df"}],"requestBody":"$37:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$37:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"expiration_period\": \"PT5H30M\"\n}'","templateHtml":"$1e0","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"expiration_period\": \"PT5H30M\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$1e1","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"\n jsonData := []byte(`\n{\n \"expiration_period\": \"PT5H30M\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$1e2","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"expiration_period\": \"PT5H30M\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$1e3","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"expiration_period\": \"PT5H30M\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$1e4","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"expiration_period\"\": \"\"PT5H30M\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$1e5","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"expiration_period\": \"PT5H30M\"\n}'","templateHtml":"$1e6","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"expiration_period\": \"PT5H30M\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$1e7","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"\n jsonData := []byte(`\n{\n \"expiration_period\": \"PT5H30M\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$1e8","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"expiration_period\": \"PT5H30M\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$1e9","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"expiration_period\": \"PT5H30M\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$1ea","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__/rotate-signing-secret\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"expiration_period\"\": \"\"PT5H30M\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$1eb","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks/{webhook_id}/rotate-signing-secret","parameters":["$1cd:props:children:0:props:children:1:props:parameters:0","$1cd:props:children:0:props:children:1:props:parameters:1"]}],"$L1ec"],"$L1ed","$L1ee"]}]]}] e0:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 178:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L1ef","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 17b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve a list of synchronous webhook objects."}],"\n",["$","p","p-1",{"children":"You can use this endpoint to see your different address validation endpoints registered to different locations."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about locations, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Merchant API: Locations"}],"."]}]}]]}]]}] 17c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 1d8:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L1f0"}}}] 1d9:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 1da:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"list_of_customers","label":"List of customers","rawValue":"$23:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_customers:value","block":"$L1f1"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 1ec:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L1f2"}}}] 1ed:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"webhook_signing_secret_rotate_request","label":"Webhook signing secret rotation request","rawValue":"$37:props:children:0:props:children:props:requestBody:content:application/json:examples:webhook_signing_secret_rotate_request:value","block":"$L1f3"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 1ee:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"updated_webhook","label":"Updated webhook","rawValue":"$37:props:children:0:props:children:props:responses:200:content:application/json:examples:updated_webhook:value","block":"$L1f4"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L1f5"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L1f6"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L1f7"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 1fa:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|209:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|35:["$","$51","update-webhook-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Webhook","type":"object","description":"A `webhook` (also called a web callback) allows your system to receive an event from a different app immediately after it happens. \n\nFor example, you can subscribe to a webhook when an order changes from Pending to Completed. When the payment is cleared and the order is completed, Revolut servers will send a notification to the URL of your choice. This is a much more efficient way to know when an order is paid as opposed to trying to get the status of the order every few seconds.\n\nMany events that happen to a Revolut Merchant account are synchronous, which means that they arrive instantly and have immediate results. For example, a successful request to create a customer immediately returns a Customer object. Such requests don't require webhooks.\n\nThe Revolut Merchant API supports webhooks for events such as `ORDER_COMPLETED` and `ORDER_AUTHORISED`.","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the webhook.","descriptionNode":"$L1f8"},"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L1f9"},"events":{"type":"array","description":"$1fa","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L1fb"},"minItems":1,"descriptionNode":"$L1fc"}},"required":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:required","descriptionNode":"$L1fd"},"examples":{"updated_webhook":{"summary":"Updated webhook","value":{"id":"c6b981f4-53b3-47d5-9b24-4f87af1160eb","url":"http://business.revolut.com","events":["ORDER_COMPLETED"]}}}}},"descriptionNode":"$L1fe"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L1ff"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L200"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L201"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L202"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L203"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L204"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L205"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L206"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L207"}},"requestBody":{"content":{"application/json":{"schema":{"title":"Webhook schema for creation and update operations","type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L208"},"events":{"type":"array","description":"$209","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L20a"},"minItems":1,"descriptionNode":"$L20b"}},"required":["url","events"]},"examples":{"webhook_update_request":{"summary":"Webhook update request","value":{"url":"http://business.revolut.com","events":["ORDER_COMPLETED"]}}}}}},"variantLabels":[],"children":["$L20c","$L20d"]}]}],false]}] 18a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L20e","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 18d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain ungistered successfully"}]]}] 18e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 18f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Human readable text describing what went wrong."}]]}] 190:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 191:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Domain name of your website without the scheme (i.e. without ",["$","code","code-0",{"children":"http://"}]," or ",["$","code","code-1",{"children":"https://"}],")."]}]]}] 192:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A short explanation why you remove the domain."}]]}] 194:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unregister your website from Apple Pay's registered domains."}]]}] 195:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 196:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The version of the Merchant API, specified in ",["$","code","code-0",{"children":"YYYY-MM-DD"}]," format."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about API versioning, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/versioning/api-versions","target":"_blank","rel":"noreferrer","children":"API versions"}],"."]}]}]]}]]}] 1b5:"Retrieve a customer list (Deprecated)" 20c:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"update-webhook-deprecated","children":[["$L20f",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"update-webhook-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/update-webhook-deprecated.md"}]]}]}],"$undefined"]}] 214:T67e,
curl -X PUT "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}'
215:Teff,
const payload = {
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
};
fetch("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "PUT",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
216:T1576,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  jsonData := []byte(`
{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}
  `)
  req, _ := http.NewRequest("PUT", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
217:Tc35,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}

response = requests.put(url, headers=headers, json=payload)
print(response.json())
218:T1add,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PUT(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
219:T1e8f,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Put,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""url"": ""http://business.revolut.com"",
  ""events"": [
    ""ORDER_COMPLETED""
  ]
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
21a:T686,
curl -X PUT "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}'
21b:Tf07,
const payload = {
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__", {
  method: "PUT",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
21c:T157e,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
  jsonData := []byte(`
{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}
  `)
  req, _ := http.NewRequest("PUT", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
21d:Tc3d,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}

response = requests.put(url, headers=headers, json=payload)
print(response.json())
21e:T1ae5,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PUT(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
21f:T1e97,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Put,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""url"": ""http://business.revolut.com"",
  ""events"": [
    ""ORDER_COMPLETED""
  ]
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
20d:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L210",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L211"},{"name":"webhook_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L212"},"required":true,"description":"The ID of the webhook.","descriptionNode":"$L213"}],"requestBody":"$35:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$35:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PUT \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}'","templateHtml":"$214","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n};\nfetch(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"PUT\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$215","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n `)\n req, _ := http.NewRequest(\"PUT\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$216","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n\nresponse = requests.put(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$217","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PUT(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$218","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Put,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"url\"\": \"\"http://business.revolut.com\"\",\n \"\"events\"\": [\n \"\"ORDER_COMPLETED\"\"\n ]\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$219","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PUT \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}'","templateHtml":"$21a","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\", {\n method: \"PUT\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$21b","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n `)\n req, _ := http.NewRequest(\"PUT\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$21c","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n\nresponse = requests.put(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$21d","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PUT(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$21e","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Put,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"url\"\": \"\"http://business.revolut.com\"\",\n \"\"events\"\": [\n \"\"ORDER_COMPLETED\"\"\n ]\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$21f","tokens":[{"marker":"__RP_TOK_0__","paramName":"webhook_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:webhook_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"put","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks/{webhook_id}","parameters":["$20d:props:children:0:props:children:1:props:parameters:0","$20d:props:children:0:props:children:1:props:parameters:1"]}],"$L220"],"$L221","$L222"]}]]}] 107:["$","div","200-application/json-report_run_processing",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n  \"status\": \"processing\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n \"status\": \"processing\"\n}"}]}]]}] 223:T4ca,
{
  "report_run_id": "d6f6ef64-f668-4e64-8967-1cdf8afb2561",
  "status": "completed",
  "file_url": "https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file"
}
108:["$","div","200-application/json-report_run_completed",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$223"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n \"status\": \"completed\",\n \"file_url\": \"https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file\"\n}"}]}]]}] 109:["$","div","200-application/json-report_run_expired",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n  \"status\": \"expired\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n \"status\": \"expired\"\n}"}]}]]}] 224:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
10a:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$224"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 225:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
10b:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$225"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 226:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
10c:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$226"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 1a6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L227","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 220:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L228"}}}] 221:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"webhook_update_request","label":"Webhook update request","rawValue":"$35:props:children:0:props:children:props:requestBody:content:application/json:examples:webhook_update_request:value","block":"$L229"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 222:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"updated_webhook","label":"Updated webhook","rawValue":"$35:props:children:0:props:children:props:responses:200:content:application/json:examples:updated_webhook:value","block":"$L22a"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L22b"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L22c"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L22d"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 1db:"Rotate a webhook signing secret (Deprecated)" 10d:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 10e:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 10f:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 110:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 1ab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent customer ID used to retrieve, update, and delete a customer."}]]}] 1ac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 1ad:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 1ae:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 1af:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the customer was created."}]]}] 1b0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The data and time the customer was last updated."}]]}] 1b1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}]]}] 1b2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 1b3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 1b4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 1b6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Get a list of all your ",["$","code","code-0",{"children":"customers"}],"."]}]]}] 1b7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 1b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The maximum number of customers returned per page. Used for ",["$","strong","strong-0",{"children":"pagination"}],"."]}]]}] 1b9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A zero-based page index for the paginated results, used in conjunction with ",["$","code","code-0",{"children":"limit"}],"."]}]]}] 1bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 1bc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 1be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 1bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 1c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload."}]]}] 1c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 1c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 1c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 1c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 1c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 1c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 1c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 12a:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 46:["$","$51","register-address-validation-endpoint",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"SynchronousWebhook","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the synchronous webhook object.","descriptionNode":"$L22e"},"signing_key":{"type":"string","pattern":"^swsk_[a-zA-Z0-9]{32}$","description":"A randomly generated signing key, which can be used by merchants to authenticate requests from Revolut by verifying the signature. For more information, see: [Payload Signature](https://developer.revolut.com/docs/api/merchant#authentication).","descriptionNode":"$L22f"},"url":{"type":"string","format":"uri","pattern":"^https:\\/{2}.+/gi","maxLength":2000,"description":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L230"},"event_type":{"type":"string","enum":"$47:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:event_type:enum","description":"Type of event this synchronous webhook is configured for.\n\n:::note\nAt the moment, synchronous webhooks only support address validation events. \n:::","descriptionNode":"$L231"},"location_id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L232"}},"required":"$47:props:children:0:props:children:props:responses:200:content:application/json:schema:items:required"},"examples":{"example_without_location":{"summary":"Synchronous webhook response","value":{"id":"f6abc4df-eb48-417c-8e75-f7c6d7ad394f","signing_key":"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1","url":"https://backend.example.com/webhooks/validate-address","event_type":"fast_checkout.validate_address"}},"example_with_location":{"summary":"Synchronous webhook response with location ID","value":{"id":"f6abc4df-eb48-417c-8e75-f7c6d7ad394f","signing_key":"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1","url":"https://backend.example.com/webhooks/validate-address","event_type":"fast_checkout.validate_address","location_id":"b0ebede4-5cbc-4951-977f-70329faa8769"}}}}},"descriptionNode":"$L233"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L234"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L235"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L236"},"401":{"description":"Unauthorized","descriptionNode":"$L237"}},"requestBody":{"content":{"application/json":{"schema":{"title":"SynchronousWebhookCreation","type":"object","description":"The `SynchronousWebhook` object allows merchants to register endpoints on their backend for receiving predefined event types. Currently, only address validation events are available.\n\nIn addition, merchants can specify locations representing their online stores, enabling them to set up different webhooks for different stores.","properties":{"event_type":{"type":"string","enum":["fast_checkout.validate_address"],"description":"Type of event this synchronous webhook is configured for.\n\n:::note\nAt the moment, synchronous webhooks only support address validation events. \n:::","descriptionNode":"$L238"},"url":{"type":"string","format":"uri","pattern":"^https:\\/{2}.+/gi","maxLength":2000,"description":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L239"},"location_id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L23a"}},"required":["event_type","url"],"descriptionNode":"$L23b"},"examples":{"create_webhook":{"summary":"Create synchronous webhook","value":{"event_type":"fast_checkout.validate_address","url":"https://backend.example.com/webhooks/validate-address"}},"create_webhook_with_location_id":{"summary":"Create synchronous webhook with location ID","value":{"event_type":"fast_checkout.validate_address","url":"https://backend.example.com/webhooks/validate-address","location_id":"8d9a7125-805f-40f3-a405-bc89765db996"}}}}}},"variantLabels":["Synchronous webhook response","Synchronous webhook response with location ID"],"children":["$L23c","$L23d"]}]}],false]}] 20f:"Update a webhook (Deprecated)" 1c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 1c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 1ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 1cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The expiration period of the signing secret in the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601#Durations","target":"_blank","rel":"noreferrer","children":"ISO 8601 format"}],"."]}],"\n",["$","p","p-1",{"children":"If defined, when the signing secret is rotated, it continues to be valid until the expiration period passes."}],"\n",["$","p","p-2",{"children":"Otherwise, it is invalidated immediately."}],"\n",["$","p","p-3",{"children":"Maximum expiration period is 7 days."}]]}] 1dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Rotate the ",["$","code","code-0",{"children":"signing secret"}]," for a specific webhook."]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature","target":"_blank","rel":"noreferrer","children":"Tutorials: Verify the payload signature"}],"."]}]]}] 1dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 1de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 1df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 23c:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"register-address-validation-endpoint","children":[["$L23e","$undefined"],["$","$L15",null,{"id":"register-address-validation-endpoint"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/register-address-validation-endpoint.md"}]]}]}],"$undefined"]}] 241:T5f9,
curl -X POST "https://merchant.revolut.com/api/synchronous-webhooks" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}'
242:Teb2,
const payload = {
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
};
fetch("https://merchant.revolut.com/api/synchronous-webhooks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
243:T14f1,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/synchronous-webhooks"
  jsonData := []byte(`
{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
244:Tbe8,
import requests

url = "https://merchant.revolut.com/api/synchronous-webhooks"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
245:T1a58,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/synchronous-webhooks"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
246:T1e42,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/synchronous-webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""event_type"": ""fast_checkout.validate_address"",
  ""url"": ""https://backend.example.com/webhooks/validate-address""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
247:T601,
curl -X POST "https://sandbox-merchant.revolut.com/api/synchronous-webhooks" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}'
248:Teba,
const payload = {
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
};
fetch("https://sandbox-merchant.revolut.com/api/synchronous-webhooks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
249:T14f9,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/synchronous-webhooks"
  jsonData := []byte(`
{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
24a:Tbf0,
import requests

url = "https://sandbox-merchant.revolut.com/api/synchronous-webhooks"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
24b:T1a60,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/synchronous-webhooks"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
24c:T1e4a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/synchronous-webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""event_type"": ""fast_checkout.validate_address"",
  ""url"": ""https://backend.example.com/webhooks/validate-address""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
23d:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L23f",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L240"}],"requestBody":"$46:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$46:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/synchronous-webhooks\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}'","templateHtml":"$241","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n};\nfetch(\"https://merchant.revolut.com/api/synchronous-webhooks\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$242","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/synchronous-webhooks\"\n jsonData := []byte(`\n{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$243","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/synchronous-webhooks\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$244","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/synchronous-webhooks\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$245","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/synchronous-webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"event_type\"\": \"\"fast_checkout.validate_address\"\",\n \"\"url\"\": \"\"https://backend.example.com/webhooks/validate-address\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$246","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}'","templateHtml":"$247","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$248","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"\n jsonData := []byte(`\n{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$249","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$24a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$24b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/synchronous-webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"event_type\"\": \"\"fast_checkout.validate_address\"\",\n \"\"url\"\": \"\"https://backend.example.com/webhooks/validate-address\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$24c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/synchronous-webhooks","parameters":["$23d:props:children:0:props:children:1:props:parameters:0"]}],"$L24d"],"$L24e","$L24f"]}]]}] 1f0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L250","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 1f2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L251","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 1f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 1f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 1fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 1fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 1fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A ",["$","code","code-0",{"children":"webhook"}]," (also called a web callback) allows your system to receive an event from a different app immediately after it happens."]}],"\n",["$","p","p-1",{"children":"For example, you can subscribe to a webhook when an order changes from Pending to Completed. When the payment is cleared and the order is completed, Revolut servers will send a notification to the URL of your choice. This is a much more efficient way to know when an order is paid as opposed to trying to get the status of the order every few seconds."}],"\n",["$","p","p-2",{"children":"Many events that happen to a Revolut Merchant account are synchronous, which means that they arrive instantly and have immediate results. For example, a successful request to create a customer immediately returns a Customer object. Such requests don't require webhooks."}],"\n",["$","p","p-3",{"children":["The Revolut Merchant API supports webhooks for events such as ",["$","code","code-0",{"children":"ORDER_COMPLETED"}]," and ",["$","code","code-1",{"children":"ORDER_AUTHORISED"}],"."]}]]}] 1fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 24d:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L252"}}}] 24e:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"create_webhook","label":"Create synchronous webhook","rawValue":"$46:props:children:0:props:children:props:requestBody:content:application/json:examples:create_webhook:value","block":"$L253"},{"key":"create_webhook_with_location_id","label":"Create synchronous webhook with location ID","rawValue":"$46:props:children:0:props:children:props:requestBody:content:application/json:examples:create_webhook_with_location_id:value","block":"$L254"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 24f:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"example_without_location","label":"Synchronous webhook response","rawValue":"$46:props:children:0:props:children:props:responses:200:content:application/json:examples:example_without_location:value","block":"$L255"},{"key":"example_with_location","label":"Synchronous webhook response with location ID","rawValue":"$46:props:children:0:props:children:props:responses:200:content:application/json:examples:example_with_location:value","block":"$L256"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L257"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 258:T141c,
[
  {
    "id": "6fc8db62-6489-4470-a9e0-84b462fe3908",
    "url": "https://revolut.com/webhooks",
    "events": [
      "ORDER_COMPLETED"
    ]
  },
  {
    "id": "b466ab77-4932-4850-beb0-113bfc1166f8",
    "url": "https://business.revolut.com/webhooks",
    "events": [
      "ORDER_COMPLETED",
      "ORDER_AUTHORISED"
    ]
  },
  {
    "id": "4a31c8a3-8037-4260-a09e-090475d37025",
    "url": "https://developer.revolut.com/webhooks",
    "events": [
      "ORDER_AUTHORISED"
    ]
  },
  {
    "id": "5d815041-5753-46bc-aebc-315fe99f30aa",
    "url": "https://example.com/webhooks",
    "events": [
      "ORDER_COMPLETED",
      "ORDER_AUTHORISED"
    ]
  }
]
14e:["$","div","200-application/json-list_of_webhooks",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$258"}}]}]],"$L259"]}] 25a:T69c,
{
  "id": "c6b981f4-53b3-47d5-9b24-4f87af1160eb",
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_AUTHORISED",
    "ORDER_COMPLETED"
  ],
  "signing_secret": "wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK"
}
150:["$","div","200-application/json-retrieved_webhook",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$25a"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"c6b981f4-53b3-47d5-9b24-4f87af1160eb\",\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_AUTHORISED\",\n \"ORDER_COMPLETED\"\n ],\n \"signing_secret\": \"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK\"\n}"}]}]]}] 151:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 152:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 153:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 1ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 200:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 201:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 202:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 203:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 204:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 205:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 206:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 207:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 208:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 20a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 20b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 210:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Update the details of a specific webhook."}]]}] 211:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 212:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 213:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 259:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"[\n {\n \"id\": \"6fc8db62-6489-4470-a9e0-84b462fe3908\",\n \"url\": \"https://revolut.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n },\n {\n \"id\": \"b466ab77-4932-4850-beb0-113bfc1166f8\",\n \"url\": \"https://business.revolut.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n },\n {\n \"id\": \"4a31c8a3-8037-4260-a09e-090475d37025\",\n \"url\": \"https://developer.revolut.com/webhooks\",\n \"events\": [\n \"ORDER_AUTHORISED\"\n ]\n },\n {\n \"id\": \"5d815041-5753-46bc-aebc-315fe99f30aa\",\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n }\n]"}]}] 228:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L25b","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 23e:"Register address validation endpoint for Fast checkout" 179:["$","div","request-application/json-example_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"domain\": \"revolut.com\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"domain\": \"revolut.com\"\n}"}]}]]}] 17a:["$","div","400-application/json-error_message",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"code\": \"validation\",\n  \"message\": \"Exactly one value must be supplied for client_id\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"validation\",\n \"message\": \"Exactly one value must be supplied for client_id\"\n}"}]}]]}] 22e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the synchronous webhook object."}]]}] 22f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["A randomly generated signing key, which can be used by merchants to authenticate requests from Revolut by verifying the signature. For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Payload Signature"}],"."]}]]}] 230:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be ",["$","code","code-0",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 231:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of event this synchronous webhook is configured for."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"At the moment, synchronous webhooks only support address validation events."}]}]]}]]}] 232:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 233:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 234:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 235:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 236:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 237:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 25c:T1382,
[
  {
    "id": "f6abc4df-eb48-417c-8e75-f7c6d7ad394f",
    "signing_key": "swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1",
    "url": "https://example.com/webhooks/validate-address",
    "event_type": "fast_checkout.validate_address"
  },
  {
    "id": "5c08dcc1-cd60-4b7d-a255-e42d24d7365c",
    "signing_key": "swsk_VsuFcq6FIpa9gOWUu0n2WxiCbsDHIJlN",
    "url": "https://groceries.example.com/webhooks/validate-address",
    "event_type": "fast_checkout.validate_address",
    "location_id": "b0ebede4-5cbc-4951-977f-70329faa8769"
  },
  {
    "id": "dbebe6f8-4c47-4176-a94f-576d76e1d0b6",
    "signing_key": "swsk_0TKYlzoakBgGGVvojCiRRqInMD1ufLZn",
    "url": "https://clothes.example.com/webhooks/validate-address",
    "event_type": "fast_checkout.validate_address",
    "location_id": "6ebd3d2b-7a51-42e4-84f4-3c513621edd3"
  }
]
18b:["$","div","200-application/json-example_without_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$25c"}}]}]],"$L25d"]}] 18c:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 238:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of event this synchronous webhook is configured for."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"At the moment, synchronous webhooks only support address validation events."}]}]]}]]}] 239:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The valid URL of the endpoint, that uses HTTPS URL schema. Revolut sends the shipping address of the customer to this URL for validation."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be ",["$","code","code-0",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 23a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 23b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"SynchronousWebhook"}]," object allows merchants to register endpoints on their backend for receiving predefined event types. Currently, only address validation events are available."]}],"\n",["$","p","p-1",{"children":"In addition, merchants can specify locations representing their online stores, enabling them to set up different webhooks for different stores."}]]}] 23f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Use this endpoint to register a URL where Revolut can send shipping address(es) from a Revolut Pay customer for validation during the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/fast-checkout","target":"_blank","rel":"noreferrer","children":"Fast checkout\nprocess"}],"."]}],"\n",["$","p","p-1",{"children":"Revolut Pay can support Fast checkout for delivering goods. Once your customer selects a shipping address, Revolut needs to validate if the merchant (or their shipping partner) delivers to the address provided. This is done by contacting the merchant's backend and asking for such validation and information."}],"\n",["$","p","p-2",{"children":"In order for your backend to support Fast checkout, you need to:"}],"\n",["$","ol","ol-0",{"children":["\n",["$","li","li-0",{"children":"Register an URL to handle address validation"}],"\n",["$","li","li-1",{"children":"Validate the shipping address sent to your backend"}],"\n",["$","li","li-2",{"children":"Respond with a JSON object containing the result of the validation"}],"\n"]}],"\n",["$","p","p-3",{"children":"Additionally, Revolut Pay can support multiple webhooks if you have multiple stores. For more information, see:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/fast-checkout#manage-multiple-stores-with-fast-checkout","target":"_blank","rel":"noreferrer","children":"Manage multiple stores with Fast checkout"}]}],"\n",["$","li","li-1",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Merchant API: Locations"}]}],"\n"]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["To set up a webhook for tracking order completion, failure, error, etc. events, use the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-webhooks","target":"_blank","rel":"noreferrer","children":"Webhooks endpoints"}],"."]}]}]]}]]}] 240:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 25d:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"[\n {\n \"id\": \"f6abc4df-eb48-417c-8e75-f7c6d7ad394f\",\n \"signing_key\": \"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1\",\n \"url\": \"https://example.com/webhooks/validate-address\",\n \"event_type\": \"fast_checkout.validate_address\"\n },\n {\n \"id\": \"5c08dcc1-cd60-4b7d-a255-e42d24d7365c\",\n \"signing_key\": \"swsk_VsuFcq6FIpa9gOWUu0n2WxiCbsDHIJlN\",\n \"url\": \"https://groceries.example.com/webhooks/validate-address\",\n \"event_type\": \"fast_checkout.validate_address\",\n \"location_id\": \"b0ebede4-5cbc-4951-977f-70329faa8769\"\n },\n {\n \"id\": \"dbebe6f8-4c47-4176-a94f-576d76e1d0b6\",\n \"signing_key\": \"swsk_0TKYlzoakBgGGVvojCiRRqInMD1ufLZn\",\n \"url\": \"https://clothes.example.com/webhooks/validate-address\",\n \"event_type\": \"fast_checkout.validate_address\",\n \"location_id\": \"6ebd3d2b-7a51-42e4-84f4-3c513621edd3\"\n }\n]"}]}] 1a7:["$","div","request-application/json-example_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"domain\": \"revolut.com\",\n  \"reason\": \"Unregister due to domain change.\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"domain\": \"revolut.com\",\n \"reason\": \"Unregister due to domain change.\"\n}"}]}]]}] 1a8:["$","div","400-application/json-error_message",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"code\": \"validation\",\n  \"message\": \"Exactly one value must be supplied for client_id\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"validation\",\n \"message\": \"Exactly one value must be supplied for client_id\"\n}"}]}]]}] 1a9:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 1aa:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 252:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L25e","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 22:["$","$51","create-customer-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"title":"Customer","type":"object","description":"","properties":{"id":{"type":"string","description":"Permanent customer ID used to retrieve, update, and delete a customer.","descriptionNode":"$L25f"},"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L260"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L261"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L262"},"created_at":{"type":"string","description":"The date and time the customer was created.","format":"date-time","descriptionNode":"$L263"},"updated_at":{"type":"string","description":"The data and time the customer was last updated.","format":"date-time","descriptionNode":"$L264"},"email":{"type":"string","description":"The email address of the customer.","format":"email","descriptionNode":"$L265"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L266"}},"required":"$23:props:children:0:props:children:props:responses:200:content:application/json:schema:items:required"},"examples":{"created_customer":{"summary":"Created customer","value":{"id":"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae","full_name":"Example Customer","business_name":"Example Business","email":"example.customer@example.com","phone":"+441234567890","date_of_birth":"1990-01-01","created_at":"2020-06-24T12:03:39.979397Z","updated_at":"2020-06-24T12:03:39.979397Z"}}}}},"descriptionNode":"$L267"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"description":"","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L268"},"timestamp":{"type":"number","description":"The date and time the error happened.","descriptionNode":"$L269"},"code":{"type":"number","description":"`1018` - The customer already exists.","descriptionNode":"$L26a"}},"required":["errorId","timestamp"]},"examples":{"Error":{"value":{"errorId":"5226f800-e9be-4b74-ae61-6c7b71c913b5","timestamp":1593439990599,"code":1018}}}}},"descriptionNode":"$L26b"},"401":{"description":"Unauthorized","descriptionNode":"$L26c"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L26d"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L26e"},"email":{"type":"string","description":"The email address of the customer.","format":"email","descriptionNode":"$L26f"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L270"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L271"}},"required":["email"]},"examples":{"default":{"value":{"full_name":"Example Customer","business_name":"Example Business","email":"example.customer@example.com","phone":"+441234567890","date_of_birth":"1990-01-01"}}}}}},"variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"create-customer-deprecated","children":[["$L272",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"create-customer-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/create-customer-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L273",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L274"}],"requestBody":"$22:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],"$L275"]}],"$L276"]}]]}]}],false]}] 1ef:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 25:["$","$51","update-customer-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Customer","type":"object","description":"","properties":{"id":{"type":"string","description":"Permanent customer ID used to retrieve, update, and delete a customer.","descriptionNode":"$L277"},"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L278"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L279"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L27a"},"created_at":{"type":"string","description":"The date and time the customer was created.","format":"date-time","descriptionNode":"$L27b"},"updated_at":{"type":"string","description":"The data and time the customer was last updated.","format":"date-time","descriptionNode":"$L27c"},"email":{"type":"string","description":"The email address of the customer.","format":"email","descriptionNode":"$L27d"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L27e"}},"required":"$23:props:children:0:props:children:props:responses:200:content:application/json:schema:items:required"},"examples":{"updated_customer":{"summary":"Updated customer","value":{"id":"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae","full_name":"Example Customer","business_name":"Example Business","email":"example.business@example.com","phone":"+441234567890","date_of_birth":"1990-01-01","created_at":"2020-06-24T12:03:39.979397Z","updated_at":"2020-06-25T10:03:39.134417Z"}}}}},"descriptionNode":"$L27f"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L280"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L281"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L282"},"401":{"description":"Unauthorized","descriptionNode":"$L283"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L284"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L285"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L286"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L287"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L288"},"email":{"type":"string","description":"The email address of the customer. \n\n:::note\nThis value must be unique for each customer for one merchant. If the email address matches an existing customer, an error is returned.\n:::","format":"email","descriptionNode":"$L289"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L28a"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L28b"}}},"examples":{"default":{"value":{"email":"example.business@example.com"}}}}}},"variantLabels":[],"children":[["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"update-customer-deprecated","children":[["$L28c",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"update-customer-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/update-customer-deprecated.md"}]]}]}],"$undefined"]}],["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L28d",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L28e"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L28f"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L290"}],"requestBody":"$25:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],"$L291"]}],"$L292"]}]]}]}],false]}] 275:["$","$L5e",null,{"responses":"$22:props:children:0:props:children:props:responses","headingAs":"h3"}] 293:T726,
curl -X POST "https://merchant.revolut.com/api/1.0/customers" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}'
294:T11d7,
const payload = {
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
};
fetch("https://merchant.revolut.com/api/1.0/customers", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
295:T161e,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers"
  jsonData := []byte(`
{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
296:Tf0d,
import requests

url = "https://merchant.revolut.com/api/1.0/customers"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
297:T1b85,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
298:T2413,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""full_name"": ""Example Customer"",
  ""business_name"": ""Example Business"",
  ""email"": ""example.customer@example.com"",
  ""phone"": ""+441234567890"",
  ""date_of_birth"": ""1990-01-01""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
299:T72e,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/customers" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}'
29a:T11df,
const payload = {
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
29b:T1626,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers"
  jsonData := []byte(`
{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
29c:Tf15,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
29d:T1b8d,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
29e:T241b,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""full_name"": ""Example Customer"",
  ""business_name"": ""Example Business"",
  ""email"": ""example.customer@example.com"",
  ""phone"": ""+441234567890"",
  ""date_of_birth"": ""1990-01-01""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
276:["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/customers\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}'","templateHtml":"$293","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/customers\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$294","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers\"\n jsonData := []byte(`\n{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$295","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$296","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$297","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"full_name\"\": \"\"Example Customer\"\",\n \"\"business_name\"\": \"\"Example Business\"\",\n \"\"email\"\": \"\"example.customer@example.com\"\",\n \"\"phone\"\": \"\"+441234567890\"\",\n \"\"date_of_birth\"\": \"\"1990-01-01\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$298","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/customers\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}'","templateHtml":"$299","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$29a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers\"\n jsonData := []byte(`\n{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$29b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$29c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$29d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"full_name\"\": \"\"Example Customer\"\",\n \"\"business_name\"\": \"\"Example Business\"\",\n \"\"email\"\": \"\"example.customer@example.com\"\",\n \"\"phone\"\": \"\"+441234567890\"\",\n \"\"date_of_birth\"\": \"\"1990-01-01\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$29e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers","parameters":["$22:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0"]}],"$L29f"],"$L2a0","$L2a1"]}] 291:["$","$L5e",null,{"responses":"$25:props:children:0:props:children:props:responses","headingAs":"h3"}] 2a2:T565,
curl -X PATCH "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "email": "example.business@example.com"
}'
2a3:Td76,
const payload = {
  "email": "example.business@example.com"
};
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
2a4:T145d,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  jsonData := []byte(`
{
  "email": "example.business@example.com"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
2a5:Taac,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "email": "example.business@example.com"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
2a6:T19c4,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "email": "example.business@example.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
2a7:T1c22,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""email"": ""example.business@example.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
2a8:T56d,
curl -X PATCH "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "email": "example.business@example.com"
}'
2a9:Td7e,
const payload = {
  "email": "example.business@example.com"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
2aa:T1465,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  jsonData := []byte(`
{
  "email": "example.business@example.com"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
2ab:Tab4,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "email": "example.business@example.com"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
2ac:T19cc,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "email": "example.business@example.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
2ad:T1c2a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""email"": ""example.business@example.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
292:["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"email\": \"example.business@example.com\"\n}'","templateHtml":"$2a2","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"email\": \"example.business@example.com\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$2a3","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"email\": \"example.business@example.com\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$2a4","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"email\": \"example.business@example.com\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$2a5","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"email\": \"example.business@example.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$2a6","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"email\"\": \"\"example.business@example.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$2a7","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"email\": \"example.business@example.com\"\n}'","templateHtml":"$2a8","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"email\": \"example.business@example.com\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$2a9","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"email\": \"example.business@example.com\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$2aa","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"email\": \"example.business@example.com\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$2ab","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"email\": \"example.business@example.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$2ac","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"email\"\": \"\"example.business@example.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$2ad","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"patch","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}","parameters":["$25:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0","$25:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:1"]}],"$L2ae"],"$L2af","$L2b0"]}] 2b1:T1871,
[
  {
    "id": "9dfb8491-bfb0-4420-ad63-0fa7bdd3dffb",
    "full_name": "First Customer",
    "email": "first.customer@example.com",
    "date_of_birth": "1990-01-01",
    "created_at": "2020-06-24T12:12:56.596703Z",
    "updated_at": "2020-06-24T12:12:56.737082Z"
  },
  {
    "id": "6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae",
    "full_name": "Second Customer",
    "business_name": "Second Business",
    "email": "second.customer@example.com",
    "phone": "+441234567890",
    "created_at": "2020-06-24T12:03:39.979397Z",
    "updated_at": "2020-06-25T10:03:39.134417Z"
  },
  {
    "id": "014f0ad6-c45b-4d7d-83c6-80eea94fceac",
    "full_name": "Third Customer",
    "email": "third.customer@example.com",
    "phone": "+441234567890",
    "created_at": "2020-06-23T14:13:08.262336Z",
    "updated_at": "2020-06-24T10:47:11.173027Z"
  }
]
1f1:["$","div","200-application/json-list_of_customers",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2b1"}}]}]],"$L2b2"]}] 1f3:["$","div","request-application/json-webhook_signing_secret_rotate_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"expiration_period\": \"PT5H30M\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"expiration_period\": \"PT5H30M\"\n}"}]}]]}] 2b3:T5f9,
{
  "id": "c6b981f4-53b3-47d5-9b24-4f87af1160eb",
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ],
  "signing_secret": "wsk_4jETWMz1g1b37gCONjNp84t2KSSIT6aG"
}
1f4:["$","div","200-application/json-updated_webhook",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2b3"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"c6b981f4-53b3-47d5-9b24-4f87af1160eb\",\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ],\n \"signing_secret\": \"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT6aG\"\n}"}]}]]}] 1f5:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 1f6:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 1f7:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 20e:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 29f:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L2b4"}}}] 2a0:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$22:props:children:0:props:children:props:requestBody:content:application/json:examples:default:value","block":"$L2b5"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 2a1:["$","$Lbd",null,{"exampleBlocks":{"201":{"application/json":{"variants":[{"key":"created_customer","label":"Created customer","rawValue":"$22:props:children:0:props:children:props:responses:201:content:application/json:examples:created_customer:value","block":"$L2b6"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"Error","label":"Error","rawValue":"$22:props:children:0:props:children:props:responses:400:content:application/json:examples:Error:value","block":"$L2b7"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 2ae:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L2b8"}}}] 2af:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$25:props:children:0:props:children:props:requestBody:content:application/json:examples:default:value","block":"$L2b9"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 2b0:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"updated_customer","label":"Updated customer","rawValue":"$25:props:children:0:props:children:props:responses:200:content:application/json:examples:updated_customer:value","block":"$L2ba"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$25:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L2bb"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L2bc"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 2b2:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"[\n {\n \"id\": \"9dfb8491-bfb0-4420-ad63-0fa7bdd3dffb\",\n \"full_name\": \"First Customer\",\n \"email\": \"first.customer@example.com\",\n \"date_of_birth\": \"1990-01-01\",\n \"created_at\": \"2020-06-24T12:12:56.596703Z\",\n \"updated_at\": \"2020-06-24T12:12:56.737082Z\"\n },\n {\n \"id\": \"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae\",\n \"full_name\": \"Second Customer\",\n \"business_name\": \"Second Business\",\n \"email\": \"second.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"created_at\": \"2020-06-24T12:03:39.979397Z\",\n \"updated_at\": \"2020-06-25T10:03:39.134417Z\"\n },\n {\n \"id\": \"014f0ad6-c45b-4d7d-83c6-80eea94fceac\",\n \"full_name\": \"Third Customer\",\n \"email\": \"third.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"created_at\": \"2020-06-23T14:13:08.262336Z\",\n \"updated_at\": \"2020-06-24T10:47:11.173027Z\"\n }\n]"}]}] 227:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 272:"Create a customer (Deprecated)" 28c:"Update a customer (Deprecated)" 229:["$","div","request-application/json-webhook_update_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"url\": \"http://business.revolut.com\",\n  \"events\": [\n    \"ORDER_COMPLETED\"\n  ]\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}"}]}]]}] 2bd:T4fb,
{
  "id": "c6b981f4-53b3-47d5-9b24-4f87af1160eb",
  "url": "http://business.revolut.com",
  "events": [
    "ORDER_COMPLETED"
  ]
}
22a:["$","div","200-application/json-updated_webhook",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2bd"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"c6b981f4-53b3-47d5-9b24-4f87af1160eb\",\n \"url\": \"http://business.revolut.com\",\n \"events\": [\n \"ORDER_COMPLETED\"\n ]\n}"}]}]]}] 22b:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 22c:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 22d:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 25f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent customer ID used to retrieve, update, and delete a customer."}]]}] 260:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 261:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 262:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 263:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the customer was created."}]]}] 264:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The data and time the customer was last updated."}]]}] 265:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}]]}] 266:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 267:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Created"}]]}] 268:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 269:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 26a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","code","code-0",{"children":"1018"}]," - The customer already exists."]}]]}] 26b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 26c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 26d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 26e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 26f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}]]}] 270:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 271:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 273:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Create a ",["$","code","code-0",{"children":"customer"}]," that has the information in the body of the request."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["If you wish to save a customer's payment details using any of the available payment methods on the Revolut Checkout Widget (",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/accept-payments/online-payments/revolut-pay/introduction","target":"_blank","rel":"noreferrer","children":"Revolut Pay"}],", ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/guides/merchant/accept-payments/online-payments/card-payments/introduction","target":"_blank","rel":"noreferrer","children":"Card payments"}],"), you need to meet one of the following requirements:"]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Have a customer object with ",["$","code","code-0",{"children":"email"}]," and assign it to the order by providing ",["$","code","code-1",{"children":"customer.id"}]]}],"\n",["$","li","li-1",{"children":["Create a new customer with, at least, ",["$","code","code-0",{"children":"customer.email"}]," during ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#create-order","target":"_blank","rel":"noreferrer","children":"order creation"}]]}],"\n"]}],["$","p","p-1",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","target":"_blank","rel":"noreferrer","children":"Charge a customer's saved payment method"}],"."]}]]}]]}]]}] 277:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent customer ID used to retrieve, update, and delete a customer."}]]}] 278:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 279:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 27a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 27b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the customer was created."}]]}] 27c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The data and time the customer was last updated."}]]}] 27d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}]]}] 27e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 27f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 280:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 281:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 282:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 283:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 284:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 285:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 286:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 287:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 288:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 289:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"This value must be unique for each customer for one merchant. If the email address matches an existing customer, an error is returned."}]}]]}]]}] 28a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 28b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 28d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Update the attributes of a specific ",["$","code","code-0",{"children":"customer"}],"."]}]]}] 250:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 251:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 274:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 28e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 28f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 290:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 253:["$","div","request-application/json-create_webhook",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"event_type\": \"fast_checkout.validate_address\",\n  \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\"\n}"}]}]]}] 2be:T4bb,
{
  "event_type": "fast_checkout.validate_address",
  "url": "https://backend.example.com/webhooks/validate-address",
  "location_id": "8d9a7125-805f-40f3-a405-bc89765db996"
}
254:["$","div","request-application/json-create_webhook_with_location_id",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2be"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event_type\": \"fast_checkout.validate_address\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\",\n \"location_id\": \"8d9a7125-805f-40f3-a405-bc89765db996\"\n}"}]}]]}] 2bf:T5e6,
{
  "id": "f6abc4df-eb48-417c-8e75-f7c6d7ad394f",
  "signing_key": "swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1",
  "url": "https://backend.example.com/webhooks/validate-address",
  "event_type": "fast_checkout.validate_address"
}
255:["$","div","200-application/json-example_without_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2bf"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"f6abc4df-eb48-417c-8e75-f7c6d7ad394f\",\n \"signing_key\": \"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\",\n \"event_type\": \"fast_checkout.validate_address\"\n}"}]}]]}] 2c0:T719,
{
  "id": "f6abc4df-eb48-417c-8e75-f7c6d7ad394f",
  "signing_key": "swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1",
  "url": "https://backend.example.com/webhooks/validate-address",
  "event_type": "fast_checkout.validate_address",
  "location_id": "b0ebede4-5cbc-4951-977f-70329faa8769"
}
256:["$","div","200-application/json-example_with_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$2c0"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"f6abc4df-eb48-417c-8e75-f7c6d7ad394f\",\n \"signing_key\": \"swsk_y5z3LEHYZ9ndote3qegzWD6uL4t1lfp1\",\n \"url\": \"https://backend.example.com/webhooks/validate-address\",\n \"event_type\": \"fast_checkout.validate_address\",\n \"location_id\": \"b0ebede4-5cbc-4951-977f-70329faa8769\"\n}"}]}]]}] 257:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 2b4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L2c1","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 2b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L2c2","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 25b:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 28:["$","$51","retrieve-payment-method-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Payment method object","type":"object","description":"","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment method.","descriptionNode":"$L2c3"},"type":{"type":"string","enum":["CARD","REVOLUT_PAY"],"description":"The type of the payment method.\n\n:::note\nOnly merchant initiated transactions are supported for saved `REVOLUT_PAY` payment methods.\n:::","descriptionNode":"$L2c4"},"saved_for":{"type":"string","enum":["CUSTOMER","MERCHANT"],"description":"Indicates in which case this saved payment method can be used for payments.\n\n\n- `CUSTOMER`: This payment method can be used only when the customer is on the checkout page.\n- `MERCHANT`: This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions.","descriptionNode":"$L2c5"},"method_details":{"type":"object","description":"The details of the payment method.","properties":{"bin":{"type":"string","maxLength":6,"minLength":6,"description":"The BIN of the payment card.","descriptionNode":"$L2c6"},"last4":{"type":"string","maxLength":4,"minLength":4,"description":"The last four digits of the payment card.","descriptionNode":"$L2c7"},"expiry_month":{"type":"number","description":"The expiry month of the payment card.","descriptionNode":"$L2c8"},"expiry_year":{"type":"number","description":"The expiry year of the payment card.","descriptionNode":"$L2c9"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L2ca"},"billing_address":{"type":"object","description":"The billing address of the payment method.","properties":{"street_line_1":{"type":"string","minLength":1,"description":"Street line 1 information.","descriptionNode":"$L2cb"},"street_line_2":{"type":"string","minLength":1,"description":"Street line 2 information.","descriptionNode":"$L2cc"},"postcode":{"type":"string","minLength":1,"description":"The postcode associated with the address.","descriptionNode":"$L2cd"},"city":{"type":"string","minLength":1,"description":"The city associated with the address.","descriptionNode":"$L2ce"},"region":{"type":"string","minLength":1,"description":"The region associated with the address.","descriptionNode":"$L2cf"},"country_code":{"type":"string","minLength":1,"description":"The country associated with the address.","descriptionNode":"$L2d0"}},"descriptionNode":"$L2d1"},"brand":{"type":"string","description":"The brand of the payment card.","enum":["VISA","MASTERCARD","MAESTRO"],"descriptionNode":"$L2d2"},"funding":{"type":"string","enum":["DEBIT","CREDIT","PREPAID","DEFERRED_DEBIT","CHARGE"],"description":"The funding type of the payment card.","descriptionNode":"$L2d3"},"issuer":{"type":"string","description":"The issuer of the payment card.","descriptionNode":"$L2d4"},"issuer_country":{"type":"string","description":"Two-letter country code of the country where the payment card was issued.","descriptionNode":"$L2d5"},"created_at":{"type":"string","description":"The date and time the payment card was added.","format":"date-time","descriptionNode":"$L2d6"}},"descriptionNode":"$L2d7"}},"required":["id"]},"examples":{"retrieved_payment_method":{"summary":"Retrieved payment method","value":{"id":"edef3ba4-60a0-4df3-8f12-e5fc858c2420","type":"CARD","saved_for":"CUSTOMER","method_details":{"bin":"459678","last4":"6896","expiry_month":3,"expiry_year":2025,"cardholder_name":"Example Customer","brand":"VISA","funding":"DEBIT","issuer":"EXAMPLE ISSUER","issuer_country":"GB","billing_address":{"street_line_1":"7","street_line_2":"Westferry Circus","postcode":"E144HD","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}}}}}},"descriptionNode":"$L2d8"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L2d9"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L2da"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L2db"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L2dc"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L2dd"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L2de"}},"requestBody":"$undefined","variantLabels":[],"children":["$L2df","$L2e0"]}]}],false]}] 25e:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 2df:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-payment-method-deprecated","children":[["$L2e1",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-payment-method-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-payment-method-deprecated.md"}]]}]}],"$undefined"]}] 2e8:T8cf,
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
2e9:Tdb7,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
2ea:T6e3,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
2eb:T155b,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
2ec:T147b,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
2ed:T8d7,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
2ee:Tdbf,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
2ef:T6eb,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
2f0:T1563,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
2f1:T1483,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
2e0:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L2e2",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L2e3"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L2e4"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L2e5"},{"name":"payment_method_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L2e6"},"required":true,"description":"The ID of the payment method.","descriptionNode":"$L2e7"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$28:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$2e8","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$2e9","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$2ea","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$2eb","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$2ec","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$2ed","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$2ee","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$2ef","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$2f0","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$2f1","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}/payment-methods/{payment_method_id}","parameters":["$2e0:props:children:0:props:children:1:props:parameters:0","$2e0:props:children:0:props:children:1:props:parameters:1","$2e0:props:children:0:props:children:1:props:parameters:2"]}],"$L2f2"],"$L2f3","$L2f4"]}]]}] 27:["$","$51","retrieve-all-payment-methods-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"title":"Payment method object","type":"object","description":"","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment method.","descriptionNode":"$L2f5"},"type":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","description":"The type of the payment method.\n\n:::note\nOnly merchant initiated transactions are supported for saved `REVOLUT_PAY` payment methods.\n:::","descriptionNode":"$L2f6"},"saved_for":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:saved_for:enum","description":"Indicates in which case this saved payment method can be used for payments.\n\n\n- `CUSTOMER`: This payment method can be used only when the customer is on the checkout page.\n- `MERCHANT`: This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions.","descriptionNode":"$L2f7"},"method_details":{"type":"object","description":"The details of the payment method.","properties":{"bin":{"type":"string","maxLength":6,"minLength":6,"description":"The BIN of the payment card.","descriptionNode":"$L2f8"},"last4":{"type":"string","maxLength":4,"minLength":4,"description":"The last four digits of the payment card.","descriptionNode":"$L2f9"},"expiry_month":{"type":"number","description":"The expiry month of the payment card.","descriptionNode":"$L2fa"},"expiry_year":{"type":"number","description":"The expiry year of the payment card.","descriptionNode":"$L2fb"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L2fc"},"billing_address":{"type":"object","description":"The billing address of the payment method.","properties":{"street_line_1":{"type":"string","minLength":1,"description":"Street line 1 information.","descriptionNode":"$L2fd"},"street_line_2":{"type":"string","minLength":1,"description":"Street line 2 information.","descriptionNode":"$L2fe"},"postcode":{"type":"string","minLength":1,"description":"The postcode associated with the address.","descriptionNode":"$L2ff"},"city":{"type":"string","minLength":1,"description":"The city associated with the address.","descriptionNode":"$L300"},"region":{"type":"string","minLength":1,"description":"The region associated with the address.","descriptionNode":"$L301"},"country_code":{"type":"string","minLength":1,"description":"The country associated with the address.","descriptionNode":"$L302"}},"descriptionNode":"$L303"},"brand":{"type":"string","description":"The brand of the payment card.","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:brand:enum","descriptionNode":"$L304"},"funding":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:funding:enum","description":"The funding type of the payment card.","descriptionNode":"$L305"},"issuer":{"type":"string","description":"The issuer of the payment card.","descriptionNode":"$L306"},"issuer_country":{"type":"string","description":"Two-letter country code of the country where the payment card was issued.","descriptionNode":"$L307"},"created_at":{"type":"string","description":"The date and time the payment card was added.","format":"date-time","descriptionNode":"$L308"}},"descriptionNode":"$L309"}},"required":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:required"}},"examples":{"list_of_payment_methods":{"summary":"List of payment methods","value":[{"id":"648334a8-9546-a983-a81a-efc6d5bdd0be","type":"REVOLUT_PAY","saved_for":"MERCHANT","method_details":{"created_at":"2023-06-09T14:18:16.577888Z"}},{"id":"edef3ba4-60a0-4df3-8f12-e5fc858c2420","type":"CARD","saved_for":"CUSTOMER","method_details":{"bin":"459678","last4":"6896","expiry_month":3,"expiry_year":2025,"cardholder_name":"Example Customer","brand":"VISA","funding":"DEBIT","issuer":"EXAMPLE ISSUER","issuer_country":"GB","billing_address":{"street_line_1":"7","street_line_2":"Westferry Circus","postcode":"E144HD","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}},{"id":"a04406c4-05be-498b-8207-cc1e02a9b3ca","type":"CARD","saved_for":"MERCHANT","method_details":{"bin":"459885","last4":"7653","expiry_month":12,"expiry_year":2021,"cardholder_name":"Example Holder","brand":"MASTERCARD","funding":"CREDIT","issuer":"EXAMPLE ISSUER","issuer_country":"GB","billing_address":{"street_line_1":"Revolut","street_line_2":"1 Canada Square","postcode":"EC2V 6DN","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}}]},"list_of_only_merchant_payment_methods":{"summary":"List of payment methods (only_merchant=true)","value":[{"id":"624baa72-0a30-4ee3-9870-d7172912704c","type":"CARD","saved_for":"MERCHANT","method_details":{"bin":"492942","last4":"5709","expiry_month":12,"expiry_year":2025,"cardholder_name":"Example Customer","billing_address":{"street_line_1":"7","street_line_2":"Westferry Circus","postcode":"E144HD","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}},{"id":"b92b7413-8764-4f8e-855d-d9b6986af2d9","type":"CARD","saved_for":"MERCHANT","method_details":{"bin":"528143","last4":"7653","expiry_month":12,"expiry_year":2025,"cardholder_name":"Example Holder","billing_address":{"street_line_1":"Revolut","street_line_2":"1 Canada Square","postcode":"EC2V 6DN","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}}]}}}},"descriptionNode":"$L30a"},"401":{"description":"Unauthorized","descriptionNode":"$L30b"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L30c"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L30d"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L30e"}},"requestBody":"$undefined","variantLabels":["List of payment methods","List of payment methods (only_merchant=true)"],"children":["$L30f","$L310"]}]}],false]}] 2f2:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L311"}}}] 2f3:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 2f4:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"retrieved_payment_method","label":"Retrieved payment method","rawValue":"$28:props:children:0:props:children:props:responses:200:content:application/json:examples:retrieved_payment_method:value","block":"$L312"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L313"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L314"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 30f:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-all-payment-methods-deprecated","children":[["$L315",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-all-payment-methods-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-all-payment-methods-deprecated.md"}]]}]}],"$undefined"]}] 31b:T8dd,
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
31c:Tdc5,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
31d:T6f1,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
31e:T1569,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
31f:T1489,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
320:T8e5,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_2__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
321:Tdcd,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
322:T6f9,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"
headers = {
  "Authorization": "__RP_TOK_2__"
}

response = requests.get(url, headers=headers)
print(response.json())
323:T1571,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"))
      .header("Authorization", "__RP_TOK_2__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
324:T1491,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
310:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L316",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L317"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L318"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L319"},{"name":"only_merchant","in":"query","schema":{"type":"boolean","default":false},"description":"If `only_merchant` is set to `true`, you retrieve the payment methods\nthat were saved for the merchant (`saved_for: \"MERCHANT\"`).\n\nTo use this parameter insert it at the end of the request URL. See this example for a request URL in Production environment: \n\n ```curl\n https://merchant.revolut.com/api/1.0/customers/{customer_id}/payment-methods?only_merchant=true\n ``` ","required":false,"descriptionNode":"$L31a"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$27:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$31b","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$31c","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$31d","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$31e","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$31f","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\" \\\n -H \"Authorization: __RP_TOK_2__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\" \\\n  -H \"Authorization: __RP_TOK_2__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_2__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$320","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$321","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_2__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$322","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"))\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$323","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods?only_merchant=__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$324","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"only_merchant","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:only_merchant":"false"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}/payment-methods","parameters":["$310:props:children:0:props:children:1:props:parameters:0","$310:props:children:0:props:children:1:props:parameters:1","$310:props:children:0:props:children:1:props:parameters:2"]}],"$L325"],"$L326","$L327"]}]]}] 325:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L328"}}}] 326:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 327:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"list_of_payment_methods","label":"List of payment methods","rawValue":"$27:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_payment_methods:value","block":"$L329"},{"key":"list_of_only_merchant_payment_methods","label":"List of payment methods (only_merchant=true)","rawValue":"$27:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_only_merchant_payment_methods:value","block":"$L32a"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L32b"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 2e1:"Retrieve a customer's payment method (Deprecated)" 32c:T6b4,
{
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01"
}
2b5:["$","div","request-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$32c"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\"\n}"}]}]]}] 32d:Ta30,
{
  "id": "6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae",
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01",
  "created_at": "2020-06-24T12:03:39.979397Z",
  "updated_at": "2020-06-24T12:03:39.979397Z"
}
2b6:["$","div","201-application/json-created_customer",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$32d"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae\",\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.customer@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\",\n \"created_at\": \"2020-06-24T12:03:39.979397Z\",\n \"updated_at\": \"2020-06-24T12:03:39.979397Z\"\n}"}]}]]}] 32e:T471,
{
  "errorId": "5226f800-e9be-4b74-ae61-6c7b71c913b5",
  "timestamp": 1593439990599,
  "code": 1018
}
2b7:["$","div","400-application/json-Error",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$32e"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"5226f800-e9be-4b74-ae61-6c7b71c913b5\",\n \"timestamp\": 1593439990599,\n \"code\": 1018\n}"}]}]]}] 2b9:["$","div","request-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"email\": \"example.business@example.com\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"email\": \"example.business@example.com\"\n}"}]}]]}] 32f:Ta30,
{
  "id": "6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae",
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.business@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01",
  "created_at": "2020-06-24T12:03:39.979397Z",
  "updated_at": "2020-06-25T10:03:39.134417Z"
}
2ba:["$","div","200-application/json-updated_customer",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$32f"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae\",\n \"full_name\": \"Example Customer\",\n \"business_name\": \"Example Business\",\n \"email\": \"example.business@example.com\",\n \"phone\": \"+441234567890\",\n \"date_of_birth\": \"1990-01-01\",\n \"created_at\": \"2020-06-24T12:03:39.979397Z\",\n \"updated_at\": \"2020-06-25T10:03:39.134417Z\"\n}"}]}]]}] 2bb:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 2bc:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 2c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 2c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only merchant initiated transactions are supported for saved ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," payment methods."]}]}]]}]]}] 2c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates in which case this saved payment method can be used for payments."}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"CUSTOMER"}],": This payment method can be used only when the customer is on the checkout page."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MERCHANT"}],": This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions."]}],"\n"]}]]}] 2c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the payment card."}]]}] 2c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the payment card."}]]}] 2c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry month of the payment card."}]]}] 2c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry year of the payment card."}]]}] 2ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 2cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 2cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 2cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 2ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 2cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 2d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 2d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The billing address of the payment method."}]]}] 2d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The brand of the payment card."}]]}] 2d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The funding type of the payment card."}]]}] 2d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The issuer of the payment card."}]]}] 2d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Two-letter country code of the country where the payment card was issued."}]]}] 2d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment card was added."}]]}] 2d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method."}]]}] 2d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 315:"Retrieve all payment methods of a customer (Deprecated)" 2d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 2da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 2db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 2dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 2dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 2de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 2e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve the information of a specific payment method that is saved."}]]}] 2e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 2e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 2e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 2e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 2e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 2f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 2f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only merchant initiated transactions are supported for saved ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," payment methods."]}]}]]}]]}] 2f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates in which case this saved payment method can be used for payments."}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"CUSTOMER"}],": This payment method can be used only when the customer is on the checkout page."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MERCHANT"}],": This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions."]}],"\n"]}]]}] 2f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the payment card."}]]}] 2f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the payment card."}]]}] 2fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry month of the payment card."}]]}] 2fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry year of the payment card."}]]}] 2fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 2fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 2fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 2ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 300:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 301:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 302:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 303:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The billing address of the payment method."}]]}] 304:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The brand of the payment card."}]]}] 305:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The funding type of the payment card."}]]}] 306:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The issuer of the payment card."}]]}] 307:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Two-letter country code of the country where the payment card was issued."}]]}] 308:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment card was added."}]]}] 309:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method."}]]}] 311:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L330","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 30a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 30b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 30c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 30d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 30e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 316:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve all the payment methods for a specific customer."}],"\n",["$","p","p-1",{"children":"This can be useful in the following example cases:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":"To show what information is stored for the customer."}],"\n",["$","li","li-1",{"children":"To try a different payment method if the first payment method fails when a recurring transaction occurs."}],"\n"]}]]}] 317:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 318:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 319:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 31a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["If ",["$","code","code-0",{"children":"only_merchant"}]," is set to ",["$","code","code-1",{"children":"true"}],", you retrieve the payment methods\nthat were saved for the merchant (",["$","code","code-2",{"children":"saved_for: \"MERCHANT\""}],")."]}],"\n",["$","p","p-1",{"children":"To use this parameter insert it at the end of the request URL. See this example for a request URL in Production environment:"}],"\n","$L331"]}] 328:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L332","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 29:["$","$51","update-payment-method-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Payment method object","type":"object","description":"","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment method.","descriptionNode":"$L333"},"type":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","description":"The type of the payment method.\n\n:::note\nOnly merchant initiated transactions are supported for saved `REVOLUT_PAY` payment methods.\n:::","descriptionNode":"$L334"},"saved_for":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:saved_for:enum","description":"Indicates in which case this saved payment method can be used for payments.\n\n\n- `CUSTOMER`: This payment method can be used only when the customer is on the checkout page.\n- `MERCHANT`: This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions.","descriptionNode":"$L335"},"method_details":{"type":"object","description":"The details of the payment method.","properties":{"bin":{"type":"string","maxLength":6,"minLength":6,"description":"The BIN of the payment card.","descriptionNode":"$L336"},"last4":{"type":"string","maxLength":4,"minLength":4,"description":"The last four digits of the payment card.","descriptionNode":"$L337"},"expiry_month":{"type":"number","description":"The expiry month of the payment card.","descriptionNode":"$L338"},"expiry_year":{"type":"number","description":"The expiry year of the payment card.","descriptionNode":"$L339"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L33a"},"billing_address":{"type":"object","description":"The billing address of the payment method.","properties":{"street_line_1":{"type":"string","minLength":1,"description":"Street line 1 information.","descriptionNode":"$L33b"},"street_line_2":{"type":"string","minLength":1,"description":"Street line 2 information.","descriptionNode":"$L33c"},"postcode":{"type":"string","minLength":1,"description":"The postcode associated with the address.","descriptionNode":"$L33d"},"city":{"type":"string","minLength":1,"description":"The city associated with the address.","descriptionNode":"$L33e"},"region":{"type":"string","minLength":1,"description":"The region associated with the address.","descriptionNode":"$L33f"},"country_code":{"type":"string","minLength":1,"description":"The country associated with the address.","descriptionNode":"$L340"}},"descriptionNode":"$L341"},"brand":{"type":"string","description":"The brand of the payment card.","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:brand:enum","descriptionNode":"$L342"},"funding":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:funding:enum","description":"The funding type of the payment card.","descriptionNode":"$L343"},"issuer":{"type":"string","description":"The issuer of the payment card.","descriptionNode":"$L344"},"issuer_country":{"type":"string","description":"Two-letter country code of the country where the payment card was issued.","descriptionNode":"$L345"},"created_at":{"type":"string","description":"The date and time the payment card was added.","format":"date-time","descriptionNode":"$L346"}},"descriptionNode":"$L347"}},"required":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:required"},"examples":{"updated_payment_method":{"summary":"Updated payment method","value":{"id":"edef3ba4-60a0-4df3-8f12-e5fc858c2420","type":"CARD","saved_for":"CUSTOMER","method_details":{"bin":"459678","last4":"6896","expiry_month":3,"expiry_year":2025,"cardholder_name":"John Doe","brand":"VISA","funding":"DEBIT","issuer":"EXAMPLE ISSUER","issuer_country":"GB","billing_address":{"street_line_1":"7","street_line_2":"Westferry Circus","postcode":"E144HD","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}}}}}},"descriptionNode":"$L348"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L349"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L34a"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L34b"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L34c"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L34d"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L34e"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L34f"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L350"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L351"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"saved_for":{"type":"string","description":"Update the value of `saved_for` from `MERCHANT` to `CUSTOMER`.\n\nThis indicates that the updated payment method can't be used for merchant initiated transactions (MIT) any more.","enum":["CUSTOMER"],"descriptionNode":"$L352"}},"required":["saved_for"]},"examples":{"example_request":{"summary":"Example request","value":{"saved_for":"CUSTOMER"}}}},"application/xml":{"schema":{"type":"object","properties":{}}}}},"variantLabels":[],"children":["$L353","$L354"]}]}],false]}] 353:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"update-payment-method-deprecated","children":[["$L355",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"update-payment-method-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/update-payment-method-deprecated.md"}]]}]}],"$undefined"]}] 35c:T572,
curl -X PATCH "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_2__" \
  -d '{
  "saved_for": "CUSTOMER"
}'
35d:Td83,
const payload = {
  "saved_for": "CUSTOMER"
};
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_2__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
35e:T146a,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  jsonData := []byte(`
{
  "saved_for": "CUSTOMER"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
35f:Tab9,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_2__"
}
payload = {
  "saved_for": "CUSTOMER"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
360:T19d1,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "saved_for": "CUSTOMER"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_2__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
361:T1c2f,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  },
  Content = new StringContent(@"{
  ""saved_for"": ""CUSTOMER""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
362:T57a,
curl -X PATCH "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_2__" \
  -d '{
  "saved_for": "CUSTOMER"
}'
363:Td8b,
const payload = {
  "saved_for": "CUSTOMER"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_2__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
364:T1472,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
  jsonData := []byte(`
{
  "saved_for": "CUSTOMER"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
365:Tac1,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_2__"
}
payload = {
  "saved_for": "CUSTOMER"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
366:T19d9,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "saved_for": "CUSTOMER"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_2__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
367:T1c37,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_2__" },
  },
  Content = new StringContent(@"{
  ""saved_for"": ""CUSTOMER""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
354:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L356",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L357"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L358"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L359"},{"name":"payment_method_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L35a"},"required":true,"description":"The ID of the payment method.","descriptionNode":"$L35b"}],"requestBody":"$29:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$29:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_2__\" \\\n -d '{\n \"saved_for\": \"CUSTOMER\"\n}'","templateHtml":"$35c","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"saved_for\": \"CUSTOMER\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_2__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$35d","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n jsonData := []byte(`\n{\n \"saved_for\": \"CUSTOMER\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$35e","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_2__\"\n}\npayload = {\n \"saved_for\": \"CUSTOMER\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$35f","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"saved_for\": \"CUSTOMER\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$360","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n },\n Content = new StringContent(@\"{\n \"\"saved_for\"\": \"\"CUSTOMER\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$361","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_2__\" \\\n -d '{\n \"saved_for\": \"CUSTOMER\"\n}'","templateHtml":"$362","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"saved_for\": \"CUSTOMER\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_2__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$363","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\n jsonData := []byte(`\n{\n \"saved_for\": \"CUSTOMER\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$364","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_2__\"\n}\npayload = {\n \"saved_for\": \"CUSTOMER\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$365","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"saved_for\": \"CUSTOMER\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_2__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$366","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__/payment-methods/__RP_TOK_1__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_2__\" },\n },\n Content = new StringContent(@\"{\n \"\"saved_for\"\": \"\"CUSTOMER\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$367","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"payment_method_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000","path:payment_method_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"patch","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}/payment-methods/{payment_method_id}","parameters":["$354:props:children:0:props:children:1:props:parameters:0","$354:props:children:0:props:children:1:props:parameters:1","$354:props:children:0:props:children:1:props:parameters:2"]}],"$L368"],"$L369","$L36a"]}]]}] 2c1:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 2c2:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 368:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L36b"}}}] 369:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_request","label":"Example request","rawValue":"$29:props:children:0:props:children:props:requestBody:content:application/json:examples:example_request:value","block":"$L36c"}],"syncedPropertyName":"$undefined"},"application/xml":{"variants":[],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 36a:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"updated_payment_method","label":"Updated payment method","rawValue":"$29:props:children:0:props:children:props:responses:200:content:application/json:examples:updated_payment_method:value","block":"$L36d"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L36e"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L36f"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L370"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 355:"Update a customer's payment method (Deprecated)" 333:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 334:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only merchant initiated transactions are supported for saved ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," payment methods."]}]}]]}]]}] 335:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates in which case this saved payment method can be used for payments."}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"CUSTOMER"}],": This payment method can be used only when the customer is on the checkout page."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MERCHANT"}],": This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions."]}],"\n"]}]]}] 336:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the payment card."}]]}] 337:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the payment card."}]]}] 338:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry month of the payment card."}]]}] 339:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry year of the payment card."}]]}] 33a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 33b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 33c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 33d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 33e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 33f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 340:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 341:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The billing address of the payment method."}]]}] 342:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The brand of the payment card."}]]}] 343:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The funding type of the payment card."}]]}] 344:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The issuer of the payment card."}]]}] 345:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Two-letter country code of the country where the payment card was issued."}]]}] 346:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment card was added."}]]}] 347:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method."}]]}] 348:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 349:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 19:["$","$51","retrieve-order-list-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"title":"Simplified-Order","type":"object","properties":{"id":{"type":"string","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorisation.","descriptionNode":"$L371"},"type":{"type":"string","description":"The type of the order.","enum":["PAYMENT","REFUND","CHARGEBACK"],"descriptionNode":"$L372"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":["PENDING","PROCESSING","AUTHORISED","COMPLETED","CANCELLED","FAILED"],"descriptionNode":"$L373"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L374"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L375"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L376"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L377"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","descriptionNode":"$L378"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. All payments made towards this order are settled in this currency.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L379"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L37a"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L37b"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L37c"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L37d"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":["value","currency"],"properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L37e"},"currency":{"type":"string","description":"The currency of the order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L37f"}},"descriptionNode":"$L380"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L381"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L382"}},"descriptionNode":"$L383"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L384"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L385"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L386"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L387"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L388"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L389"}},"required":["country_code","postcode"]}},"required":["id","type","state","created_at","updated_at","order_amount"],"description":"The `Order` object returned when you retrieve a list of orders.","descriptionNode":"$L38a"}},"examples":{"list_of_orders":{"summary":"List of orders","value":[{"id":"f0d685f4-07ab-4eff-ba80-5811303c607d","type":"PAYMENT","state":"PENDING","created_at":"2021-02-10T18:17:37.959383Z","updated_at":"2021-02-10T18:17:37.959383Z","order_amount":{"value":35000,"currency":"GBP"},"order_outstanding_amount":{"value":35000,"currency":"GBP"}},{"id":"feca684a-b9ea-4033-9bc4-b9e6ac12ada6","type":"PAYMENT","state":"COMPLETED","created_at":"2021-02-10T16:59:23.642673Z","updated_at":"2021-02-10T16:59:50.886826Z","completed_at":"2021-02-10T16:59:50.886826Z","settlement_currency":"USD","email":"sally.gibson@lloydsbank.co.uk","order_amount":{"value":1000,"currency":"GBP"},"order_outstanding_amount":{"value":0,"currency":"GBP"}},{"id":"f3c5e3f1-f73a-4853-a9e3-b0261301c66a","type":"PAYMENT","state":"COMPLETED","created_at":"2021-02-10T16:58:47.507560Z","updated_at":"2021-02-10T16:59:52.847017Z","completed_at":"2021-02-10T16:59:52.847017Z","description":"URBAN 'Panther' Watch by José Almeida","capture_mode":"AUTOMATIC","merchant_order_ext_ref":"testorder123","customer_id":"31345442-3d03-4c4b-8354-3bdaf0ca9600","email":"someothermail@gmail.com","order_amount":{"value":777,"currency":"GBP"},"order_outstanding_amount":{"value":0,"currency":"GBP"}}]}}}},"descriptionNode":"$L38b"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L38c"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L38d"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L38e"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L38f"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L390"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L391"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L392"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L393"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L394"}},"requestBody":"$undefined","variantLabels":[],"children":["$L395","$L396"]}]}],false]}] 34a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 34b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 34c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 34d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 34e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 34f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 350:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 351:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 352:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Update the value of ",["$","code","code-0",{"children":"saved_for"}]," from ",["$","code","code-1",{"children":"MERCHANT"}]," to ",["$","code","code-2",{"children":"CUSTOMER"}],"."]}],"\n",["$","p","p-1",{"children":"This indicates that the updated payment method can't be used for merchant initiated transactions (MIT) any more."}]]}] 356:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"When you use this request to update a customer's payment method, the payment method can't be used for merchant initiated transactions (MIT) any more. This payment method can be used only when the customer is on the checkout page."}],"\n",["$","p","p-1",{"children":"For more information about the limitations introduced by this parameter, see:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#pay-order","target":"_blank","rel":"noreferrer","children":"Pay for an order"}]}],"\n",["$","li","li-1",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","target":"_blank","rel":"noreferrer","children":"Charge a customer's saved payment method"}]}],"\n"]}]]}] 357:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 358:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 359:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 35a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 35b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 395:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-order-list-deprecated","children":[["$L397",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-order-list-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-order-list-deprecated.md"}]]}]}],"$undefined"]}] 3a2:T993,
fetch("https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_8__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
3a3:Te7b,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_8__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
3a4:T7a7,
import requests

url = "https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"
headers = {
  "Authorization": "__RP_TOK_8__"
}

response = requests.get(url, headers=headers)
print(response.json())
3a5:T161f,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"))
      .header("Authorization", "__RP_TOK_8__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
3a6:T153f,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_8__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
3a7:T99b,
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_8__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
3a8:Te83,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_8__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
3a9:T7af,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"
headers = {
  "Authorization": "__RP_TOK_8__"
}

response = requests.get(url, headers=headers)
print(response.json())
3aa:T1627,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"))
      .header("Authorization", "__RP_TOK_8__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
3ab:T1547,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_8__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
396:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L398",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L399"},{"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"in":"query","name":"limit","description":"The maximum number of orders returned per page. Used for **pagination**.","descriptionNode":"$L39a"},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"created_before","description":"Retrieve orders with a `created_date` < `created_before`. Used for **pagination**. Use the `created_date` of the last order returned in the previous response to get to the next page.\n\nThe default value is the current date and time you are calling the endpoint.","descriptionNode":"$L39b"},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from_created_date","description":"Retrieve all orders with a `created_date` ≥ `from_created_date`. Used for **filtering**.\n\nUse the [ISO date format](https://en.wikipedia.org/wiki/ISO_8601): `yyyy-MM-ddTHH:mm:ss[.SSSSSS]Z`. For example, `2021-02-10T16:59:50.886826Z`.","descriptionNode":"$L39c"},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to_created_date","description":"Retrieve all orders with a `created_date` ≤ `to_created_date`. Used for **filtering**.\n\nUse the [ISO date format](https://en.wikipedia.org/wiki/ISO_8601): `yyyy-MM-ddTHH:mm:ss[.SSSSSS]Z`. For example, `2021-02-10T16:59:50.886826Z`.","descriptionNode":"$L39d"},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"customer_id","description":"Retrieve all orders that have this `customer_id` associated to them. Used for **filtering**.","descriptionNode":"$L39e"},{"schema":{"type":"string","format":"email"},"in":"query","name":"email","description":"Retrieve all orders that have this `email` associated to them. Used for **filtering**. \n\nThis parameter is case sensitive.","descriptionNode":"$L39f"},{"schema":{"type":"string"},"in":"query","name":"merchant_order_ext_ref","description":"Merchant order ID for external reference. Use this field to filter and retrieve all the orders that have this ID. Used for **filtering**. \n\nThis parameter is case sensitive.","descriptionNode":"$L3a0"},{"schema":{"type":"array","items":{"type":"string","enum":["PENDING","PROCESSING","AUTHORISED","COMPLETED","CANCELLED","FAILED"]}},"style":"form","explode":true,"in":"query","name":"state","description":"Retrieve all orders with specific states. You can pass several states. Used for **filtering**.\n\nIf multiple states are selected, for example `AUTHORISED` and `COMPLETED`, orders with either of the selected values are returned. See this example of such a request URL: \n\n```curl\nhttps://merchant.revolut.com/api/1.0/orders?state=AUTHORISED&state=COMPLETED\n```\n\nThe parameter is case sensitive.","descriptionNode":"$L3a1"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$19:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\" \\\n -H \"Authorization: __RP_TOK_8__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\" \\\n  -H \"Authorization: __RP_TOK_8__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_8__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$3a2","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_8__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$3a3","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_8__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$3a4","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"))\n .header(\"Authorization\", \"__RP_TOK_8__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$3a5","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_8__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$3a6","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\" \\\n -H \"Authorization: __RP_TOK_8__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\" \\\n  -H \"Authorization: __RP_TOK_8__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_8__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$3a7","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_8__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$3a8","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_8__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$3a9","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"))\n .header(\"Authorization\", \"__RP_TOK_8__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$3aa","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders?limit=__RP_TOK_0__&created_before=__RP_TOK_1__&from_created_date=__RP_TOK_2__&to_created_date=__RP_TOK_3__&customer_id=__RP_TOK_4__&email=__RP_TOK_5__&merchant_order_ext_ref=__RP_TOK_6__&state=__RP_TOK_7__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_8__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$3ab","tokens":[{"marker":"__RP_TOK_0__","paramName":"limit","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"created_before","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"from_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_3__","paramName":"to_created_date","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_4__","paramName":"customer_id","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_5__","paramName":"email","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_6__","paramName":"merchant_order_ext_ref","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_7__","paramName":"state","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_8__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:limit":"100","query:created_before":"2024-01-01T00:00:00Z","query:from_created_date":"2024-01-01T00:00:00Z","query:to_created_date":"2024-01-01T00:00:00Z","query:customer_id":"123e4567-e89b-12d3-a456-426614174000","query:email":"user@example.com","query:merchant_order_ext_ref":"string","query:state":"[]"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders","parameters":["$396:props:children:0:props:children:1:props:parameters:0","$396:props:children:0:props:children:1:props:parameters:1","$396:props:children:0:props:children:1:props:parameters:2","$396:props:children:0:props:children:1:props:parameters:3","$396:props:children:0:props:children:1:props:parameters:4","$396:props:children:0:props:children:1:props:parameters:5","$396:props:children:0:props:children:1:props:parameters:6","$396:props:children:0:props:children:1:props:parameters:7","$396:props:children:0:props:children:1:props:parameters:8"]}],"$L3ac"],"$L3ad","$L3ae"]}]]}] 3af:T1795,
{
  "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420",
  "type": "CARD",
  "saved_for": "CUSTOMER",
  "method_details": {
    "bin": "459678",
    "last4": "6896",
    "expiry_month": 3,
    "expiry_year": 2025,
    "cardholder_name": "Example Customer",
    "brand": "VISA",
    "funding": "DEBIT",
    "issuer": "EXAMPLE ISSUER",
    "issuer_country": "GB",
    "billing_address": {
      "street_line_1": "7",
      "street_line_2": "Westferry Circus",
      "postcode": "E144HD",
      "city": "London",
      "region": "Greater London",
      "country_code": "GB"
    },
    "created_at": "2023-03-24T14:15:22Z"
  }
}
312:["$","div","200-application/json-retrieved_payment_method",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$3af"}}]}]],"$L3b0"]}] 313:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 314:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 36b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L3b1","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 3ac:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L3b2"}}}] 3ad:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 3ae:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"list_of_orders","label":"List of orders","rawValue":"$19:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_orders:value","block":"$L3b3"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L3b4"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L3b5"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L3b6"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 3b0:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"edef3ba4-60a0-4df3-8f12-e5fc858c2420\",\n \"type\": \"CARD\",\n \"saved_for\": \"CUSTOMER\",\n \"method_details\": {\n \"bin\": \"459678\",\n \"last4\": \"6896\",\n \"expiry_month\": 3,\n \"expiry_year\": 2025,\n \"cardholder_name\": \"Example Customer\",\n \"brand\": \"VISA\",\n \"funding\": \"DEBIT\",\n \"issuer\": \"EXAMPLE ISSUER\",\n \"issuer_country\": \"GB\",\n \"billing_address\": {\n \"street_line_1\": \"7\",\n \"street_line_2\": \"Westferry Circus\",\n \"postcode\": \"E144HD\",\n \"city\": \"London\",\n \"region\": \"Greater London\",\n \"country_code\": \"GB\"\n },\n \"created_at\": \"2023-03-24T14:15:22Z\"\n }\n}"}]}] 3b7:T3586,
[
  {
    "id": "648334a8-9546-a983-a81a-efc6d5bdd0be",
    "type": "REVOLUT_PAY",
    "saved_for": "MERCHANT",
    "method_details": {
      "created_at": "2023-06-09T14:18:16.577888Z"
    }
  },
  {
    "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420",
    "type": "CARD",
    "saved_for": "CUSTOMER",
    "method_details": {
      "bin": "459678",
      "last4": "6896",
      "expiry_month": 3,
      "expiry_year": 2025,
      "cardholder_name": "Example Customer",
      "brand": "VISA",
      "funding": "DEBIT",
      "issuer": "EXAMPLE ISSUER",
      "issuer_country": "GB",
      "billing_address": {
        "street_line_1": "7",
        "street_line_2": "Westferry Circus",
        "postcode": "E144HD",
        "city": "London",
        "region": "Greater London",
        "country_code": "GB"
      },
      "created_at": "2023-03-24T14:15:22Z"
    }
  },
  {
    "id": "a04406c4-05be-498b-8207-cc1e02a9b3ca",
    "type": "CARD",
    "saved_for": "MERCHANT",
    "method_details": {
      "bin": "459885",
      "last4": "7653",
      "expiry_month": 12,
      "expiry_year": 2021,
      "cardholder_name": "Example Holder",
      "brand": "MASTERCARD",
      "funding": "CREDIT",
      "issuer": "EXAMPLE ISSUER",
      "issuer_country": "GB",
      "billing_address": {
        "street_line_1": "Revolut",
        "street_line_2": "1 Canada Square",
        "postcode": "EC2V 6DN",
        "city": "London",
        "region": "Greater London",
        "country_code": "GB"
      },
      "created_at": "2023-03-24T14:15:22Z"
    }
  }
]
329:["$","div","200-application/json-list_of_payment_methods",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$3b7"}}]}]],"$L3b8"]}] 3b9:T26db,
[
  {
    "id": "624baa72-0a30-4ee3-9870-d7172912704c",
    "type": "CARD",
    "saved_for": "MERCHANT",
    "method_details": {
      "bin": "492942",
      "last4": "5709",
      "expiry_month": 12,
      "expiry_year": 2025,
      "cardholder_name": "Example Customer",
      "billing_address": {
        "street_line_1": "7",
        "street_line_2": "Westferry Circus",
        "postcode": "E144HD",
        "city": "London",
        "region": "Greater London",
        "country_code": "GB"
      },
      "created_at": "2023-03-24T14:15:22Z"
    }
  },
  {
    "id": "b92b7413-8764-4f8e-855d-d9b6986af2d9",
    "type": "CARD",
    "saved_for": "MERCHANT",
    "method_details": {
      "bin": "528143",
      "last4": "7653",
      "expiry_month": 12,
      "expiry_year": 2025,
      "cardholder_name": "Example Holder",
      "billing_address": {
        "street_line_1": "Revolut",
        "street_line_2": "1 Canada Square",
        "postcode": "EC2V 6DN",
        "city": "London",
        "region": "Greater London",
        "country_code": "GB"
      },
      "created_at": "2023-03-24T14:15:22Z"
    }
  }
]
32a:["$","div","200-application/json-list_of_only_merchant_payment_methods",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$3b9"}}]}]],"$L3ba"]}] 32b:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 3bb:T60c,[ { "id": "648334a8-9546-a983-a81a-efc6d5bdd0be", "type": "REVOLUT_PAY", "saved_for": "MERCHANT", "method_details": { "created_at": "2023-06-09T14:18:16.577888Z" } }, { "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420", "type": "CARD", "saved_for": "CUSTOMER", "method_details": { "bin": "459678", "last4": "6896", "expiry_month": 3, "expiry_year": 2025, "cardholder_name": "Example Customer", "brand": "VISA", "funding": "DEBIT", "issuer": "EXAMPLE ISSUER", "issuer_country": "GB", "billing_address": { "street_line_1": "7", "street_line_2": "Westferry Circus", "postcode": "E144HD", "city": "London", "region": "Greater London", "country_code": "GB" }, "created_at": "2023-03-24T14:15:22Z" } }, { "id": "a04406c4-05be-498b-8207-cc1e02a9b3ca", "type": "CARD", "saved_for": "MERCHANT", "method_details": { "bin": "459885", "last4": "7653", "expiry_month": 12, "expiry_year": 2021, "cardholder_name": "Example Holder", "brand": "MASTERCARD", "funding": "CREDIT", "issuer": "EXAMPLE ISSUER", "issuer_country": "GB", "billing_address": { "street_line_1": "Revolut", "street_line_2": "1 Canada Square", "postcode": "EC2V 6DN", "city": "London", "region": "Greater London", "country_code": "GB" }, "created_at": "2023-03-24T14:15:22Z" } } ]3b8:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$3bb"}]}] 3bc:T461,[ { "id": "624baa72-0a30-4ee3-9870-d7172912704c", "type": "CARD", "saved_for": "MERCHANT", "method_details": { "bin": "492942", "last4": "5709", "expiry_month": 12, "expiry_year": 2025, "cardholder_name": "Example Customer", "billing_address": { "street_line_1": "7", "street_line_2": "Westferry Circus", "postcode": "E144HD", "city": "London", "region": "Greater London", "country_code": "GB" }, "created_at": "2023-03-24T14:15:22Z" } }, { "id": "b92b7413-8764-4f8e-855d-d9b6986af2d9", "type": "CARD", "saved_for": "MERCHANT", "method_details": { "bin": "528143", "last4": "7653", "expiry_month": 12, "expiry_year": 2025, "cardholder_name": "Example Holder", "billing_address": { "street_line_1": "Revolut", "street_line_2": "1 Canada Square", "postcode": "EC2V 6DN", "city": "London", "region": "Greater London", "country_code": "GB" }, "created_at": "2023-03-24T14:15:22Z" } } ]3ba:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$3bc"}]}] 397:"Retrieve an order list (Deprecated)" 371:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorisation."}]]}] 372:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 373:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 374:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 375:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 376:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 377:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 378:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 379:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case. All payments made towards this order are settled in this currency."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 37a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 37b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 37c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 37d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 37e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 37f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 380:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 381:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 382:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 383:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 384:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 385:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 386:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 387:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 388:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 389:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 38a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"Order"}]," object returned when you retrieve a list of orders."]}]]}] 38b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 38c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 38d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 38e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 38f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 390:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 391:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 392:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 393:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 394:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 398:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve all the orders that you've created. You can also use the query parameters for:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Filtering","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Pagination","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["Filter the orders that you want to retrieve, for example, only retrieve the orders that have a specific email. ",["$","br","br-0",{}],["$","br","br-1",{}],"Parameters used for filtering:",["$","br","br-2",{}],["$","ul","ul-0",{"children":[["$","li","li-0",{"children":["$","code","code-0",{"children":"from_created_date"}]}],["$","li","li-1",{"children":["$","code","code-0",{"children":"to_created_date"}]}],["$","li","li-2",{"children":["$","code","code-0",{"children":"customer_id"}]}],["$","li","li-3",{"children":["$","code","code-0",{"children":"email"}]}],["$","li","li-4",{"children":["$","code","code-0",{"children":"merchant_order_ext_ref"}]}],["$","li","li-5",{"children":["$","code","code-0",{"children":"state"}]}]]}]],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["View the orders without loading all of them at once, for example, return a specified number of orders per page. ",["$","br","br-0",{}],["$","br","br-1",{}],"Parameters used for pagination: ",["$","br","br-2",{}],["$","ul","ul-0",{"children":[["$","li","li-0",{"children":["$","code","code-0",{"children":"limit"}]}],["$","li","li-1",{"children":["$","code","code-0",{"children":"created_before"}]}]]}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","p","p-1",{"children":["The response contains an array of simplified ",["$","code","code-0",{"children":"Order"}]," objects. To get the full details of an ",["$","code","code-1",{"children":"Order"}]," object, use the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant/Legacy#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," endpoint."]}]]}] 399:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 39a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The maximum number of orders returned per page. Used for ",["$","strong","strong-0",{"children":"pagination"}],"."]}]]}] 39b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve orders with a ",["$","code","code-0",{"children":"created_date"}]," < ",["$","code","code-1",{"children":"created_before"}],". Used for ",["$","strong","strong-0",{"children":"pagination"}],". Use the ",["$","code","code-2",{"children":"created_date"}]," of the last order returned in the previous response to get to the next page."]}],"\n",["$","p","p-1",{"children":"The default value is the current date and time you are calling the endpoint."}]]}] 39c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve all orders with a ",["$","code","code-0",{"children":"created_date"}]," ≥ ",["$","code","code-1",{"children":"from_created_date"}],". Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}],"\n",["$","p","p-1",{"children":["Use the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO date format"}],": ",["$","code","code-0",{"children":"yyyy-MM-ddTHH:mm:ss[.SSSSSS]Z"}],". For example, ",["$","code","code-1",{"children":"2021-02-10T16:59:50.886826Z"}],"."]}]]}] 39d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve all orders with a ",["$","code","code-0",{"children":"created_date"}]," ≤ ",["$","code","code-1",{"children":"to_created_date"}],". Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}],"\n",["$","p","p-1",{"children":["Use the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO date format"}],": ",["$","code","code-0",{"children":"yyyy-MM-ddTHH:mm:ss[.SSSSSS]Z"}],". For example, ",["$","code","code-1",{"children":"2021-02-10T16:59:50.886826Z"}],"."]}]]}] 39e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve all orders that have this ",["$","code","code-0",{"children":"customer_id"}]," associated to them. Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}]]}] 39f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve all orders that have this ",["$","code","code-0",{"children":"email"}]," associated to them. Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}],"\n",["$","p","p-1",{"children":"This parameter is case sensitive."}]]}] 3a0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant order ID for external reference. Use this field to filter and retrieve all the orders that have this ID. Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}],"\n",["$","p","p-1",{"children":"This parameter is case sensitive."}]]}] 3a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Retrieve all orders with specific states. You can pass several states. Used for ",["$","strong","strong-0",{"children":"filtering"}],"."]}],"\n",["$","p","p-1",{"children":["If multiple states are selected, for example ",["$","code","code-0",{"children":"AUTHORISED"}]," and ",["$","code","code-1",{"children":"COMPLETED"}],", orders with either of the selected values are returned. See this example of such a request URL:"]}],"\n","$L3bd","\n",["$","p","p-2",{"children":"The parameter is case sensitive."}]]}] 24:["$","$51","retrieve-customer-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Customer object with Payment Method object","type":"object","properties":{"id":{"type":"string","description":"Permanent customer ID used to retrieve, update, and delete a customer.","descriptionNode":"$L3be"},"full_name":{"type":"string","description":"The full name of the customer.","descriptionNode":"$L3bf"},"business_name":{"type":"string","description":"The name of the customer's business.","descriptionNode":"$L3c0"},"phone":{"type":"string","description":"The phone number of the customer in [E.164 format](https://en.wikipedia.org/wiki/E.164).","descriptionNode":"$L3c1"},"created_at":{"type":"string","description":"The date and time the customer was created.","format":"date-time","descriptionNode":"$L3c2"},"updated_at":{"type":"string","description":"The data and time the customer was last updated.","format":"date-time","descriptionNode":"$L3c3"},"email":{"type":"string","description":"The email address of the customer.","format":"email","descriptionNode":"$L3c4"},"date_of_birth":{"type":"string","format":"date","description":"The birth date of the customer.","descriptionNode":"$L3c5"},"payment_methods":{"type":"array","uniqueItems":false,"description":"All the payment methods for this customer.","items":{"title":"Payment method object","type":"object","description":"","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment method.","descriptionNode":"$L3c6"},"type":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","description":"The type of the payment method.\n\n:::note\nOnly merchant initiated transactions are supported for saved `REVOLUT_PAY` payment methods.\n:::","descriptionNode":"$L3c7"},"saved_for":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:saved_for:enum","description":"Indicates in which case this saved payment method can be used for payments.\n\n\n- `CUSTOMER`: This payment method can be used only when the customer is on the checkout page.\n- `MERCHANT`: This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions.","descriptionNode":"$L3c8"},"method_details":{"type":"object","description":"The details of the payment method.","properties":{"bin":{"type":"string","maxLength":6,"minLength":6,"description":"The BIN of the payment card.","descriptionNode":"$L3c9"},"last4":{"type":"string","maxLength":4,"minLength":4,"description":"The last four digits of the payment card.","descriptionNode":"$L3ca"},"expiry_month":{"type":"number","description":"The expiry month of the payment card.","descriptionNode":"$L3cb"},"expiry_year":{"type":"number","description":"The expiry year of the payment card.","descriptionNode":"$L3cc"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L3cd"},"billing_address":{"type":"object","description":"The billing address of the payment method.","properties":{"street_line_1":{"type":"string","minLength":1,"description":"Street line 1 information.","descriptionNode":"$L3ce"},"street_line_2":{"type":"string","minLength":1,"description":"Street line 2 information.","descriptionNode":"$L3cf"},"postcode":{"type":"string","minLength":1,"description":"The postcode associated with the address.","descriptionNode":"$L3d0"},"city":{"type":"string","minLength":1,"description":"The city associated with the address.","descriptionNode":"$L3d1"},"region":{"type":"string","minLength":1,"description":"The region associated with the address.","descriptionNode":"$L3d2"},"country_code":{"type":"string","minLength":1,"description":"The country associated with the address.","descriptionNode":"$L3d3"}},"descriptionNode":"$L3d4"},"brand":{"type":"string","description":"The brand of the payment card.","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:brand:enum","descriptionNode":"$L3d5"},"funding":{"type":"string","enum":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:method_details:properties:funding:enum","description":"The funding type of the payment card.","descriptionNode":"$L3d6"},"issuer":{"type":"string","description":"The issuer of the payment card.","descriptionNode":"$L3d7"},"issuer_country":{"type":"string","description":"Two-letter country code of the country where the payment card was issued.","descriptionNode":"$L3d8"},"created_at":{"type":"string","description":"The date and time the payment card was added.","format":"date-time","descriptionNode":"$L3d9"}},"descriptionNode":"$L3da"}},"required":"$28:props:children:0:props:children:props:responses:200:content:application/json:schema:required"},"descriptionNode":"$L3db"}},"required":["id","created_at","updated_at","email"]},"examples":{"retrieved_customer":{"summary":"Retrieved customer","value":{"id":"6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae","full_name":"Example Customer","business_name":"Example Business","email":"example.customer@example.com","phone":"+441234567890","date_of_birth":"1990-01-01","created_at":"2020-06-24T12:03:39.979397Z","updated_at":"2020-06-25T10:03:39.134417Z","payment_methods":[{"id":"648334a8-9546-a983-a81a-efc6d5bdd0be","type":"REVOLUT_PAY","saved_for":"MERCHANT","method_details":{"created_at":"2023-06-09T14:18:16.577888Z"}},{"id":"edef3ba4-60a0-4df3-8f12-e5fc858c2420","type":"CARD","saved_for":"CUSTOMER","method_details":{"bin":"459765","last4":"6578","expiry_month":2,"expiry_year":2025,"cardholder_name":"Example Customer","brand":"VISA","funding":"DEBIT","issuer":"EXAMPLE ISSUER","issuer_country":"GB","billing_address":{"street_line_1":"7, Westferry Circus","street_line_2":"Columbus Building","postcode":"E144HD","city":"London","region":"Greater London","country_code":"GB"},"created_at":"2023-03-24T14:15:22Z"}}]}}}}},"descriptionNode":"$L3dc"},"401":{"description":"Unauthorized","descriptionNode":"$L3dd"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L3de"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L3df"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L3e0"}},"requestBody":"$undefined","variantLabels":[],"children":["$L3e1","$L3e2"]}]}],false]}] 330:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 3e1:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-customer-deprecated","children":[["$L3e3",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-customer-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-customer-deprecated.md"}]]}]}],"$undefined"]}] 3e8:T8b2,
fetch("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
3e9:Td9a,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
3ea:T6c6,
import requests

url = "https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
3eb:T153e,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
3ec:T145e,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
3ed:T8ba,
fetch("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
3ee:Tda2,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
3ef:T6ce,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
3f0:T1546,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
3f1:T1466,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
3e2:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L3e4",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L3e5"},{"name":"customer_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L3e6"},"required":true,"description":"The ID of the `Customer` object.","descriptionNode":"$L3e7"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$24:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$3e8","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$3e9","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$3ea","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$3eb","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$3ec","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$3ed","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$3ee","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$3ef","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$3f0","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/customers/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$3f1","tokens":[{"marker":"__RP_TOK_0__","paramName":"customer_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:customer_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/customers/{customer_id}","parameters":["$3e2:props:children:0:props:children:1:props:parameters:0","$3e2:props:children:0:props:children:1:props:parameters:1"]}],"$L3f2"],"$L3f3","$L3f4"]}]]}] 3b2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L3f5","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 331:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
https://merchant.revolut.com/api/1.0/customers/{customer_id}/payment-methods?only_merchant=true
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"https://merchant.revolut.com/api/1.0/customers/{customer_id}/payment-methods?only_merchant=true\n"}]}]]}] 332:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 3f2:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L3f6"}}}] 3f3:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 3f4:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"retrieved_customer","label":"Retrieved customer","rawValue":"$24:props:children:0:props:children:props:responses:200:content:application/json:examples:retrieved_customer:value","block":"$L3f7"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L3f8"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 36c:["$","div","request-application/json-example_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"saved_for\": \"CUSTOMER\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"saved_for\": \"CUSTOMER\"\n}"}]}]]}] 3f9:T178d,
{
  "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420",
  "type": "CARD",
  "saved_for": "CUSTOMER",
  "method_details": {
    "bin": "459678",
    "last4": "6896",
    "expiry_month": 3,
    "expiry_year": 2025,
    "cardholder_name": "John Doe",
    "brand": "VISA",
    "funding": "DEBIT",
    "issuer": "EXAMPLE ISSUER",
    "issuer_country": "GB",
    "billing_address": {
      "street_line_1": "7",
      "street_line_2": "Westferry Circus",
      "postcode": "E144HD",
      "city": "London",
      "region": "Greater London",
      "country_code": "GB"
    },
    "created_at": "2023-03-24T14:15:22Z"
  }
}
36d:["$","div","200-application/json-updated_payment_method",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$3f9"}}]}]],"$L3fa"]}] 36e:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 36f:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 370:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 3e3:"Retrieve a customer (Deprecated)" 3fa:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"edef3ba4-60a0-4df3-8f12-e5fc858c2420\",\n \"type\": \"CARD\",\n \"saved_for\": \"CUSTOMER\",\n \"method_details\": {\n \"bin\": \"459678\",\n \"last4\": \"6896\",\n \"expiry_month\": 3,\n \"expiry_year\": 2025,\n \"cardholder_name\": \"John Doe\",\n \"brand\": \"VISA\",\n \"funding\": \"DEBIT\",\n \"issuer\": \"EXAMPLE ISSUER\",\n \"issuer_country\": \"GB\",\n \"billing_address\": {\n \"street_line_1\": \"7\",\n \"street_line_2\": \"Westferry Circus\",\n \"postcode\": \"E144HD\",\n \"city\": \"London\",\n \"region\": \"Greater London\",\n \"country_code\": \"GB\"\n },\n \"created_at\": \"2023-03-24T14:15:22Z\"\n }\n}"}]}] 3fd:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|407:T47c,List of event types that the webhook is configured to listen to. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|32:["$","$51","create-webhook-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Webhook with signing secret","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the webhook.","descriptionNode":"$L3fb"},"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L3fc"},"events":{"type":"array","description":"$3fd","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L3fe"},"minItems":1,"descriptionNode":"$L3ff"},"signing_secret":{"type":"string","description":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload.","descriptionNode":"$L400"}},"required":"$34:props:children:0:props:children:props:responses:200:content:application/json:schema:required"},"examples":{"created_webhook":{"summary":"Created webhook","value":{"id":"c6b981f4-53b3-47d5-9b24-4f87af1160eb","url":"https://example.com/webhooks","events":["ORDER_AUTHORISED","ORDER_COMPLETED"],"signing_secret":"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK"}}}}},"descriptionNode":"$L401"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L402"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L403"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L404"},"401":{"description":"Unauthorized","descriptionNode":"$L405"}},"requestBody":{"content":{"application/json":{"schema":{"title":"Webhook schema for creation and update operations","type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"Your webhook's URL to which event notifications will be sent. \n\nMust be a valid HTTP or HTTPS URL, capable of receiving `POST` requests.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L406"},"events":{"type":"array","description":"$407","items":{"type":"string","description":"The available event types your can listen to.","enum":"$33:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:events:items:enum","descriptionNode":"$L408"},"minItems":1,"descriptionNode":"$L409"}},"required":"$35:props:children:0:props:children:props:requestBody:content:application/json:schema:required"},"examples":{"example_webhook_request":{"summary":"Example webhook request","value":{"url":"https://example.com/webhooks","events":["ORDER_COMPLETED","ORDER_AUTHORISED"]}}}}}},"variantLabels":[],"children":["$L40a","$L40b"]}]}],"$L40c"]}] 3be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent customer ID used to retrieve, update, and delete a customer."}]]}] 3bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the customer."}]]}] 3c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the customer's business."}]]}] 3c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The phone number of the customer in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/E.164","target":"_blank","rel":"noreferrer","children":"E.164 format"}],"."]}]]}] 3c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the customer was created."}]]}] 3c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The data and time the customer was last updated."}]]}] 3c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email address of the customer."}]]}] 3c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The birth date of the customer."}]]}] 3c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method."}]]}] 3c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only merchant initiated transactions are supported for saved ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," payment methods."]}]}]]}]]}] 3c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates in which case this saved payment method can be used for payments."}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"CUSTOMER"}],": This payment method can be used only when the customer is on the checkout page."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MERCHANT"}],": This payment method can be used without the customer being on the checkout page, and the merchant can initiate transactions, for example, to take payments for recurring transactions."]}],"\n"]}]]}] 3c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the payment card."}]]}] 3ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the payment card."}]]}] 3cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry month of the payment card."}]]}] 3cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry year of the payment card."}]]}] 3cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 3ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 3cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 3d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 3d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 3d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 3d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 3d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The billing address of the payment method."}]]}] 3d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The brand of the payment card."}]]}] 3d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The funding type of the payment card."}]]}] 40a:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"create-webhook-deprecated","children":[["$L40d",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"create-webhook-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/create-webhook-deprecated.md"}]]}]}],"$undefined"]}] 410:T6dd,
curl -X POST "https://merchant.revolut.com/api/1.0/webhooks" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}'
411:Tf96,
const payload = {
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
};
fetch("https://merchant.revolut.com/api/1.0/webhooks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
412:T15d5,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/webhooks"
  jsonData := []byte(`
{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
413:Tccc,
import requests

url = "https://merchant.revolut.com/api/1.0/webhooks"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
414:T1b3c,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/webhooks"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
415:T1f98,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""url"": ""https://example.com/webhooks"",
  ""events"": [
    ""ORDER_COMPLETED"",
    ""ORDER_AUTHORISED""
  ]
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
416:T6e5,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/webhooks" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}'
417:Tf9e,
const payload = {
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/webhooks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
418:T15dd,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/webhooks"
  jsonData := []byte(`
{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
419:Tcd4,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/webhooks"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
41a:T1b44,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/webhooks"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
41b:T1fa0,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/webhooks"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""url"": ""https://example.com/webhooks"",
  ""events"": [
    ""ORDER_COMPLETED"",
    ""ORDER_AUTHORISED""
  ]
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
40b:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L40e",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L40f"}],"requestBody":"$32:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$32:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/webhooks\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}'","templateHtml":"$410","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n};\nfetch(\"https://merchant.revolut.com/api/1.0/webhooks\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$411","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/webhooks\"\n jsonData := []byte(`\n{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$412","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/webhooks\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$413","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/webhooks\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$414","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"url\"\": \"\"https://example.com/webhooks\"\",\n \"\"events\"\": [\n \"\"ORDER_COMPLETED\"\",\n \"\"ORDER_AUTHORISED\"\"\n ]\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$415","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}'","templateHtml":"$416","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$417","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"\n jsonData := []byte(`\n{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$418","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$419","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$41a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/webhooks\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"url\"\": \"\"https://example.com/webhooks\"\",\n \"\"events\"\": [\n \"\"ORDER_COMPLETED\"\",\n \"\"ORDER_AUTHORISED\"\"\n ]\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$41b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/webhooks","parameters":["$40b:props:children:0:props:children:1:props:parameters:0"]}],"$L41c"],"$L41d","$L41e"]}]]}] 421:T492,The event type of the webhook notification that's sent by Revolut to your webhook URL. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|426:T492,The event type of the webhook notification that's sent by Revolut to your webhook URL. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|42a:T492,The event type of the webhook notification that's sent by Revolut to your webhook URL. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|42d:T492,The event type of the webhook notification that's sent by Revolut to your webhook URL. Each event is related to status changes of a specific object in the Merchant API: | Object | Event types | | --------- | ----------- | | `Order` |
  • `ORDER_COMPLETED`
  • `ORDER_AUTHORISED`
  • `ORDER_CANCELLED`
  • `ORDER_FAILED`
  • `ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED`
  • `ORDER_INCREMENTAL_AUTHORISATION_DECLINED`
  • `ORDER_INCREMENTAL_AUTHORISATION_FAILED`
| | `Payment` |
  • `ORDER_PAYMENT_AUTHENTICATION_CHALLENGED`
  • `ORDER_PAYMENT_AUTHENTICATED`
  • `ORDER_PAYMENT_AUTHORISATION_STARTED`
  • `ORDER_PAYMENT_DECLINED`
  • `ORDER_PAYMENT_FAILED`
| | `Subscription` |
  • `SUBSCRIPTION_INITIATED`
  • `SUBSCRIPTION_FINISHED`
  • `SUBSCRIPTION_CANCELLED`
  • `SUBSCRIPTION_OVERDUE`
| | `Payout` |
  • `PAYOUT_INITIATED`
  • `PAYOUT_COMPLETED`
  • `PAYOUT_FAILED`
| | `Dispute` |
  • `DISPUTE_ACTION_REQUIRED`
  • `DISPUTE_UNDER_REVIEW`
  • `DISPUTE_WON`
  • `DISPUTE_LOST`
|40c:["$","section",null,{"className":"zzkpfh0","children":[["$","h3",null,{"children":"Callbacks"}],["$","div",null,{"className":"zzkpfh1","children":[["$","section","create-webhook-deprecated-callback-send-webhook-event-request-body-url-post",{"className":"y9a0do6 y9a0do0","data-variant":"callback","children":["$","$L52",null,{"responses":{"204":{"description":"If the webhook event was delivered successfully, we recommend to respond with a `204` code.\n\n:::info\nYou can respond to and acknowledge the delivery of a webhook event by any HTTP response code between `200-399`.\n:::","descriptionNode":"$L41f"},"4XX":{"description":"If the webhook event delivery times out or the delivery of the events fails, you can respond with any HTTP `4XX` code. In this case, Revolut will retry sending the webhook event 3 more times, each with a 10-minute delay.","descriptionNode":"$L420"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"discriminator":{"propertyName":"event","mapping":{"Order or payment event":"#/components/schemas/Webhook-Order-Event","Subscription":"#/components/schemas/Webhook-Subscription-Event","Payout event":"#/components/schemas/Webhook-Payout-Event","Dispute event":"#/components/schemas/Webhook-Dispute-Event"}},"oneOf":[{"type":"object","properties":{"event":{"type":"string","enum":["ORDER_COMPLETED","ORDER_AUTHORISED","ORDER_CANCELLED","ORDER_FAILED","ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED","ORDER_INCREMENTAL_AUTHORISATION_DECLINED","ORDER_INCREMENTAL_AUTHORISATION_FAILED","ORDER_PAYMENT_AUTHENTICATION_CHALLENGED","ORDER_PAYMENT_AUTHENTICATED","ORDER_PAYMENT_AUTHORISATION_STARTED","ORDER_PAYMENT_DECLINED","ORDER_PAYMENT_FAILED","SUBSCRIPTION_INITIATED","SUBSCRIPTION_FINISHED","SUBSCRIPTION_CANCELLED","SUBSCRIPTION_OVERDUE","PAYOUT_INITIATED","PAYOUT_COMPLETED","PAYOUT_FAILED","DISPUTE_ACTION_REQUIRED","DISPUTE_UNDER_REVIEW","DISPUTE_WON","DISPUTE_LOST"],"description":"$421","descriptionNode":"$L422"},"order_id":{"type":"string","format":"uuid","description":"The ID of the order the event is related to.","descriptionNode":"$L423"},"merchant_order_ext_ref":{"type":"string","description":"The information sent during order creation in the\n`merchant_order_data.reference` field.","descriptionNode":"$L424"},"incremental_authorisation_ext_reference":{"type":"string","description":"The reference sent in the `reference` field of the [Increment authorisation](https://developer.revolut.com/docs/api/merchant#increment-authorisation) request. Only present for incremental authorisation events.","descriptionNode":"$L425"}},"required":["event","order_id"]},{"type":"object","properties":{"event":{"type":"string","enum":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:event:enum","description":"$426","descriptionNode":"$L427"},"subscription_id":{"type":"string","format":"uuid","description":"The ID of the subscription the event is related to.","descriptionNode":"$L428"},"external_reference":{"type":"string","description":"The information sent in the `external_reference` field of the [Create a subscription](https://developer.revolut.com/docs/api/merchant#create-subscription) request.","descriptionNode":"$L429"}},"required":["event","subscription_id"]},{"type":"object","properties":{"event":{"type":"string","enum":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:event:enum","description":"$42a","descriptionNode":"$L42b"},"payout_id":{"type":"string","format":"uuid","description":"The ID of the payout the event is related to.","descriptionNode":"$L42c"}},"required":["event","payout_id"]},{"type":"object","properties":{"event":{"type":"string","enum":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:event:enum","description":"$42d","descriptionNode":"$L42e"},"dispute_id":{"type":"string","format":"uuid","description":"The ID of the dispute the event is related to.","descriptionNode":"$L42f"}},"required":["event","dispute_id"]}]},"examples":{"order_event":{"summary":"Webhook event related to an order or payment","value":{"event":"ORDER_COMPLETED","order_id":"6634c172-3398-ac93-aee9-50de0282e3ac","merchant_order_ext_ref":"Example reference #123"}},"subscription_event":{"summary":"Webhook event related to a subscription","value":{"event":"SUBSCRIPTION_INITIATED","subscription_id":"550e8400-e29b-41d4-a716-446655440000","external_reference":"ext-ref-12345"}},"incremental_auth_authorised":{"summary":"Webhook event for successful incremental authorisation","value":{"event":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED","order_id":"6634c172-3398-ac93-aee9-50de0282e3ac","incremental_authorisation_ext_reference":"CHG-67890"}},"incremental_auth_declined":{"summary":"Webhook event for declined incremental authorisation","value":{"event":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED","order_id":"6634c172-3398-ac93-aee9-50de0282e3ac","incremental_authorisation_ext_reference":"CHG-67891"}},"incremental_auth_failed":{"summary":"Webhook event for failed incremental authorisation","value":{"event":"ORDER_INCREMENTAL_AUTHORISATION_FAILED","order_id":"6634c172-3398-ac93-aee9-50de0282e3ac","incremental_authorisation_ext_reference":"CHG-67892"}},"authorisation_started":{"summary":"Webhook event for payment authorisation started (SEPA Direct Debit)","value":{"event":"ORDER_PAYMENT_AUTHORISATION_STARTED","order_id":"6634c172-3398-ac93-aee9-50de0282e3ac","merchant_order_ext_ref":"Example reference #123"}},"payout_event":{"summary":"Webhook event related to a payout","value":{"event":"PAYOUT_COMPLETED","payout_id":"6634c172-3398-ac93-aee9-50de0282e3ac"}},"dispute_event":{"summary":"Webhook event related to a dispute","value":{"event":"DISPUTE_ACTION_REQUIRED","dispute_id":"ab934829-e4ba-4e7f-8a21-365cad85c763"}}}}}},"variantLabels":["Webhook event related to an order or payment","Webhook event related to a subscription","Webhook event for successful incremental authorisation","Webhook event for declined incremental authorisation","Webhook event for failed incremental authorisation","Webhook event for payment authorisation started (SEPA Direct Debit)","Webhook event related to a payout","Webhook event related to a dispute"],"children":["$L430","$L431"]}]}]]}]]}] 3d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The issuer of the payment card."}]]}] 3d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Two-letter country code of the country where the payment card was issued."}]]}] 3d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment card was added."}]]}] 3da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method."}]]}] 3db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"All the payment methods for this customer."}]]}] 3dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 3dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 3de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 3df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 3e0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 3e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Get the information about a specific ",["$","code","code-0",{"children":"customer"}],", based on its ID."]}]]}] 3e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 3e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 3e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Customer"}]," object."]}]]}] 41c:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L432"}}}] 41d:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_webhook_request","label":"Example webhook request","rawValue":"$32:props:children:0:props:children:props:requestBody:content:application/json:examples:example_webhook_request:value","block":"$L433"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 41e:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"created_webhook","label":"Created webhook","rawValue":"$32:props:children:0:props:children:props:responses:200:content:application/json:examples:created_webhook:value","block":"$L434"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L435"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 430:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h4",null,{"id":"create-webhook-deprecated-callback-send-webhook-event-request-body-url-post","children":[["$L436","$undefined"],["$","$L15",null,{"id":"create-webhook-deprecated-callback-send-webhook-event-request-body-url-post"}]]}],"$undefined"]}]}],"$undefined"]}] 431:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L437",["$","$L5a",null,{"parameters":[{"name":"Revolut-Request-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time when the webhook event was sent from Revolut. Used to verify the webhook event payload was actually sent by Revolut.\n\n:::info\nFor more information, see: [Verify payload signature](https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature)\n:::","descriptionNode":"$L438"},{"name":"Revolut-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"The payload signature computed by Revolut using a Hash-based Message Authentication Code (HMAC). Used to verify the webhook event payload was actually sent by Revolut.\n\n:::info\nFor more information, see: [Verify payload signature](https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature)\n:::","descriptionNode":"$L439"}],"requestBody":"$40c:props:children:1:props:children:0:props:children:props:requestBody","heading":"Callback request","requestBodySchemaTitle":"Payload","headingAs":"h5"}],["$","$L5e",null,{"responses":"$40c:props:children:1:props:children:0:props:children:props:responses","headingAs":"h5"}]]}],["$","div",null,{"className":"ezz1n32","children":[["$","div",null,{"className":"y9a0do5","children":[["$","span",null,{"className":"b0biwq0","data-method":"post","children":[["$","span",null,{"className":"b0biwq2","children":["$","$L4c",null,{"name":"ArrowThinTopRight","size":12}]}],["$","span",null,{"className":"b0biwq3","children":"post"}]]}],["$","span",null,{"className":"y9a0do4","children":"{$request.body#/url}"}]]}],["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"order_event","label":"Webhook event related to an order or payment","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:order_event:value","block":"$L43a"},{"key":"subscription_event","label":"Webhook event related to a subscription","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:subscription_event:value","block":"$L43b"},{"key":"incremental_auth_authorised","label":"Webhook event for successful incremental authorisation","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:incremental_auth_authorised:value","block":"$L43c"},{"key":"incremental_auth_declined","label":"Webhook event for declined incremental authorisation","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:incremental_auth_declined:value","block":"$L43d"},{"key":"incremental_auth_failed","label":"Webhook event for failed incremental authorisation","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:incremental_auth_failed:value","block":"$L43e"},{"key":"authorisation_started","label":"Webhook event for payment authorisation started (SEPA Direct Debit)","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:authorisation_started:value","block":"$L43f"},{"key":"payout_event","label":"Webhook event related to a payout","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:payout_event:value","block":"$L440"},{"key":"dispute_event","label":"Webhook event related to a dispute","rawValue":"$40c:props:children:1:props:children:0:props:children:props:requestBody:content:application/json:examples:dispute_event:value","block":"$L441"}],"syncedPropertyName":"event"}},"title":"Payload samples","headingAs":"h5"}],["$","$Lbd",null,{"exampleBlocks":{"204":{},"4XX":{}},"headingAs":"h5"}]]}]]}] 3f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L442","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 3b1:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 40d:"Create a webhook (Deprecated)" 3b:["$","$51","retrieve-location",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Location","type":"object","description":"Location object represents merchant locations depending on type.","oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L443"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L444"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":["online","physical"],"descriptionNode":"$L445"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L446"}},"required":["domain"],"descriptionNode":"$L447"}},"required":["id","name","type","details"]},{"title":"Location","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L448"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L449"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L44a"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L44b"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L44c"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L44d"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L44e"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L44f"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L450"}},"required":["street_line_1","city","country_code","postcode"],"descriptionNode":"$L451"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L452"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L453"}},"required":["lat","lon"],"descriptionNode":"$L454"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":["09:00:00"],"descriptionNode":"$L455"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":["18:00:00"],"descriptionNode":"$L456"}},"required":["from","to"]},"descriptionNode":"$L457"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L458"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L459"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L45a"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L45b"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L45c"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L45d"}},"descriptionNode":"$L45e"}},"required":["address","geo_location","opening_hours"],"descriptionNode":"$L45f"}},"required":["id","name","type","details"]}],"discriminator":{"propertyName":"type","mapping":{"online":"#/components/schemas/Location-Online","physical":"#/components/schemas/Location-Physical"}},"descriptionNode":"$L460"},"examples":{"example_online_location":{"summary":"Online location request example","value":{"id":"8d9a7125-805f-40f3-a405-bc89765db996","name":"Grocery website","type":"online","details":{"domain":"groceries.example.com"}}},"example_physical_location":{"summary":"Physical location request example","value":{"id":"8d9a7125-805f-40f3-a405-bc89765db996","name":"Example Street Store","type":"physical","details":{"address":{"street_line_1":"123 Example Street","city":"Example city","postcode":"12345","country_code":"GB"},"geo_location":{"lat":12.3456,"lon":-12.3456},"opening_hours":{"monday":[{"from":"09:00","to":"15:00"},{"from":"16:00","to":"18:00"}],"tuesday":[{"from":"10:00","to":"13:00"},{"from":"16:00","to":"18:00"}]}}}}}}},"descriptionNode":"$L461"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L462"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L463"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L464"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L465"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L466"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L467"}},"requestBody":"$undefined","variantLabels":["Online location request example","Physical location request example"],"children":["$L468","$L469"]}]}],false]}] 46a:T3029,
[
  {
    "id": "f0d685f4-07ab-4eff-ba80-5811303c607d",
    "type": "PAYMENT",
    "state": "PENDING",
    "created_at": "2021-02-10T18:17:37.959383Z",
    "updated_at": "2021-02-10T18:17:37.959383Z",
    "order_amount": {
      "value": 35000,
      "currency": "GBP"
    },
    "order_outstanding_amount": {
      "value": 35000,
      "currency": "GBP"
    }
  },
  {
    "id": "feca684a-b9ea-4033-9bc4-b9e6ac12ada6",
    "type": "PAYMENT",
    "state": "COMPLETED",
    "created_at": "2021-02-10T16:59:23.642673Z",
    "updated_at": "2021-02-10T16:59:50.886826Z",
    "completed_at": "2021-02-10T16:59:50.886826Z",
    "settlement_currency": "USD",
    "email": "sally.gibson@lloydsbank.co.uk",
    "order_amount": {
      "value": 1000,
      "currency": "GBP"
    },
    "order_outstanding_amount": {
      "value": 0,
      "currency": "GBP"
    }
  },
  {
    "id": "f3c5e3f1-f73a-4853-a9e3-b0261301c66a",
    "type": "PAYMENT",
    "state": "COMPLETED",
    "created_at": "2021-02-10T16:58:47.507560Z",
    "updated_at": "2021-02-10T16:59:52.847017Z",
    "completed_at": "2021-02-10T16:59:52.847017Z",
    "description": "URBAN 'Panther' Watch by José Almeida",
    "capture_mode": "AUTOMATIC",
    "merchant_order_ext_ref": "testorder123",
    "customer_id": "31345442-3d03-4c4b-8354-3bdaf0ca9600",
    "email": "someothermail@gmail.com",
    "order_amount": {
      "value": 777,
      "currency": "GBP"
    },
    "order_outstanding_amount": {
      "value": 0,
      "currency": "GBP"
    }
  }
]
3b3:["$","div","200-application/json-list_of_orders",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$46a"}}]}]],"$L46b"]}] 3b4:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 3b5:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 3b6:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 468:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-location","children":[["$L46c","$undefined"],["$","$L15",null,{"id":"retrieve-location"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-location.md"}]]}]}],"$undefined"]}] 471:T8ae,
fetch("https://merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
472:Td96,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
473:T6c2,
import requests

url = "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
474:T153a,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
475:T145a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
476:T8b6,
fetch("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
477:Td9e,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
478:T6ca,
import requests

url = "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
479:T1542,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
47a:T1462,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
469:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L46d",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L46e"},{"name":"location_id","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L46f"},"in":"path","required":true,"description":"The ID of the location.","descriptionNode":"$L470"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$3b:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$471","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$472","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$473","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$474","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$475","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$476","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$477","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$478","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$479","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$47a","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/locations/{location_id}","parameters":["$469:props:children:0:props:children:1:props:parameters:0","$469:props:children:0:props:children:1:props:parameters:1"]}],"$L47b"],"$L47c","$L47d"]}]]}] 47e:T5e7,[ { "id": "f0d685f4-07ab-4eff-ba80-5811303c607d", "type": "PAYMENT", "state": "PENDING", "created_at": "2021-02-10T18:17:37.959383Z", "updated_at": "2021-02-10T18:17:37.959383Z", "order_amount": { "value": 35000, "currency": "GBP" }, "order_outstanding_amount": { "value": 35000, "currency": "GBP" } }, { "id": "feca684a-b9ea-4033-9bc4-b9e6ac12ada6", "type": "PAYMENT", "state": "COMPLETED", "created_at": "2021-02-10T16:59:23.642673Z", "updated_at": "2021-02-10T16:59:50.886826Z", "completed_at": "2021-02-10T16:59:50.886826Z", "settlement_currency": "USD", "email": "sally.gibson@lloydsbank.co.uk", "order_amount": { "value": 1000, "currency": "GBP" }, "order_outstanding_amount": { "value": 0, "currency": "GBP" } }, { "id": "f3c5e3f1-f73a-4853-a9e3-b0261301c66a", "type": "PAYMENT", "state": "COMPLETED", "created_at": "2021-02-10T16:58:47.507560Z", "updated_at": "2021-02-10T16:59:52.847017Z", "completed_at": "2021-02-10T16:59:52.847017Z", "description": "URBAN 'Panther' Watch by José Almeida", "capture_mode": "AUTOMATIC", "merchant_order_ext_ref": "testorder123", "customer_id": "31345442-3d03-4c4b-8354-3bdaf0ca9600", "email": "someothermail@gmail.com", "order_amount": { "value": 777, "currency": "GBP" }, "order_outstanding_amount": { "value": 0, "currency": "GBP" } } ]46b:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$47e"}]}] 3fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the webhook."}]]}] 3fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 3fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 3ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 400:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The signing secret for the webhook. Use it to verify the signature for the webhook request's payload."}]]}] 401:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 402:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 403:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 404:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 405:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 436:"Send webhook event to webhook URL" 47b:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L47f"}}}] 47c:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 47d:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"example_online_location","label":"Online location request example","rawValue":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_online_location:value","block":"$L480"},{"key":"example_physical_location","label":"Physical location request example","rawValue":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_physical_location:value","block":"$L481"}],"syncedPropertyName":"type"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L482"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L483"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 406:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Your webhook's URL to which event notifications will be sent."}],"\n",["$","p","p-1",{"children":["Must be a valid HTTP or HTTPS URL, capable of receiving ",["$","code","code-0",{"children":"POST"}]," requests."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 408:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The available event types your can listen to."}]]}] 409:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of event types that the webhook is configured to listen to."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 40e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Set up a webhook URL so that the Merchant API can push event notifications to the specified URL."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["Merchants can register a ",["$","strong","strong-0",{"children":"maximum of 10 webhook URLs"}],". If you attempt to register more than 10, the API will return a ",["$","code","code-0",{"children":"422 - Unprocessable Content"}]," error."]}],["$","p","p-1",{"children":"Ensure your webhook registrations are necessary and within the allowed limit."}]]}]]}]]}] 40f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 41f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["If the webhook event was delivered successfully, we recommend to respond with a ",["$","code","code-0",{"children":"204"}]," code."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["You can respond to and acknowledge the delivery of a webhook event by any HTTP response code between ",["$","code","code-0",{"children":"200-399"}],"."]}]}]]}]]}] 420:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["If the webhook event delivery times out or the delivery of the events fails, you can respond with any HTTP ",["$","code","code-0",{"children":"4XX"}]," code. In this case, Revolut will retry sending the webhook event 3 more times, each with a 10-minute delay."]}]]}] 422:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The event type of the webhook notification that's sent by Revolut to your webhook URL."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 423:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the order the event is related to."}]]}] 424:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The information sent during order creation in the\n",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field."]}]]}] 3a:["$","$51","retrieve-location-list",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"title":"Location","type":"object","description":"Location object represents merchant locations depending on type.","oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L484"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L485"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L486"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L487"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L488"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:required"},{"title":"Location","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L489"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L48a"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L48b"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L48c"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L48d"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L48e"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L48f"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L490"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L491"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:address:required","descriptionNode":"$L492"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L493"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L494"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:geo_location:required","descriptionNode":"$L495"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:from:examples","descriptionNode":"$L496"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:to:examples","descriptionNode":"$L497"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:required"},"descriptionNode":"$L498"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L499"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L49a"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L49b"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L49c"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L49d"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$3a:props:children:0:props:children:props:responses:200:content:application/json:schema:items:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L49e"}},"descriptionNode":"$L49f"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:required","descriptionNode":"$L4a0"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:required"}],"discriminator":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:discriminator","descriptionNode":"$L4a1"}},"examples":{"list_of_locations":{"summary":"Location list","value":[{"id":"8d9a7125-805f-40f3-a405-bc89765db996","name":"Grocery website","type":"online","details":{"domain":"groceries.example.com"}},{"id":"066223df-d5a8-42f0-b3ce-688c7a76f9a8","name":"Cars website","type":"online","details":{"domain":"cars.example.com"}},{"id":"299050a4-cc7a-44b0-8b2b-7cd1e335ef38","name":"Example Street Store","type":"physical","details":{"address":{"street_line_1":"123 Example Street","city":"Example city","postcode":"12345","country_code":"GB"},"geo_location":{"lat":12.3456,"lon":-12.3456},"opening_hours":{"monday":[{"from":"09:00","to":"15:00"},{"from":"16:00","to":"18:00"}],"tuesday":[{"from":"10:00","to":"13:00"},{"from":"16:00","to":"18:00"}]}}}]}}}},"descriptionNode":"$L4a2"},"401":{"description":"Unauthorized","descriptionNode":"$L4a3"}},"requestBody":"$undefined","variantLabels":[],"children":["$L4a4","$L4a5"]}]}],false]}] 4a4:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-location-list","children":[["$L4a6","$undefined"],["$","$L15",null,{"id":"retrieve-location-list"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-location-list.md"}]]}]}],"$undefined"]}] 4aa:T8b3,
fetch("https://merchant.revolut.com/api/locations?type=__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
4ab:Td9b,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/locations?type=__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
4ac:T6c7,
import requests

url = "https://merchant.revolut.com/api/locations?type=__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
4ad:T153f,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/locations?type=__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
4ae:T145f,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/locations?type=__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
4af:T8bb,
fetch("https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
4b0:Tda3,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
4b1:T6cf,
import requests

url = "https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
4b2:T1547,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
4b3:T1467,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
4a5:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L4a7",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L4a8"},{"name":"type","in":"query","schema":{"type":"string","enum":["online","physical"]},"description":"Filter the list by location type.","descriptionNode":"$L4a9"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$3a:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$4aa","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$4ab","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$4ac","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$4ad","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/locations?type=__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$4ae","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$4af","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$4b0","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$4b1","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$4b2","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/locations?type=__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$4b3","tokens":[{"marker":"__RP_TOK_0__","paramName":"type","paramIn":"query","pipeline":["url-component","json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","query:type":"online"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/locations","parameters":["$4a5:props:children:0:props:children:1:props:parameters:0","$4a5:props:children:0:props:children:1:props:parameters:1"]}],"$L4b4"],"$L4b5","$L4b6"]}]]}] 432:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L4b7","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 425:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reference sent in the ",["$","code","code-0",{"children":"reference"}]," field of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#increment-authorisation","target":"_blank","rel":"noreferrer","children":"Increment authorisation"}]," request. Only present for incremental authorisation events."]}]]}] 427:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The event type of the webhook notification that's sent by Revolut to your webhook URL."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 428:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the subscription the event is related to."}]]}] 429:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The information sent in the ",["$","code","code-0",{"children":"external_reference"}]," field of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#create-subscription","target":"_blank","rel":"noreferrer","children":"Create a subscription"}]," request."]}]]}] 42b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The event type of the webhook notification that's sent by Revolut to your webhook URL."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 42c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payout the event is related to."}]]}] 42e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The event type of the webhook notification that's sent by Revolut to your webhook URL."}],"\n",["$","p","p-1",{"children":"Each event is related to status changes of a specific object in the Merchant API:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Object","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Event types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Order"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_COMPLETED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_AUTHORISED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_FAILED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED"}]}]," ",["$","li","li-5",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_DECLINED"}]}]," ",["$","li","li-6",{"children":["$","code","code-0",{"children":"ORDER_INCREMENTAL_AUTHORISATION_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATION_CHALLENGED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHENTICATED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_AUTHORISATION_STARTED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_DECLINED"}]}]," ",["$","li","li-4",{"children":["$","code","code-0",{"children":"ORDER_PAYMENT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Subscription"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_FINISHED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_CANCELLED"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"SUBSCRIPTION_OVERDUE"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"PAYOUT_INITIATED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"PAYOUT_COMPLETED"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"PAYOUT_FAILED"}]}]," "]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","ul","ul-0",{"children":[" ",["$","li","li-0",{"children":["$","code","code-0",{"children":"DISPUTE_ACTION_REQUIRED"}]}]," ",["$","li","li-1",{"children":["$","code","code-0",{"children":"DISPUTE_UNDER_REVIEW"}]}]," ",["$","li","li-2",{"children":["$","code","code-0",{"children":"DISPUTE_WON"}]}]," ",["$","li","li-3",{"children":["$","code","code-0",{"children":"DISPUTE_LOST"}]}]]}],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 42f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the dispute the event is related to."}]]}] 437:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The following webhook event payload is sent as a HTTP POST request to the URL registered as the merchant's webhook server via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook","target":"_blank","rel":"noreferrer","children":"Create a webhook"}]," operation."]}],"\n",["$","p","p-1",{"children":"The delivery of the webhook events happen asynchronously, based on the events you subscribed to."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/using-webhooks","target":"_blank","rel":"noreferrer","children":"Use webhooks to track order and payment lifecycle"}],"."]}]}]]}],"\n",["$","h4","h4-0",{"children":"IP allowlisting"}],"\n",["$","p","p-2",{"children":"To ensure secure delivery of webhook events, please allowlist the following IP addresses from which the events originate:"}],"\n",["$","p","p-3",{"children":["$","strong","strong-0",{"children":"Production webhook IPs:"}]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["$","code","code-0",{"children":"35.246.21.235"}]}],"\n",["$","li","li-1",{"children":["$","code","code-0",{"children":"34.89.70.170"}]}],"\n"]}],"\n",["$","p","p-4",{"children":["$","strong","strong-0",{"children":"Sandbox webhook IPs:"}]}],"\n",["$","ul","ul-1",{"children":["\n",["$","li","li-0",{"children":["$","code","code-0",{"children":"35.242.130.242"}]}],"\n",["$","li","li-1",{"children":["$","code","code-0",{"children":"35.242.162.241"}]}],"\n"]}]]}] 438:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time when the webhook event was sent from Revolut. Used to verify the webhook event payload was actually sent by Revolut."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature","target":"_blank","rel":"noreferrer","children":"Verify payload signature"}]]}]}]]}]]}] 439:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payload signature computed by Revolut using a Hash-based Message Authentication Code (HMAC). Used to verify the webhook event payload was actually sent by Revolut."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/monitor-and-observe/webhooks/verify-the-payload-signature","target":"_blank","rel":"noreferrer","children":"Verify payload signature"}]]}]}]]}]]}] 46c:"Retrieve a location" 4b4:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L4b8"}}}] 4b5:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 4b6:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"list_of_locations","label":"Location list","rawValue":"$3a:props:children:0:props:children:props:responses:200:content:application/json:examples:list_of_locations:value","block":"$L4b9"}],"syncedPropertyName":"$undefined"}},"401":{}},"headingAs":"h4"}] 443:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 444:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 445:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 446:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 447:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 448:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 449:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 44a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 44b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 44c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 44d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 44e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 44f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 450:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 451:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 452:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 453:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 454:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 3bd:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
https://merchant.revolut.com/api/1.0/orders?state=AUTHORISED&state=COMPLETED
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"https://merchant.revolut.com/api/1.0/orders?state=AUTHORISED&state=COMPLETED\n"}]}]]}] 3f5:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 455:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 456:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 457:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 458:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 459:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 45a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 45b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 45c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 45d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 45e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 45f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 460:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location object represents merchant locations depending on type."}]]}] 461:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 462:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 463:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 464:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 465:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 466:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 467:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 46d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve details of a specific location, based on its ID."}]]}] 46e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 46f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 470:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the location."}]]}] 4a6:"Retrieve location list" 2c:["$","$51","retrieve-payment-details",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"Payment details","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment.","descriptionNode":"$L4ba"},"order_id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L4bb"},"payment_method":{"type":"object","description":"The payment method used to pay for the order.","discriminator":{"propertyName":"type","mapping":{"revolut_pay":"#/components/schemas/Revolut-Pay","card":"#/components/schemas/Card-For-Payment-Details","sepa_direct_debit":"#/components/schemas/Sepa-Direct-Debit"}},"oneOf":[{"discriminator":{"propertyName":"subtype","mapping":{"revolut_pay_account":"#/components/schemas/RPay-Account","revolut_pay_card":"#/components/schemas/RPay-Card"}},"oneOf":[{"properties":{"type":{"type":"string","enum":["card","revolut_pay"],"description":"The type of payment method used to pay for the order.","descriptionNode":"$L4bc"},"subtype":{"type":"string","enum":["revolut_account","card"],"description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L4bd"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L4be"}},"required":["type","subtype"]},{"properties":{"type":{"type":"string","enum":["card","revolut_pay"],"description":"The type of payment method used to pay for the order.","descriptionNode":"$L4bf"},"subtype":{"type":"string","enum":["revolut_account","card"],"description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L4c0"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L4c1"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L4c2"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L4c3"}},"required":["type","subtype"]}]},{"properties":{"type":{"type":"string","enum":["card","revolut_pay"],"description":"The type of payment method used to pay for the order.","descriptionNode":"$L4c4"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L4c5"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L4c6"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L4c7"}},"required":["type"]},{"type":"object","description":"Object containing details of a SEPA Direct Debit payment.\n\n:::info\nFor more information, see: [SEPA Direct Debit server-to-server integration](https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server)\n:::","properties":{"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned when the payment method is saved for the merchant.\n:::","descriptionNode":"$L4c8"},"type":{"type":"string","enum":["apple_pay","card","google_pay","revolut_pay_card","revolut_pay_account","sepa_direct_debit"],"description":"The type of payment method used to pay for the order.\n\nAvailable values:\n\n| Payment method `type` | Description |\n| --------------------- | ----------- |\n| `apple_pay` | The customer paid the order using Apple Pay. |\n| `card` | The customer paid the order using their credit or debit card. |\n| `google_pay` | The customer paid the order using Google Pay. |\n| `revolut_pay_card` | The customer paid the order via Revolut Pay using their credit or debit card. |\n| `revolut_pay_account` | The customer paid the order via Revolut Pay using their Revolut account. |\n| `sepa_direct_debit` | The customer paid the order using SEPA Direct Debit. |","descriptionNode":"$L4c9"},"debtor_iban_last_four":{"type":"string","description":"The last four digits of the debtor's IBAN.","minLength":4,"maxLength":4,"descriptionNode":"$L4ca"},"debtor_name":{"type":"string","description":"The full name of the debtor as provided in the mandate.","descriptionNode":"$L4cb"},"mandate_reference":{"type":"string","description":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers.","descriptionNode":"$L4cc"}},"required":["type"],"descriptionNode":"$L4cd"}],"descriptionNode":"$L4ce"},"token":{"type":"string","format":"uuid","description":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers. \n\nThe token is only valid for a limited time.","descriptionNode":"$L4cf"},"amount":{"type":"integer","format":"int64","minimum":0,"description":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state.\n\n| Payment type | State | Amount value |\n|--------------|-------|--------------|\n| Standard payment | Any | Total payment amount |\n| Pre-authorised payment | `authorisation_started` | New amount being authorised (during increment processing) |\n| Pre-authorised payment | `authorised` | Currently authorised amount (equals `authorised_amount`) |\n\n:::info\nFor pre-authorised payments, see the `authorised_amount` field for tracking the currently authorised amount separately.\n:::","examples":[600],"descriptionNode":"$L4d0"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L4d1"},"state":{"type":"string","description":"The status of the payment.","enum":["pending","authentication_challenge","authentication_verified","authorisation_started","authorisation_passed","authorised","capture_started","captured","refund_validated","refund_started","cancellation_started","declining","completing","cancelling","failing","completed","declined","soft_declined","cancelled","failed"],"descriptionNode":"$L4d2"},"decline_reason":{"type":"string","description":"The reason for a `failed` or `declined` payment.\n\nA failed or declined payment can result from multiple reasons. To learn more, check our [failure reasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":["3ds_challenge_abandoned","3ds_challenge_failed_manually","cardholder_name_missing","customer_challenge_abandoned","customer_challenge_failed","customer_name_mismatch","do_not_honour","expired_card","high_risk","insufficient_funds","invalid_address","invalid_amount","invalid_card","invalid_country","invalid_cvv","invalid_email","invalid_expiry","invalid_merchant","invalid_phone","invalid_pin","issuer_not_available","pick_up_card","rejected_by_customer","restricted_card","suspected_fraud","technical_error","transaction_not_allowed_for_cardholder","unknown_card","withdrawal_limit_exceeded"],"descriptionNode":"$L4d3"},"authentication_challenge":{"type":"object","description":"Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: [3D Secure overview](https://developer.revolut.com/docs/guides/merchant/reference/3d-secure).\n\nOnly returned if the payment's state is `authentication_challenge`.","discriminator":{"propertyName":"type","mapping":{"three_ds":"#/components/schemas/Three-Ds","three_ds_fingerprint":"#/components/schemas/Three-Ds-Fingerprint"}},"oneOf":[{"title":"three_ds","type":"object","description":"Information about the 3DS challenge.","properties":{"type":{"type":"string","enum":["three_ds","three_ds_fingerprint"],"description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L4d4"},"acs_url":{"type":"string","format":"url","description":"The URL of the authentication challenge.","descriptionNode":"$L4d5"}},"required":["type","acs_url"],"descriptionNode":"$L4d6"},{"title":"three_ds_fingerprint","type":"object","description":"Information about the 3DS fingerprint challenge.","properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:properties:type:enum","description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L4d7"},"fingerprint_url":{"type":"string","format":"url","description":"The URL of the fingerprint. (Used only internally by Revolut.)","descriptionNode":"$L4d8"},"fingerprint_data":{"type":"string","format":"JSON","description":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)","descriptionNode":"$L4d9"}},"required":["type","fingerprint_url","fingerprint_data"],"descriptionNode":"$L4da"}],"descriptionNode":"$L4db"}},"required":["id","order_id","payment_method"]},"examples":{"revolut_pay_saved":{"summary":"Payment completed via Revolut Pay (saved details)","value":{"id":"64905d4b-a205-aac3-a5ef-dab978b1b7ee","order_id":"64905d0f-3f95-a2ac-91ea-57c77f9dbe69","state":"completed","payment_method":{"type":"revolut_pay","subtype":"revolut_account","id":"648334a8-9546-a983-a81a-efc6d5bdd0be"}}},"revolut_pay_not_saved":{"summary":"Payment completed via Revolut Pay (not saved details)","value":{"id":"64905d4b-a205-aac3-a5ef-dab978b1b7ee","order_id":"64905d0f-3f95-a2ac-91ea-57c77f9dbe69","state":"completed","payment_method":{"type":"revolut_pay","subtype":"revolut_account"}}},"card_payment_saved":{"summary":"Payment completed via card (saved details)","value":{"id":"63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b","order_id":"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a","state":"completed","payment_method":{"type":"card","brand":"visa","last_four":"1234","id":"64a28499-05c5-af30-bbf9-9c1b028e00b8"}}},"card_payment_not_saved":{"summary":"Payment completed via card (not saved details)","value":{"id":"63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b","order_id":"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a","state":"completed","payment_method":{"type":"card","brand":"visa","last_four":"1234"}}}}}},"descriptionNode":"$L4dc"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L4dd"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L4de"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L4df"},"401":{"description":"Unauthorized","descriptionNode":"$L4e0"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L4e1"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L4e2"},"code":{"type":"integer"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533,"code":1024}}}}},"descriptionNode":"$L4e3"}},"requestBody":"$undefined","variantLabels":["Payment completed via Revolut Pay (saved details)","Payment completed via Revolut Pay (not saved details)","Payment completed via card (saved details)","Payment completed via card (not saved details)"],"children":["$L4e4","$L4e5"]}]}],false]}] 4e4:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-payment-details","children":[["$L4e6","$undefined"],["$","$L15",null,{"id":"retrieve-payment-details"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-payment-details.md"}]]}]}],"$undefined"]}] 4eb:T8ad,
fetch("https://merchant.revolut.com/api/payments/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
4ec:Td95,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/payments/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
4ed:T6c1,
import requests

url = "https://merchant.revolut.com/api/payments/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
4ee:T1539,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/payments/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
4ef:T1459,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/payments/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
4f0:T8b5,
fetch("https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
4f1:Td9d,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
4f2:T6c9,
import requests

url = "https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
4f3:T1541,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
4f4:T1461,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
4e5:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L4e7",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L4e8"},{"name":"payment_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L4e9"},"required":true,"description":"The ID of the `Payment` object.","descriptionNode":"$L4ea"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$2c:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/payments/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/payments/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/payments/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$4eb","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/payments/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$4ec","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/payments/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$4ed","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/payments/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$4ee","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/payments/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$4ef","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$4f0","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$4f1","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$4f2","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$4f3","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/payments/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$4f4","tokens":[{"marker":"__RP_TOK_0__","paramName":"payment_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:payment_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/payments/{payment_id}","parameters":["$4e5:props:children:0:props:children:1:props:parameters:0","$4e5:props:children:0:props:children:1:props:parameters:1"]}],"$L4f5"],"$L4f6","$L4f7"]}]]}] 4f8:T28be,
{
  "id": "6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae",
  "full_name": "Example Customer",
  "business_name": "Example Business",
  "email": "example.customer@example.com",
  "phone": "+441234567890",
  "date_of_birth": "1990-01-01",
  "created_at": "2020-06-24T12:03:39.979397Z",
  "updated_at": "2020-06-25T10:03:39.134417Z",
  "payment_methods": [
    {
      "id": "648334a8-9546-a983-a81a-efc6d5bdd0be",
      "type": "REVOLUT_PAY",
      "saved_for": "MERCHANT",
      "method_details": {
        "created_at": "2023-06-09T14:18:16.577888Z"
      }
    },
    {
      "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420",
      "type": "CARD",
      "saved_for": "CUSTOMER",
      "method_details": {
        "bin": "459765",
        "last4": "6578",
        "expiry_month": 2,
        "expiry_year": 2025,
        "cardholder_name": "Example Customer",
        "brand": "VISA",
        "funding": "DEBIT",
        "issuer": "EXAMPLE ISSUER",
        "issuer_country": "GB",
        "billing_address": {
          "street_line_1": "7, Westferry Circus",
          "street_line_2": "Columbus Building",
          "postcode": "E144HD",
          "city": "London",
          "region": "Greater London",
          "country_code": "GB"
        },
        "created_at": "2023-03-24T14:15:22Z"
      }
    }
  ]
}
3f7:["$","div","200-application/json-retrieved_customer",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$4f8"}}]}]],"$L4f9"]}] 3f8:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 47f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L4fa","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 484:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 485:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 486:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 487:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 488:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 489:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 48a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 48b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 48c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 48d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 48e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 48f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 490:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 491:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 492:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 493:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 494:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 495:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 4f5:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L4fb"}}}] 4f6:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 4f7:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"revolut_pay_saved","label":"Payment completed via Revolut Pay (saved details)","rawValue":"$2c:props:children:0:props:children:props:responses:200:content:application/json:examples:revolut_pay_saved:value","block":"$L4fc"},{"key":"revolut_pay_not_saved","label":"Payment completed via Revolut Pay (not saved details)","rawValue":"$2c:props:children:0:props:children:props:responses:200:content:application/json:examples:revolut_pay_not_saved:value","block":"$L4fd"},{"key":"card_payment_saved","label":"Payment completed via card (saved details)","rawValue":"$2c:props:children:0:props:children:props:responses:200:content:application/json:examples:card_payment_saved:value","block":"$L4fe"},{"key":"card_payment_not_saved","label":"Payment completed via card (not saved details)","rawValue":"$2c:props:children:0:props:children:props:responses:200:content:application/json:examples:card_payment_not_saved:value","block":"$L4ff"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$2c:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L500"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$2c:props:children:0:props:children:props:responses:404:content:application/json:examples:example-1:value","block":"$L501"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 502:T512,{ "id": "6c7c97a8-cfc1-4cf3-8b38-26a74fdf1fae", "full_name": "Example Customer", "business_name": "Example Business", "email": "example.customer@example.com", "phone": "+441234567890", "date_of_birth": "1990-01-01", "created_at": "2020-06-24T12:03:39.979397Z", "updated_at": "2020-06-25T10:03:39.134417Z", "payment_methods": [ { "id": "648334a8-9546-a983-a81a-efc6d5bdd0be", "type": "REVOLUT_PAY", "saved_for": "MERCHANT", "method_details": { "created_at": "2023-06-09T14:18:16.577888Z" } }, { "id": "edef3ba4-60a0-4df3-8f12-e5fc858c2420", "type": "CARD", "saved_for": "CUSTOMER", "method_details": { "bin": "459765", "last4": "6578", "expiry_month": 2, "expiry_year": 2025, "cardholder_name": "Example Customer", "brand": "VISA", "funding": "DEBIT", "issuer": "EXAMPLE ISSUER", "issuer_country": "GB", "billing_address": { "street_line_1": "7, Westferry Circus", "street_line_2": "Columbus Building", "postcode": "E144HD", "city": "London", "region": "Greater London", "country_code": "GB" }, "created_at": "2023-03-24T14:15:22Z" } } ] }4f9:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$502"}]}] 496:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 497:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 498:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 499:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 49a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 49b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 49c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 49d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 49e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 49f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 4a0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 4a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location object represents merchant locations depending on type."}]]}] 4a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 4a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 4a7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve a list of locations registered for the merchant."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],["$","div",null,{"className":"_25vm6y2","children":"Default behavior"}],["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Without the ",["$","code","code-0",{"children":"type"}]," query parameter, this endpoint returns only ",["$","strong","strong-0",{"children":"online"}]," locations by default. To retrieve physical locations, you must explicitly specify ",["$","code","code-1",{"children":"type=physical"}]," in the query parameters."]}]}]]}]]}] 4a8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 4a9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filter the list by location type."}]]}] 20:["$","$51","retrieve-payment-list",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"List of payments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment.","descriptionNode":"$L503"},"order_id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L504"},"payment_method":{"type":"object","description":"The payment method used to pay for the order.","discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:discriminator","oneOf":[{"discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:discriminator","oneOf":[{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L505"},"subtype":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:properties:subtype:enum","description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L506"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L507"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:required"},{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L508"},"subtype":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:properties:subtype:enum","description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L509"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L50a"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L50b"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L50c"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:required"}]},{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:1:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L50d"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L50e"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L50f"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L510"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:1:required"},{"type":"object","description":"Object containing details of a SEPA Direct Debit payment.\n\n:::info\nFor more information, see: [SEPA Direct Debit server-to-server integration](https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server)\n:::","properties":{"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned when the payment method is saved for the merchant.\n:::","descriptionNode":"$L511"},"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:2:properties:type:enum","description":"The type of payment method used to pay for the order.\n\nAvailable values:\n\n| Payment method `type` | Description |\n| --------------------- | ----------- |\n| `apple_pay` | The customer paid the order using Apple Pay. |\n| `card` | The customer paid the order using their credit or debit card. |\n| `google_pay` | The customer paid the order using Google Pay. |\n| `revolut_pay_card` | The customer paid the order via Revolut Pay using their credit or debit card. |\n| `revolut_pay_account` | The customer paid the order via Revolut Pay using their Revolut account. |\n| `sepa_direct_debit` | The customer paid the order using SEPA Direct Debit. |","descriptionNode":"$L512"},"debtor_iban_last_four":{"type":"string","description":"The last four digits of the debtor's IBAN.","minLength":4,"maxLength":4,"descriptionNode":"$L513"},"debtor_name":{"type":"string","description":"The full name of the debtor as provided in the mandate.","descriptionNode":"$L514"},"mandate_reference":{"type":"string","description":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers.","descriptionNode":"$L515"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:2:required","descriptionNode":"$L516"}],"descriptionNode":"$L517"},"token":{"type":"string","format":"uuid","description":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers. \n\nThe token is only valid for a limited time.","descriptionNode":"$L518"},"amount":{"type":"integer","format":"int64","minimum":0,"description":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state.\n\n| Payment type | State | Amount value |\n|--------------|-------|--------------|\n| Standard payment | Any | Total payment amount |\n| Pre-authorised payment | `authorisation_started` | New amount being authorised (during increment processing) |\n| Pre-authorised payment | `authorised` | Currently authorised amount (equals `authorised_amount`) |\n\n:::info\nFor pre-authorised payments, see the `authorised_amount` field for tracking the currently authorised amount separately.\n:::","examples":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:amount:examples","descriptionNode":"$L519"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L51a"},"state":{"type":"string","description":"The status of the payment.","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L51b"},"decline_reason":{"type":"string","description":"The reason for a `failed` or `declined` payment.\n\nA failed or declined payment can result from multiple reasons. To learn more, check our [failure reasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:decline_reason:enum","descriptionNode":"$L51c"},"authentication_challenge":{"type":"object","description":"Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: [3D Secure overview](https://developer.revolut.com/docs/guides/merchant/reference/3d-secure).\n\nOnly returned if the payment's state is `authentication_challenge`.","discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:discriminator","oneOf":[{"title":"three_ds","type":"object","description":"Information about the 3DS challenge.","properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:properties:type:enum","description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L51d"},"acs_url":{"type":"string","format":"url","description":"The URL of the authentication challenge.","descriptionNode":"$L51e"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:required","descriptionNode":"$L51f"},{"title":"three_ds_fingerprint","type":"object","description":"Information about the 3DS fingerprint challenge.","properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:properties:type:enum","description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L520"},"fingerprint_url":{"type":"string","format":"url","description":"The URL of the fingerprint. (Used only internally by Revolut.)","descriptionNode":"$L521"},"fingerprint_data":{"type":"string","format":"JSON","description":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)","descriptionNode":"$L522"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:1:required","descriptionNode":"$L523"}],"descriptionNode":"$L524"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:required"}},"examples":{"payment_list":{"summary":"List of payments (failed card attempt, SEPA Direct Debit retry)","value":[{"id":"63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b","token":"294358bf-3818-49b2-aacc-7ca971f52695","order_id":"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a","state":"declined","amount":100,"currency":"EUR","payment_method":{"type":"card","card_brand":"visa","funding":"credit","card_last_four":"1234"}},{"id":"649adc44-3e86-a832-879c-2f6d0255dd4c","token":"8061e645-35e0-42bb-8318-603abaeab7b7","order_id":"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a","state":"declined","amount":100,"currency":"EUR","decline_reason":"insufficient_funds","payment_method":{"type":"revolut_pay","subtype":"revolut_account"}},{"id":"663387f1-1c2e-a295-b143-9f1fb1eec175","token":"663387f1-c91e-a464-908a-1cc4548ebc6a","order_id":"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a","state":"pending","amount":100,"currency":"EUR","payment_method":{"type":"sepa_direct_debit","debtor_iban_last_four":"1234","debtor_name":"John Doe","mandate_reference":"A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4"}}]}}}},"descriptionNode":"$L525"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L526"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L527"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L528"}}},"examples":{"default":{"value":{"code":"bad_request","message":"Could not parse JSON","timestamp":1720528890647}}}}},"descriptionNode":"$L529"},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L52a"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L52b"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L52c"}}},"examples":{"default":{"value":{"code":"unauthenticated","message":"Authentication failed","timestamp":1720528890647}}}}},"descriptionNode":"$L52d"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"examples":[{"code":"not_found","message":"Order with id b8883ab5-964a-4329-aa44-4d3c76cf3f54 was not found","timestamp":1720528890647}],"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L52e"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L52f"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L530"}}}}},"descriptionNode":"$L531"}},"requestBody":"$undefined","variantLabels":[],"children":["$L532","$L533"]}]}],false]}] 532:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-payment-list","children":[["$L534","$undefined"],["$","$L15",null,{"id":"retrieve-payment-list"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-payment-list.md"}]]}]}],"$undefined"]}] 539:T8b4,
fetch("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
53a:Td9c,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
53b:T6c8,
import requests

url = "https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
53c:T1540,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
53d:T1460,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
53e:T8bc,
fetch("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
53f:Tda4,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
540:T6d0,
import requests

url = "https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
541:T1548,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
542:T1468,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
533:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L535",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L536"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L537"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L538"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$20:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$539","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$53a","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$53b","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$53c","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$53d","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$53e","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$53f","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$540","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$541","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$542","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/orders/{order_id}/payments","parameters":["$533:props:children:0:props:children:1:props:parameters:0","$533:props:children:0:props:children:1:props:parameters:1"]}],"$L543"],"$L544","$L545"]}]]}] 4b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L546","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 4e6:"Retrieve payment details" 543:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L547"}}}] 544:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 545:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"payment_list","label":"List of payments (failed card attempt, SEPA Direct Debit retry)","rawValue":"$20:props:children:0:props:children:props:responses:200:content:application/json:examples:payment_list:value","block":"$L548"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$20:props:children:0:props:children:props:responses:400:content:application/json:examples:default:value","block":"$L549"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$20:props:children:0:props:children:props:responses:401:content:application/json:examples:default:value","block":"$L54a"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L54b"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 4ba:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 4bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 4bc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 4bd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 4be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 4bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 4c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 4c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 4c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 4c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 4c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 4c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 4c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 4c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 4c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned when the payment method is saved for the merchant."]}]}]]}]]}] 54c:T474,
{
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_COMPLETED",
    "ORDER_AUTHORISED"
  ]
}
433:["$","div","request-application/json-example_webhook_request",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$54c"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_COMPLETED\",\n \"ORDER_AUTHORISED\"\n ]\n}"}]}]]}] 54d:T69c,
{
  "id": "c6b981f4-53b3-47d5-9b24-4f87af1160eb",
  "url": "https://example.com/webhooks",
  "events": [
    "ORDER_AUTHORISED",
    "ORDER_COMPLETED"
  ],
  "signing_secret": "wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK"
}
434:["$","div","200-application/json-created_webhook",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$54d"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"c6b981f4-53b3-47d5-9b24-4f87af1160eb\",\n \"url\": \"https://example.com/webhooks\",\n \"events\": [\n \"ORDER_AUTHORISED\",\n \"ORDER_COMPLETED\"\n ],\n \"signing_secret\": \"wsk_4jETWMz1g1b37gCONjNp84t2KSSIT7dK\"\n}"}]}]]}] 435:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 54e:T498,
{
  "event": "ORDER_COMPLETED",
  "order_id": "6634c172-3398-ac93-aee9-50de0282e3ac",
  "merchant_order_ext_ref": "Example reference #123"
}
43a:["$","div","request-application/json-order_event",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$54e"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"ORDER_COMPLETED\",\n \"order_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\",\n \"merchant_order_ext_ref\": \"Example reference #123\"\n}"}]}]]}] 54f:T499,
{
  "event": "SUBSCRIPTION_INITIATED",
  "subscription_id": "550e8400-e29b-41d4-a716-446655440000",
  "external_reference": "ext-ref-12345"
}
43b:["$","div","request-application/json-subscription_event",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$54f"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"SUBSCRIPTION_INITIATED\",\n \"subscription_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"external_reference\": \"ext-ref-12345\"\n}"}]}]]}] 550:T4b7,
{
  "event": "ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED",
  "order_id": "6634c172-3398-ac93-aee9-50de0282e3ac",
  "incremental_authorisation_ext_reference": "CHG-67890"
}
43c:["$","div","request-application/json-incremental_auth_authorised",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$550"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"ORDER_INCREMENTAL_AUTHORISATION_AUTHORISED\",\n \"order_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\",\n \"incremental_authorisation_ext_reference\": \"CHG-67890\"\n}"}]}]]}] 551:T4b5,
{
  "event": "ORDER_INCREMENTAL_AUTHORISATION_DECLINED",
  "order_id": "6634c172-3398-ac93-aee9-50de0282e3ac",
  "incremental_authorisation_ext_reference": "CHG-67891"
}
43d:["$","div","request-application/json-incremental_auth_declined",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$551"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"ORDER_INCREMENTAL_AUTHORISATION_DECLINED\",\n \"order_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\",\n \"incremental_authorisation_ext_reference\": \"CHG-67891\"\n}"}]}]]}] 552:T4b3,
{
  "event": "ORDER_INCREMENTAL_AUTHORISATION_FAILED",
  "order_id": "6634c172-3398-ac93-aee9-50de0282e3ac",
  "incremental_authorisation_ext_reference": "CHG-67892"
}
43e:["$","div","request-application/json-incremental_auth_failed",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$552"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"ORDER_INCREMENTAL_AUTHORISATION_FAILED\",\n \"order_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\",\n \"incremental_authorisation_ext_reference\": \"CHG-67892\"\n}"}]}]]}] 553:T4ac,
{
  "event": "ORDER_PAYMENT_AUTHORISATION_STARTED",
  "order_id": "6634c172-3398-ac93-aee9-50de0282e3ac",
  "merchant_order_ext_ref": "Example reference #123"
}
43f:["$","div","request-application/json-authorisation_started",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$553"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"ORDER_PAYMENT_AUTHORISATION_STARTED\",\n \"order_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\",\n \"merchant_order_ext_ref\": \"Example reference #123\"\n}"}]}]]}] 440:["$","div","request-application/json-payout_event",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"event\": \"PAYOUT_COMPLETED\",\n  \"payout_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"PAYOUT_COMPLETED\",\n \"payout_id\": \"6634c172-3398-ac93-aee9-50de0282e3ac\"\n}"}]}]]}] 441:["$","div","request-application/json-dispute_event",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"event\": \"DISPUTE_ACTION_REQUIRED\",\n  \"dispute_id\": \"ab934829-e4ba-4e7f-8a21-365cad85c763\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"event\": \"DISPUTE_ACTION_REQUIRED\",\n \"dispute_id\": \"ab934829-e4ba-4e7f-8a21-365cad85c763\"\n}"}]}]]}] 442:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 4c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}],"\n",["$","p","p-1",{"children":"Available values:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":["Payment method ",["$","code","code-0",{"children":"type"}]],"className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"apple_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Apple Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"google_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Google Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_account"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their Revolut account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"sepa_direct_debit"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using SEPA Direct Debit.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 4ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the debtor's IBAN."}]]}] 4cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the debtor as provided in the mandate."}]]}] 4cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers."}]]}] 4cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Object containing details of a SEPA Direct Debit payment."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server","target":"_blank","rel":"noreferrer","children":"SEPA Direct Debit server-to-server integration"}]]}]}]]}]]}] 4ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment method used to pay for the order."}]]}] 4cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 4d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Payment type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"State","className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":"Amount value","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":"Standard payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Any","className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"Total payment amount","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorisation_started"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"New amount being authorised (during increment processing)","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorised"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":["Currently authorised amount (equals ",["$","code","code-0",{"children":"authorised_amount"}],")"],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For pre-authorised payments, see the ",["$","code","code-0",{"children":"authorised_amount"}]," field for tracking the currently authorised amount separately."]}]}]]}]]}] 4d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 4d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The status of the payment."}]]}] 4d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"failed"}]," or ",["$","code","code-1",{"children":"declined"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn more, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"failure reasons"}],"."]}]]}] 4d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 4d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the authentication challenge."}]]}] 4d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS challenge."}]]}] 4d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 4d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the fingerprint. (Used only internally by Revolut.)"}]]}] 4d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)"}]]}] 4da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS fingerprint challenge."}]]}] 4db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/3d-secure","target":"_blank","rel":"noreferrer","children":"3D Secure overview"}],"."]}],"\n",["$","p","p-1",{"children":["Only returned if the payment's state is ",["$","code","code-0",{"children":"authentication_challenge"}],"."]}]]}] 4dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Payment details"}]]}] 4dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 4de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 4df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 4e0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 4e1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 4e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 4e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 4e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve information about a specific payment, based on the payment's ID."}],"\n",["$","p","p-1",{"children":"Use this endpoint to track a payment's lifecycle, for example:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["When you develop a ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/checkout-with-saved-card","target":"_blank","rel":"noreferrer","children":"1-click checkout process"}]]}],"\n",["$","li","li-1",{"children":["When you build a ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/subscription-management","target":"_blank","rel":"noreferrer","children":"subscription management system"}]]}],"\n"]}]]}] 4e8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 4e9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 4ea:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Payment"}]," object."]}]]}] 534:"Retrieve payment list of an order" 4fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L554","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 503:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 504:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 505:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 506:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 507:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 508:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 509:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 50a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 50b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 50c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 50d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 50e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 50f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 510:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 511:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned when the payment method is saved for the merchant."]}]}]]}]]}] 512:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}],"\n",["$","p","p-1",{"children":"Available values:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":["Payment method ",["$","code","code-0",{"children":"type"}]],"className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"apple_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Apple Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"google_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Google Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_account"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their Revolut account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"sepa_direct_debit"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using SEPA Direct Debit.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 513:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the debtor's IBAN."}]]}] 514:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the debtor as provided in the mandate."}]]}] 515:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers."}]]}] 516:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Object containing details of a SEPA Direct Debit payment."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server","target":"_blank","rel":"noreferrer","children":"SEPA Direct Debit server-to-server integration"}]]}]}]]}]]}] 517:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment method used to pay for the order."}]]}] 518:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 519:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Payment type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"State","className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":"Amount value","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":"Standard payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Any","className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"Total payment amount","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorisation_started"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"New amount being authorised (during increment processing)","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorised"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":["Currently authorised amount (equals ",["$","code","code-0",{"children":"authorised_amount"}],")"],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For pre-authorised payments, see the ",["$","code","code-0",{"children":"authorised_amount"}]," field for tracking the currently authorised amount separately."]}]}]]}]]}] 51a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 51b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The status of the payment."}]]}] 51c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"failed"}]," or ",["$","code","code-1",{"children":"declined"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn more, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"failure reasons"}],"."]}]]}] 51d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 51e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the authentication challenge."}]]}] 51f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS challenge."}]]}] 520:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 521:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the fingerprint. (Used only internally by Revolut.)"}]]}] 522:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)"}]]}] 523:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS fingerprint challenge."}]]}] 524:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/3d-secure","target":"_blank","rel":"noreferrer","children":"3D Secure overview"}],"."]}],"\n",["$","p","p-1",{"children":["Only returned if the payment's state is ",["$","code","code-0",{"children":"authentication_challenge"}],"."]}]]}] 525:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"List of payments"}]]}] 526:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 527:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 528:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 529:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 52a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 52b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 52c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 52d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthenticated"}]]}] 52e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 52f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 530:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 531:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 535:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve a list of payments for a specific order, based on the order's ID."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"This endpoint is part of a new API, pay attention to the different endpoint URL."}]}]]}],"\n",["$","p","p-1",{"children":"Use this endpoint to retrieve payment details for saved payment methods to make merchant and customer initiated transactions. For more information, see:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/checkout-with-saved-card","target":"_blank","rel":"noreferrer","children":"Speed up customer checkout by using saved card details"}]}],"\n",["$","li","li-1",{"children":["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/subscription-management","target":"_blank","rel":"noreferrer","children":"Manage subscriptions"}]}],"\n"]}]]}] 536:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 537:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 538:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 547:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L555","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 556:T67f,
{
  "id": "8d9a7125-805f-40f3-a405-bc89765db996",
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
480:["$","div","200-application/json-example_online_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$556"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"8d9a7125-805f-40f3-a405-bc89765db996\",\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}"}]}]]}] 557:T1b29,
{
  "id": "8d9a7125-805f-40f3-a405-bc89765db996",
  "name": "Example Street Store",
  "type": "physical",
  "details": {
    "address": {
      "street_line_1": "123 Example Street",
      "city": "Example city",
      "postcode": "12345",
      "country_code": "GB"
    },
    "geo_location": {
      "lat": 12.3456,
      "lon": -12.3456
    },
    "opening_hours": {
      "monday": [
        {
          "from": "09:00",
          "to": "15:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "10:00",
          "to": "13:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ]
    }
  }
}
481:["$","div","200-application/json-example_physical_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$557"}}]}]],"$L558"]}] 482:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 483:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 558:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"8d9a7125-805f-40f3-a405-bc89765db996\",\n \"name\": \"Example Street Store\",\n \"type\": \"physical\",\n \"details\": {\n \"address\": {\n \"street_line_1\": \"123 Example Street\",\n \"city\": \"Example city\",\n \"postcode\": \"12345\",\n \"country_code\": \"GB\"\n },\n \"geo_location\": {\n \"lat\": 12.3456,\n \"lon\": -12.3456\n },\n \"opening_hours\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"15:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"13:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ]\n }\n }\n}"}]}] 4b7:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 559:T27d5,
[
  {
    "id": "8d9a7125-805f-40f3-a405-bc89765db996",
    "name": "Grocery website",
    "type": "online",
    "details": {
      "domain": "groceries.example.com"
    }
  },
  {
    "id": "066223df-d5a8-42f0-b3ce-688c7a76f9a8",
    "name": "Cars website",
    "type": "online",
    "details": {
      "domain": "cars.example.com"
    }
  },
  {
    "id": "299050a4-cc7a-44b0-8b2b-7cd1e335ef38",
    "name": "Example Street Store",
    "type": "physical",
    "details": {
      "address": {
        "street_line_1": "123 Example Street",
        "city": "Example city",
        "postcode": "12345",
        "country_code": "GB"
      },
      "geo_location": {
        "lat": 12.3456,
        "lon": -12.3456
      },
      "opening_hours": {
        "monday": [
          {
            "from": "09:00",
            "to": "15:00"
          },
          {
            "from": "16:00",
            "to": "18:00"
          }
        ],
        "tuesday": [
          {
            "from": "10:00",
            "to": "13:00"
          },
          {
            "from": "16:00",
            "to": "18:00"
          }
        ]
      }
    }
  }
]
4b9:["$","div","200-application/json-list_of_locations",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$559"}}]}]],"$L55a"]}] 55b:T479,[ { "id": "8d9a7125-805f-40f3-a405-bc89765db996", "name": "Grocery website", "type": "online", "details": { "domain": "groceries.example.com" } }, { "id": "066223df-d5a8-42f0-b3ce-688c7a76f9a8", "name": "Cars website", "type": "online", "details": { "domain": "cars.example.com" } }, { "id": "299050a4-cc7a-44b0-8b2b-7cd1e335ef38", "name": "Example Street Store", "type": "physical", "details": { "address": { "street_line_1": "123 Example Street", "city": "Example city", "postcode": "12345", "country_code": "GB" }, "geo_location": { "lat": 12.3456, "lon": -12.3456 }, "opening_hours": { "monday": [ { "from": "09:00", "to": "15:00" }, { "from": "16:00", "to": "18:00" } ], "tuesday": [ { "from": "10:00", "to": "13:00" }, { "from": "16:00", "to": "18:00" } ] } } } ]55a:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$55b"}]}] 4fa:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 55c:T8df,
{
  "id": "64905d4b-a205-aac3-a5ef-dab978b1b7ee",
  "order_id": "64905d0f-3f95-a2ac-91ea-57c77f9dbe69",
  "state": "completed",
  "payment_method": {
    "type": "revolut_pay",
    "subtype": "revolut_account",
    "id": "648334a8-9546-a983-a81a-efc6d5bdd0be"
  }
}
4fc:["$","div","200-application/json-revolut_pay_saved",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$55c"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"64905d4b-a205-aac3-a5ef-dab978b1b7ee\",\n \"order_id\": \"64905d0f-3f95-a2ac-91ea-57c77f9dbe69\",\n \"state\": \"completed\",\n \"payment_method\": {\n \"type\": \"revolut_pay\",\n \"subtype\": \"revolut_account\",\n \"id\": \"648334a8-9546-a983-a81a-efc6d5bdd0be\"\n }\n}"}]}]]}] 55d:T7b3,
{
  "id": "64905d4b-a205-aac3-a5ef-dab978b1b7ee",
  "order_id": "64905d0f-3f95-a2ac-91ea-57c77f9dbe69",
  "state": "completed",
  "payment_method": {
    "type": "revolut_pay",
    "subtype": "revolut_account"
  }
}
4fd:["$","div","200-application/json-revolut_pay_not_saved",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$55d"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"64905d4b-a205-aac3-a5ef-dab978b1b7ee\",\n \"order_id\": \"64905d0f-3f95-a2ac-91ea-57c77f9dbe69\",\n \"state\": \"completed\",\n \"payment_method\": {\n \"type\": \"revolut_pay\",\n \"subtype\": \"revolut_account\"\n }\n}"}]}]]}] 55e:T9de,
{
  "id": "63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b",
  "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a",
  "state": "completed",
  "payment_method": {
    "type": "card",
    "brand": "visa",
    "last_four": "1234",
    "id": "64a28499-05c5-af30-bbf9-9c1b028e00b8"
  }
}
4fe:["$","div","200-application/json-card_payment_saved",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$55e"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b\",\n \"order_id\": \"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a\",\n \"state\": \"completed\",\n \"payment_method\": {\n \"type\": \"card\",\n \"brand\": \"visa\",\n \"last_four\": \"1234\",\n \"id\": \"64a28499-05c5-af30-bbf9-9c1b028e00b8\"\n }\n}"}]}]]}] 55f:T8b2,
{
  "id": "63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b",
  "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a",
  "state": "completed",
  "payment_method": {
    "type": "card",
    "brand": "visa",
    "last_four": "1234"
  }
}
4ff:["$","div","200-application/json-card_payment_not_saved",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$55f"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b\",\n \"order_id\": \"63dd0e3f-7b84-ab5c-927c-1a06f7c9583a\",\n \"state\": \"completed\",\n \"payment_method\": {\n \"type\": \"card\",\n \"brand\": \"visa\",\n \"last_four\": \"1234\"\n }\n}"}]}]]}] 500:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 560:T471,
{
  "errorId": "94b27660-fdda-49ec-8b85-cd46a068ade0",
  "timestamp": 1601296792533,
  "code": 1024
}
501:["$","div","404-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$560"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533,\n \"code\": 1024\n}"}]}]]}] 546:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 561:T261d,
[
  {
    "id": "63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b",
    "token": "294358bf-3818-49b2-aacc-7ca971f52695",
    "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a",
    "state": "declined",
    "amount": 100,
    "currency": "EUR",
    "payment_method": {
      "type": "card",
      "card_brand": "visa",
      "funding": "credit",
      "card_last_four": "1234"
    }
  },
  {
    "id": "649adc44-3e86-a832-879c-2f6d0255dd4c",
    "token": "8061e645-35e0-42bb-8318-603abaeab7b7",
    "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a",
    "state": "declined",
    "amount": 100,
    "currency": "EUR",
    "decline_reason": "insufficient_funds",
    "payment_method": {
      "type": "revolut_pay",
      "subtype": "revolut_account"
    }
  },
  {
    "id": "663387f1-1c2e-a295-b143-9f1fb1eec175",
    "token": "663387f1-c91e-a464-908a-1cc4548ebc6a",
    "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a",
    "state": "pending",
    "amount": 100,
    "currency": "EUR",
    "payment_method": {
      "type": "sepa_direct_debit",
      "debtor_iban_last_four": "1234",
      "debtor_name": "John Doe",
      "mandate_reference": "A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4"
    }
  }
]
548:["$","div","200-application/json-payment_list",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$561"}}]}]],"$L562"]}] 563:T46a,
{
  "code": "bad_request",
  "message": "Could not parse JSON",
  "timestamp": 1720528890647
}
549:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$563"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"bad_request\",\n \"message\": \"Could not parse JSON\",\n \"timestamp\": 1720528890647\n}"}]}]]}] 564:T46f,
{
  "code": "unauthenticated",
  "message": "Authentication failed",
  "timestamp": 1720528890647
}
54a:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$564"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"unauthenticated\",\n \"message\": \"Authentication failed\",\n \"timestamp\": 1720528890647\n}"}]}]]}] 565:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
54b:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$565"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 566:T49d,[ { "id": "63dd0e4a-42c4-a1a6-ab2c-6ac9d255ca4b", "token": "294358bf-3818-49b2-aacc-7ca971f52695", "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a", "state": "declined", "amount": 100, "currency": "EUR", "payment_method": { "type": "card", "card_brand": "visa", "funding": "credit", "card_last_four": "1234" } }, { "id": "649adc44-3e86-a832-879c-2f6d0255dd4c", "token": "8061e645-35e0-42bb-8318-603abaeab7b7", "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a", "state": "declined", "amount": 100, "currency": "EUR", "decline_reason": "insufficient_funds", "payment_method": { "type": "revolut_pay", "subtype": "revolut_account" } }, { "id": "663387f1-1c2e-a295-b143-9f1fb1eec175", "token": "663387f1-c91e-a464-908a-1cc4548ebc6a", "order_id": "63dd0e3f-7b84-ab5c-927c-1a06f7c9583a", "state": "pending", "amount": 100, "currency": "EUR", "payment_method": { "type": "sepa_direct_debit", "debtor_iban_last_four": "1234", "debtor_name": "John Doe", "mandate_reference": "A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4" } } ]562:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$566"}]}] 554:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 555:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 1f:["$","$51","pay-order",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"Payment initiated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the payment.","descriptionNode":"$L567"},"order_id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L568"},"payment_method":{"type":"object","description":"The payment method used to pay for the order.","discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:discriminator","oneOf":[{"discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:discriminator","oneOf":[{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L569"},"subtype":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:properties:subtype:enum","description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L56a"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L56b"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:0:required"},{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L56c"},"subtype":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:properties:subtype:enum","description":"Indicates whether the customer used their card or Revolut account via Revolut Pay.","descriptionNode":"$L56d"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L56e"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L56f"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L570"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:0:oneOf:1:required"}]},{"properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:1:properties:type:enum","description":"The type of payment method used to pay for the order.","descriptionNode":"$L571"},"brand":{"type":"string","description":"The type of the card.","descriptionNode":"$L572"},"last_four":{"type":"string","description":"The last four digits of the card number.","descriptionNode":"$L573"},"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned if the payment method is saved.\n:::","descriptionNode":"$L574"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:1:required"},{"type":"object","description":"Object containing details of a SEPA Direct Debit payment.\n\n:::info\nFor more information, see: [SEPA Direct Debit server-to-server integration](https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server)\n:::","properties":{"id":{"type":"string","format":"uuid","description":"ID of the saved payment method.\n\n:::note\nThe `id` parameter is only returned when the payment method is saved for the merchant.\n:::","descriptionNode":"$L575"},"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:2:properties:type:enum","description":"The type of payment method used to pay for the order.\n\nAvailable values:\n\n| Payment method `type` | Description |\n| --------------------- | ----------- |\n| `apple_pay` | The customer paid the order using Apple Pay. |\n| `card` | The customer paid the order using their credit or debit card. |\n| `google_pay` | The customer paid the order using Google Pay. |\n| `revolut_pay_card` | The customer paid the order via Revolut Pay using their credit or debit card. |\n| `revolut_pay_account` | The customer paid the order via Revolut Pay using their Revolut account. |\n| `sepa_direct_debit` | The customer paid the order using SEPA Direct Debit. |","descriptionNode":"$L576"},"debtor_iban_last_four":{"type":"string","description":"The last four digits of the debtor's IBAN.","minLength":4,"maxLength":4,"descriptionNode":"$L577"},"debtor_name":{"type":"string","description":"The full name of the debtor as provided in the mandate.","descriptionNode":"$L578"},"mandate_reference":{"type":"string","description":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers.","descriptionNode":"$L579"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payment_method:oneOf:2:required","descriptionNode":"$L57a"}],"descriptionNode":"$L57b"},"token":{"type":"string","format":"uuid","description":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers. \n\nThe token is only valid for a limited time.","descriptionNode":"$L57c"},"amount":{"type":"integer","format":"int64","minimum":0,"description":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state.\n\n| Payment type | State | Amount value |\n|--------------|-------|--------------|\n| Standard payment | Any | Total payment amount |\n| Pre-authorised payment | `authorisation_started` | New amount being authorised (during increment processing) |\n| Pre-authorised payment | `authorised` | Currently authorised amount (equals `authorised_amount`) |\n\n:::info\nFor pre-authorised payments, see the `authorised_amount` field for tracking the currently authorised amount separately.\n:::","examples":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:amount:examples","descriptionNode":"$L57d"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L57e"},"state":{"type":"string","description":"The status of the payment.","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L57f"},"decline_reason":{"type":"string","description":"The reason for a `failed` or `declined` payment.\n\nA failed or declined payment can result from multiple reasons. To learn more, check our [failure reasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:decline_reason:enum","descriptionNode":"$L580"},"authentication_challenge":{"type":"object","description":"Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: [3D Secure overview](https://developer.revolut.com/docs/guides/merchant/reference/3d-secure).\n\nOnly returned if the payment's state is `authentication_challenge`.","discriminator":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:discriminator","oneOf":[{"title":"three_ds","type":"object","description":"Information about the 3DS challenge.","properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:properties:type:enum","description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L581"},"acs_url":{"type":"string","format":"url","description":"The URL of the authentication challenge.","descriptionNode":"$L582"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:required","descriptionNode":"$L583"},{"title":"three_ds_fingerprint","type":"object","description":"Information about the 3DS fingerprint challenge.","properties":{"type":{"type":"string","enum":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:0:properties:type:enum","description":"Type of the authentication challenge the payment triggers.","descriptionNode":"$L584"},"fingerprint_url":{"type":"string","format":"url","description":"The URL of the fingerprint. (Used only internally by Revolut.)","descriptionNode":"$L585"},"fingerprint_data":{"type":"string","format":"JSON","description":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)","descriptionNode":"$L586"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:authentication_challenge:oneOf:1:required","descriptionNode":"$L587"}],"descriptionNode":"$L588"}},"required":"$2c:props:children:0:props:children:props:responses:200:content:application/json:schema:required"},"examples":{"successful_payment_card":{"summary":"Payment authorised (card)","value":{"id":"63c55e04-4208-a43d-9c96-eaee848ffbaf","order_id":"63c55df6-1461-a886-b90f-f49d3c370253","payment_method":{"type":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","brand":"mastercard_credit","last_four":"1234"},"state":"authorisation_passed"}},"successful_payment_revolut_pay_account":{"summary":"Payment authorised (Revolut Pay - Revolut account)","value":{"id":"63c55e04-4208-a43d-9c96-eaee848ffbaf","order_id":"63c55df6-1461-a886-b90f-f49d3c370253","payment_method":{"type":"revolut_pay","subtype":"revolut_account","id":"2b83c23a-650e-40c3-8989-00ee24478738"},"state":"authorisation_passed"}},"successful_payment_revolut_pay_card":{"summary":"Payment authorised (Revolut Pay - card)","value":{"id":"63c55e04-4208-a43d-9c96-eaee848ffbaf","order_id":"63c55df6-1461-a886-b90f-f49d3c370253","payment_method":{"type":"revolut_pay","subtype":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","brand":"visa","last_four":"1234"},"state":"authorisation_passed"}},"three_ds":{"summary":"Saved card payment (3DS challenge)","value":{"id":"5e96b328-4054-41ed-b089-595ccc4d0870","order_id":"a16718e0-077a-4942-89bc-23ac17a2e14c","payment_method":{"type":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","brand":"mastercard_credit","last_four":"1234"},"state":"authentication_challenge","authentication_challenge":{"type":"three_ds","acs_url":"https://example.com"}}},"three_ds_fingerprint":{"summary":"Saved card payment (3DS fingerprint challenge)","value":{"id":"5e96b328-4054-41ed-b089-595ccc4d0870","order_id":"a16718e0-077a-4942-89bc-23ac17a2e14c","payment_method":{"type":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","brand":"mastercard_credit","last_four":"1234"},"state":"authentication_challenge","authentication_challenge":{"type":"three_ds_fingerprint","fingerprint_url":"https://example.com","fingerprint_data":"string"}}}}}},"descriptionNode":"$L589"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L58a"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L58b"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L58c"},"401":{"description":"Unauthorized","descriptionNode":"$L58d"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting.","descriptionNode":"$L58e"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L58f"},"code":{"type":"integer"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533,"code":1024}}}}},"descriptionNode":"$L590"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"saved_payment_method":{"type":"object","description":"Object containing information about the saved payment method used to pay for the order.","properties":{"type":{"type":"string","enum":["card","revolut_pay"],"description":"Type of saved payment method.","examples":["card"],"descriptionNode":"$L591"},"id":{"type":"string","description":"Saved payment method ID.","descriptionNode":"$L592"},"initiator":{"type":"string","description":"Indicates who is allowed to initiate the payment. \n\n:::note\nUsing this endpoint, only merchant initiated payments are supported with Revolut Pay.\n:::","enum":["customer","merchant"],"examples":["customer"],"descriptionNode":"$L593"},"environment":{"description":"Environment object, indicating in which environment the payment was made.\n\n:::warning\nOnly required if `initiator: customer`.\n:::\n\n:::note\nOnly `browser` is available at the moment.\n:::","type":"object","discriminator":{"propertyName":"type","mapping":{"browser":"#/components/schemas/Browser-Environment"}},"oneOf":[{"type":"object","description":"Browser environment","properties":{"type":{"type":"string","enum":["browser"],"description":"Type of environment where the payment was made.","examples":["browser"],"descriptionNode":"$L594"},"time_zone_utc_offset":{"type":"integer","description":"Defines the offset to UTC in minutes.","examples":[180],"descriptionNode":"$L595"},"color_depth":{"type":"integer","description":"The browser's available colour depth.","examples":[32],"descriptionNode":"$L596"},"screen_width":{"type":"integer","description":"The browser's screen width in pixels.","examples":[1920],"descriptionNode":"$L597"},"screen_height":{"type":"integer","description":"The browser's screen height in pixels.","examples":[1080],"descriptionNode":"$L598"},"java_enabled":{"type":"boolean","description":"Indicates if the browser has Java enabled.","examples":[false],"descriptionNode":"$L599"},"challenge_window_width":{"type":"integer","description":"Defines the width of the pop-up window where the authentication challenge appears.","examples":[640],"descriptionNode":"$L59a"},"browser_url":{"type":"string","format":"url","description":"The URL of the page where the payment was initiated.","examples":["https://business.revolut.com"],"descriptionNode":"$L59b"}},"required":["type","time_zone_utc_offset","color_depth","screen_width","screen_height","java_enabled"],"descriptionNode":"$L59c"}],"descriptionNode":"$L59d"}},"required":["type","id","initiator","environment"],"descriptionNode":"$L59e"}},"required":["saved_payment_method"]},"examples":{"saved_card_customer":{"summary":"Saved card (customer initiator)","value":{"saved_payment_method":{"type":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","initiator":"customer","environment":{"type":"browser","time_zone_utc_offset":180,"color_depth":48,"screen_width":1920,"screen_height":1080,"java_enabled":true,"challenge_window_width":640,"browser_url":"https://business.revolut.com"}}}},"saved_card_merchant":{"summary":"Saved card (merchant initiator)","value":{"saved_payment_method":{"type":"card","id":"2b83c23a-650e-40c3-8989-00ee24478738","initiator":"merchant"}}},"revolut_pay":{"summary":"Saved Revolut Pay (merchant initiator)","value":{"saved_payment_method":{"type":"revolut_pay","id":"2b83c23a-650e-40c3-8989-00ee24478738","initiator":"merchant"}}}}}}},"variantLabels":["Payment authorised (card)","Payment authorised (Revolut Pay - Revolut account)","Payment authorised (Revolut Pay - card)","Saved card payment (3DS challenge)","Saved card payment (3DS fingerprint challenge)"],"children":["$L59f","$L5a0"]}]}],false]}] 59f:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"pay-order","children":[["$L5a1","$undefined"],["$","$L15",null,{"id":"pay-order"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/pay-order.md"}]]}]}],"$undefined"]}] 5a6:Tb59,
curl -X POST "https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}'
5a7:T1a6a,
const payload = {
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
};
fetch("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
5a8:T1a51,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
  jsonData := []byte(`
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
5a9:T1730,
import requests

url = "https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
5aa:T48c,import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.URI; public class Main { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String body = """ { "saved_payment_method": { "type": "card", "id": "2b83c23a-650e-40c3-8989-00ee24478738", "initiator": "customer", "environment": { "type": "browser", "time_zone_utc_offset": 180, "color_depth": 48, "screen_width": 1920, "screen_height": 1080, "java_enabled": true, "challenge_window_width": 640, "browser_url": "https://business.revolut.com" } } } """; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments")) .header("Content-Type", "application/json") .header("Authorization", "__RP_TOK_1__") .POST(HttpRequest.BodyPublishers.ofString(body)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } }5ab:T1fb8,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
5ac:T436,using System.Net.Http; using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"), Headers = { { "Authorization", "__RP_TOK_1__" }, }, Content = new StringContent(@"{ ""saved_payment_method"": { ""type"": ""card"", ""id"": ""2b83c23a-650e-40c3-8989-00ee24478738"", ""initiator"": ""customer"", ""environment"": { ""type"": ""browser"", ""time_zone_utc_offset"": 180, ""color_depth"": 48, ""screen_width"": 1920, ""screen_height"": 1080, ""java_enabled"": true, ""challenge_window_width"": 640, ""browser_url"": ""https://business.revolut.com"" } } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }5ad:T2d96,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""saved_payment_method"": {
    ""type"": ""card"",
    ""id"": ""2b83c23a-650e-40c3-8989-00ee24478738"",
    ""initiator"": ""customer"",
    ""environment"": {
      ""type"": ""browser"",
      ""time_zone_utc_offset"": 180,
      ""color_depth"": 48,
      ""screen_width"": 1920,
      ""screen_height"": 1080,
      ""java_enabled"": true,
      ""challenge_window_width"": 640,
      ""browser_url"": ""https://business.revolut.com""
    }
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
5ae:Tb61,
curl -X POST "https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}'
5af:T1a72,
const payload = {
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
};
fetch("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
5b0:T1a59,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
  jsonData := []byte(`
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
5b1:T1738,
import requests

url = "https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
5b2:T494,import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.URI; public class Main { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String body = """ { "saved_payment_method": { "type": "card", "id": "2b83c23a-650e-40c3-8989-00ee24478738", "initiator": "customer", "environment": { "type": "browser", "time_zone_utc_offset": 180, "color_depth": 48, "screen_width": 1920, "screen_height": 1080, "java_enabled": true, "challenge_window_width": 640, "browser_url": "https://business.revolut.com" } } } """; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments")) .header("Content-Type", "application/json") .header("Authorization", "__RP_TOK_1__") .POST(HttpRequest.BodyPublishers.ofString(body)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } }5b3:T1fc0,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
5b4:T43e,using System.Net.Http; using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"), Headers = { { "Authorization", "__RP_TOK_1__" }, }, Content = new StringContent(@"{ ""saved_payment_method"": { ""type"": ""card"", ""id"": ""2b83c23a-650e-40c3-8989-00ee24478738"", ""initiator"": ""customer"", ""environment"": { ""type"": ""browser"", ""time_zone_utc_offset"": 180, ""color_depth"": 48, ""screen_width"": 1920, ""screen_height"": 1080, ""java_enabled"": true, ""challenge_window_width"": 640, ""browser_url"": ""https://business.revolut.com"" } } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }5b5:T2d9e,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""saved_payment_method"": {
    ""type"": ""card"",
    ""id"": ""2b83c23a-650e-40c3-8989-00ee24478738"",
    ""initiator"": ""customer"",
    ""environment"": {
      ""type"": ""browser"",
      ""time_zone_utc_offset"": 180,
      ""color_depth"": 48,
      ""screen_width"": 1920,
      ""screen_height"": 1080,
      ""java_enabled"": true,
      ""challenge_window_width"": 640,
      ""browser_url"": ""https://business.revolut.com""
    }
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
5a0:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L5a2",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L5a3"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L5a4"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L5a5"}],"requestBody":"$1f:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1f:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}'","templateHtml":"$5a6","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n};\nfetch(\"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$5a7","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\n jsonData := []byte(`\n{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$5a8","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$5a9","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"$5aa","templateHtml":"$5ab","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"$5ac","templateHtml":"$5ad","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}'","templateHtml":"$5ae","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$5af","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\n jsonData := []byte(`\n{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$5b0","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/orders/__RP_TOK_0__/payments\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$5b1","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"$5b2","templateHtml":"$5b3","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"$5b4","templateHtml":"$5b5","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/orders/{order_id}/payments","parameters":["$5a0:props:children:0:props:children:1:props:parameters:0","$5a0:props:children:0:props:children:1:props:parameters:1"]}],"$L5b6"],"$L5b7","$L5b8"]}]]}] 5b6:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L5b9"}}}] 5b7:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"saved_card_customer","label":"Saved card (customer initiator)","rawValue":"$1f:props:children:0:props:children:props:requestBody:content:application/json:examples:saved_card_customer:value","block":"$L5ba"},{"key":"saved_card_merchant","label":"Saved card (merchant initiator)","rawValue":"$1f:props:children:0:props:children:props:requestBody:content:application/json:examples:saved_card_merchant:value","block":"$L5bb"},{"key":"revolut_pay","label":"Saved Revolut Pay (merchant initiator)","rawValue":"$1f:props:children:0:props:children:props:requestBody:content:application/json:examples:revolut_pay:value","block":"$L5bc"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 5b8:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"successful_payment_card","label":"Payment authorised (card)","rawValue":"$1f:props:children:0:props:children:props:responses:200:content:application/json:examples:successful_payment_card:value","block":"$L5bd"},{"key":"successful_payment_revolut_pay_account","label":"Payment authorised (Revolut Pay - Revolut account)","rawValue":"$1f:props:children:0:props:children:props:responses:200:content:application/json:examples:successful_payment_revolut_pay_account:value","block":"$L5be"},{"key":"successful_payment_revolut_pay_card","label":"Payment authorised (Revolut Pay - card)","rawValue":"$1f:props:children:0:props:children:props:responses:200:content:application/json:examples:successful_payment_revolut_pay_card:value","block":"$L5bf"},{"key":"three_ds","label":"Saved card payment (3DS challenge)","rawValue":"$1f:props:children:0:props:children:props:responses:200:content:application/json:examples:three_ds:value","block":"$L5c0"},{"key":"three_ds_fingerprint","label":"Saved card payment (3DS fingerprint challenge)","rawValue":"$1f:props:children:0:props:children:props:responses:200:content:application/json:examples:three_ds_fingerprint:value","block":"$L5c1"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1f:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L5c2"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1f:props:children:0:props:children:props:responses:404:content:application/json:examples:example-1:value","block":"$L5c3"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 5a1:"Pay for an order" 567:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 568:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 569:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 56a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 56b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 56c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 56d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates whether the customer used their card or Revolut account via Revolut Pay."}]]}] 56e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 56f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 570:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 571:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}]]}] 572:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 573:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card number."}]]}] 574:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned if the payment method is saved."]}]}]]}]]}] 575:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ID of the saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"id"}]," parameter is only returned when the payment method is saved for the merchant."]}]}]]}]]}] 576:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of payment method used to pay for the order."}],"\n",["$","p","p-1",{"children":"Available values:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":["Payment method ",["$","code","code-0",{"children":"type"}]],"className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"apple_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Apple Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"google_pay"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using Google Pay.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_card"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their credit or debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"revolut_pay_account"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order via Revolut Pay using their Revolut account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"sepa_direct_debit"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The customer paid the order using SEPA Direct Debit.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 577:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the debtor's IBAN."}]]}] 578:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The full name of the debtor as provided in the mandate."}]]}] 579:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The unique mandate reference generated by Revolut. Include this in pre-debit notifications sent to your customers."}]]}] 57a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Object containing details of a SEPA Direct Debit payment."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/accept-payments/payment-methods/sepa-direct-debit/server-to-server","target":"_blank","rel":"noreferrer","children":"SEPA Direct Debit server-to-server integration"}]]}]}]]}]]}] 57b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment method used to pay for the order."}]]}] 57c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during checkout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 57d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The payment amount in minor units (e.g., cents). The value of this field depends on the payment type and state."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Payment type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"State","className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":"Amount value","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":"Standard payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Any","className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"Total payment amount","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorisation_started"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"New amount being authorised (during increment processing)","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":"Pre-authorised payment","className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["$","code","code-0",{"children":"authorised"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":["Currently authorised amount (equals ",["$","code","code-0",{"children":"authorised_amount"}],")"],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For pre-authorised payments, see the ",["$","code","code-0",{"children":"authorised_amount"}]," field for tracking the currently authorised amount separately."]}]}]]}]]}] 57e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 57f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The status of the payment."}]]}] 580:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"failed"}]," or ",["$","code","code-1",{"children":"declined"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn more, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"failure reasons"}],"."]}]]}] 581:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 582:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the authentication challenge."}]]}] 583:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS challenge."}]]}] 584:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the authentication challenge the payment triggers."}]]}] 585:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the fingerprint. (Used only internally by Revolut.)"}]]}] 586:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Data about the fingerprint used for authentication. (Used only internally\nby Revolut.)"}]]}] 587:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Information about the 3DS fingerprint challenge."}]]}] 588:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Details about the authentication challenge that should be performed to complete the authentication process. For more information about Revolut's 3DS solution, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/3d-secure","target":"_blank","rel":"noreferrer","children":"3D Secure overview"}],"."]}],"\n",["$","p","p-1",{"children":["Only returned if the payment's state is ",["$","code","code-0",{"children":"authentication_challenge"}],"."]}]]}] 589:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Payment initiated"}]]}] 58a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 58b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 58c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 58d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 58e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut\nsupport for troubleshooting."}]]}] 58f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 590:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 591:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of saved payment method."}]]}] 592:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Saved payment method ID."}]]}] 593:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates who is allowed to initiate the payment."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"Using this endpoint, only merchant initiated payments are supported with Revolut Pay."}]}]]}]]}] 594:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of environment where the payment was made."}]]}] 595:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Defines the offset to UTC in minutes."}]]}] 596:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The browser's available colour depth."}]]}] 597:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The browser's screen width in pixels."}]]}] 598:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The browser's screen height in pixels."}]]}] 599:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Indicates if the browser has Java enabled."}]]}] 59a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Defines the width of the pop-up window where the authentication challenge appears."}]]}] 59b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL of the page where the payment was initiated."}]]}] 59c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Browser environment"}]]}] 59d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Environment object, indicating in which environment the payment was made."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only required if ",["$","code","code-0",{"children":"initiator: customer"}],"."]}]}]]}],"\n",["$","div","inlinealert-1",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Only ",["$","code","code-0",{"children":"browser"}]," is available at the moment."]}]}]]}]]}] 59e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Object containing information about the saved payment method used to pay for the order."}]]}] 5a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Initiate a payment to pay full amount for an order using a customer's saved payment method."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"/orders/{order_id}/confirm"}]," endpoint has been deprecated. It will be only supported for already existing implementations."]}]}]]}],"\n",["$","div","inlinealert-1",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"This endpoint is part of a new API, pay attention to the different endpoint URL."}]}]]}],"\n",["$","p","p-1",{"children":["For more information about how to save and charge payment methods, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/optimise-checkout/save-payment-methods/charge-saved-payment-method","target":"_blank","rel":"noreferrer","children":"Charge a customer's saved payment method"}],"."]}],"\n",["$","p","p-2",{"children":["The following table shows who can initiate payments on saved payment methods (",["$","code","code-0",{"children":"initiator"}]," parameter), depending on if the payment method was saved for the customer or the merchant (",["$","code","code-1",{"children":"savedPaymentMethodFor"}]," parameter):"]}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":["$","code","code-0",{"children":"savePaymentMethodFor: customer"}],"className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":["$","code","code-0",{"children":"savePaymentMethodFor: merchant"}],"className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","strong","strong-0",{"children":["$","code","code-0",{"children":"initiator: customer"}]}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Allowed","className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"Allowed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","strong","strong-0",{"children":["$","code","code-0",{"children":"initiator: merchant"}]}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Not allowed","className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":"Allowed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-2",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"Using this endpoint, only merchant initiated payments are supported with Revolut Pay."}]}]]}],"\n",["$","p","p-3",{"children":["For more information about customers' payment methods, see the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payment-method-list","target":"_blank","rel":"noreferrer","children":"Retrieve payment method list of a customer"}]," operation."]}]]}] 5a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 5a4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 5a5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 5b9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L5c4","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 5c5:Tf38,
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "customer",
    "environment": {
      "type": "browser",
      "time_zone_utc_offset": 180,
      "color_depth": 48,
      "screen_width": 1920,
      "screen_height": 1080,
      "java_enabled": true,
      "challenge_window_width": 640,
      "browser_url": "https://business.revolut.com"
    }
  }
}
5ba:["$","div","request-application/json-saved_card_customer",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5c5"}}]}]],"$L5c6"]}] 5c7:T56d,
{
  "saved_payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "merchant"
  }
}
5bb:["$","div","request-application/json-saved_card_merchant",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5c7"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"merchant\"\n }\n}"}]}]]}] 5c8:T574,
{
  "saved_payment_method": {
    "type": "revolut_pay",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "initiator": "merchant"
  }
}
5bc:["$","div","request-application/json-revolut_pay",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5c8"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"saved_payment_method\": {\n \"type\": \"revolut_pay\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"merchant\"\n }\n}"}]}]]}] 5c9:T9be,
{
  "id": "63c55e04-4208-a43d-9c96-eaee848ffbaf",
  "order_id": "63c55df6-1461-a886-b90f-f49d3c370253",
  "payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "brand": "mastercard_credit",
    "last_four": "1234"
  },
  "state": "authorisation_passed"
}
5bd:["$","div","200-application/json-successful_payment_card",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5c9"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"63c55e04-4208-a43d-9c96-eaee848ffbaf\",\n \"order_id\": \"63c55df6-1461-a886-b90f-f49d3c370253\",\n \"payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"brand\": \"mastercard_credit\",\n \"last_four\": \"1234\"\n },\n \"state\": \"authorisation_passed\"\n}"}]}]]}] 5ca:T8b2,
{
  "id": "63c55e04-4208-a43d-9c96-eaee848ffbaf",
  "order_id": "63c55df6-1461-a886-b90f-f49d3c370253",
  "payment_method": {
    "type": "revolut_pay",
    "subtype": "revolut_account",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738"
  },
  "state": "authorisation_passed"
}
5be:["$","div","200-application/json-successful_payment_revolut_pay_account",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5ca"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"63c55e04-4208-a43d-9c96-eaee848ffbaf\",\n \"order_id\": \"63c55df6-1461-a886-b90f-f49d3c370253\",\n \"payment_method\": {\n \"type\": \"revolut_pay\",\n \"subtype\": \"revolut_account\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\"\n },\n \"state\": \"authorisation_passed\"\n}"}]}]]}] 5cb:Tac9,
{
  "id": "63c55e04-4208-a43d-9c96-eaee848ffbaf",
  "order_id": "63c55df6-1461-a886-b90f-f49d3c370253",
  "payment_method": {
    "type": "revolut_pay",
    "subtype": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "brand": "visa",
    "last_four": "1234"
  },
  "state": "authorisation_passed"
}
5bf:["$","div","200-application/json-successful_payment_revolut_pay_card",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5cb"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"63c55e04-4208-a43d-9c96-eaee848ffbaf\",\n \"order_id\": \"63c55df6-1461-a886-b90f-f49d3c370253\",\n \"payment_method\": {\n \"type\": \"revolut_pay\",\n \"subtype\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"brand\": \"visa\",\n \"last_four\": \"1234\"\n },\n \"state\": \"authorisation_passed\"\n}"}]}]]}] 5cc:Tcf4,
{
  "id": "5e96b328-4054-41ed-b089-595ccc4d0870",
  "order_id": "a16718e0-077a-4942-89bc-23ac17a2e14c",
  "payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "brand": "mastercard_credit",
    "last_four": "1234"
  },
  "state": "authentication_challenge",
  "authentication_challenge": {
    "type": "three_ds",
    "acs_url": "https://example.com"
  }
}
5c0:["$","div","200-application/json-three_ds",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5cc"}}]}]],"$L5cd"]}] 5ce:Te24,
{
  "id": "5e96b328-4054-41ed-b089-595ccc4d0870",
  "order_id": "a16718e0-077a-4942-89bc-23ac17a2e14c",
  "payment_method": {
    "type": "card",
    "id": "2b83c23a-650e-40c3-8989-00ee24478738",
    "brand": "mastercard_credit",
    "last_four": "1234"
  },
  "state": "authentication_challenge",
  "authentication_challenge": {
    "type": "three_ds_fingerprint",
    "fingerprint_url": "https://example.com",
    "fingerprint_data": "string"
  }
}
5c1:["$","div","200-application/json-three_ds_fingerprint",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5ce"}}]}]],"$L5cf"]}] 5c2:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 5d0:T471,
{
  "errorId": "94b27660-fdda-49ec-8b85-cd46a068ade0",
  "timestamp": 1601296792533,
  "code": 1024
}
5c3:["$","div","404-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$5d0"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533,\n \"code\": 1024\n}"}]}]]}] 5c6:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"saved_payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"initiator\": \"customer\",\n \"environment\": {\n \"type\": \"browser\",\n \"time_zone_utc_offset\": 180,\n \"color_depth\": 48,\n \"screen_width\": 1920,\n \"screen_height\": 1080,\n \"java_enabled\": true,\n \"challenge_window_width\": 640,\n \"browser_url\": \"https://business.revolut.com\"\n }\n }\n}"}]}] 5cd:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"5e96b328-4054-41ed-b089-595ccc4d0870\",\n \"order_id\": \"a16718e0-077a-4942-89bc-23ac17a2e14c\",\n \"payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"brand\": \"mastercard_credit\",\n \"last_four\": \"1234\"\n },\n \"state\": \"authentication_challenge\",\n \"authentication_challenge\": {\n \"type\": \"three_ds\",\n \"acs_url\": \"https://example.com\"\n }\n}"}]}] 5cf:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"5e96b328-4054-41ed-b089-595ccc4d0870\",\n \"order_id\": \"a16718e0-077a-4942-89bc-23ac17a2e14c\",\n \"payment_method\": {\n \"type\": \"card\",\n \"id\": \"2b83c23a-650e-40c3-8989-00ee24478738\",\n \"brand\": \"mastercard_credit\",\n \"last_four\": \"1234\"\n },\n \"state\": \"authentication_challenge\",\n \"authentication_challenge\": {\n \"type\": \"three_ds_fingerprint\",\n \"fingerprint_url\": \"https://example.com\",\n \"fingerprint_data\": \"string\"\n }\n}"}]}] 5ea:T593,Type of the report. | Report type | Description | | -------------- | ----------- | | `settlement_report` | All settled transactions associated with a Merchant account, with a configurable set of columns. | | `custom_report` | Settled and processing transactions associated with a Merchant account, with a configurable set of columns. | | `payments_report` | Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by `from` and `to` creation timestamps, and optionally by `entity_states`. | | `payout_statement_report` | Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter `filter.payout_id`, which should be obtained from the payout ID retrieved via the [payout list endpoint](https://developer.revolut.com/docs/api/merchant#retrieve-payout-list) or from [webhook events](https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks). | | `icpp_fee_breakdown_report` | IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter `filter.icpp_charge_id`, which should be obtained from the `related_icpp_charge_id` column in the Payout statement report. A separate report should be generated for each IC++ transaction. |5ed:Td2c,Names of the columns to be included in the report. If the `columns` parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error. Available columns: | Column name | Description | | ----------- | ----------- | | `transaction_id` | Unique identifier of the ledger transaction related to an order. | | `order_id` | Unique identifier of the order. | | `original_order_id` | Unique identifier of the original order. For refunds and chargebacks, references the order being reversed. | | `started_date` | Start timestamp shown on the row. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. Separate from the report filter timeframe. | | `updated_date` | Last update timestamp shown on the row. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. Separate from the report filter timeframe. | | `completed_date` | Completion timestamp shown on the row. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. Separate from the report filter timeframe. | | `payment_created_date` | Payment authorisation or creation timestamp for rows linked to a payment. Empty for refunds and non-payment-related rows where no payment timestamp applies. This is returned data, not the report filter key. | | `payment_captured_date` | Payment capture timestamp for rows linked to a captured payment. Empty for refunds, non-payment-related rows, or payments not captured. This is returned data, not the report filter key. | | `type` | Settlement report row type. A partial-settlement is represented by separate `SETTLEMENT` and `REFUND` rows, not a dedicated type. | | `state` | State of the transaction. | | `description` | Description of the order. | | `merchant_order_ext_ref` | Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created. | | `customer_id` | Unique identifier of the customer. | | `amount` | Total amount of the order. | | `currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the order. | | `settlement_amount` | Total amount settled on the merchant's account. | | `settlement_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount. | | `payment_method` | Type of the payment method the customer used to pay for the order. | | `fee_amount` | Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees). | | `fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the total fee. | | `processing_fee_amount` | Acquiring markup fee only — a subset of `fee_amount`. Represents Revolut's service fee, excluding interchange and scheme fees. | | `processing_fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the acquiring markup fee. | | `browser_url` | The URL where the customer initiated the payment. | | `location_id` | Unique identifier of the location related to the transaction. |5f3:T593,Type of the report. | Report type | Description | | -------------- | ----------- | | `settlement_report` | All settled transactions associated with a Merchant account, with a configurable set of columns. | | `custom_report` | Settled and processing transactions associated with a Merchant account, with a configurable set of columns. | | `payments_report` | Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by `from` and `to` creation timestamps, and optionally by `entity_states`. | | `payout_statement_report` | Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter `filter.payout_id`, which should be obtained from the payout ID retrieved via the [payout list endpoint](https://developer.revolut.com/docs/api/merchant#retrieve-payout-list) or from [webhook events](https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks). | | `icpp_fee_breakdown_report` | IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter `filter.icpp_charge_id`, which should be obtained from the `related_icpp_charge_id` column in the Payout statement report. A separate report should be generated for each IC++ transaction. |5f6:T1cf6,Names of the columns to include in the report. If not specified, all available columns are included. An empty array returns an error. To include custom order metadata, use `metadata.*` with the attribute name, for example `metadata.my_attribute`. Available columns: | Column name | Description | | ----------- | ----------- | | `transaction_id` | Unique identifier of the ledger transaction. Matches `transaction_id` in the settlement and payout reports. Use `order_id` to cross-reference with the payments report. | | `related_transaction_id` | For refund and chargeback transactions, the ledger transaction ID of the original payment. Corresponds to `original_transaction_id` in the payout report. | | `transaction_description` | Description of the transaction. | | `payout_id` | Unique identifier of the payout that this transaction contributed to. | | `dispute_id` | Unique identifier of the dispute associated with this transaction, if applicable. | | `account_id` | Unique identifier of the merchant account. | | `account_balance` | Account balance at the time of the transaction. | | `order_id` | Unique identifier of the order. Use to cross-reference with the payments or payout reports. | | `original_order_id` | For refunds and chargebacks, the order ID of the original payment. For settlement transactions, matches `order_id`. | | `original_order_ext_ref` | Merchant's order identifier of the original order for external reference. | | `order_description` | Description of the order. | | `order_channel` | Channel through which the order was created. | | `order_customer_note` | Note added by the customer at the time of the order. | | `order_tip_amount` | Tip amount set at the order level. | | `order_created_by` | Identifier of the user who created the order. | | `payment_initiated_by` | Identifier of who initiated the payment. | | `order_line_items` | Line items included in the order, if any. | | `payout_reference` | Reference of the payout transfer associated with the transaction. | | `invoice_reference` | Invoice reference associated with the order, if any. | | `started_date` | Start timestamp shown on the row. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. Separate from the report filter timeframe. | | `created_date` | Date and time the order was created. | | `updated_date` | Last update timestamp shown on the row. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. Separate from the report filter timeframe. | | `completed_date` | Completion timestamp shown on the row. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. Separate from the report filter timeframe. | | `payment_created_date` | Payment authorisation or creation timestamp for rows linked to a payment. Empty for refunds and non-payment-related rows where no payment timestamp applies. This is returned data, not the report filter key. | | `payment_captured_date` | Payment capture timestamp for rows linked to a captured payment. Empty for refunds, non-payment-related rows, or payments not captured. This is returned data, not the report filter key. | | `type` | Category of the reported transaction row, indicating what kind of balance-affecting event the row represents. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `legacy_type` | Legacy type value for backwards compatibility. | | `state` | State of the transaction. | | `description` | Description of the transaction. | | `merchant_order_ext_ref` | Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created. | | `customer_id` | Unique identifier of the customer. | | `amount` | Total amount of the order. | | `currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the order. | | `settlement_amount` | Total amount settled on the merchant's account. | | `settlement_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount. | | `exchange_rate` | Exchange rate applied if currency conversion occurred. | | `refunded_amount` | Amount refunded for the order. | | `statement_descriptor` | Statement descriptor shown on the customer's bank statement. | | `tip_amount` | Tip amount included in the transaction. | | `terminal_hardware_id` | Identifier of the card reader hardware used, for in-person payments. | | `customer_name` | Name of the customer. | | `customer_email` | Email address of the customer. | | `customer_card_number` | Masked card number used for the payment. | | `customer_card_brand` | Card brand used for the payment. Derived from BIN data. Example values: `VISA`, `MASTERCARD`, `MASTERCARD_DEBIT`, `MAESTRO`, `AMEX`, `DINERS`, `DISCOVER`, `JCB`. | | `customer_card_type` | Card funding type of the card used for the payment, for example debit, credit, prepaid, deferred debit, or charge. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `customer_card_category` | Card commercial category. Values: `consumer` (personal card) and `commercial` (business or corporate card). | | `payment_method` | Payment method the customer used to pay for the order. | | `fee_amount` | Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees). | | `fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the total fee. | | `processing_fee_amount` | Acquiring markup fee only — a subset of `fee_amount`. Represents Revolut's service fee, excluding interchange and scheme fees. | | `processing_fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the acquiring markup fee. | | `fx_fee_amount` | Foreign exchange fee amount, if applicable. | | `fx_fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the FX fee. | | `browser_url` | The URL where the customer initiated the payment. | | `beneficiary_name` | Name of the beneficiary, for bank transfer payments. | | `beneficiary_account_number` | Account number of the beneficiary, for bank transfer payments. | | `location_id` | Unique identifier of the location related to the transaction. | | `location_name` | Name of the location related to the transaction. | | `surcharge_amount` | Surcharge amount applied to the transaction. Omitted when no surcharge applies. | | `order_surcharge_amount` | Surcharge amount set at the order level. | | `order_custom_field_name` | Name of a custom field set on the order. | | `order_custom_field_value` | Value of a custom field set on the order. | | `offline_payment_state` | State of an offline payment, if applicable. | | `order_authorisation_type` | Authorisation type of the order, for example `FULL` or `PRE_AUTH`. | | `metadata.*` | Custom order metadata. Replace `*` with the attribute name, for example `metadata.my_attribute`. |5ff:T593,Type of the report. | Report type | Description | | -------------- | ----------- | | `settlement_report` | All settled transactions associated with a Merchant account, with a configurable set of columns. | | `custom_report` | Settled and processing transactions associated with a Merchant account, with a configurable set of columns. | | `payments_report` | Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by `from` and `to` creation timestamps, and optionally by `entity_states`. | | `payout_statement_report` | Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter `filter.payout_id`, which should be obtained from the payout ID retrieved via the [payout list endpoint](https://developer.revolut.com/docs/api/merchant#retrieve-payout-list) or from [webhook events](https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks). | | `icpp_fee_breakdown_report` | IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter `filter.icpp_charge_id`, which should be obtained from the `related_icpp_charge_id` column in the Payout statement report. A separate report should be generated for each IC++ transaction. |602:Tb55,Names of the columns to be included in the report. If the `columns` parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error. Available columns: | Column name | Description | | ----------- | ----------- | | `payment_id` | Unique identifier of the payment. | | `type` | Category of the payment row, indicating whether the row represents a payment attempt or a refund. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `description` | Description of the payment. | | `original_payment_id` | For refunds, the unique identifier of the original payment. | | `order_id` | Unique identifier of the order associated with the payment. | | `state` | Lifecycle state of the payment. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `reason` | Reason for a failed or declined payment, for example: `Insufficient Funds`. | | `amount` | Total amount of the payment. | | `currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the payment. | | `surcharge_amount` | Surcharge amount applied to the payment, if any. | | `tip_amount` | Tip amount included in the payment, if any. | | `refunded_amount` | Amount refunded for the payment. | | `created_date` | Date and time the payment was created. | | `captured_date` | Date and time the payment was captured. Empty when the payment has not been captured. | | `merchant_order_ext_ref` | Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created. | | `payment_method` | Payment method used, for example: `CARD` or `PAY_WITH_REVOLUT`. | | `location_id` | Unique identifier of the location where the payment was made. | | `customer_id` | Unique identifier of the customer. | | `customer_card_number` | Masked card number used for the payment. | | `customer_card_country` | Country of the card used for the payment, as an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code. | | `customer_card_brand` | Card brand used for the payment, for example: `VISA` or `MASTERCARD_DEBIT`. | | `customer_card_type` | Card funding type of the card used for the payment. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `customer_card_category` | Card commercial category. Values: `consumer` (personal card) and `commercial` (business or corporate card). | | `customer_email` | Email address of the customer. | | `fee_amount` | Total fee amount charged for the payment. | | `fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the fee. |609:T593,Type of the report. | Report type | Description | | -------------- | ----------- | | `settlement_report` | All settled transactions associated with a Merchant account, with a configurable set of columns. | | `custom_report` | Settled and processing transactions associated with a Merchant account, with a configurable set of columns. | | `payments_report` | Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by `from` and `to` creation timestamps, and optionally by `entity_states`. | | `payout_statement_report` | Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter `filter.payout_id`, which should be obtained from the payout ID retrieved via the [payout list endpoint](https://developer.revolut.com/docs/api/merchant#retrieve-payout-list) or from [webhook events](https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks). | | `icpp_fee_breakdown_report` | IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter `filter.icpp_charge_id`, which should be obtained from the `related_icpp_charge_id` column in the Payout statement report. A separate report should be generated for each IC++ transaction. |60c:Tef6,Names of the columns to be included in the report. If the `columns` parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error. Available columns: | Column name | Description | | ----------- | ----------- | | `created_date` | Date and time the transaction was created. | | `completed_date` | Date and time the transaction was completed. | | `payout_affected_date` | Date and time the payout was affected by this transaction. | | `affected_payout_amount` | Boolean flag indicating whether this transaction contributed to the payout amount (`true`) or not (`false`). Despite the name, this is not a monetary value. | | `transaction_id` | Unique identifier of the transaction. | | `order_id` | Unique identifier of the order associated with the transaction. | | `dispute_id` | Unique identifier of the dispute associated with a chargeback or chargeback reversal transaction. Empty for rows not related to a dispute. | | `merchant_order_reference` | Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created. | | `type` | Type of the payout-related ledger event the row represents. For the full list of returned values, see [Download report file](https://developer.revolut.com/docs/api/merchant#download-report-file). | | `related_icpp_charge_id` | Unique identifier of the IC++ charge related to the transaction, if applicable. | | `transaction_amount` | Amount of the transaction in the transaction currency. | | `transaction_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the transaction. | | `billing_amount` | Amount of the transaction in the billing currency. | | `billing_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the billing amount. | | `state` | State of the transaction, for example: `COMPLETED`. | | `original_transaction_id` | Unique identifier of the original transaction. For refunds, references the transaction being refunded. | | `original_transaction_amount` | Amount of the original transaction. | | `original_transaction_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the original transaction. | | `original_order_id` | Unique identifier of the original order. For refunds, references the order being refunded. | | `original_order_channel` | Channel through which the original order was created. | | `original_merchant_order_reference` | Merchant's order reference for the original order. The value of the `merchant_order_data.reference` field set when the original order was created. | | `fee_amount` | Total fee amount charged for the transaction. | | `fee_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the fee. | | `settlement_amount` | Total amount settled on the merchant's account. | | `settlement_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount. | | `location_id` | Unique identifier of the location associated with the transaction. | | `location_name` | Name of the location associated with the transaction. | | `submerchant_id` | Unique identifier of the submerchant associated with the transaction. | | `payout_transfer_reference` | Reference of the bank transfer for this payout. This value is the same across all rows in the report, as each report covers a single payout. | | `payout_total_amount` | Total amount of this payout. This value is the same across all rows in the report, as each report covers a single payout. | | `payout_date` | Date and time the payout covered by this report was created. This value is the same across all rows in the report, as each report covers a single payout. |613:T593,Type of the report. | Report type | Description | | -------------- | ----------- | | `settlement_report` | All settled transactions associated with a Merchant account, with a configurable set of columns. | | `custom_report` | Settled and processing transactions associated with a Merchant account, with a configurable set of columns. | | `payments_report` | Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by `from` and `to` creation timestamps, and optionally by `entity_states`. | | `payout_statement_report` | Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter `filter.payout_id`, which should be obtained from the payout ID retrieved via the [payout list endpoint](https://developer.revolut.com/docs/api/merchant#retrieve-payout-list) or from [webhook events](https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks). | | `icpp_fee_breakdown_report` | IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter `filter.icpp_charge_id`, which should be obtained from the `related_icpp_charge_id` column in the Payout statement report. A separate report should be generated for each IC++ transaction. |616:T7eb,Names of the columns to be included in the report. If the `columns` parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error. Available columns: | Column name | Description | | ----------- | ----------- | | `id` | Unique identifier of the payment. | | `created_at` | Date and time the payment was created. | | `operation` | IC++ transaction type. Values: `SALE` (payment sale), `REFUND` (refund), and `DISPUTE` (dispute-related transaction). | | `amount` | Transaction amount. | | `currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the transaction. | | `settlement_amount` | Amount settled on the merchant's account. | | `settlement_currency` | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount. | | `payment_method` | Payment method used for the transaction. Returns `REVOLUT_PAY` for Revolut Pay payments, or the card scheme name for card payments. | | `card_scheme` | Card BIN scheme. | | `card_funding` | Card funding type, for example: `DEBIT` or `PREPAID`. | | `order_description` | Description of the order. | | `order_merchant_external_ref` | Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created. | | `original_operation_id` | Unique identifier of the related original transaction. | | `acquiring_fee_amount` | IC++ acquiring markup fee component. | | `card_interchange_fee_amount` | Interchange fee component. Omitted for Revolut Pay transactions. | | `card_scheme_fee_amount` | Card scheme fee component. Omitted for Revolut Pay transactions. | | `card_type` | Card commercial category. Values: `COMMERCIAL` (business or corporate card) and `CONSUMER` (personal card). | | `order_channel` | Channel through which the order was created. | | `card_country` | Country of the card, as an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code. |2e:["$","$51","create-report-run",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"201":{"description":"Report run created, report started generating","content":{"application/json":{"schema":{"title":"ReportRunDetails","type":"object","description":"The `ReportRunDetails` object contains all information associated with a specific report run, identified by the `report_run_id`.","properties":{"report_run_id":{"type":"string","format":"uuid","description":"Unique ID used for accessing report details. Use this to check report generation status.","descriptionNode":"$L5d1"},"status":{"type":"string","description":"Current status of the report run.\n\n| Value | Description |\n| ----- | ----------- |\n| `processing` | Report generation is still in progress. |\n| `completed` | Report generation finished successfully and the file is available to download for 24 hours via `file_url`. |\n| `failed` | Report generation failed and no report file is available. |\n| `expired` | Report generation previously completed, but the 24-hour file availability window has elapsed and the file can no longer be downloaded. |","enum":"$2f:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:status:enum","descriptionNode":"$L5d2"},"file_url":{"type":"string","description":"Use this link to download the report file. Available only when `status` is `completed`, and only for 24 hours after report generation finishes.","descriptionNode":"$L5d3"}},"required":"$2f:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$L5d4"},"examples":{"report_run_processing":{"summary":"Report run processing","value":{"report_run_id":"d6f6ef64-f668-4e64-8967-1cdf8afb2561","status":"processing"}},"report_run_completed":{"summary":"Report run completed, report file ready","value":{"report_run_id":"d6f6ef64-f668-4e64-8967-1cdf8afb2561","status":"completed","file_url":"https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file"}}}}},"descriptionNode":"$L5d5"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L5d6"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L5d7"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L5d8"}}}}},"descriptionNode":"$L5d9"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L5da"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L5db"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L5dc"}}}}},"descriptionNode":"$L5dd"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$L5de"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$L5df"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$L5e0"}}}}},"descriptionNode":"$L5e1"}},"requestBody":{"content":{"application/json":{"schema":{"discriminator":{"propertyName":"type","mapping":{"settlement_report":"#/components/schemas/Report-Run-Settlement-Report","custom_report":"#/components/schemas/Report-Run-Custom-Report","payments_report":"#/components/schemas/Report-Run-Payments-Report","payout_statement_report":"#/components/schemas/Report-Run-Payout-Report","icpp_fee_breakdown_report":"#/components/schemas/Report-Run-Icpp-Report"}},"oneOf":[{"title":"Settlement report","type":"object","description":"A settlement report contains all the query information for generating reports of settled transactions associated with a Merchant account.","properties":{"filter":{"type":"object","description":"Filtering parameters to be applied to the report.\n\n:::note\nFor `settlement_report` and `custom_report`, `from` and `to` are evaluated against the transaction `created_date`, not the original payment-start timeframe or the `payment_created_date` and `payment_captured_date` columns.\n:::","properties":{"from":{"type":"string","format":"date-time","description":"This parameter specifies the start boundary for filtering report data. It accepts ETC/UTC date and time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601) and includes all matching records on or after this timestamp.\n\nCombined with the `to` parameter, this determines the report's timeframe, including all matching records between the two values.\n\nFor example, by setting the `from` parameter to `2021-01-01T00:00:00Z`, the report will include matching records from the first second of January 1, 2021, UTC, and onwards.","descriptionNode":"$L5e2"},"to":{"type":"string","format":"date-time","description":"This parameter specifies the end boundary for filtering report data. It accepts ETC/UTC date and time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601) and includes all matching records before this timestamp (exclusive).\n\nCombined with the `from` parameter, this determines the timeframe for the report, including all matching records between the two values.\n\nFor example, setting the `to` parameter to `2021-12-31T23:59:59Z` will include all matching records in the report up to, but not including, the last second of December 31, 2021, UTC.","descriptionNode":"$L5e3"},"entity_types":{"type":"array","items":{"type":"string","enum":["payment","refund","dispute"]},"description":"Select source entity families to be included in the report.\n\n| Value | Description |\n| ----- | ----------- |\n| `payment` | Include rows originating from payment settlement activity. |\n| `refund` | Include rows originating from refund activity. |\n| `dispute` | Include rows originating from dispute and chargeback activity. |\n\n:::note\nThese values are filter input categories. They do not map 1:1 to the CSV `type` output column. For example, a settlement report filtered with `payment`, `refund`, and `dispute` can still return CSV `type` values such as `SETTLEMENT`, `REFUND`, `CHARGEBACK`, and `CHARGEBACK_REVERSAL`.\n:::","descriptionNode":"$L5e4"},"entity_states":{"type":"array","items":{"type":"string","enum":["completed","processing","cancelled","reverted"]},"description":"Select transactions by state to be included in the report.\n\n| Value | Description |\n| ----- | ----------- |\n| `completed` | Include transactions that reached their final successful state. |\n| `processing` | Include transactions that are still being processed. |\n| `cancelled` | Include transactions that were cancelled before final completion. |\n| `reverted` | Include transactions that were reversed after initial creation. |\n\nIf not provided, only `completed` transactions will be included in the report.","descriptionNode":"$L5e5"},"currency":{"type":"string","description":"Select transactions with specific currencies to include in the report. Provide [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","minLength":3,"maxLength":3,"examples":["GBP"],"descriptionNode":"$L5e6"},"location_id":{"type":"string","format":"uuid","description":"Select transactions by location ID to be included in the report.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L5e7"}},"required":["from","to"],"descriptionNode":"$L5e8"},"format":{"type":"string","enum":["csv"],"description":"Format of the generated report file.","examples":["csv"],"descriptionNode":"$L5e9"},"type":{"type":"string","description":"$5ea","enum":["settlement_report","custom_report","payments_report","payout_statement_report","icpp_fee_breakdown_report"],"examples":["settlement_report"],"descriptionNode":"$L5eb"},"options":{"type":"object","description":"Further options to customise the report.","properties":{"timezone":{"type":"string","description":"Defaults to `ETC/UTC`. Defines the output timezone for all timestamps displayed in the report.\n\nHas no effect on `from` or `to` parameters.","examples":["Europe/London"],"descriptionNode":"$L5ec"},"columns":{"type":"array","items":{"type":"string","enum":["transaction_id","order_id","original_order_id","started_date","updated_date","completed_date","payment_created_date","payment_captured_date","type","state","description","merchant_order_ext_ref","customer_id","amount","currency","settlement_amount","settlement_currency","payment_method","fee_amount","fee_currency","processing_fee_amount","processing_fee_currency","browser_url","location_id"]},"description":"$5ed","examples":[["transaction_id","type","amount","currency","settlement_amount","settlement_currency"]],"descriptionNode":"$L5ee"}},"descriptionNode":"$L5ef"}},"required":["filter","format","type"],"descriptionNode":"$L5f0"},{"title":"Custom report","type":"object","description":"A custom report contains all the query information for generating reports of selected transactions associated with a Merchant account.","properties":{"filter":{"type":"object","description":"Filtering parameters to be applied to the report.\n\n:::note\nFor `settlement_report` and `custom_report`, `from` and `to` are evaluated against the transaction `created_date`, not the original payment-start timeframe or the `payment_created_date` and `payment_captured_date` columns.\n:::","properties":{"from":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:from","to":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:to","entity_types":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:entity_types","entity_states":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:entity_states","currency":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:currency","location_id":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:properties:location_id"},"required":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:filter:required","descriptionNode":"$L5f1"},"format":{"type":"string","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:enum","description":"Format of the generated report file.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:examples","descriptionNode":"$L5f2"},"type":{"type":"string","description":"$5f3","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:enum","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:examples","descriptionNode":"$L5f4"},"options":{"type":"object","description":"Further options to customise the report.","properties":{"timezone":{"type":"string","description":"Defaults to `ETC/UTC`. Defines the output timezone for all timestamps displayed in the report.\n\nHas no effect on `from` or `to` parameters.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:options:properties:timezone:examples","descriptionNode":"$L5f5"},"columns":{"type":"array","description":"$5f6","items":{"type":"string","enum":["transaction_id","related_transaction_id","transaction_description","payout_id","dispute_id","account_id","account_balance","order_id","original_order_id","original_order_ext_ref","order_description","order_channel","order_customer_note","order_tip_amount","order_created_by","payment_initiated_by","order_line_items","payout_reference","invoice_reference","started_date","created_date","updated_date","completed_date","payment_created_date","payment_captured_date","type","legacy_type","state","description","merchant_order_ext_ref","customer_id","amount","currency","settlement_amount","settlement_currency","exchange_rate","refunded_amount","statement_descriptor","tip_amount","terminal_hardware_id","customer_name","customer_email","customer_card_number","customer_card_brand","customer_card_type","customer_card_category","payment_method","fee_amount","fee_currency","processing_fee_amount","processing_fee_currency","fx_fee_amount","fx_fee_currency","browser_url","beneficiary_name","beneficiary_account_number","location_id","location_name","surcharge_amount","order_surcharge_amount","order_custom_field_name","order_custom_field_value","offline_payment_state","order_authorisation_type","metadata.*"]},"examples":[["transaction_id","amount","currency","metadata.my_attribute"]],"descriptionNode":"$L5f7"}},"descriptionNode":"$L5f8"}},"required":["filter","format","type"],"descriptionNode":"$L5f9"},{"title":"Payments report","type":"object","description":"A payments report contains all the query information for generating reports of payments associated with a Merchant account, including failed and declined payments.","properties":{"filter":{"type":"object","description":"Filtering parameters to be applied to the report.\n\n:::note\nFor `payments_report`, `from` and `to` are evaluated against the payment `created_date`. The `captured_date` column is returned data and does not change the filter key.\n:::","properties":{"from":{"type":"string","format":"date-time","description":"This parameter specifies the start boundary for filtering report data. It accepts ETC/UTC date and time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601) and includes all matching records on or after this timestamp.\n\nCombined with the `to` parameter, this determines the report's timeframe, including all matching records between the two values.\n\nFor example, by setting the `from` parameter to `2021-01-01T00:00:00Z`, the report will include matching records from the first second of January 1, 2021, UTC, and onwards.","descriptionNode":"$L5fa"},"to":{"type":"string","format":"date-time","description":"This parameter specifies the end boundary for filtering report data. It accepts ETC/UTC date and time in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601) and includes all matching records before this timestamp (exclusive).\n\nCombined with the `from` parameter, this determines the timeframe for the report, including all matching records between the two values.\n\nFor example, setting the `to` parameter to `2021-12-31T23:59:59Z` will include all matching records in the report up to, but not including, the last second of December 31, 2021, UTC.","descriptionNode":"$L5fb"},"entity_states":{"type":"array","items":{"type":"string","enum":["completed","failed","declined","cancelled"]},"description":"Select payments by state to be included in the report.\n\n| Value | Description |\n| ----- | ----------- |\n| `completed` | Include payments that completed successfully. |\n| `failed` | Include payments that failed during processing. |\n| `declined` | Include payments rejected by the issuer or payment flow. |\n| `cancelled` | Include payments cancelled before completion. |\n\nIf not provided, payments in all states will be included in the report.","descriptionNode":"$L5fc"}},"required":["from","to"],"descriptionNode":"$L5fd"},"format":{"type":"string","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:enum","description":"Format of the generated report file.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:examples","descriptionNode":"$L5fe"},"type":{"type":"string","description":"$5ff","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:enum","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:examples","descriptionNode":"$L600"},"options":{"type":"object","description":"Further options to customise the report.","properties":{"timezone":{"type":"string","description":"Defaults to `ETC/UTC`. Defines the output timezone for all timestamps displayed in the report.\n\nHas no effect on `from` or `to` parameters.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:options:properties:timezone:examples","descriptionNode":"$L601"},"columns":{"type":"array","items":{"type":"string","enum":["payment_id","type","description","original_payment_id","order_id","state","reason","amount","currency","surcharge_amount","tip_amount","refunded_amount","created_date","captured_date","merchant_order_ext_ref","payment_method","location_id","customer_id","customer_card_number","customer_card_country","customer_card_brand","customer_card_type","customer_card_category","customer_email","fee_amount","fee_currency"]},"description":"$602","examples":[["payment_id","type","state","amount","currency"]],"descriptionNode":"$L603"}},"descriptionNode":"$L604"}},"required":["filter","format","type"],"descriptionNode":"$L605"},{"title":"Payout statement report","type":"object","description":"A payout statement report contains all the query information for generating reports of a selected payout associated with a Merchant account.","properties":{"filter":{"type":"object","description":"Filtering parameters to be applied to the report.","properties":{"payout_id":{"type":"string","format":"uuid","description":"Permanent payout ID used for payouts operations.","descriptionNode":"$L606"}},"required":["payout_id"],"descriptionNode":"$L607"},"format":{"type":"string","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:enum","description":"Format of the generated report file.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:examples","descriptionNode":"$L608"},"type":{"type":"string","description":"$609","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:enum","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:examples","descriptionNode":"$L60a"},"options":{"type":"object","description":"Further options to customise the report.","properties":{"timezone":{"type":"string","description":"Defaults to `ETC/UTC`. Defines the output timezone for all timestamps displayed in the report.\n\nHas no effect on `from` or `to` parameters.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:options:properties:timezone:examples","descriptionNode":"$L60b"},"columns":{"type":"array","items":{"type":"string","enum":["created_date","completed_date","payout_affected_date","affected_payout_amount","transaction_id","order_id","dispute_id","merchant_order_reference","type","related_icpp_charge_id","transaction_amount","transaction_currency","billing_amount","billing_currency","state","original_transaction_id","original_transaction_amount","original_transaction_currency","original_order_id","original_order_channel","original_merchant_order_reference","fee_amount","fee_currency","settlement_amount","settlement_currency","location_id","location_name","submerchant_id","payout_transfer_reference","payout_total_amount","payout_date"]},"description":"$60c","examples":[["transaction_id","type","transaction_amount","transaction_currency"]],"descriptionNode":"$L60d"}},"descriptionNode":"$L60e"}},"required":["filter","format","type"],"descriptionNode":"$L60f"},{"title":"IC++ fee breakdown report","type":"object","description":"A IC++ fee breakdown report contains all the query information for generating reports of fees for each IC++ transaction related to a payout.","properties":{"filter":{"type":"object","description":"Filtering parameters to be applied to the report.","properties":{"icpp_charge_id":{"type":"string","format":"uuid","description":"Permanent ID of of the IC++ fee related to a payout transaction.\n\nThis ID can be obtained from the `related_icpp_charge_id` column of a payout statement report.","descriptionNode":"$L610"}},"required":["icpp_charge_id"],"descriptionNode":"$L611"},"format":{"type":"string","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:enum","description":"Format of the generated report file.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:format:examples","descriptionNode":"$L612"},"type":{"type":"string","description":"$613","enum":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:enum","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:type:examples","descriptionNode":"$L614"},"options":{"type":"object","description":"Further options to customise the report.","properties":{"timezone":{"type":"string","description":"Defaults to `ETC/UTC`. Defines the output timezone for all timestamps displayed in the report.\n\nHas no effect on `from` or `to` parameters.","examples":"$2e:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:options:properties:timezone:examples","descriptionNode":"$L615"},"columns":{"type":"array","items":{"type":"string","enum":["id","created_at","operation","amount","currency","settlement_amount","settlement_currency","payment_method","card_scheme","card_funding","order_description","order_merchant_external_ref","original_operation_id","acquiring_fee_amount","card_interchange_fee_amount","card_scheme_fee_amount","card_type","order_channel","card_country"]},"description":"$616","examples":[["id","operation","acquiring_fee_amount","card_interchange_fee_amount","card_scheme_fee_amount"]],"descriptionNode":"$L617"}},"descriptionNode":"$L618"}},"required":["filter","format","type"],"descriptionNode":"$L619"}]},"examples":{"custom_report":{"summary":"Custom report","value":{"filter":{"from":"2020-01-01T00:00:00Z","to":"2020-01-02T00:00:00Z","entity_types":["payment"],"entity_states":["completed","processing"]},"format":"csv","type":"custom_report","options":{"timezone":"Europe/London","columns":["transaction_id","amount","currency","metadata.custom_attribute"]}}},"settlement_report":{"summary":"Settlement report","value":{"filter":{"from":"2020-01-01T00:00:00Z","to":"2020-01-02T00:00:00Z","entity_types":["payment"]},"format":"csv","type":"settlement_report"}},"payments_report":{"summary":"Payments report","value":{"filter":{"from":"2020-01-01T00:00:00Z","to":"2020-01-02T00:00:00Z","entity_states":["completed","failed","declined"]},"format":"csv","type":"payments_report"}},"payout_statement_report":{"summary":"Payout statement report","value":{"filter":{"payout_id":"a830020e-090c-4717-836d-37941a27ad12"},"format":"csv","type":"payout_statement_report"}},"icpp_fee_breakdown_report":{"summary":"IC++ fee breakdown report","value":{"filter":{"icpp_charge_id":"41d6c699-744a-4994-91c0-9227539c587f"},"format":"csv","type":"icpp_fee_breakdown_report"}}}}}},"variantLabels":["Report run processing","Report run completed, report file ready"],"children":["$L61a","$L61b"]}]}],false]}] 61a:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"create-report-run","children":[["$L61c","$undefined"],["$","$L15",null,{"id":"create-report-run"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/create-report-run.md"}]]}]}],"$undefined"]}] 61f:Td83,
curl -X POST "https://merchant.revolut.com/api/report-runs" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}'
620:T1a64,
const payload = {
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
};
fetch("https://merchant.revolut.com/api/report-runs", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
621:T1c7b,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/report-runs"
  jsonData := []byte(`
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
622:T179a,
import requests

url = "https://merchant.revolut.com/api/report-runs"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
623:T478,import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.URI; public class Main { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String body = """ { "filter": { "from": "2020-01-01T00:00:00Z", "to": "2020-01-02T00:00:00Z", "entity_types": [ "payment" ], "entity_states": [ "completed", "processing" ] }, "format": "csv", "type": "custom_report", "options": { "timezone": "Europe/London", "columns": [ "transaction_id", "amount", "currency", "metadata.custom_attribute" ] } } """; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://merchant.revolut.com/api/report-runs")) .header("Content-Type", "application/json") .header("Authorization", "__RP_TOK_0__") .POST(HttpRequest.BodyPublishers.ofString(body)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } }624:T21e2,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/report-runs"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
625:T42a,using System.Net.Http; using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://merchant.revolut.com/api/report-runs"), Headers = { { "Authorization", "__RP_TOK_0__" }, }, Content = new StringContent(@"{ ""filter"": { ""from"": ""2020-01-01T00:00:00Z"", ""to"": ""2020-01-02T00:00:00Z"", ""entity_types"": [ ""payment"" ], ""entity_states"": [ ""completed"", ""processing"" ] }, ""format"": ""csv"", ""type"": ""custom_report"", ""options"": { ""timezone"": ""Europe/London"", ""columns"": [ ""transaction_id"", ""amount"", ""currency"", ""metadata.custom_attribute"" ] } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }626:T31f8,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/report-runs"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""filter"": {
    ""from"": ""2020-01-01T00:00:00Z"",
    ""to"": ""2020-01-02T00:00:00Z"",
    ""entity_types"": [
      ""payment""
    ],
    ""entity_states"": [
      ""completed"",
      ""processing""
    ]
  },
  ""format"": ""csv"",
  ""type"": ""custom_report"",
  ""options"": {
    ""timezone"": ""Europe/London"",
    ""columns"": [
      ""transaction_id"",
      ""amount"",
      ""currency"",
      ""metadata.custom_attribute""
    ]
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
627:Td8b,
curl -X POST "https://sandbox-merchant.revolut.com/api/report-runs" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}'
628:T1a6c,
const payload = {
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
};
fetch("https://sandbox-merchant.revolut.com/api/report-runs", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
629:T1c83,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/report-runs"
  jsonData := []byte(`
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
62a:T17a2,
import requests

url = "https://sandbox-merchant.revolut.com/api/report-runs"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
62b:T480,import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.URI; public class Main { public static void main(String[] args) { HttpClient client = HttpClient.newHttpClient(); String body = """ { "filter": { "from": "2020-01-01T00:00:00Z", "to": "2020-01-02T00:00:00Z", "entity_types": [ "payment" ], "entity_states": [ "completed", "processing" ] }, "format": "csv", "type": "custom_report", "options": { "timezone": "Europe/London", "columns": [ "transaction_id", "amount", "currency", "metadata.custom_attribute" ] } } """; HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://sandbox-merchant.revolut.com/api/report-runs")) .header("Content-Type", "application/json") .header("Authorization", "__RP_TOK_0__") .POST(HttpRequest.BodyPublishers.ofString(body)) .build(); client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) .thenApply(HttpResponse::body) .thenAccept(System.out::println) .join(); } }62c:T21ea,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/report-runs"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
62d:T432,using System.Net.Http; using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/report-runs"), Headers = { { "Authorization", "__RP_TOK_0__" }, }, Content = new StringContent(@"{ ""filter"": { ""from"": ""2020-01-01T00:00:00Z"", ""to"": ""2020-01-02T00:00:00Z"", ""entity_types"": [ ""payment"" ], ""entity_states"": [ ""completed"", ""processing"" ] }, ""format"": ""csv"", ""type"": ""custom_report"", ""options"": { ""timezone"": ""Europe/London"", ""columns"": [ ""transaction_id"", ""amount"", ""currency"", ""metadata.custom_attribute"" ] } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }62e:T3200,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/report-runs"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""filter"": {
    ""from"": ""2020-01-01T00:00:00Z"",
    ""to"": ""2020-01-02T00:00:00Z"",
    ""entity_types"": [
      ""payment""
    ],
    ""entity_states"": [
      ""completed"",
      ""processing""
    ]
  },
  ""format"": ""csv"",
  ""type"": ""custom_report"",
  ""options"": {
    ""timezone"": ""Europe/London"",
    ""columns"": [
      ""transaction_id"",
      ""amount"",
      ""currency"",
      ""metadata.custom_attribute""
    ]
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
61b:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L61d",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L61e"}],"requestBody":"$2e:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$2e:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/report-runs\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}'","templateHtml":"$61f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n};\nfetch(\"https://merchant.revolut.com/api/report-runs\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$620","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/report-runs\"\n jsonData := []byte(`\n{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$621","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/report-runs\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$622","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"$623","templateHtml":"$624","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"$625","templateHtml":"$626","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/report-runs\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}'","templateHtml":"$627","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/report-runs\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$628","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/report-runs\"\n jsonData := []byte(`\n{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$629","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/report-runs\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$62a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"$62b","templateHtml":"$62c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"$62d","templateHtml":"$62e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/report-runs","parameters":["$61b:props:children:0:props:children:1:props:parameters:0"]}],"$L62f"],"$L630","$L631"]}]]}] 62f:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L632"}}}] 630:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"custom_report","label":"Custom report","rawValue":"$2e:props:children:0:props:children:props:requestBody:content:application/json:examples:custom_report:value","block":"$L633"},{"key":"settlement_report","label":"Settlement report","rawValue":"$2e:props:children:0:props:children:props:requestBody:content:application/json:examples:settlement_report:value","block":"$L634"},{"key":"payments_report","label":"Payments report","rawValue":"$2e:props:children:0:props:children:props:requestBody:content:application/json:examples:payments_report:value","block":"$L635"},{"key":"payout_statement_report","label":"Payout statement report","rawValue":"$2e:props:children:0:props:children:props:requestBody:content:application/json:examples:payout_statement_report:value","block":"$L636"},{"key":"icpp_fee_breakdown_report","label":"IC++ fee breakdown report","rawValue":"$2e:props:children:0:props:children:props:requestBody:content:application/json:examples:icpp_fee_breakdown_report:value","block":"$L637"}],"syncedPropertyName":"type"}},"title":"Request body samples","headingAs":"h4"}] 631:["$","$Lbd",null,{"exampleBlocks":{"201":{"application/json":{"variants":[{"key":"report_run_processing","label":"Report run processing","rawValue":"$2e:props:children:0:props:children:props:responses:201:content:application/json:examples:report_run_processing:value","block":"$L638"},{"key":"report_run_completed","label":"Report run completed, report file ready","rawValue":"$2e:props:children:0:props:children:props:responses:201:content:application/json:examples:report_run_completed:value","block":"$L639"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L63a"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L63b"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$L63c"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 5c4:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 61c:"Create a report run" 5d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID used for accessing report details. Use this to check report generation status."}]]}] 5d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Current status of the report run."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation is still in progress.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Report generation finished successfully and the file is available to download for 24 hours via ",["$","code","code-0",{"children":"file_url"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"failed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation failed and no report file is available.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"expired"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Report generation previously completed, but the 24-hour file availability window has elapsed and the file can no longer be downloaded.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 5d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Use this link to download the report file. Available only when ",["$","code","code-0",{"children":"status"}]," is ",["$","code","code-1",{"children":"completed"}],", and only for 24 hours after report generation finishes."]}]]}] 5d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"ReportRunDetails"}]," object contains all information associated with a specific report run, identified by the ",["$","code","code-1",{"children":"report_run_id"}],"."]}]]}] 5d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Report run created, report started generating"}]]}] 5d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 5d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 5d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 5d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 5da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 5db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 5dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 5dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 5de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] 5df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] 5e0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] 5e1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 5e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter specifies the start boundary for filtering report data. It accepts ETC/UTC date and time in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601 format"}]," and includes all matching records on or after this timestamp."]}],"\n",["$","p","p-1",{"children":["Combined with the ",["$","code","code-0",{"children":"to"}]," parameter, this determines the report's timeframe, including all matching records between the two values."]}],"\n",["$","p","p-2",{"children":["For example, by setting the ",["$","code","code-0",{"children":"from"}]," parameter to ",["$","code","code-1",{"children":"2021-01-01T00:00:00Z"}],", the report will include matching records from the first second of January 1, 2021, UTC, and onwards."]}]]}] 5e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter specifies the end boundary for filtering report data. It accepts ETC/UTC date and time in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601 format"}]," and includes all matching records before this timestamp (exclusive)."]}],"\n",["$","p","p-1",{"children":["Combined with the ",["$","code","code-0",{"children":"from"}]," parameter, this determines the timeframe for the report, including all matching records between the two values."]}],"\n",["$","p","p-2",{"children":["For example, setting the ",["$","code","code-0",{"children":"to"}]," parameter to ",["$","code","code-1",{"children":"2021-12-31T23:59:59Z"}]," will include all matching records in the report up to, but not including, the last second of December 31, 2021, UTC."]}]]}] 5e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Select source entity families to be included in the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include rows originating from payment settlement activity.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"refund"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include rows originating from refund activity.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"dispute"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include rows originating from dispute and chargeback activity.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["These values are filter input categories. They do not map 1:1 to the CSV ",["$","code","code-0",{"children":"type"}]," output column. For example, a settlement report filtered with ",["$","code","code-1",{"children":"payment"}],", ",["$","code","code-2",{"children":"refund"}],", and ",["$","code","code-3",{"children":"dispute"}]," can still return CSV ",["$","code","code-4",{"children":"type"}]," values such as ",["$","code","code-5",{"children":"SETTLEMENT"}],", ",["$","code","code-6",{"children":"REFUND"}],", ",["$","code","code-7",{"children":"CHARGEBACK"}],", and ",["$","code","code-8",{"children":"CHARGEBACK_REVERSAL"}],"."]}]}]]}]]}] 5e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Select transactions by state to be included in the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include transactions that reached their final successful state.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include transactions that are still being processed.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"cancelled"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include transactions that were cancelled before final completion.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"reverted"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include transactions that were reversed after initial creation.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","p","p-1",{"children":["If not provided, only ",["$","code","code-0",{"children":"completed"}]," transactions will be included in the report."]}]]}] 5e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Select transactions with specific currencies to include in the report. Provide ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 5e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Select transactions by location ID to be included in the report."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 5e8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filtering parameters to be applied to the report."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For ",["$","code","code-0",{"children":"settlement_report"}]," and ",["$","code","code-1",{"children":"custom_report"}],", ",["$","code","code-2",{"children":"from"}]," and ",["$","code","code-3",{"children":"to"}]," are evaluated against the transaction ",["$","code","code-4",{"children":"created_date"}],", not the original payment-start timeframe or the ",["$","code","code-5",{"children":"payment_created_date"}]," and ",["$","code","code-6",{"children":"payment_captured_date"}]," columns."]}]}]]}]]}] 5e9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Format of the generated report file."}]]}] 5eb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by ",["$","code","code-0",{"children":"from"}]," and ",["$","code","code-1",{"children":"to"}]," creation timestamps, and optionally by ",["$","code","code-2",{"children":"entity_states"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter ",["$","code","code-0",{"children":"filter.payout_id"}],", which should be obtained from the payout ID retrieved via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payout-list","target":"_blank","rel":"noreferrer","children":"payout list endpoint"}]," or from ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks","target":"_blank","rel":"noreferrer","children":"webhook events"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter ",["$","code","code-0",{"children":"filter.icpp_charge_id"}],", which should be obtained from the ",["$","code","code-1",{"children":"related_icpp_charge_id"}]," column in the Payout statement report. A separate report should be generated for each IC++ transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 5ec:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Defaults to ",["$","code","code-0",{"children":"ETC/UTC"}],". Defines the output timezone for all timestamps displayed in the report."]}],"\n",["$","p","p-1",{"children":["Has no effect on ",["$","code","code-0",{"children":"from"}]," or ",["$","code","code-1",{"children":"to"}]," parameters."]}]]}] 5ee:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Names of the columns to be included in the report."}],"\n",["$","p","p-1",{"children":["If the ",["$","code","code-0",{"children":"columns"}]," parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error."]}],"\n",["$","p","p-2",{"children":"Available columns:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Column name","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the ledger transaction related to an order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the original order. For refunds and chargebacks, references the order being reversed.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"started_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Start timestamp shown on the row. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"updated_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Last update timestamp shown on the row. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Completion timestamp shown on the row. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_created_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payment authorisation or creation timestamp for rows linked to a payment. Empty for refunds and non-payment-related rows where no payment timestamp applies. This is returned data, not the report filter key.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_captured_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payment capture timestamp for rows linked to a captured payment. Empty for refunds, non-payment-related rows, or payments not captured. This is returned data, not the report filter key.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"$L63d","$L63e","$L63f","$L640","$L641","$L642","$L643","$L644","$L645","$L646","$L647","$L648","$L649","$L64a","$L64b","$L64c"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 5ef:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Further options to customise the report."}]]}] 5f0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A settlement report contains all the query information for generating reports of settled transactions associated with a Merchant account."}]]}] 5f1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filtering parameters to be applied to the report."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For ",["$","code","code-0",{"children":"settlement_report"}]," and ",["$","code","code-1",{"children":"custom_report"}],", ",["$","code","code-2",{"children":"from"}]," and ",["$","code","code-3",{"children":"to"}]," are evaluated against the transaction ",["$","code","code-4",{"children":"created_date"}],", not the original payment-start timeframe or the ",["$","code","code-5",{"children":"payment_created_date"}]," and ",["$","code","code-6",{"children":"payment_captured_date"}]," columns."]}]}]]}]]}] 5f2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Format of the generated report file."}]]}] 5f4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by ",["$","code","code-0",{"children":"from"}]," and ",["$","code","code-1",{"children":"to"}]," creation timestamps, and optionally by ",["$","code","code-2",{"children":"entity_states"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter ",["$","code","code-0",{"children":"filter.payout_id"}],", which should be obtained from the payout ID retrieved via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payout-list","target":"_blank","rel":"noreferrer","children":"payout list endpoint"}]," or from ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks","target":"_blank","rel":"noreferrer","children":"webhook events"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter ",["$","code","code-0",{"children":"filter.icpp_charge_id"}],", which should be obtained from the ",["$","code","code-1",{"children":"related_icpp_charge_id"}]," column in the Payout statement report. A separate report should be generated for each IC++ transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 5f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Defaults to ",["$","code","code-0",{"children":"ETC/UTC"}],". Defines the output timezone for all timestamps displayed in the report."]}],"\n",["$","p","p-1",{"children":["Has no effect on ",["$","code","code-0",{"children":"from"}]," or ",["$","code","code-1",{"children":"to"}]," parameters."]}]]}] 5f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Names of the columns to include in the report."}],"\n",["$","p","p-1",{"children":"If not specified, all available columns are included. An empty array returns an error."}],"\n",["$","p","p-2",{"children":["To include custom order metadata, use ",["$","code","code-0",{"children":"metadata.*"}]," with the attribute name, for example ",["$","code","code-1",{"children":"metadata.my_attribute"}],"."]}],"\n",["$","p","p-3",{"children":"Available columns:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Column name","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Unique identifier of the ledger transaction. Matches ",["$","code","code-0",{"children":"transaction_id"}]," in the settlement and payout reports. Use ",["$","code","code-1",{"children":"order_id"}]," to cross-reference with the payments report."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"related_transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["For refund and chargeback transactions, the ledger transaction ID of the original payment. Corresponds to ",["$","code","code-0",{"children":"original_transaction_id"}]," in the payout report."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the payout that this transaction contributed to.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"dispute_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the dispute associated with this transaction, if applicable.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"account_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the merchant account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"account_balance"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Account balance at the time of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the order. Use to cross-reference with the payments or payout reports.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["For refunds and chargebacks, the order ID of the original payment. For settlement transactions, matches ",["$","code","code-0",{"children":"order_id"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"$L64d","$L64e","$L64f","$L650","$L651","$L652","$L653","$L654","$L655","$L656","$L657","$L658","$L659","$L65a","$L65b","$L65c","$L65d","$L65e","$L65f","$L660","$L661","$L662","$L663","$L664","$L665","$L666","$L667","$L668","$L669","$L66a","$L66b","$L66c","$L66d","$L66e","$L66f","$L670","$L671","$L672","$L673","$L674","$L675","$L676","$L677","$L678","$L679","$L67a","$L67b","$L67c","$L67d","$L67e","$L67f","$L680","$L681","$L682","$L683","$L684"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 5f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Further options to customise the report."}]]}] 5f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A custom report contains all the query information for generating reports of selected transactions associated with a Merchant account."}]]}] 5fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter specifies the start boundary for filtering report data. It accepts ETC/UTC date and time in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601 format"}]," and includes all matching records on or after this timestamp."]}],"\n",["$","p","p-1",{"children":["Combined with the ",["$","code","code-0",{"children":"to"}]," parameter, this determines the report's timeframe, including all matching records between the two values."]}],"\n",["$","p","p-2",{"children":["For example, by setting the ",["$","code","code-0",{"children":"from"}]," parameter to ",["$","code","code-1",{"children":"2021-01-01T00:00:00Z"}],", the report will include matching records from the first second of January 1, 2021, UTC, and onwards."]}]]}] 5fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter specifies the end boundary for filtering report data. It accepts ETC/UTC date and time in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601 format"}]," and includes all matching records before this timestamp (exclusive)."]}],"\n",["$","p","p-1",{"children":["Combined with the ",["$","code","code-0",{"children":"from"}]," parameter, this determines the timeframe for the report, including all matching records between the two values."]}],"\n",["$","p","p-2",{"children":["For example, setting the ",["$","code","code-0",{"children":"to"}]," parameter to ",["$","code","code-1",{"children":"2021-12-31T23:59:59Z"}]," will include all matching records in the report up to, but not including, the last second of December 31, 2021, UTC."]}]]}] 5fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Select payments by state to be included in the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include payments that completed successfully.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"failed"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include payments that failed during processing.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"declined"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include payments rejected by the issuer or payment flow.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"cancelled"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Include payments cancelled before completion.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","p","p-1",{"children":"If not provided, payments in all states will be included in the report."}]]}] 5fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filtering parameters to be applied to the report."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For ",["$","code","code-0",{"children":"payments_report"}],", ",["$","code","code-1",{"children":"from"}]," and ",["$","code","code-2",{"children":"to"}]," are evaluated against the payment ",["$","code","code-3",{"children":"created_date"}],". The ",["$","code","code-4",{"children":"captured_date"}]," column is returned data and does not change the filter key."]}]}]]}]]}] 5fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Format of the generated report file."}]]}] 600:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by ",["$","code","code-0",{"children":"from"}]," and ",["$","code","code-1",{"children":"to"}]," creation timestamps, and optionally by ",["$","code","code-2",{"children":"entity_states"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter ",["$","code","code-0",{"children":"filter.payout_id"}],", which should be obtained from the payout ID retrieved via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payout-list","target":"_blank","rel":"noreferrer","children":"payout list endpoint"}]," or from ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks","target":"_blank","rel":"noreferrer","children":"webhook events"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter ",["$","code","code-0",{"children":"filter.icpp_charge_id"}],", which should be obtained from the ",["$","code","code-1",{"children":"related_icpp_charge_id"}]," column in the Payout statement report. A separate report should be generated for each IC++ transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 601:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Defaults to ",["$","code","code-0",{"children":"ETC/UTC"}],". Defines the output timezone for all timestamps displayed in the report."]}],"\n",["$","p","p-1",{"children":["Has no effect on ",["$","code","code-0",{"children":"from"}]," or ",["$","code","code-1",{"children":"to"}]," parameters."]}]]}] 603:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Names of the columns to be included in the report."}],"\n",["$","p","p-1",{"children":["If the ",["$","code","code-0",{"children":"columns"}]," parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error."]}],"\n",["$","p","p-2",{"children":"Available columns:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Column name","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Category of the payment row, indicating whether the row represents a payment attempt or a refund. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_payment_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"For refunds, the unique identifier of the original payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the order associated with the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"state"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Lifecycle state of the payment. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"reason"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Reason for a failed or declined payment, for example: ",["$","code","code-0",{"children":"Insufficient Funds"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount of the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the payment."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"surcharge_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Surcharge amount applied to the payment, if any.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"tip_amount"}],"className":"eowryt7","ref":"$undefined"}],"$L685"],"className":"eowryt5","ref":"$undefined"}],"$L686","$L687","$L688","$L689","$L68a","$L68b","$L68c","$L68d","$L68e","$L68f","$L690","$L691","$L692","$L693","$L694"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 604:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Further options to customise the report."}]]}] 605:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A payments report contains all the query information for generating reports of payments associated with a Merchant account, including failed and declined payments."}]]}] 606:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent payout ID used for payouts operations."}]]}] 607:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filtering parameters to be applied to the report."}]]}] 608:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Format of the generated report file."}]]}] 60a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by ",["$","code","code-0",{"children":"from"}]," and ",["$","code","code-1",{"children":"to"}]," creation timestamps, and optionally by ",["$","code","code-2",{"children":"entity_states"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter ",["$","code","code-0",{"children":"filter.payout_id"}],", which should be obtained from the payout ID retrieved via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payout-list","target":"_blank","rel":"noreferrer","children":"payout list endpoint"}]," or from ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks","target":"_blank","rel":"noreferrer","children":"webhook events"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter ",["$","code","code-0",{"children":"filter.icpp_charge_id"}],", which should be obtained from the ",["$","code","code-1",{"children":"related_icpp_charge_id"}]," column in the Payout statement report. A separate report should be generated for each IC++ transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 60b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Defaults to ",["$","code","code-0",{"children":"ETC/UTC"}],". Defines the output timezone for all timestamps displayed in the report."]}],"\n",["$","p","p-1",{"children":["Has no effect on ",["$","code","code-0",{"children":"from"}]," or ",["$","code","code-1",{"children":"to"}]," parameters."]}]]}] 60d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Names of the columns to be included in the report."}],"\n",["$","p","p-1",{"children":["If the ",["$","code","code-0",{"children":"columns"}]," parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error."]}],"\n",["$","p","p-2",{"children":"Available columns:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Column name","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"created_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the transaction was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the transaction was completed.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_affected_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the payout was affected by this transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"affected_payout_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Boolean flag indicating whether this transaction contributed to the payout amount (",["$","code","code-0",{"children":"true"}],") or not (",["$","code","code-1",{"children":"false"}],"). Despite the name, this is not a monetary value."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the order associated with the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"dispute_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the dispute associated with a chargeback or chargeback reversal transaction. Empty for rows not related to a dispute.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"merchant_order_reference"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Type of the payout-related ledger event the row represents. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"related_icpp_charge_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the IC++ charge related to the transaction, if applicable.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"$L695","$L696","$L697","$L698","$L699","$L69a","$L69b","$L69c","$L69d","$L69e","$L69f","$L6a0","$L6a1","$L6a2","$L6a3","$L6a4","$L6a5","$L6a6","$L6a7","$L6a8","$L6a9"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 60e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Further options to customise the report."}]]}] 60f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A payout statement report contains all the query information for generating reports of a selected payout associated with a Merchant account."}]]}] 610:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent ID of of the IC++ fee related to a payout transaction."}],"\n",["$","p","p-1",{"children":["This ID can be obtained from the ",["$","code","code-0",{"children":"related_icpp_charge_id"}]," column of a payout statement report."]}]]}] 611:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Filtering parameters to be applied to the report."}]]}] 612:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Format of the generated report file."}]]}] 614:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the report."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions associated with a Merchant account, with a configurable set of columns.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payments report provides details of all payments associated with a Merchant account, including failed and declined payments. Supports filtering by ",["$","code","code-0",{"children":"from"}]," and ",["$","code","code-1",{"children":"to"}]," creation timestamps, and optionally by ",["$","code","code-2",{"children":"entity_states"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payout statement Reports provide a detailed breakdown of all transactions contributing to a specific payout amount. It requires the additional parameter ",["$","code","code-0",{"children":"filter.payout_id"}],", which should be obtained from the payout ID retrieved via the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-payout-list","target":"_blank","rel":"noreferrer","children":"payout list endpoint"}]," or from ",["$","a","a-1",{"href":"https://developer.revolut.com/docs/api/merchant#create-webhook#callbacks","target":"_blank","rel":"noreferrer","children":"webhook events"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ fee breakdown reports provide a detailed breakdown of fees for each IC++ transaction related to a payout. It requires the additional parameter ",["$","code","code-0",{"children":"filter.icpp_charge_id"}],", which should be obtained from the ",["$","code","code-1",{"children":"related_icpp_charge_id"}]," column in the Payout statement report. A separate report should be generated for each IC++ transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 615:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Defaults to ",["$","code","code-0",{"children":"ETC/UTC"}],". Defines the output timezone for all timestamps displayed in the report."]}],"\n",["$","p","p-1",{"children":["Has no effect on ",["$","code","code-0",{"children":"from"}]," or ",["$","code","code-1",{"children":"to"}]," parameters."]}]]}] 617:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Names of the columns to be included in the report."}],"\n",["$","p","p-1",{"children":["If the ",["$","code","code-0",{"children":"columns"}]," parameter is not defined in the request, all available columns will be included in the report. An empty array will return an error."]}],"\n",["$","p","p-2",{"children":"Available columns:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Column name","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"created_at"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the payment was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"operation"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["IC++ transaction type. Values: ",["$","code","code-0",{"children":"SALE"}]," (payment sale), ",["$","code","code-1",{"children":"REFUND"}]," (refund), and ",["$","code","code-2",{"children":"DISPUTE"}]," (dispute-related transaction)."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Transaction amount.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount settled on the merchant's account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_method"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payment method used for the transaction. Returns ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," for Revolut Pay payments, or the card scheme name for card payments."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_scheme"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Card BIN scheme.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_funding"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card funding type, for example: ",["$","code","code-0",{"children":"DEBIT"}]," or ",["$","code","code-1",{"children":"PREPAID"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-11",{"children":["$L6aa","$L6ab"],"className":"eowryt5","ref":"$undefined"}],"$L6ac","$L6ad","$L6ae","$L6af","$L6b0","$L6b1","$L6b2"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 618:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Further options to customise the report."}]]}] 619:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A IC++ fee breakdown report contains all the query information for generating reports of fees for each IC++ transaction related to a payout."}]]}] 61d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Start generating a report of all transactions that match the filter and options specified in the request body."}],"\n",["$","p","p-1",{"children":["Use the returned ",["$","code","code-0",{"children":"report_run_id"}]," and the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-report-run","target":"_blank","rel":"noreferrer","children":"Retrieve report run details"}]," operation to check the status of the generation."]}],"\n",["$","p","p-2",{"children":["After generation is done, use the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}]," operation to retrieve the CSV. The ",["$","code","code-0",{"children":"file_url"}]," in the completed report run object is the request URL for that endpoint and requires the same authorisation as any other Merchant API request."]}],"\n",["$","h3","h3-0",{"children":"Report types"}],"\n",["$","p","p-3",{"children":"The table below helps to choose the right report type for your use case:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Report type","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"What it covers","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"custom_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settled and processing transactions with configurable columns","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All settled transactions, with a configurable set of columns","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payments_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All payments including failed and declined ones","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_statement_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"All transactions contributing to a specific payout","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"icpp_fee_breakdown_report"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"IC++ fees per transaction for a specific IC++ charge","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","h5","h5-0",{"children":"IDs across report types"}],"\n",["$","p","p-4",{"children":"Each report type uses a different primary ID, depending on which system the data comes from:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-1",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"ID column","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"System","className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":"Report types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":[["$","code","code-0",{"children":"payment_id"}],", ",["$","code","code-1",{"children":"id"}]],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Acquiring system"}]," - identifies a payment attempt"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"payments_report"}],", ",["$","code","code-1",{"children":"icpp_fee_breakdown_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"$L6b3","$L6b4"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 61e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 63d:["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Settlement report row type. A partial-settlement is represented by separate ",["$","code","code-0",{"children":"SETTLEMENT"}]," and ",["$","code","code-1",{"children":"REFUND"}]," rows, not a dedicated type."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 63e:["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"state"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"State of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 63f:["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 640:["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"merchant_order_ext_ref"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 641:["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 642:["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 643:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the order."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 644:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount settled on the merchant's account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 645:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 646:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_method"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Type of the payment method the customer used to pay for the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 647:["$","tr","tr-18",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees).","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 648:["$","tr","tr-19",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the total fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 649:["$","tr","tr-20",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Acquiring markup fee only — a subset of ",["$","code","code-0",{"children":"fee_amount"}],". Represents Revolut's service fee, excluding interchange and scheme fees."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64a:["$","tr","tr-21",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing_fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the acquiring markup fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64b:["$","tr","tr-22",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"browser_url"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The URL where the customer initiated the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64c:["$","tr","tr-23",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the location related to the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64d:["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_order_ext_ref"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Merchant's order identifier of the original order for external reference.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64e:["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 64f:["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_channel"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Channel through which the order was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 650:["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_customer_note"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Note added by the customer at the time of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 651:["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_tip_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Tip amount set at the order level.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 652:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_created_by"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Identifier of the user who created the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 653:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_initiated_by"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Identifier of who initiated the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 654:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_line_items"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Line items included in the order, if any.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 655:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_reference"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reference of the payout transfer associated with the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 656:["$","tr","tr-18",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"invoice_reference"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Invoice reference associated with the order, if any.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 657:["$","tr","tr-19",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"started_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Start timestamp shown on the row. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 658:["$","tr","tr-20",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"created_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the order was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 659:["$","tr","tr-21",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"updated_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Last update timestamp shown on the row. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65a:["$","tr","tr-22",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"completed_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Completion timestamp shown on the row. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. Separate from the report filter timeframe.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65b:["$","tr","tr-23",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_created_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payment authorisation or creation timestamp for rows linked to a payment. Empty for refunds and non-payment-related rows where no payment timestamp applies. This is returned data, not the report filter key.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65c:["$","tr","tr-24",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_captured_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payment capture timestamp for rows linked to a captured payment. Empty for refunds, non-payment-related rows, or payments not captured. This is returned data, not the report filter key.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65d:["$","tr","tr-25",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Category of the reported transaction row, indicating what kind of balance-affecting event the row represents. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65e:["$","tr","tr-26",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"legacy_type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Legacy type value for backwards compatibility.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 65f:["$","tr","tr-27",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"state"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"State of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 660:["$","tr","tr-28",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"description"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Description of the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 661:["$","tr","tr-29",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"merchant_order_ext_ref"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 662:["$","tr","tr-30",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 663:["$","tr","tr-31",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount of the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 664:["$","tr","tr-32",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the order."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 665:["$","tr","tr-33",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount settled on the merchant's account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 666:["$","tr","tr-34",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 667:["$","tr","tr-35",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"exchange_rate"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Exchange rate applied if currency conversion occurred.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 668:["$","tr","tr-36",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"refunded_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount refunded for the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 669:["$","tr","tr-37",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"statement_descriptor"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Statement descriptor shown on the customer's bank statement.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66a:["$","tr","tr-38",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"tip_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Tip amount included in the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66b:["$","tr","tr-39",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"terminal_hardware_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Identifier of the card reader hardware used, for in-person payments.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66c:["$","tr","tr-40",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_name"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Name of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66d:["$","tr","tr-41",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_email"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Email address of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66e:["$","tr","tr-42",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_number"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Masked card number used for the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 66f:["$","tr","tr-43",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_brand"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card brand used for the payment. Derived from BIN data. Example values: ",["$","code","code-0",{"children":"VISA"}],", ",["$","code","code-1",{"children":"MASTERCARD"}],", ",["$","code","code-2",{"children":"MASTERCARD_DEBIT"}],", ",["$","code","code-3",{"children":"MAESTRO"}],", ",["$","code","code-4",{"children":"AMEX"}],", ",["$","code","code-5",{"children":"DINERS"}],", ",["$","code","code-6",{"children":"DISCOVER"}],", ",["$","code","code-7",{"children":"JCB"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 670:["$","tr","tr-44",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card funding type of the card used for the payment, for example debit, credit, prepaid, deferred debit, or charge. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 671:["$","tr","tr-45",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_category"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card commercial category. Values: ",["$","code","code-0",{"children":"consumer"}]," (personal card) and ",["$","code","code-1",{"children":"commercial"}]," (business or corporate card)."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 672:["$","tr","tr-46",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_method"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payment method the customer used to pay for the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 673:["$","tr","tr-47",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees).","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 674:["$","tr","tr-48",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the total fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 675:["$","tr","tr-49",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Acquiring markup fee only — a subset of ",["$","code","code-0",{"children":"fee_amount"}],". Represents Revolut's service fee, excluding interchange and scheme fees."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 676:["$","tr","tr-50",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"processing_fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the acquiring markup fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 677:["$","tr","tr-51",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fx_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Foreign exchange fee amount, if applicable.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 678:["$","tr","tr-52",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fx_fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the FX fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 679:["$","tr","tr-53",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"browser_url"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The URL where the customer initiated the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67a:["$","tr","tr-54",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"beneficiary_name"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Name of the beneficiary, for bank transfer payments.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67b:["$","tr","tr-55",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"beneficiary_account_number"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Account number of the beneficiary, for bank transfer payments.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67c:["$","tr","tr-56",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the location related to the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67d:["$","tr","tr-57",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_name"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Name of the location related to the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67e:["$","tr","tr-58",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"surcharge_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Surcharge amount applied to the transaction. Omitted when no surcharge applies.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 67f:["$","tr","tr-59",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_surcharge_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Surcharge amount set at the order level.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 680:["$","tr","tr-60",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_custom_field_name"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Name of a custom field set on the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 681:["$","tr","tr-61",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_custom_field_value"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Value of a custom field set on the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 682:["$","tr","tr-62",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"offline_payment_state"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"State of an offline payment, if applicable.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 683:["$","tr","tr-63",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_authorisation_type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Authorisation type of the order, for example ",["$","code","code-0",{"children":"FULL"}]," or ",["$","code","code-1",{"children":"PRE_AUTH"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 684:["$","tr","tr-64",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"metadata.*"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Custom order metadata. Replace ",["$","code","code-0",{"children":"*"}]," with the attribute name, for example ",["$","code","code-1",{"children":"metadata.my_attribute"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 685:["$","td","td-1",{"children":"Tip amount included in the payment, if any.","className":"eowryt7","ref":"$undefined"}] 686:["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"refunded_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount refunded for the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 687:["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"created_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the payment was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 688:["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"captured_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the payment was captured. Empty when the payment has not been captured.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 689:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"merchant_order_ext_ref"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68a:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payment_method"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Payment method used, for example: ",["$","code","code-0",{"children":"CARD"}]," or ",["$","code","code-1",{"children":"PAY_WITH_REVOLUT"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68b:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the location where the payment was made.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68c:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68d:["$","tr","tr-18",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_number"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Masked card number used for the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68e:["$","tr","tr-19",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_country"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Country of the card used for the payment, as an ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2","target":"_blank","rel":"noreferrer","children":"ISO 3166-1 alpha-2"}]," code."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 68f:["$","tr","tr-20",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_brand"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card brand used for the payment, for example: ",["$","code","code-0",{"children":"VISA"}]," or ",["$","code","code-1",{"children":"MASTERCARD_DEBIT"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 690:["$","tr","tr-21",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card funding type of the card used for the payment. For the full list of returned values, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#download-report-file","target":"_blank","rel":"noreferrer","children":"Download report file"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 691:["$","tr","tr-22",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_card_category"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card commercial category. Values: ",["$","code","code-0",{"children":"consumer"}]," (personal card) and ",["$","code","code-1",{"children":"commercial"}]," (business or corporate card)."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 692:["$","tr","tr-23",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"customer_email"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Email address of the customer.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 693:["$","tr","tr-24",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total fee amount charged for the payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 694:["$","tr","tr-25",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 695:["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount of the transaction in the transaction currency.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 696:["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 697:["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"billing_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount of the transaction in the billing currency.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 698:["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"billing_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the billing amount."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 699:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"state"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["State of the transaction, for example: ",["$","code","code-0",{"children":"COMPLETED"}],"."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69a:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the original transaction. For refunds, references the transaction being refunded.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69b:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_transaction_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Amount of the original transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69c:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_transaction_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the original transaction."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69d:["$","tr","tr-18",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the original order. For refunds, references the order being refunded.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69e:["$","tr","tr-19",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_order_channel"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Channel through which the original order was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 69f:["$","tr","tr-20",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_merchant_order_reference"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Merchant's order reference for the original order. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the original order was created."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a0:["$","tr","tr-21",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total fee amount charged for the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a1:["$","tr","tr-22",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"fee_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the fee."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a2:["$","tr","tr-23",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount settled on the merchant's account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a3:["$","tr","tr-24",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"settlement_currency"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a4:["$","tr","tr-25",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the location associated with the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a5:["$","tr","tr-26",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"location_name"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Name of the location associated with the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a6:["$","tr","tr-27",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"submerchant_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the submerchant associated with the transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a7:["$","tr","tr-28",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_transfer_reference"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reference of the bank transfer for this payout. This value is the same across all rows in the report, as each report covers a single payout.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a8:["$","tr","tr-29",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_total_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Total amount of this payout. This value is the same across all rows in the report, as each report covers a single payout.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6a9:["$","tr","tr-30",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"payout_date"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Date and time the payout covered by this report was created. This value is the same across all rows in the report, as each report covers a single payout.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6aa:["$","td","td-0",{"children":["$","code","code-0",{"children":"order_merchant_external_ref"}],"className":"eowryt7","ref":"$undefined"}] 6ab:["$","td","td-1",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."],"className":"eowryt7","ref":"$undefined"}] 6ac:["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"original_operation_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Unique identifier of the related original transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6ad:["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"acquiring_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"IC++ acquiring markup fee component.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6ae:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_interchange_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Interchange fee component. Omitted for Revolut Pay transactions.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6af:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_scheme_fee_amount"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Card scheme fee component. Omitted for Revolut Pay transactions.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6b0:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_type"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Card commercial category. Values: ",["$","code","code-0",{"children":"COMMERCIAL"}]," (business or corporate card) and ",["$","code","code-1",{"children":"CONSUMER"}]," (personal card)."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6b1:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_channel"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Channel through which the order was created.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6b2:["$","tr","tr-18",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"card_country"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":["Country of the card, as an ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2","target":"_blank","rel":"noreferrer","children":"ISO 3166-1 alpha-2"}]," code."],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6b3:["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Core ledger"}]," - identifies the settlement entry created when a payment is captured"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"settlement_report"}],", ",["$","code","code-1",{"children":"payout_statement_report"}],", ",["$","code","code-2",{"children":"custom_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 6b4:["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Both systems"}]," - bridges the acquiring and ledger perspectives"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"settlement_report"}],", ",["$","code","code-1",{"children":"payments_report"}],", ",["$","code","code-2",{"children":"payout_statement_report"}],", ",["$","code","code-3",{"children":"custom_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] 632:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L6b5","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 6b6:Tf43,
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ],
    "entity_states": [
      "completed",
      "processing"
    ]
  },
  "format": "csv",
  "type": "custom_report",
  "options": {
    "timezone": "Europe/London",
    "columns": [
      "transaction_id",
      "amount",
      "currency",
      "metadata.custom_attribute"
    ]
  }
}
633:["$","div","request-application/json-custom_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6b6"}}]}]],"$L6b7"]}] 6b8:T7c9,
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_types": [
      "payment"
    ]
  },
  "format": "csv",
  "type": "settlement_report"
}
634:["$","div","request-application/json-settlement_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6b8"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"settlement_report\"\n}"}]}]]}] 6b9:T900,
{
  "filter": {
    "from": "2020-01-01T00:00:00Z",
    "to": "2020-01-02T00:00:00Z",
    "entity_states": [
      "completed",
      "failed",
      "declined"
    ]
  },
  "format": "csv",
  "type": "payments_report"
}
635:["$","div","request-application/json-payments_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6b9"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_states\": [\n \"completed\",\n \"failed\",\n \"declined\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"payments_report\"\n}"}]}]]}] 6ba:T535,
{
  "filter": {
    "payout_id": "a830020e-090c-4717-836d-37941a27ad12"
  },
  "format": "csv",
  "type": "payout_statement_report"
}
636:["$","div","request-application/json-payout_statement_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6ba"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"filter\": {\n \"payout_id\": \"a830020e-090c-4717-836d-37941a27ad12\"\n },\n \"format\": \"csv\",\n \"type\": \"payout_statement_report\"\n}"}]}]]}] 6bb:T53c,
{
  "filter": {
    "icpp_charge_id": "41d6c699-744a-4994-91c0-9227539c587f"
  },
  "format": "csv",
  "type": "icpp_fee_breakdown_report"
}
637:["$","div","request-application/json-icpp_fee_breakdown_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6bb"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"filter\": {\n \"icpp_charge_id\": \"41d6c699-744a-4994-91c0-9227539c587f\"\n },\n \"format\": \"csv\",\n \"type\": \"icpp_fee_breakdown_report\"\n}"}]}]]}] 638:["$","div","201-application/json-report_run_processing",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n  \"status\": \"processing\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n \"status\": \"processing\"\n}"}]}]]}] 6bc:T4ca,
{
  "report_run_id": "d6f6ef64-f668-4e64-8967-1cdf8afb2561",
  "status": "completed",
  "file_url": "https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file"
}
639:["$","div","201-application/json-report_run_completed",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6bc"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"report_run_id\": \"d6f6ef64-f668-4e64-8967-1cdf8afb2561\",\n \"status\": \"completed\",\n \"file_url\": \"https://merchant.revolut.com/api/report-runs/d6f6ef64-f668-4e64-8967-1cdf8afb2561/file\"\n}"}]}]]}] 6bd:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
63a:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6bd"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 6be:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
63b:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6be"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 6bf:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
63c:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$6bf"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 6b7:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"filter\": {\n \"from\": \"2020-01-01T00:00:00Z\",\n \"to\": \"2020-01-02T00:00:00Z\",\n \"entity_types\": [\n \"payment\"\n ],\n \"entity_states\": [\n \"completed\",\n \"processing\"\n ]\n },\n \"format\": \"csv\",\n \"type\": \"custom_report\",\n \"options\": {\n \"timezone\": \"Europe/London\",\n \"columns\": [\n \"transaction_id\",\n \"amount\",\n \"currency\",\n \"metadata.custom_attribute\"\n ]\n }\n}"}]}] 39:["$","$51","create-location",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"201":{"description":"Location created","content":{"application/json":{"schema":{"title":"Location","type":"object","description":"Location object represents merchant locations depending on type.","oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L6c0"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6c1"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L6c2"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6c3"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L6c4"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:required"},{"title":"Location","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L6c5"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6c6"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L6c7"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L6c8"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L6c9"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L6ca"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L6cb"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L6cc"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L6cd"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:address:required","descriptionNode":"$L6ce"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L6cf"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L6d0"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:geo_location:required","descriptionNode":"$L6d1"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:from:examples","descriptionNode":"$L6d2"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:to:examples","descriptionNode":"$L6d3"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:required"},"descriptionNode":"$L6d4"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6d5"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6d6"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6d7"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6d8"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6d9"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$39:props:children:0:props:children:props:responses:201:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6da"}},"descriptionNode":"$L6db"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:required","descriptionNode":"$L6dc"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:required"}],"discriminator":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:discriminator","descriptionNode":"$L6dd"},"examples":{"example_online_location":{"summary":"Online location request example","value":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_online_location:value"},"example_physical_location":{"summary":"Physical location request example","value":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_physical_location:value"}}}},"descriptionNode":"$L6de"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L6df"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L6e0"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L6e1"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L6e2"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L6e3"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L6e4"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L6e5"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L6e6"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L6e7"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request body for creating a location. The structure of the `details` object depends on the `type` of the location.","oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6e8"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L6e9"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6ea"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L6eb"}},"required":["name","type","details"]},{"type":"object","properties":{"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L6ec"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L6ed"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L6ee"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L6ef"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L6f0"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L6f1"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L6f2"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L6f3"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:address:required","descriptionNode":"$L6f4"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L6f5"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L6f6"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:geo_location:required","descriptionNode":"$L6f7"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:from:examples","descriptionNode":"$L6f8"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:to:examples","descriptionNode":"$L6f9"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:required"},"descriptionNode":"$L6fa"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6fb"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6fc"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6fd"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6fe"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L6ff"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$39:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L700"}},"descriptionNode":"$L701"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:required","descriptionNode":"$L702"}},"required":["name","type","details"]}],"discriminator":{"propertyName":"type","mapping":{"online":"#/components/schemas/Location-Creation-Online","physical":"#/components/schemas/Location-Creation-Physical"}},"descriptionNode":"$L703"},"examples":{"example_online_location":{"summary":"Online location request example","value":{"name":"Grocery website","type":"online","details":{"domain":"groceries.example.com"}}},"example_physical_location":{"summary":"Physical location request example","value":{"name":"Example Street Store","type":"physical","details":{"address":{"street_line_1":"123 Example Street","city":"Example city","postcode":"12345","country_code":"GB"},"geo_location":{"lat":12.3456,"lon":-12.3456},"opening_hours":{"monday":[{"from":"09:00","to":"15:00"},{"from":"16:00","to":"18:00"}],"tuesday":[{"from":"10:00","to":"13:00"},{"from":"16:00","to":"18:00"}]}}}}}}}},"variantLabels":["Online location request example","Physical location request example"],"children":["$L704","$L705"]}]}],false]}] 704:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"create-location","children":[["$L706","$undefined"],["$","$L15",null,{"id":"create-location"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/create-location.md"}]]}]}],"$undefined"]}] 709:T6db,
curl -X POST "https://merchant.revolut.com/api/locations" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}'
70a:T1074,
const payload = {
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
};
fetch("https://merchant.revolut.com/api/locations", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
70b:T15d3,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/locations"
  jsonData := []byte(`
{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
70c:Tdaa,
import requests

url = "https://merchant.revolut.com/api/locations"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
70d:T1b3a,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/locations"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
70e:T215a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/locations"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""name"": ""Grocery website"",
  ""type"": ""online"",
  ""details"": {
    ""domain"": ""groceries.example.com""
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
70f:T6e3,
curl -X POST "https://sandbox-merchant.revolut.com/api/locations" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}'
710:T107c,
const payload = {
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
};
fetch("https://sandbox-merchant.revolut.com/api/locations", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
711:T15db,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/locations"
  jsonData := []byte(`
{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
712:Tdb2,
import requests

url = "https://sandbox-merchant.revolut.com/api/locations"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
713:T1b42,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/locations"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
714:T2162,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/locations"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""name"": ""Grocery website"",
  ""type"": ""online"",
  ""details"": {
    ""domain"": ""groceries.example.com""
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
705:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L707",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L708"}],"requestBody":"$39:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$39:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/locations\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}'","templateHtml":"$709","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n};\nfetch(\"https://merchant.revolut.com/api/locations\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$70a","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/locations\"\n jsonData := []byte(`\n{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$70b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/locations\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$70c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/locations\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$70d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/locations\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"name\"\": \"\"Grocery website\"\",\n \"\"type\"\": \"\"online\"\",\n \"\"details\"\": {\n \"\"domain\"\": \"\"groceries.example.com\"\"\n }\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$70e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/locations\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}'","templateHtml":"$70f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/locations\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$710","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/locations\"\n jsonData := []byte(`\n{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$711","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/locations\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$712","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/locations\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$713","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/locations\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"name\"\": \"\"Grocery website\"\",\n \"\"type\"\": \"\"online\"\",\n \"\"details\"\": {\n \"\"domain\"\": \"\"groceries.example.com\"\"\n }\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$714","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/locations","parameters":["$705:props:children:0:props:children:1:props:parameters:0"]}],"$L715"],"$L716","$L717"]}]]}] 715:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L718"}}}] 716:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_online_location","label":"Online location request example","rawValue":"$39:props:children:0:props:children:props:requestBody:content:application/json:examples:example_online_location:value","block":"$L719"},{"key":"example_physical_location","label":"Physical location request example","rawValue":"$39:props:children:0:props:children:props:requestBody:content:application/json:examples:example_physical_location:value","block":"$L71a"}],"syncedPropertyName":"type"}},"title":"Request body samples","headingAs":"h4"}] 717:["$","$Lbd",null,{"exampleBlocks":{"201":{"application/json":{"variants":[{"key":"example_online_location","label":"Online location request example","rawValue":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_online_location:value","block":"$L71b"},{"key":"example_physical_location","label":"Physical location request example","rawValue":"$3b:props:children:0:props:children:props:responses:200:content:application/json:examples:example_physical_location:value","block":"$L71c"}],"syncedPropertyName":"type"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L71d"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L71e"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L71f"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 6b5:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 706:"Create a location" 6c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 6c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 6c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 6c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 6c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 6c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 6c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 6ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 6cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 6cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 6cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 6ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 6cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 6d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 6d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 6d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 6d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 6d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 6d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 6d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 6d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 6d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 6d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 6da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 6db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 6dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 6dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location object represents merchant locations depending on type."}]]}] 6de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location created"}]]}] 6df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 6e0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 6e1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 6e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 6e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 6e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 6e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 6e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 6e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 6e8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6e9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 6ea:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6eb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 6ec:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 6ed:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 6ee:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 6ef:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 6f0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 6f1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 6f2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 6f3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 6f4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 6f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 6f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 6f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 6f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 6f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 6fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 6fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 6fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 6fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 6fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 6ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 700:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 701:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 702:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 703:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Request body for creating a location. The structure of the ",["$","code","code-0",{"children":"details"}]," object depends on the ",["$","code","code-1",{"children":"type"}]," of the location."]}]]}] 707:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Create a ",["$","code","code-0",{"children":"Location"}]," object. Supports ",["$","code","code-1",{"children":"online"}]," and ",["$","code","code-2",{"children":"physical"}]," location types."]}]]}] 708:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 718:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L720","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 3c:["$","$51","update-location",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"Location updated","content":{"application/json":{"schema":{"title":"Location","type":"object","description":"Location object represents merchant locations depending on type.","oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L721"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L722"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L723"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L724"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L725"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:required"},{"title":"Location","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L726"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L727"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L728"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L729"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L72a"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L72b"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L72c"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L72d"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L72e"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:address:required","descriptionNode":"$L72f"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L730"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L731"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:geo_location:required","descriptionNode":"$L732"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:from:examples","descriptionNode":"$L733"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:to:examples","descriptionNode":"$L734"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:required"},"descriptionNode":"$L735"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L736"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L737"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L738"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L739"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L73a"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$3c:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L73b"}},"descriptionNode":"$L73c"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:required","descriptionNode":"$L73d"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:required"}],"discriminator":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:discriminator","descriptionNode":"$L73e"},"examples":{"online_location":{"summary":"Online location example","value":{"id":"8d9a7125-805f-40f3-a405-bc89765db996","name":"Cars website - Name update","type":"online","details":{"domain":"cars.example.com"}}},"physical_location":{"summary":"Physical location example","value":{"name":"Example Street Store","type":"physical","details":{"address":null,"street_line_1":"123 Example Street","city":"Example city","postcode":"12345","country_code":"GB"},"geo_location":{"lat":12.3456,"lon":-12.3456},"opening_hours":{"monday":[{"from":"10:00","to":"18:00"}],"tuesday":[{"from":"10:00","to":"13:00"},{"from":"16:00","to":"18:00"}],"wednesday":[{"from":"11:00","to":"18:00"}]}}}}}},"descriptionNode":"$L73f"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L740"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L741"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L742"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L743"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L744"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L745"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L746"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L747"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L748"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request body for updating a location. The structure of the `details` object depends on the `type` of the location.","oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L749"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":{"type":"string","description":"Domain address of the location. Required for online locations.\n\n:::warning\nThe `domain` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L74a"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L74b"}}},{"title":"Location","type":"object","description":"Location object represents merchant locations depending on type.","oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L74c"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L74d"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L74e"},"details":{"type":"object","description":"Additional details of the location.","properties":{"domain":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:0:properties:details:properties:domain"},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:details:required","descriptionNode":"$L74f"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:required"},{"title":"Location","type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID representing the location where merchants sells products.\n\n:::info\nFor more information, see: [Locations](https://developer.revolut.com/docs/api/merchant#tag-locations).\n::: ","descriptionNode":"$L750"},"name":{"type":"string","description":"Name of the location. \n\n:::warning\nThe `name` parameter's value must be unique across all locations.\n:::","descriptionNode":"$L751"},"type":{"type":"string","description":"Type of the location.\n\n| Value | Description |\n| ----- | ----------- |\n| `online` | Represents an online store. |\n| `physical` | Represents a physical point of sale. |","enum":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:0:properties:type:enum","descriptionNode":"$L752"},"details":{"type":"object","description":"Additional details of the location.","properties":{"address":{"type":"object","description":"Details of a physical address.","properties":{"street_line_1":{"type":"string","description":"Primary address line.","maxLength":100,"descriptionNode":"$L753"},"street_line_2":{"type":"string","description":"Secondary address line, such as floor and apartment number.","maxLength":100,"descriptionNode":"$L754"},"region":{"type":"string","description":"State or province of the address.","maxLength":100,"descriptionNode":"$L755"},"city":{"type":"string","description":"City of the address.","maxLength":100,"descriptionNode":"$L756"},"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 2-letter country code.","minLength":2,"maxLength":2,"descriptionNode":"$L757"},"postcode":{"type":"string","description":"Postal code of the address.","maxLength":100,"descriptionNode":"$L758"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:address:required","descriptionNode":"$L759"},"geo_location":{"type":"object","description":"Coordinates of the location.","properties":{"lat":{"type":"number","format":"double","description":"The latitude of the location, in decimal degrees.","minimum":-90,"maximum":90,"descriptionNode":"$L75a"},"lon":{"type":"number","format":"double","description":"To longitude of the location, in decimal degrees.","minimum":-180,"maximum":180,"descriptionNode":"$L75b"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:geo_location:required","descriptionNode":"$L75c"},"opening_hours":{"type":"object","description":"An object containing the opening hours for each day of the week.\n\nA day can have multiple intervals (e.g., closing for a lunch break).","properties":{"monday":{"description":"Opening hours for Monday.","type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"time","description":"The local time when the interval begins.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:from:examples","descriptionNode":"$L75d"},"to":{"type":"string","format":"time","description":"The local time when the interval ends.\n\n:::note\nThe format is `hh:mm[:ss]`; seconds are optional and must be `00` if provided.\n:::","examples":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:properties:to:examples","descriptionNode":"$L75e"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:properties:opening_hours:properties:monday:items:required"},"descriptionNode":"$L75f"},"tuesday":{"description":"Opening hours for Tuesday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L760"},"wednesday":{"description":"Opening hours for Wednesday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L761"},"thursday":{"description":"Opening hours for Thursday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L762"},"friday":{"description":"Opening hours for Friday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L763"},"saturday":{"description":"Opening hours for Saturday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L764"},"sunday":{"description":"Opening hours for Sunday.","type":"array","items":"$3c:props:children:0:props:children:props:requestBody:content:application/json:schema:oneOf:1:oneOf:1:properties:details:properties:opening_hours:properties:monday:items","descriptionNode":"$L765"}},"descriptionNode":"$L766"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:properties:details:required","descriptionNode":"$L767"}},"required":"$3b:props:children:0:props:children:props:responses:200:content:application/json:schema:oneOf:1:required"}],"discriminator":{"propertyName":"type","mapping":{"online":"#/components/schemas/Location-Online","physical":"#/components/schemas/Location-Physical"}},"descriptionNode":"$L768"}],"discriminator":{"propertyName":"type","mapping":{"online":"#/components/schemas/Location-Update-Online","physical":"#/components/schemas/Location-Update-Physical"}},"descriptionNode":"$L769"},"examples":{"online_location":{"summary":"Online location example","value":{"name":"Cars website - Name update","details":{"domain":"cars.example.com"}}},"physical_location":{"summary":"Physical location example","value":{"name":"Example Street Store","details":{"opening_hours":{"monday":[{"from":"10:00","to":"18:00"}],"wednesday":[{"from":"11:00","to":"18:00"}]}}}}}}}},"variantLabels":["Online location example","Physical location example"],"children":["$L76a","$L76b"]}]}],false]}] 76a:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"update-location","children":[["$L76c","$undefined"],["$","$L15",null,{"id":"update-location"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/update-location.md"}]]}]}],"$undefined"]}] 771:T689,
curl -X PATCH "https://merchant.revolut.com/api/locations/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}'
772:Tf7a,
const payload = {
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
};
fetch("https://merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
773:T1581,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
  jsonData := []byte(`
{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
774:Tcb0,
import requests

url = "https://merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
775:T1ae8,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
776:T1f7c,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""name"": ""Cars website - Name update"",
  ""details"": {
    ""domain"": ""cars.example.com""
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
777:T691,
curl -X PATCH "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}'
778:Tf82,
const payload = {
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
};
fetch("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
779:T1589,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
  jsonData := []byte(`
{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
77a:Tcb8,
import requests

url = "https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
77b:T1af0,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
77c:T1f84,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""name"": ""Cars website - Name update"",
  ""details"": {
    ""domain"": ""cars.example.com""
  }
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
76b:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L76d",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L76e"},{"name":"location_id","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L76f"},"in":"path","required":true,"description":"The ID of the location.","descriptionNode":"$L770"}],"requestBody":"$3c:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$3c:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}'","templateHtml":"$771","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n};\nfetch(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$772","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$773","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$774","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$775","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"name\"\": \"\"Cars website - Name update\"\",\n \"\"details\"\": {\n \"\"domain\"\": \"\"cars.example.com\"\"\n }\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$776","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}'","templateHtml":"$777","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$778","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$779","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$77a","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$77b","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/locations/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"name\"\": \"\"Cars website - Name update\"\",\n \"\"details\"\": {\n \"\"domain\"\": \"\"cars.example.com\"\"\n }\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$77c","tokens":[{"marker":"__RP_TOK_0__","paramName":"location_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:location_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"patch","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/locations/{location_id}","parameters":["$76b:props:children:0:props:children:1:props:parameters:0","$76b:props:children:0:props:children:1:props:parameters:1"]}],"$L77d"],"$L77e","$L77f"]}]]}] 780:T555,
{
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
719:["$","div","request-application/json-example_online_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$780"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}"}]}]]}] 781:T19ff,
{
  "name": "Example Street Store",
  "type": "physical",
  "details": {
    "address": {
      "street_line_1": "123 Example Street",
      "city": "Example city",
      "postcode": "12345",
      "country_code": "GB"
    },
    "geo_location": {
      "lat": 12.3456,
      "lon": -12.3456
    },
    "opening_hours": {
      "monday": [
        {
          "from": "09:00",
          "to": "15:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "10:00",
          "to": "13:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ]
    }
  }
}
71a:["$","div","request-application/json-example_physical_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$781"}}]}]],"$L782"]}] 783:T67f,
{
  "id": "8d9a7125-805f-40f3-a405-bc89765db996",
  "name": "Grocery website",
  "type": "online",
  "details": {
    "domain": "groceries.example.com"
  }
}
71b:["$","div","201-application/json-example_online_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$783"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"8d9a7125-805f-40f3-a405-bc89765db996\",\n \"name\": \"Grocery website\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"groceries.example.com\"\n }\n}"}]}]]}] 784:T1b29,
{
  "id": "8d9a7125-805f-40f3-a405-bc89765db996",
  "name": "Example Street Store",
  "type": "physical",
  "details": {
    "address": {
      "street_line_1": "123 Example Street",
      "city": "Example city",
      "postcode": "12345",
      "country_code": "GB"
    },
    "geo_location": {
      "lat": 12.3456,
      "lon": -12.3456
    },
    "opening_hours": {
      "monday": [
        {
          "from": "09:00",
          "to": "15:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ],
      "tuesday": [
        {
          "from": "10:00",
          "to": "13:00"
        },
        {
          "from": "16:00",
          "to": "18:00"
        }
      ]
    }
  }
}
71c:["$","div","201-application/json-example_physical_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$784"}}]}]],"$L785"]}] 71d:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 71e:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 71f:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 77d:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L786"}}}] 77e:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"online_location","label":"Online location example","rawValue":"$3c:props:children:0:props:children:props:requestBody:content:application/json:examples:online_location:value","block":"$L787"},{"key":"physical_location","label":"Physical location example","rawValue":"$3c:props:children:0:props:children:props:requestBody:content:application/json:examples:physical_location:value","block":"$L788"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 77f:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"online_location","label":"Online location example","rawValue":"$3c:props:children:0:props:children:props:responses:200:content:application/json:examples:online_location:value","block":"$L789"},{"key":"physical_location","label":"Physical location example","rawValue":"$3c:props:children:0:props:children:props:responses:200:content:application/json:examples:physical_location:value","block":"$L78a"}],"syncedPropertyName":"type"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L78b"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L78c"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L78d"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 782:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"name\": \"Example Street Store\",\n \"type\": \"physical\",\n \"details\": {\n \"address\": {\n \"street_line_1\": \"123 Example Street\",\n \"city\": \"Example city\",\n \"postcode\": \"12345\",\n \"country_code\": \"GB\"\n },\n \"geo_location\": {\n \"lat\": 12.3456,\n \"lon\": -12.3456\n },\n \"opening_hours\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"15:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"13:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ]\n }\n }\n}"}]}] 785:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"8d9a7125-805f-40f3-a405-bc89765db996\",\n \"name\": \"Example Street Store\",\n \"type\": \"physical\",\n \"details\": {\n \"address\": {\n \"street_line_1\": \"123 Example Street\",\n \"city\": \"Example city\",\n \"postcode\": \"12345\",\n \"country_code\": \"GB\"\n },\n \"geo_location\": {\n \"lat\": 12.3456,\n \"lon\": -12.3456\n },\n \"opening_hours\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"15:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"13:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ]\n }\n }\n}"}]}] 76c:"Update a location" 721:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 722:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 723:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 724:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 725:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 726:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 727:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 728:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 729:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 72a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 72b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 72c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 72d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 72e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 72f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 730:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 731:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 732:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 733:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 734:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 735:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 736:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 737:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 738:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 739:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 73a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 73b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 73c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 73d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 73e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location object represents merchant locations depending on type."}]]}] 73f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location updated"}]]}] 740:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 741:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 742:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 743:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 744:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 745:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 746:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 747:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 748:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 749:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 74a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Domain address of the location. Required for online locations."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"domain"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 74b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 74c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 74d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 74e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 74f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 750:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID representing the location where merchants sells products."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-locations","target":"_blank","rel":"noreferrer","children":"Locations"}],"."]}]}]]}]]}] 751:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location."}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"name"}]," parameter's value must be unique across all locations."]}]}]]}]]}] 752:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the location."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"online"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents an online store.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"physical"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Represents a physical point of sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 753:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Primary address line."}]]}] 754:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Secondary address line, such as floor and apartment number."}]]}] 755:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State or province of the address."}]]}] 756:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"City of the address."}]]}] 757:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"ISO 2-letter country code."}]]}] 758:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Postal code of the address."}]]}] 759:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Details of a physical address."}]]}] 75a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The latitude of the location, in decimal degrees."}]]}] 75b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"To longitude of the location, in decimal degrees."}]]}] 75c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Coordinates of the location."}]]}] 75d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval begins."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 75e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The local time when the interval ends."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The format is ",["$","code","code-0",{"children":"hh:mm[:ss]"}],"; seconds are optional and must be ",["$","code","code-1",{"children":"00"}]," if provided."]}]}]]}]]}] 75f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Monday."}]]}] 760:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Tuesday."}]]}] 761:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Wednesday."}]]}] 762:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Thursday."}]]}] 763:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Friday."}]]}] 764:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Saturday."}]]}] 765:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Opening hours for Sunday."}]]}] 766:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An object containing the opening hours for each day of the week."}],"\n",["$","p","p-1",{"children":"A day can have multiple intervals (e.g., closing for a lunch break)."}]]}] 767:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional details of the location."}]]}] 768:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Location object represents merchant locations depending on type."}]]}] 769:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Request body for updating a location. The structure of the ",["$","code","code-0",{"children":"details"}]," object depends on the ",["$","code","code-1",{"children":"type"}]," of the location."]}]]}] 76d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Update details of a specific location, based on its ID."}],"\n",["$","p","p-1",{"children":"Only the fields provided in the request will be updated. Any omitted fields will retain their current values."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The value of the location's ",["$","code","code-0",{"children":"type"}]," parameter cannot be updated."]}]}]]}]]}] 76e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 76f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 770:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the location."}]]}] 720:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 786:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L78e","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 78f:T44d,
{
  "name": "Cars website - Name update",
  "details": {
    "domain": "cars.example.com"
  }
}
787:["$","div","request-application/json-online_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$78f"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"name\": \"Cars website - Name update\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}"}]}]]}] 790:Tb9b,
{
  "name": "Example Street Store",
  "details": {
    "opening_hours": {
      "monday": [
        {
          "from": "10:00",
          "to": "18:00"
        }
      ],
      "wednesday": [
        {
          "from": "11:00",
          "to": "18:00"
        }
      ]
    }
  }
}
788:["$","div","request-application/json-physical_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$790"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"name\": \"Example Street Store\",\n \"details\": {\n \"opening_hours\": {\n \"monday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"18:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"11:00\",\n \"to\": \"18:00\"\n }\n ]\n }\n }\n}"}]}]]}] 791:T685,
{
  "id": "8d9a7125-805f-40f3-a405-bc89765db996",
  "name": "Cars website - Name update",
  "type": "online",
  "details": {
    "domain": "cars.example.com"
  }
}
789:["$","div","200-application/json-online_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$791"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"8d9a7125-805f-40f3-a405-bc89765db996\",\n \"name\": \"Cars website - Name update\",\n \"type\": \"online\",\n \"details\": {\n \"domain\": \"cars.example.com\"\n }\n}"}]}]]}] 792:T1ad4,
{
  "name": "Example Street Store",
  "type": "physical",
  "details": {
    "address": null,
    "street_line_1": "123 Example Street",
    "city": "Example city",
    "postcode": "12345",
    "country_code": "GB"
  },
  "geo_location": {
    "lat": 12.3456,
    "lon": -12.3456
  },
  "opening_hours": {
    "monday": [
      {
        "from": "10:00",
        "to": "18:00"
      }
    ],
    "tuesday": [
      {
        "from": "10:00",
        "to": "13:00"
      },
      {
        "from": "16:00",
        "to": "18:00"
      }
    ],
    "wednesday": [
      {
        "from": "11:00",
        "to": "18:00"
      }
    ]
  }
}
78a:["$","div","200-application/json-physical_location",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$792"}}]}]],"$L793"]}] 78b:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 78c:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 78d:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 793:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"name\": \"Example Street Store\",\n \"type\": \"physical\",\n \"details\": {\n \"address\": null,\n \"street_line_1\": \"123 Example Street\",\n \"city\": \"Example city\",\n \"postcode\": \"12345\",\n \"country_code\": \"GB\"\n },\n \"geo_location\": {\n \"lat\": 12.3456,\n \"lon\": -12.3456\n },\n \"opening_hours\": {\n \"monday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"18:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"10:00\",\n \"to\": \"13:00\"\n },\n {\n \"from\": \"16:00\",\n \"to\": \"18:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"11:00\",\n \"to\": \"18:00\"\n }\n ]\n }\n}"}]}] 1a:["$","$51","retrieve-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L794"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L795"},"type":{"type":"string","description":"The type of the order.","enum":["PAYMENT","REFUND","CHARGEBACK"],"descriptionNode":"$L796"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":["PENDING","PROCESSING","AUTHORISED","COMPLETED","CANCELLED","FAILED"],"descriptionNode":"$L797"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L798"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L799"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L79a"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L79b"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":["AUTOMATIC","MANUAL"],"descriptionNode":"$L79c"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L79d"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L79e"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L79f"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L7a0"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L7a1"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$L7a2"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":["value","currency"],"properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L7a3"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7a4"}},"descriptionNode":"$L7a5"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L7a6"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7a7"}},"descriptionNode":"$L7a8"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L7a9"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7aa"}},"descriptionNode":"$L7ab"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L7ac"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L7ad"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L7ae"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L7af"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L7b0"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L7b1"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$L7b2"},"state":{"type":"string","description":"The state of the payment.","enum":["PROCESSING","AUTHORISED","CAPTURED","COMPLETED","FAILED","DECLINED","CANCELLED"],"descriptionNode":"$L7b3"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":["do_not_honour","3ds_challenge_abandoned","3ds_challenge_failed","3ds_challenge_failed_manually","insufficient_funds","transaction_not_allowed_for_cardholder","high_risk","cardholder_name_missing","unknown_card","invalid_card","invalid_email","restricted_card","expired_card","rejected_by_customer","withdrawal_limit_exceeded","pick_up_card","invalid_amount"],"descriptionNode":"$L7b4"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$L7b5"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$L7b6"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$L7b7"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":["value","currency"],"properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$L7b8"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L7b9"}},"descriptionNode":"$L7ba"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$L7bb"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L7bc"}},"descriptionNode":"$L7bd"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$L7be"},"type":{"type":"string","description":"The type of the payment.","enum":["CARD","REVOLUT"],"descriptionNode":"$L7bf"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":["VISA","MASTERCARD"],"descriptionNode":"$L7c0"},"funding":{"type":"string","description":"The type of card funding.","enum":["CREDIT","DEBIT","PREPAID"],"descriptionNode":"$L7c1"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$L7c2"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$L7c3"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$L7c4"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$L7c5"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L7c6"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":["VERIFIED","FAILED","CHALLENGE"],"descriptionNode":"$L7c7"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$L7c8"}},"descriptionNode":"$L7c9"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":["MATCH","NOT_MATCH","INCORRECT","NOT_PROCESSED"],"descriptionNode":"$L7ca"},"address":{"type":"string","description":"The result of address verification.","enum":["MATCH","NOT_MATCH","N_A","INVALID"],"descriptionNode":"$L7cb"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":["MATCH","NOT_MATCH","N_A","INVALID"],"descriptionNode":"$L7cc"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":["MATCH","NOT_MATCH","N_A","INVALID"],"descriptionNode":"$L7cd"}},"descriptionNode":"$L7ce"}},"descriptionNode":"$L7cf"}},"descriptionNode":"$L7d0"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:region","city":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":["LOW","HIGH"],"descriptionNode":"$L7d1"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":["FX","ACQUIRING"],"descriptionNode":"$L7d2"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$L7d3"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L7d4"}},"descriptionNode":"$L7d5"}}},"descriptionNode":"$L7d6"}},"required":["id","state","created_at","updated_at","amount"]},"descriptionNode":"$L7d7"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$L7d8"},"type":{"type":"string","description":"The type of the related order.","enum":["PAYMENT","REFUND","CHARGEBACK"],"descriptionNode":"$L7d9"},"state":{"type":"string","description":"The state of the related order.","enum":["PENDING","PROCESSING","AUTHORISED","COMPLETED","CANCELLED","FAILED"],"descriptionNode":"$L7da"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L7db"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7dc"}},"descriptionNode":"$L7dd"}}},"descriptionNode":"$L7de"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L7df"},"examples":[{"order_reference":"ORD-12345","customer_segment":"premium","internal_note":"VIP customer - priority handling"}],"descriptionNode":"$L7e0"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$L7e1"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L7e2"}},"required":["id","type","state","created_at","updated_at","order_amount"],"descriptionNode":"$L7e3"},"examples":{"retrieved_order":{"summary":"Retrieved order","value":{"id":"7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0","public_id":"fecaafa0-c230-44e9-a24e-7005e82e03f8","type":"PAYMENT","state":"COMPLETED","created_at":"2021-01-14T18:37:06.055371Z","updated_at":"2021-01-14T18:38:04.115204Z","completed_at":"2021-01-14T18:38:39.476986Z","description":"Testing Orders","capture_mode":"MANUAL","settlement_currency":"EUR","merchant_order_ext_ref":"testorder123","customer_id":"56db1367-2494-4a35-8254-c23929f8e5e1","email":"test@revolut.com","phone":"+447123456789","order_amount":{"value":50,"currency":"GBP"},"order_outstanding_amount":{"value":0,"currency":"GBP"},"refunded_amount":{"value":30,"currency":"GBP"},"shipping_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"payments":[{"id":"7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12","state":"COMPLETED","created_at":"2021-01-14T18:37:48.069092Z","updated_at":"2021-01-14T18:38:39.476986Z","token":"3cba558e-f465-4688-b5c4-94673508ece5","amount":{"value":50,"currency":"GBP"},"settled_amount":{"value":67,"currency":"EUR"},"payment_method":{"type":"CARD","card":{"card_brand":"VISA","funding":"CREDIT","card_country":"GB","card_bin":"459664","card_last_four":"6376","card_expiry":"03/2025","cardholder_name":"John Doe","checks":{"three_ds":{"state":"VERIFIED","version":2},"cvv_verification":"MATCH","address":"NOT_MATCH","postcode":"MATCH","cardholder":"N_A"}}},"billing_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"risk_level":"LOW","fees":[{"type":"ACQUIRING","amount":{"value":5,"currency":"GBP"}}]}],"related":[{"id":"8af43efa-0d0c-4267-9abc-72679bc56859","type":"REFUND","state":"COMPLETED","amount":{"value":30,"currency":"GBP"}}]}}}}},"descriptionNode":"$L7e4"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L7e5"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L7e6"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L7e7"},"401":{"description":"Unauthorized","descriptionNode":"$L7e8"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L7e9"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L7ea"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L7eb"}},"requestBody":"$undefined","variantLabels":[],"children":["$L7ec","$L7ed"]}]}],false]}] 1d:["$","$51","cancel-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L7ee"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L7ef"},"type":{"type":"string","description":"The type of the order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","descriptionNode":"$L7f0"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L7f1"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L7f2"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L7f3"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L7f4"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L7f5"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L7f6"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7f7"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L7f8"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L7f9"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L7fa"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L7fb"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$L7fc"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:order_amount:required","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L7fd"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L7fe"}},"descriptionNode":"$L7ff"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L800"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L801"}},"descriptionNode":"$L802"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L803"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L804"}},"descriptionNode":"$L805"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L806"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L807"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L808"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L809"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L80a"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L80b"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$L80c"},"state":{"type":"string","description":"The state of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:state:enum","descriptionNode":"$L80d"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:failure_reason:enum","descriptionNode":"$L80e"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$L80f"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$L810"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$L811"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:amount:required","properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$L812"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L813"}},"descriptionNode":"$L814"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$L815"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L816"}},"descriptionNode":"$L817"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$L818"},"type":{"type":"string","description":"The type of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:type:enum","descriptionNode":"$L819"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:card_brand:enum","descriptionNode":"$L81a"},"funding":{"type":"string","description":"The type of card funding.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:funding:enum","descriptionNode":"$L81b"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$L81c"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$L81d"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$L81e"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$L81f"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L820"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:three_ds:properties:state:enum","descriptionNode":"$L821"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$L822"}},"descriptionNode":"$L823"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cvv_verification:enum","descriptionNode":"$L824"},"address":{"type":"string","description":"The result of address verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:address:enum","descriptionNode":"$L825"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:postcode:enum","descriptionNode":"$L826"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cardholder:enum","descriptionNode":"$L827"}},"descriptionNode":"$L828"}},"descriptionNode":"$L829"}},"descriptionNode":"$L82a"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:region","city":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$1d:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:risk_level:enum","descriptionNode":"$L82b"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:fees:items:properties:type:enum","descriptionNode":"$L82c"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$L82d"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L82e"}},"descriptionNode":"$L82f"}}},"descriptionNode":"$L830"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:required"},"descriptionNode":"$L831"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$L832"},"type":{"type":"string","description":"The type of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:type:enum","descriptionNode":"$L833"},"state":{"type":"string","description":"The state of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:state:enum","descriptionNode":"$L834"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L835"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L836"}},"descriptionNode":"$L837"}}},"descriptionNode":"$L838"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L839"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L83a"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$L83b"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L83c"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$L83d"},"examples":{"cancelled_order":{"summary":"Cancelled order","value":{"id":"7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0","public_id":"fecaafa0-c230-44e9-a24e-7005e82e03f8","type":"PAYMENT","state":"CANCELLED","created_at":"2021-01-14T18:37:06.055371Z","updated_at":"2021-01-14T18:38:04.115204Z","completed_at":"2021-01-14T18:38:39.476986Z","description":"Testing Orders","capture_mode":"MANUAL","settlement_currency":"EUR","merchant_order_ext_ref":"testorder123","customer_id":"56db1367-2494-4a35-8254-c23929f8e5e1","email":"test@revolut.com","phone":"+447123456789","order_amount":{"value":50,"currency":"GBP"},"order_outstanding_amount":{"value":0,"currency":"GBP"},"shipping_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"payments":[{"id":"7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12","state":"CANCELLED","created_at":"2021-01-14T18:37:48.069092Z","updated_at":"2021-01-14T18:38:39.476986Z","amount":{"value":50,"currency":"GBP"},"payment_method":{"type":"CARD","card":{"card_brand":"VISA","funding":"CREDIT","card_country":"GB","card_bin":"459664","card_last_four":"6376","card_expiry":"03/2025","cardholder_name":"John Doe","checks":{"cvv_verification":"MATCH","address":"NOT_MATCH","postcode":"MATCH","cardholder":"N_A"}}},"billing_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"risk_level":"LOW"}]}}}}},"descriptionNode":"$L83e"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L83f"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L840"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L841"},"401":{"description":"Unauthorized","descriptionNode":"$L842"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L843"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L844"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L845"}},"requestBody":"$undefined","variantLabels":[],"children":["$L846","$L847"]}]}],false]}] 7ec:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"retrieve-order-deprecated","children":[["$L848",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"retrieve-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/retrieve-order-deprecated.md"}]]}]}],"$undefined"]}] 84d:T8af,
fetch("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
84e:Td97,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
84f:T6c3,
import requests

url = "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
850:T153b,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
851:T145b,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
852:T8b7,
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
853:Td9f,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
854:T6cb,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
855:T1543,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
856:T1463,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
7ed:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L849",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L84a"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L84b"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L84c"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1a:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$84d","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$84e","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$84f","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$850","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$851","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$852","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$853","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$854","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$855","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$856","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders/{order_id}","parameters":["$7ed:props:children:0:props:children:1:props:parameters:0","$7ed:props:children:0:props:children:1:props:parameters:1"]}],"$L857"],"$L858","$L859"]}]]}] 846:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"cancel-order-deprecated","children":[["$L85a","$undefined"],["$","$L15",null,{"id":"cancel-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/cancel-order-deprecated.md"}]]}]}],"$undefined"]}] 85f:T8b7,
fetch("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel", {
  method: "POST",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
860:Td9f,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"
  req, _ := http.NewRequest("POST", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
861:T6cb,
import requests

url = "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.post(url, headers=headers)
print(response.json())
862:T1543,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"))
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
863:T1463,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
864:T8bf,
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel", {
  method: "POST",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
865:Tda7,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"
  req, _ := http.NewRequest("POST", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
866:T6d3,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.post(url, headers=headers)
print(response.json())
867:T154b,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"))
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
868:T146b,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
847:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L85b",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L85c"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L85d"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L85e"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1d:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X POST \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\", {\n method: \"POST\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$85f","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"\n req, _ := http.NewRequest(\"POST\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$860","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())","templateHtml":"$861","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$862","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$863","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\", {\n method: \"POST\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$864","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"\n req, _ := http.NewRequest(\"POST\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$865","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())","templateHtml":"$866","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$867","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/cancel\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$868","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders/{order_id}/cancel","parameters":["$847:props:children:0:props:children:1:props:parameters:0","$847:props:children:0:props:children:1:props:parameters:1"]}],"$L869"],"$L86a","$L86b"]}]]}] 78e:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 857:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L86c"}}}] 858:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 859:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"retrieved_order","label":"Retrieved order","rawValue":"$1a:props:children:0:props:children:props:responses:200:content:application/json:examples:retrieved_order:value","block":"$L86d"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1a:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L86e"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L86f"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 869:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L870"}}}] 86a:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] 86b:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"cancelled_order","label":"Cancelled order","rawValue":"$1d:props:children:0:props:children:props:responses:200:content:application/json:examples:cancelled_order:value","block":"$L871"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1d:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L872"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L873"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 848:"Retrieve an order (Deprecated)" 85a:"Cancel an order (Deprecated)" 794:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 795:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 796:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 797:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 798:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 799:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 79a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 79b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 79c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 79d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 79e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 79f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 7a0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 7a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 7ee:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 7ef:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 7f0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 7f1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 7f2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 7f3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 7f4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 7f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 7f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 7f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 7f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 7fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 7fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 7fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] 7a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] 7a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 7a4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7a5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 7a6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 7a7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7a8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 7a9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 7aa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7ab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] 7ac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 7ad:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 7ae:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 7af:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 7b0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 7b1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 7b2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 7b3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] 7b4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] 7b5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] 7b6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] 7b7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 7b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 7b9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 7ba:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] 7bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 7bc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 7bd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] 7be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] 7bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] 7c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 7c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] 7c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] 7c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] 7c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] 7c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] 7c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 7c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] 7c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] 7c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] 7ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 7cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] 7cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] 7cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] 7ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] 7cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] 7d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] 7d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] 7d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] 7d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 7d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 7d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] 7d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] 7d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] 7d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] 7d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] 7da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] 7db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 7dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] 7de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] 7df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 7e0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 7e1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] 7e2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 7e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] 7e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 7e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 7e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 7e7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 7e8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 7e9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 7ea:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 7eb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 849:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Retrieve the details of an order that has been created. Provide the unique order ID, and the corresponding order information is returned."}]]}] 84a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 84b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 84c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 7fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 7fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 7ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 800:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 801:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 802:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 803:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 804:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 805:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] 806:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 807:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 808:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 809:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 80a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 80b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 80c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 80d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] 80e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] 80f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] 810:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] 811:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 812:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 813:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 814:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] 815:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 816:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 817:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] 818:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] 819:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] 81a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 81b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] 81c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] 81d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] 81e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] 81f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] 820:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 821:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] 822:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] 823:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] 824:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 825:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] 826:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] 827:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] 828:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] 829:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] 82a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] 82b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] 82c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] 82d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 82e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 82f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] 830:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] 831:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] 832:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] 833:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] 834:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] 835:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 836:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 837:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] 838:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] 839:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 83a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 83b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] 83c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 83d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] 83e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 83f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 840:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 841:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 842:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 843:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 844:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 845:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 85b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Cancel an existing uncaptured order."}],"\n",["$","p","p-1",{"children":"You can only cancel an order that is in one of the following states:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["In the ",["$","code","code-0",{"children":"AUTHORISED"}]," state, which means that the ",["$","code","code-1",{"children":"capture_mode"}]," of an order is set to ",["$","code","code-2",{"children":"MANUAL"}]," and the customer has made a successful payment."]}],"\n",["$","li","li-1",{"children":["In the ",["$","code","code-0",{"children":"PENDING"}]," state, which means that it doesn't have any successful payment associated with it."]}],"\n"]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 85c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 85d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 85e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 86c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L874","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 870:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L875","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 1c:["$","$51","capture-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L876"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L877"},"type":{"type":"string","description":"The type of the order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","descriptionNode":"$L878"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L879"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L87a"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L87b"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L87c"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L87d"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L87e"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L87f"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L880"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L881"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L882"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L883"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$L884"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:order_amount:required","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L885"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L886"}},"descriptionNode":"$L887"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L888"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L889"}},"descriptionNode":"$L88a"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L88b"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L88c"}},"descriptionNode":"$L88d"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L88e"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L88f"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L890"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L891"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L892"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L893"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$L894"},"state":{"type":"string","description":"The state of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:state:enum","descriptionNode":"$L895"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:failure_reason:enum","descriptionNode":"$L896"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$L897"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$L898"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$L899"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:amount:required","properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$L89a"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L89b"}},"descriptionNode":"$L89c"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$L89d"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L89e"}},"descriptionNode":"$L89f"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$L8a0"},"type":{"type":"string","description":"The type of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:type:enum","descriptionNode":"$L8a1"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:card_brand:enum","descriptionNode":"$L8a2"},"funding":{"type":"string","description":"The type of card funding.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:funding:enum","descriptionNode":"$L8a3"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$L8a4"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$L8a5"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$L8a6"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$L8a7"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L8a8"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:three_ds:properties:state:enum","descriptionNode":"$L8a9"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$L8aa"}},"descriptionNode":"$L8ab"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cvv_verification:enum","descriptionNode":"$L8ac"},"address":{"type":"string","description":"The result of address verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:address:enum","descriptionNode":"$L8ad"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:postcode:enum","descriptionNode":"$L8ae"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cardholder:enum","descriptionNode":"$L8af"}},"descriptionNode":"$L8b0"}},"descriptionNode":"$L8b1"}},"descriptionNode":"$L8b2"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:region","city":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$1c:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:risk_level:enum","descriptionNode":"$L8b3"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:fees:items:properties:type:enum","descriptionNode":"$L8b4"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$L8b5"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L8b6"}},"descriptionNode":"$L8b7"}}},"descriptionNode":"$L8b8"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:required"},"descriptionNode":"$L8b9"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$L8ba"},"type":{"type":"string","description":"The type of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:type:enum","descriptionNode":"$L8bb"},"state":{"type":"string","description":"The state of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:state:enum","descriptionNode":"$L8bc"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L8bd"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L8be"}},"descriptionNode":"$L8bf"}}},"descriptionNode":"$L8c0"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L8c1"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L8c2"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$L8c3"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L8c4"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$L8c5"},"examples":{"captured_order":{"summary":"Captured order","value":{"id":"7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0","public_id":"fecaafa0-c230-44e9-a24e-7005e82e03f8","type":"PAYMENT","state":"COMPLETED","created_at":"2021-01-14T18:37:06.055371Z","updated_at":"2021-01-14T18:38:04.115204Z","completed_at":"2021-01-14T18:38:39.476986Z","description":"Testing Orders","capture_mode":"MANUAL","settlement_currency":"EUR","merchant_order_ext_ref":"testorder123","customer_id":"56db1367-2494-4a35-8254-c23929f8e5e1","email":"test@revolut.com","phone":"+447123456789","order_amount":{"value":50,"currency":"GBP"},"order_outstanding_amount":{"value":0,"currency":"GBP"},"shipping_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"payments":[{"id":"7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12","state":"COMPLETED","created_at":"2021-01-14T18:37:48.069092Z","updated_at":"2021-01-14T18:38:39.476986Z","amount":{"value":50,"currency":"GBP"},"settled_amount":{"value":67,"currency":"EUR"},"payment_method":{"type":"CARD","card":{"card_brand":"VISA","funding":"CREDIT","card_country":"GB","card_bin":"459664","card_last_four":"6376","card_expiry":"03/2025","cardholder_name":"John Doe","checks":{"cvv_verification":"MATCH","address":"NOT_MATCH","postcode":"MATCH","cardholder":"N_A"}}},"billing_address":{"street_line_1":"7 Westferry Circus","street_line_2":"Revolut","city":"London","country_code":"GB","postcode":"E14 4HD"},"risk_level":"LOW","fees":[{"type":"ACQUIRING","amount":{"value":5,"currency":"GBP"}}]}]}}}}},"descriptionNode":"$L8c6"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L8c7"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L8c8"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"descriptionNode":"$L8c9"},"401":{"description":"Unauthorized","descriptionNode":"$L8ca"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L8cb"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L8cc"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L8cd"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Specify an amount to capture. This amount must be less than the amount that was originally captured.\n\nThe remaining amount in the order will be voided and can't be captured.","descriptionNode":"$L8ce"}}},"examples":{"default":{"value":{"amount":100}}}}}},"variantLabels":[],"children":["$L8cf","$L8d0"]}]}],false]}] 8cf:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"capture-order-deprecated","children":[["$L8d1","$undefined"],["$","$L15",null,{"id":"capture-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/capture-order-deprecated.md"}]]}]}],"$undefined"]}] 8d6:T54f,
curl -X POST "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "amount": 100
}'
8d7:Td60,
const payload = {
  "amount": 100
};
fetch("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
8d8:T1447,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"
  jsonData := []byte(`
{
  "amount": 100
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
8d9:Ta96,
import requests

url = "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "amount": 100
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
8da:T19ae,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 100
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
8db:T1b62,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""amount"": 100
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
8dc:T557,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "amount": 100
}'
8dd:Td68,
const payload = {
  "amount": 100
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
8de:T144f,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"
  jsonData := []byte(`
{
  "amount": 100
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
8df:Ta9e,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "amount": 100
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
8e0:T19b6,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 100
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
8e1:T1b6a,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""amount"": 100
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
8d0:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L8d2",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L8d3"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L8d4"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L8d5"}],"requestBody":"$1c:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1c:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"amount\": 100\n}'","templateHtml":"$8d6","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 100\n};\nfetch(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$8d7","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"\n jsonData := []byte(`\n{\n \"amount\": 100\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$8d8","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"amount\": 100\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$8d9","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 100\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$8da","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 100\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$8db","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"amount\": 100\n}'","templateHtml":"$8dc","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 100\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$8dd","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"\n jsonData := []byte(`\n{\n \"amount\": 100\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$8de","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"amount\": 100\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$8df","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 100\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$8e0","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/capture\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 100\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$8e1","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders/{order_id}/capture","parameters":["$8d0:props:children:0:props:children:1:props:parameters:0","$8d0:props:children:0:props:children:1:props:parameters:1"]}],"$L8e2"],"$L8e3","$L8e4"]}]]}] 8e2:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L8e5"}}}] 8e3:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$1c:props:children:0:props:children:props:requestBody:content:application/json:examples:default:value","block":"$L8e6"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 8e4:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"captured_order","label":"Captured order","rawValue":"$1c:props:children:0:props:children:props:responses:200:content:application/json:examples:captured_order:value","block":"$L8e7"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1c:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$L8e8"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L8e9"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 8d1:"Capture an order (Deprecated)" 876:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 877:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 878:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 879:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 87a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 87b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 87c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 87d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 87e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 87f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 880:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 881:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 882:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 883:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 884:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] 885:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 886:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 887:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 888:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 889:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 88a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 88b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 88c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 88d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] 88e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 88f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 890:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 891:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 892:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 893:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 894:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 895:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] 896:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] 897:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] 898:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] 899:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 89a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 89b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 89c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] 89d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 89e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 89f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] 8a0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] 8a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] 8a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 8a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] 8a4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] 8a5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] 8a6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] 8a7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] 8a8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 8a9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] 8aa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] 8ab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] 8ac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 8ad:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] 8ae:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] 8af:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] 8b0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] 8b1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] 8b2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] 8b3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] 8b4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] 8b5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 8b6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 8b7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] 8b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] 8b9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] 8ba:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] 8bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] 8bc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] 8bd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 8be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 8bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] 8c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] 8c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 8c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 8c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] 8c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 8c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] 8c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 8c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 8c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 8c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 8ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 8cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 8cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 8cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 8ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Specify an amount to capture. This amount must be less than the amount that was originally captured."}],"\n",["$","p","p-1",{"children":"The remaining amount in the order will be voided and can't be captured."}]]}] 8d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Capture the funds of an existing, uncaptured order. When the payment for an order is authorised, the order is captured and sent to the processing stage."}],"\n",["$","p","p-1",{"children":"When you create an order, you can choose one of the following capture modes:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation, so you don't need to take any action then."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically and stays in ",["$","code","code-1",{"children":"AUTHORISED"}]," state. You must manually capture the order later using one of the following methods:\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Web UI: Complete the following steps:\n",["$","ol","ol-0",{"children":["\n",["$","li","li-0",{"children":"Log in to your Revolut Business portal."}],"\n",["$","li","li-1",{"children":["Navigate to the ",["$","strong","strong-0",{"children":"Merchant"}]," tab on the dashboard, and click the ",["$","strong","strong-1",{"children":"See all"}]," button in the ",["$","strong","strong-2",{"children":"Transactions"}]," section."]}],"\n",["$","li","li-2",{"children":["Select an uncaptured payment, and click ",["$","strong","strong-0",{"children":"Capture"}],"."]}],"\n"]}],"\n"]}],"\n",["$","li","li-1",{"children":["Endpoint: Use the ",["$","code","code-0",{"children":"/capture"}]," endpoint."]}],"\n"]}],"\n"]}],"\n"]}],"\n",["$","p","p-2",{"children":"Optionally, you can send a fraction of the full amount in the capture request to do a partial capture. You can only capture an order once. The amount that isn't captured will be voided."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":"Orders stay uncaptured for 7 days. After this period, the funds are returned to the customer's original payment method."}]}]]}]]}] 8d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 8d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 8d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 8ea:T552e,
{
  "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0",
  "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8",
  "type": "PAYMENT",
  "state": "COMPLETED",
  "created_at": "2021-01-14T18:37:06.055371Z",
  "updated_at": "2021-01-14T18:38:04.115204Z",
  "completed_at": "2021-01-14T18:38:39.476986Z",
  "description": "Testing Orders",
  "capture_mode": "MANUAL",
  "settlement_currency": "EUR",
  "merchant_order_ext_ref": "testorder123",
  "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1",
  "email": "test@revolut.com",
  "phone": "+447123456789",
  "order_amount": {
    "value": 50,
    "currency": "GBP"
  },
  "order_outstanding_amount": {
    "value": 0,
    "currency": "GBP"
  },
  "refunded_amount": {
    "value": 30,
    "currency": "GBP"
  },
  "shipping_address": {
    "street_line_1": "7 Westferry Circus",
    "street_line_2": "Revolut",
    "city": "London",
    "country_code": "GB",
    "postcode": "E14 4HD"
  },
  "payments": [
    {
      "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12",
      "state": "COMPLETED",
      "created_at": "2021-01-14T18:37:48.069092Z",
      "updated_at": "2021-01-14T18:38:39.476986Z",
      "token": "3cba558e-f465-4688-b5c4-94673508ece5",
      "amount": {
        "value": 50,
        "currency": "GBP"
      },
      "settled_amount": {
        "value": 67,
        "currency": "EUR"
      },
      "payment_method": {
        "type": "CARD",
        "card": {
          "card_brand": "VISA",
          "funding": "CREDIT",
          "card_country": "GB",
          "card_bin": "459664",
          "card_last_four": "6376",
          "card_expiry": "03/2025",
          "cardholder_name": "John Doe",
          "checks": {
            "three_ds": {
              "state": "VERIFIED",
              "version": 2
            },
            "cvv_verification": "MATCH",
            "address": "NOT_MATCH",
            "postcode": "MATCH",
            "cardholder": "N_A"
          }
        }
      },
      "billing_address": {
        "street_line_1": "7 Westferry Circus",
        "street_line_2": "Revolut",
        "city": "London",
        "country_code": "GB",
        "postcode": "E14 4HD"
      },
      "risk_level": "LOW",
      "fees": [
        {
          "type": "ACQUIRING",
          "amount": {
            "value": 5,
            "currency": "GBP"
          }
        }
      ]
    }
  ],
  "related": [
    {
      "id": "8af43efa-0d0c-4267-9abc-72679bc56859",
      "type": "REFUND",
      "state": "COMPLETED",
      "amount": {
        "value": 30,
        "currency": "GBP"
      }
    }
  ]
}
86d:["$","div","200-application/json-retrieved_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$8ea"}}]}]],"$L8eb"]}] 86e:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 86f:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 8ec:T3d74,
{
  "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0",
  "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8",
  "type": "PAYMENT",
  "state": "CANCELLED",
  "created_at": "2021-01-14T18:37:06.055371Z",
  "updated_at": "2021-01-14T18:38:04.115204Z",
  "completed_at": "2021-01-14T18:38:39.476986Z",
  "description": "Testing Orders",
  "capture_mode": "MANUAL",
  "settlement_currency": "EUR",
  "merchant_order_ext_ref": "testorder123",
  "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1",
  "email": "test@revolut.com",
  "phone": "+447123456789",
  "order_amount": {
    "value": 50,
    "currency": "GBP"
  },
  "order_outstanding_amount": {
    "value": 0,
    "currency": "GBP"
  },
  "shipping_address": {
    "street_line_1": "7 Westferry Circus",
    "street_line_2": "Revolut",
    "city": "London",
    "country_code": "GB",
    "postcode": "E14 4HD"
  },
  "payments": [
    {
      "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12",
      "state": "CANCELLED",
      "created_at": "2021-01-14T18:37:48.069092Z",
      "updated_at": "2021-01-14T18:38:39.476986Z",
      "amount": {
        "value": 50,
        "currency": "GBP"
      },
      "payment_method": {
        "type": "CARD",
        "card": {
          "card_brand": "VISA",
          "funding": "CREDIT",
          "card_country": "GB",
          "card_bin": "459664",
          "card_last_four": "6376",
          "card_expiry": "03/2025",
          "cardholder_name": "John Doe",
          "checks": {
            "cvv_verification": "MATCH",
            "address": "NOT_MATCH",
            "postcode": "MATCH",
            "cardholder": "N_A"
          }
        }
      },
      "billing_address": {
        "street_line_1": "7 Westferry Circus",
        "street_line_2": "Revolut",
        "city": "London",
        "country_code": "GB",
        "postcode": "E14 4HD"
      },
      "risk_level": "LOW"
    }
  ]
}
871:["$","div","200-application/json-cancelled_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$8ec"}}]}]],"$L8ed"]}] 872:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 873:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 8ee:Ta08,{ "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0", "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8", "type": "PAYMENT", "state": "COMPLETED", "created_at": "2021-01-14T18:37:06.055371Z", "updated_at": "2021-01-14T18:38:04.115204Z", "completed_at": "2021-01-14T18:38:39.476986Z", "description": "Testing Orders", "capture_mode": "MANUAL", "settlement_currency": "EUR", "merchant_order_ext_ref": "testorder123", "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1", "email": "test@revolut.com", "phone": "+447123456789", "order_amount": { "value": 50, "currency": "GBP" }, "order_outstanding_amount": { "value": 0, "currency": "GBP" }, "refunded_amount": { "value": 30, "currency": "GBP" }, "shipping_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "payments": [ { "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12", "state": "COMPLETED", "created_at": "2021-01-14T18:37:48.069092Z", "updated_at": "2021-01-14T18:38:39.476986Z", "token": "3cba558e-f465-4688-b5c4-94673508ece5", "amount": { "value": 50, "currency": "GBP" }, "settled_amount": { "value": 67, "currency": "EUR" }, "payment_method": { "type": "CARD", "card": { "card_brand": "VISA", "funding": "CREDIT", "card_country": "GB", "card_bin": "459664", "card_last_four": "6376", "card_expiry": "03/2025", "cardholder_name": "John Doe", "checks": { "three_ds": { "state": "VERIFIED", "version": 2 }, "cvv_verification": "MATCH", "address": "NOT_MATCH", "postcode": "MATCH", "cardholder": "N_A" } } }, "billing_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "risk_level": "LOW", "fees": [ { "type": "ACQUIRING", "amount": { "value": 5, "currency": "GBP" } } ] } ], "related": [ { "id": "8af43efa-0d0c-4267-9abc-72679bc56859", "type": "REFUND", "state": "COMPLETED", "amount": { "value": 30, "currency": "GBP" } } ] }8eb:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$8ee"}]}] 8ef:T760,{ "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0", "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8", "type": "PAYMENT", "state": "CANCELLED", "created_at": "2021-01-14T18:37:06.055371Z", "updated_at": "2021-01-14T18:38:04.115204Z", "completed_at": "2021-01-14T18:38:39.476986Z", "description": "Testing Orders", "capture_mode": "MANUAL", "settlement_currency": "EUR", "merchant_order_ext_ref": "testorder123", "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1", "email": "test@revolut.com", "phone": "+447123456789", "order_amount": { "value": 50, "currency": "GBP" }, "order_outstanding_amount": { "value": 0, "currency": "GBP" }, "shipping_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "payments": [ { "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12", "state": "CANCELLED", "created_at": "2021-01-14T18:37:48.069092Z", "updated_at": "2021-01-14T18:38:39.476986Z", "amount": { "value": 50, "currency": "GBP" }, "payment_method": { "type": "CARD", "card": { "card_brand": "VISA", "funding": "CREDIT", "card_country": "GB", "card_bin": "459664", "card_last_four": "6376", "card_expiry": "03/2025", "cardholder_name": "John Doe", "checks": { "cvv_verification": "MATCH", "address": "NOT_MATCH", "postcode": "MATCH", "cardholder": "N_A" } } }, "billing_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "risk_level": "LOW" } ] }8ed:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$8ef"}]}] 8e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L8f0","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 1e:["$","$51","refund-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L8f1"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L8f2"},"type":{"type":"string","description":"The type of the order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","descriptionNode":"$L8f3"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L8f4"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L8f5"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L8f6"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L8f7"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L8f8"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L8f9"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L8fa"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L8fb"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L8fc"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L8fd"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L8fe"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$L8ff"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:order_amount:required","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L900"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L901"}},"descriptionNode":"$L902"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L903"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L904"}},"descriptionNode":"$L905"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L906"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L907"}},"descriptionNode":"$L908"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L909"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L90a"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L90b"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L90c"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L90d"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L90e"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$L90f"},"state":{"type":"string","description":"The state of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:state:enum","descriptionNode":"$L910"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:failure_reason:enum","descriptionNode":"$L911"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$L912"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$L913"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$L914"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:amount:required","properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$L915"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L916"}},"descriptionNode":"$L917"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$L918"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L919"}},"descriptionNode":"$L91a"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$L91b"},"type":{"type":"string","description":"The type of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:type:enum","descriptionNode":"$L91c"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:card_brand:enum","descriptionNode":"$L91d"},"funding":{"type":"string","description":"The type of card funding.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:funding:enum","descriptionNode":"$L91e"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$L91f"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$L920"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$L921"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$L922"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L923"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:three_ds:properties:state:enum","descriptionNode":"$L924"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$L925"}},"descriptionNode":"$L926"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cvv_verification:enum","descriptionNode":"$L927"},"address":{"type":"string","description":"The result of address verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:address:enum","descriptionNode":"$L928"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:postcode:enum","descriptionNode":"$L929"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cardholder:enum","descriptionNode":"$L92a"}},"descriptionNode":"$L92b"}},"descriptionNode":"$L92c"}},"descriptionNode":"$L92d"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:region","city":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$1e:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:risk_level:enum","descriptionNode":"$L92e"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:fees:items:properties:type:enum","descriptionNode":"$L92f"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$L930"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L931"}},"descriptionNode":"$L932"}}},"descriptionNode":"$L933"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:required"},"descriptionNode":"$L934"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$L935"},"type":{"type":"string","description":"The type of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:type:enum","descriptionNode":"$L936"},"state":{"type":"string","description":"The state of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:state:enum","descriptionNode":"$L937"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L938"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L939"}},"descriptionNode":"$L93a"}}},"descriptionNode":"$L93b"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L93c"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L93d"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$L93e"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L93f"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$L940"},"examples":{"refund_example":{"summary":"Refund example","value":{"id":"6a1353a8-3054-40ee-ab39-97a11e4c5f2a","type":"REFUND","state":"COMPLETED","created_at":"2020-05-12T14:23:11.046526Z","updated_at":"2020-05-12T14:23:11.046526Z","completed_at":"2020-05-12T14:23:11.046526Z","order_amount":{"value":40,"currency":"GBP"},"email":"customer@gmail.com","full_name":"Example Customer","related":[{"id":"4695b666-45d0-4f15-ad10-e66a84c914bf","type":"PAYMENT","amount":{"value":100,"currency":"GBP"}}]}}}}},"descriptionNode":"$L941"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L942"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L943"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L944"},"401":{"description":"Unauthorized","descriptionNode":"$L945"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L946"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L947"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L948"},"422":{"description":"Insufficient funds","content":{"application/json":{"schema":{"type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L949"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L94a"},"code":{"type":"integer"}}},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533,"code":1026}}}}},"descriptionNode":"$L94b"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The amount of the refund (minor currency unit). For example, enter `7034` for €70.34 in the field.\n\nThis amount can't exceed the remaining amount of the original order. To get the refundable amount, subtract the `value` of the `refunded_amount` from the `value` of the `order_amount` in the original order. See [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order).","descriptionNode":"$L94c"},"description":{"type":"string","description":"The description of the refund.","descriptionNode":"$L94d"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L94e"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L94f"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L950"}},"required":["amount"]},"examples":{"default":{"value":{"amount":40,"description":"Refund for damaged goods"}}}}}},"variantLabels":[],"children":["$L951","$L952"]}]}],false]}] 951:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"refund-order-deprecated","children":[["$L953","$undefined"],["$","$L15",null,{"id":"refund-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/refund-order-deprecated.md"}]]}]}],"$undefined"]}] 959:T6b5,
curl -X POST "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -H "Idempotency-Key: __RP_TOK_2__" \
  -d '{
  "amount": 40,
  "description": "Refund for damaged goods"
}'
95a:Tfa6,
const payload = {
  "amount": 40,
  "description": "Refund for damaged goods"
};
fetch("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__",
    "Idempotency-Key": "__RP_TOK_2__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
95b:T169a,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"
  jsonData := []byte(`
{
  "amount": 40,
  "description": "Refund for damaged goods"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")
  req.Header.Add("Idempotency-Key", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
95c:Tcda,
import requests

url = "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__",
  "Idempotency-Key": "__RP_TOK_2__"
}
payload = {
  "amount": 40,
  "description": "Refund for damaged goods"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
95d:T1bfe,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 40,
  "description": "Refund for damaged goods"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .header("Idempotency-Key", "__RP_TOK_2__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
95e:T1e90,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
    { "Idempotency-Key", "__RP_TOK_2__" },
  },
  Content = new StringContent(@"{
  ""amount"": 40,
  ""description"": ""Refund for damaged goods""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
95f:T6bd,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -H "Idempotency-Key: __RP_TOK_2__" \
  -d '{
  "amount": 40,
  "description": "Refund for damaged goods"
}'
960:Tfae,
const payload = {
  "amount": 40,
  "description": "Refund for damaged goods"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__",
    "Idempotency-Key": "__RP_TOK_2__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
961:T16a2,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"
  jsonData := []byte(`
{
  "amount": 40,
  "description": "Refund for damaged goods"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")
  req.Header.Add("Idempotency-Key", "__RP_TOK_2__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
962:Tce2,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__",
  "Idempotency-Key": "__RP_TOK_2__"
}
payload = {
  "amount": 40,
  "description": "Refund for damaged goods"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
963:T1c06,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 40,
  "description": "Refund for damaged goods"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .header("Idempotency-Key", "__RP_TOK_2__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
964:T1e98,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
    { "Idempotency-Key", "__RP_TOK_2__" },
  },
  Content = new StringContent(@"{
  ""amount"": 40,
  ""description"": ""Refund for damaged goods""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
952:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L954",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L955"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"required":false,"description":"The `Idempotency-Key` ensures that requests are processed only once, preventing multiple executions of the same operation due to retries or duplicate requests.\n\nThis header is optional and can accept any unique string value the merchant uses.\n\nA recommended practice is to use a unique identifier from your system (such as the entity's ID or a request UUID) as the idempotency key. This facilitates tracking and managing requests effectively.","descriptionNode":"$L956"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L957"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L958"}],"requestBody":"$1e:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1e:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -H \"Idempotency-Key: __RP_TOK_2__\" \\\n -d '{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}'","templateHtml":"$959","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\",\n \"Idempotency-Key\": \"__RP_TOK_2__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$95a","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"\n jsonData := []byte(`\n{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n req.Header.Add(\"Idempotency-Key\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$95b","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\",\n \"Idempotency-Key\": \"__RP_TOK_2__\"\n}\npayload = {\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$95c","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .header(\"Idempotency-Key\", \"__RP_TOK_2__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$95d","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n { \"Idempotency-Key\", \"__RP_TOK_2__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 40,\n \"\"description\"\": \"\"Refund for damaged goods\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$95e","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -H \"Idempotency-Key: __RP_TOK_2__\" \\\n -d '{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}'","templateHtml":"$95f","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\",\n \"Idempotency-Key\": \"__RP_TOK_2__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$960","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"\n jsonData := []byte(`\n{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n req.Header.Add(\"Idempotency-Key\", \"__RP_TOK_2__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$961","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\",\n \"Idempotency-Key\": \"__RP_TOK_2__\"\n}\npayload = {\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$962","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .header(\"Idempotency-Key\", \"__RP_TOK_2__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$963","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__/refund\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n { \"Idempotency-Key\", \"__RP_TOK_2__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 40,\n \"\"description\"\": \"\"Refund for damaged goods\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$964","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_2__","paramName":"Idempotency-Key","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","header:Idempotency-Key":"string","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders/{order_id}/refund","parameters":["$952:props:children:0:props:children:1:props:parameters:0","$952:props:children:0:props:children:1:props:parameters:1","$952:props:children:0:props:children:1:props:parameters:2"]}],"$L965"],"$L966","$L967"]}]]}] 965:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$L968"}}}] 966:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"default","label":"default","rawValue":"$1e:props:children:0:props:children:props:requestBody:content:application/json:examples:default:value","block":"$L969"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 967:["$","$Lbd",null,{"exampleBlocks":{"201":{"application/json":{"variants":[{"key":"refund_example","label":"Refund example","rawValue":"$1e:props:children:0:props:children:props:responses:201:content:application/json:examples:refund_example:value","block":"$L96a"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L96b"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$L96c"}],"syncedPropertyName":"$undefined"}},"422":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$1e:props:children:0:props:children:props:responses:422:content:application/json:examples:example-1:value","block":"$L96d"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 874:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 875:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 953:"Refund an order (Deprecated)" 8f1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 8f2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 8f3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 8f4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 8f5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 8f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 8f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 8f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 8f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 8fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 8fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 8fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 8fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 8fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 8ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] 900:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 901:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 902:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 903:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 904:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 905:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 906:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 907:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 908:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] 909:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 90a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 90b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 90c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 90d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 90e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 90f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 910:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] 911:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] 912:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] 913:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] 914:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 915:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 916:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 917:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] 918:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 919:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 91a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] 91b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] 91c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] 91d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 91e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] 91f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] 920:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] 921:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] 922:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] 923:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 924:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] 925:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] 926:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] 927:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 928:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] 929:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] 92a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] 92b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] 92c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] 92d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] 92e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] 92f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] 930:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 931:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 932:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] 933:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] 934:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] 935:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] 936:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] 937:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] 938:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 939:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 93a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] 93b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] 93c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 93d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 93e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] 93f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 940:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] 941:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 942:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 943:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 944:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 945:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 946:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 947:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 948:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 949:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 94a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 94b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Insufficient funds"}]]}] 94c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refund (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}],"\n",["$","p","p-1",{"children":["This amount can't exceed the remaining amount of the original order. To get the refundable amount, subtract the ",["$","code","code-0",{"children":"value"}]," of the ",["$","code","code-1",{"children":"refunded_amount"}]," from the ",["$","code","code-2",{"children":"value"}]," of the ",["$","code","code-3",{"children":"order_amount"}]," in the original order. See ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}],"."]}]]}] 94d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the refund."}]]}] 94e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 94f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 950:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 954:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Issue a refund for a completed order. This operation allows for either a full or partial refund, which will be processed back to the customer's original payment method."}],"\n",["$","h3","h3-0",{"children":"Operation details"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["The refund operation generates a new order with ",["$","code","code-0",{"children":"type: REFUND"}],". This new order represents a full or partial refund of the original amount paid."]}],"\n",["$","li","li-1",{"children":["Refunds can only be initiated for orders that are in the ",["$","code","code-0",{"children":"COMPLETED"}]," state. Orders in any other state are not eligible for refunds to ensure transaction integrity and to prevent errors."]}],"\n"]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Ensure that the order to be refunded is confirmed as ",["$","code","code-0",{"children":"COMPLETED"}]," before attempting a refund operation."]}],"\n",["$","li","li-1",{"children":["Consider using the ",["$","code","code-0",{"children":"Idempotency-Key"}]," header to make the refund operation idempotent, preventing duplicate refund processing in cases of multiple submissions."]}],"\n"]}]}]]}]]}] 955:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 956:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","code","code-0",{"children":"Idempotency-Key"}]," ensures that requests are processed only once, preventing multiple executions of the same operation due to retries or duplicate requests."]}],"\n",["$","p","p-1",{"children":"This header is optional and can accept any unique string value the merchant uses."}],"\n",["$","p","p-2",{"children":"A recommended practice is to use a unique identifier from your system (such as the entity's ID or a request UUID) as the idempotency key. This facilitates tracking and managing requests effectively."}]]}] 957:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 958:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 8e6:["$","div","request-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"amount\": 100\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"amount\": 100\n}"}]}]]}] 96e:T464c,
{
  "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0",
  "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8",
  "type": "PAYMENT",
  "state": "COMPLETED",
  "created_at": "2021-01-14T18:37:06.055371Z",
  "updated_at": "2021-01-14T18:38:04.115204Z",
  "completed_at": "2021-01-14T18:38:39.476986Z",
  "description": "Testing Orders",
  "capture_mode": "MANUAL",
  "settlement_currency": "EUR",
  "merchant_order_ext_ref": "testorder123",
  "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1",
  "email": "test@revolut.com",
  "phone": "+447123456789",
  "order_amount": {
    "value": 50,
    "currency": "GBP"
  },
  "order_outstanding_amount": {
    "value": 0,
    "currency": "GBP"
  },
  "shipping_address": {
    "street_line_1": "7 Westferry Circus",
    "street_line_2": "Revolut",
    "city": "London",
    "country_code": "GB",
    "postcode": "E14 4HD"
  },
  "payments": [
    {
      "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12",
      "state": "COMPLETED",
      "created_at": "2021-01-14T18:37:48.069092Z",
      "updated_at": "2021-01-14T18:38:39.476986Z",
      "amount": {
        "value": 50,
        "currency": "GBP"
      },
      "settled_amount": {
        "value": 67,
        "currency": "EUR"
      },
      "payment_method": {
        "type": "CARD",
        "card": {
          "card_brand": "VISA",
          "funding": "CREDIT",
          "card_country": "GB",
          "card_bin": "459664",
          "card_last_four": "6376",
          "card_expiry": "03/2025",
          "cardholder_name": "John Doe",
          "checks": {
            "cvv_verification": "MATCH",
            "address": "NOT_MATCH",
            "postcode": "MATCH",
            "cardholder": "N_A"
          }
        }
      },
      "billing_address": {
        "street_line_1": "7 Westferry Circus",
        "street_line_2": "Revolut",
        "city": "London",
        "country_code": "GB",
        "postcode": "E14 4HD"
      },
      "risk_level": "LOW",
      "fees": [
        {
          "type": "ACQUIRING",
          "amount": {
            "value": 5,
            "currency": "GBP"
          }
        }
      ]
    }
  ]
}
8e7:["$","div","200-application/json-captured_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$96e"}}]}]],"$L96f"]}] 8e8:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] 8e9:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 970:T856,{ "id": "7c97ce7e-a7e4-4ff9-b3ca-9f988b0ba5e0", "public_id": "fecaafa0-c230-44e9-a24e-7005e82e03f8", "type": "PAYMENT", "state": "COMPLETED", "created_at": "2021-01-14T18:37:06.055371Z", "updated_at": "2021-01-14T18:38:04.115204Z", "completed_at": "2021-01-14T18:38:39.476986Z", "description": "Testing Orders", "capture_mode": "MANUAL", "settlement_currency": "EUR", "merchant_order_ext_ref": "testorder123", "customer_id": "56db1367-2494-4a35-8254-c23929f8e5e1", "email": "test@revolut.com", "phone": "+447123456789", "order_amount": { "value": 50, "currency": "GBP" }, "order_outstanding_amount": { "value": 0, "currency": "GBP" }, "shipping_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "payments": [ { "id": "7c97ce7e-a7e4-4ff9-b3ca-absgdjwuio12", "state": "COMPLETED", "created_at": "2021-01-14T18:37:48.069092Z", "updated_at": "2021-01-14T18:38:39.476986Z", "amount": { "value": 50, "currency": "GBP" }, "settled_amount": { "value": 67, "currency": "EUR" }, "payment_method": { "type": "CARD", "card": { "card_brand": "VISA", "funding": "CREDIT", "card_country": "GB", "card_bin": "459664", "card_last_four": "6376", "card_expiry": "03/2025", "cardholder_name": "John Doe", "checks": { "cvv_verification": "MATCH", "address": "NOT_MATCH", "postcode": "MATCH", "cardholder": "N_A" } } }, "billing_address": { "street_line_1": "7 Westferry Circus", "street_line_2": "Revolut", "city": "London", "country_code": "GB", "postcode": "E14 4HD" }, "risk_level": "LOW", "fees": [ { "type": "ACQUIRING", "amount": { "value": 5, "currency": "GBP" } } ] } ] }96f:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$970"}]}] 968:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$L971","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] 8f0:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 969:["$","div","request-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"amount\": 40,\n  \"description\": \"Refund for damaged goods\"\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"amount\": 40,\n \"description\": \"Refund for damaged goods\"\n}"}]}]]}] 972:T13f2,
{
  "id": "6a1353a8-3054-40ee-ab39-97a11e4c5f2a",
  "type": "REFUND",
  "state": "COMPLETED",
  "created_at": "2020-05-12T14:23:11.046526Z",
  "updated_at": "2020-05-12T14:23:11.046526Z",
  "completed_at": "2020-05-12T14:23:11.046526Z",
  "order_amount": {
    "value": 40,
    "currency": "GBP"
  },
  "email": "customer@gmail.com",
  "full_name": "Example Customer",
  "related": [
    {
      "id": "4695b666-45d0-4f15-ad10-e66a84c914bf",
      "type": "PAYMENT",
      "amount": {
        "value": 100,
        "currency": "GBP"
      }
    }
  ]
}
96a:["$","div","201-application/json-refund_example",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$972"}}]}]],"$L973"]}] 96b:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 96c:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] 974:T471,
{
  "errorId": "94b27660-fdda-49ec-8b85-cd46a068ade0",
  "timestamp": 1601296792533,
  "code": 1026
}
96d:["$","div","422-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$974"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533,\n \"code\": 1026\n}"}]}]]}] 973:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"6a1353a8-3054-40ee-ab39-97a11e4c5f2a\",\n \"type\": \"REFUND\",\n \"state\": \"COMPLETED\",\n \"created_at\": \"2020-05-12T14:23:11.046526Z\",\n \"updated_at\": \"2020-05-12T14:23:11.046526Z\",\n \"completed_at\": \"2020-05-12T14:23:11.046526Z\",\n \"order_amount\": {\n \"value\": 40,\n \"currency\": \"GBP\"\n },\n \"email\": \"customer@gmail.com\",\n \"full_name\": \"Example Customer\",\n \"related\": [\n {\n \"id\": \"4695b666-45d0-4f15-ad10-e66a84c914bf\",\n \"type\": \"PAYMENT\",\n \"amount\": {\n \"value\": 100,\n \"currency\": \"GBP\"\n }\n }\n ]\n}"}]}] 971:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] 1b:["$","$51","update-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L975"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L976"},"type":{"type":"string","description":"The type of the order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","descriptionNode":"$L977"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L978"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L979"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L97a"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L97b"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L97c"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L97d"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L97e"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L97f"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$L980"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$L981"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$L982"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$L983"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:order_amount:required","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L984"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L985"}},"descriptionNode":"$L986"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L987"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L988"}},"descriptionNode":"$L989"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$L98a"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L98b"}},"descriptionNode":"$L98c"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L98d"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L98e"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L98f"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L990"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L991"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L992"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$L993"},"state":{"type":"string","description":"The state of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:state:enum","descriptionNode":"$L994"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:failure_reason:enum","descriptionNode":"$L995"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$L996"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$L997"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$L998"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:amount:required","properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$L999"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L99a"}},"descriptionNode":"$L99b"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$L99c"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L99d"}},"descriptionNode":"$L99e"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$L99f"},"type":{"type":"string","description":"The type of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:type:enum","descriptionNode":"$L9a0"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:card_brand:enum","descriptionNode":"$L9a1"},"funding":{"type":"string","description":"The type of card funding.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:funding:enum","descriptionNode":"$L9a2"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$L9a3"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$L9a4"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$L9a5"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$L9a6"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$L9a7"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:three_ds:properties:state:enum","descriptionNode":"$L9a8"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$L9a9"}},"descriptionNode":"$L9aa"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cvv_verification:enum","descriptionNode":"$L9ab"},"address":{"type":"string","description":"The result of address verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:address:enum","descriptionNode":"$L9ac"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:postcode:enum","descriptionNode":"$L9ad"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cardholder:enum","descriptionNode":"$L9ae"}},"descriptionNode":"$L9af"}},"descriptionNode":"$L9b0"}},"descriptionNode":"$L9b1"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:region","city":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$1b:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:risk_level:enum","descriptionNode":"$L9b2"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:fees:items:properties:type:enum","descriptionNode":"$L9b3"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$L9b4"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$L9b5"}},"descriptionNode":"$L9b6"}}},"descriptionNode":"$L9b7"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:required"},"descriptionNode":"$L9b8"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$L9b9"},"type":{"type":"string","description":"The type of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:type:enum","descriptionNode":"$L9ba"},"state":{"type":"string","description":"The state of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:state:enum","descriptionNode":"$L9bb"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L9bc"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L9bd"}},"descriptionNode":"$L9be"}}},"descriptionNode":"$L9bf"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L9c0"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L9c1"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$L9c2"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$L9c3"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$L9c4"},"examples":{"updated_order":{"summary":"Updated order","value":{"id":"5fd927ba-6f73-4a01-8e2b-fcd37fb629c5","public_id":"94a11217-6319-4d34-8dae-a2b80b953adb","type":"PAYMENT","state":"PENDING","created_at":"2020-10-15T07:46:40.648108Z","updated_at":"2020-10-15T07:46:40.648108Z","order_amount":{"value":100,"currency":"EUR"},"merchant_order_ext_ref":"#2234","email":"johndoe001@gmail.com","checkout_url":"https://business.revolut.com/payment-link/uLHGQVGNx_ZRDV14z5VFIA"}}}}},"descriptionNode":"$L9c5"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L9c6"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L9c7"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L9c8"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L9c9"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L9ca"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L9cb"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$L9cc"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$L9cd"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$L9ce"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$L9cf"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L9d0"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$L9d1"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L9d2"},"email":{"type":"string","description":"The email of the customer.","descriptionNode":"$L9d3"},"customer_id":{"type":"string","description":"The ID of the customer.","descriptionNode":"$L9d4"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L9d5"},"settlement_currency":{"type":"string","description":"Settlement currency. \n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L9d6"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$L9d7"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$L9d8"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$L9d9"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$L9da"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$L9db"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$L9dc"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$L9dd"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$L9de"},"enforce_challenge":{"type":"string","description":"The enforce challenge mode. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The payments created for an order, will have challenge requirement calculated by our fraud mechanisms and might not require it.\n- `FORCED`: The payments created for an order will require a challenge. Currently only supported for card payments and forces 3DS challenge. ","enum":["AUTOMATIC","FORCED"],"descriptionNode":"$L9df"}}},"examples":{"example_order":{"summary":"Example order","value":{"amount":100,"currency":"EUR","merchant_order_ext_ref":"#2234"}}}}}},"variantLabels":[],"children":["$L9e0","$L9e1"]}]}],false]}] 9e0:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"update-order-deprecated","children":[["$L9e2",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"update-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/update-order-deprecated.md"}]]}]}],"$undefined"]}] 9e7:T626,
curl -X PATCH "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}'
9e8:Tf87,
const payload = {
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
};
fetch("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
9e9:T151e,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
  jsonData := []byte(`
{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
9ea:Tcbd,
import requests

url = "https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
9eb:T1a85,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
9ec:T1f19,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""amount"": 100,
  ""currency"": ""EUR"",
  ""merchant_order_ext_ref"": ""#2234""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
9ed:T62e,
curl -X PATCH "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_1__" \
  -d '{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}'
9ee:Tf8f,
const payload = {
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_1__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
9ef:T1526,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
  jsonData := []byte(`
{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}
  `)
  req, _ := http.NewRequest("PATCH", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
9f0:Tcc5,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_1__"
}
payload = {
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
9f1:T1a8d,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_1__")
      .PATCH(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
9f2:T1f21,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Patch,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  },
  Content = new StringContent(@"{
  ""amount"": 100,
  ""currency"": ""EUR"",
  ""merchant_order_ext_ref"": ""#2234""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
9e1:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$L9e3",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$L9e4"},{"name":"order_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$L9e5"},"required":true,"description":"The ID of the `Order` object.","descriptionNode":"$L9e6"}],"requestBody":"$1b:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$1b:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}'","templateHtml":"$9e7","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$9e8","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$9e9","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$9ea","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$9eb","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 100,\n \"\"currency\"\": \"\"EUR\"\",\n \"\"merchant_order_ext_ref\"\": \"\"#2234\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$9ec","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X PATCH \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_1__\" \\\n -d '{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}'","templateHtml":"$9ed","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\", {\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$9ee","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\n jsonData := []byte(`\n{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n `)\n req, _ := http.NewRequest(\"PATCH\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$9ef","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_1__\"\n}\npayload = {\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$9f0","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .PATCH(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$9f1","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Patch,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders/__RP_TOK_0__\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 100,\n \"\"currency\"\": \"\"EUR\"\",\n \"\"merchant_order_ext_ref\"\": \"\"#2234\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$9f2","tokens":[{"marker":"__RP_TOK_0__","paramName":"order_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:order_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"patch","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders/{order_id}","parameters":["$9e1:props:children:0:props:children:1:props:parameters:0","$9e1:props:children:0:props:children:1:props:parameters:1"]}],"$L9f3"],"$L9f4","$L9f5"]}]]}] 18:["$","$51","create-order-deprecated",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"201":{"description":"Order created","content":{"application/json":{"schema":{"title":"Order","type":"object","description":"An Order object helps you through the process of accepting payments from your customers.\n\nCreate an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the [Revolut Checkout Widget](https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget) to collect payments from your customers.","properties":{"id":{"type":"string","format":"uuid","description":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization.","descriptionNode":"$L9f6"},"public_id":{"type":"string","description":"Temporary ID for the order. \n\nIt expires when the payment is authorized.","descriptionNode":"$L9f7"},"type":{"type":"string","description":"The type of the order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:type:enum","descriptionNode":"$L9f8"},"state":{"type":"string","description":"The state of the order.\n\n:::info\nFor more information about the order lifecycle, see: [Order and payment lifecycle](https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle).\n:::","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:state:enum","descriptionNode":"$L9f9"},"created_at":{"type":"string","description":"The date and time the order was created.","format":"date-time","descriptionNode":"$L9fa"},"updated_at":{"type":"string","description":"The date and time the order was last updated.","format":"date-time","descriptionNode":"$L9fb"},"completed_at":{"type":"string","description":"The date and time the order was completed.","format":"date-time","descriptionNode":"$L9fc"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$L9fd"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$L9fe"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$L9ff"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$La00"},"customer_id":{"type":"string","description":"The ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) associated with this order.","descriptionNode":"$La01"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$La02"},"phone":{"type":"string","description":"The phone number of the customer.","descriptionNode":"$La03"},"full_name":{"type":"string","description":"The customer's full name.","descriptionNode":"$La04"},"order_amount":{"type":"object","description":"The amount and currency of the order.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:order_amount:required","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$La05"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La06"}},"descriptionNode":"$La07"},"order_outstanding_amount":{"type":"object","description":"The amount and currency outstanding to be paid for this order.","properties":{"value":{"type":"integer","description":"The amount of the order (minor currency unit) that is outstanding. For example, enter `7034` for €70.34 in the field.","descriptionNode":"$La08"},"currency":{"type":"string","description":"The currency of the amount that is outstanding. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La09"}},"descriptionNode":"$La0a"},"refunded_amount":{"type":"object","description":"The amount and currency of the refunded order.","properties":{"value":{"type":"integer","description":"The amount of the refunded order (minor currency unit). For example, enter `7034` for €70.34 in the field.","descriptionNode":"$La0b"},"currency":{"type":"string","description":"The currency of the refunded order. [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La0c"}},"descriptionNode":"$La0d"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$La0e"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$La0f"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$La10"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$La11"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$La12"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$La13"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"payments":{"type":"array","description":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful).","items":{"title":"Payment","type":"object","description":"","properties":{"id":{"type":"string","description":"The ID of the payment.","descriptionNode":"$La14"},"state":{"type":"string","description":"The state of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:state:enum","descriptionNode":"$La15"},"failure_reason":{"type":"string","description":"The reason for a `FAILED` or `DECLINED` payment.\n\n\nA failed or declined payment can result from multiple reasons. To learn\nmore, check our [decline\nreasons](https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:failure_reason:enum","descriptionNode":"$La16"},"created_at":{"type":"string","description":"The date and time the payment was created.","format":"date-time","descriptionNode":"$La17"},"updated_at":{"type":"string","description":"The date and time the payment was last updated.","format":"date-time","descriptionNode":"$La18"},"token":{"type":"string","description":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers. \n\n\nThe token is only valid for a limited time.","descriptionNode":"$La19"},"amount":{"type":"object","description":"The amount and currency of the payment.","required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:amount:required","properties":{"value":{"type":"integer","description":"The amount of the payment (minor currency unit). For example, enter\n`7034` for €70.34 in the field.","descriptionNode":"$La1a"},"currency":{"type":"string","description":"The currency of the payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$La1b"}},"descriptionNode":"$La1c"},"settled_amount":{"type":"object","description":"The amount and currency of the settled payment.","properties":{"value":{"type":"integer","description":"The amount of the settled payment (minor currency unit). For example,\nenter `7034` for €70.34 in the field.","descriptionNode":"$La1d"},"currency":{"type":"string","description":"The currency of the settled payment. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper\ncase.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$La1e"}},"descriptionNode":"$La1f"},"payment_method":{"title":"Payment-Method","type":"object","description":"The details of the payment method used to make the payment.","properties":{"id":{"type":"string","description":"The ID of the payment method. This value is present only if the payment method was previously saved.","format":"uuid","descriptionNode":"$La20"},"type":{"type":"string","description":"The type of the payment.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:type:enum","descriptionNode":"$La21"},"card":{"type":"object","description":"The details of the card. Only present for payments with `payment_method.type` = `CARD`.","properties":{"card_brand":{"type":"string","description":"The type of the card.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:card_brand:enum","descriptionNode":"$La22"},"funding":{"type":"string","description":"The type of card funding.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:funding:enum","descriptionNode":"$La23"},"card_country":{"type":"string","description":"The country where the card was issued.","descriptionNode":"$La24"},"card_bin":{"type":"string","description":"The BIN of the card.","minLength":6,"maxLength":6,"descriptionNode":"$La25"},"card_last_four":{"type":"string","description":"The last four digits of the card.","minLength":4,"maxLength":4,"descriptionNode":"$La26"},"card_expiry":{"type":"string","description":"The expiry date of the card in the format of MM/YY.","descriptionNode":"$La27"},"cardholder_name":{"type":"string","description":"The name of the cardholder.","descriptionNode":"$La28"},"checks":{"type":"object","description":"The details of the check for card payment. Only for orders with successful payments.","properties":{"three_ds":{"type":"object","description":"The details of the 3D Secure check. Only for orders with successful payments.","properties":{"state":{"type":"string","description":"The result of 3D Secure check.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:three_ds:properties:state:enum","descriptionNode":"$La29"},"version":{"type":"integer","description":"The 3D Secure version.","descriptionNode":"$La2a"}},"descriptionNode":"$La2b"},"cvv_verification":{"type":"string","description":"The result of CVV verification.\n\n| Verification result | Description | \n| ------------------- | ----------- |\n| `MATCH` | Provided CVV matches the card's CVV |\n| `NOT_MATCH` | Provided CVV does not match the card's CVV |\n| `INCORRECT` | Provided CVV format is incorrect for this type of card |\n| `NOT_PROCESSED` | CVV verification was not performed |","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cvv_verification:enum","descriptionNode":"$La2c"},"address":{"type":"string","description":"The result of address verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:address:enum","descriptionNode":"$La2d"},"postcode":{"type":"string","description":"The result of postcode verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:postcode:enum","descriptionNode":"$La2e"},"cardholder":{"type":"string","description":"The result of cardholder verification.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:payment_method:properties:card:properties:checks:properties:cardholder:enum","descriptionNode":"$La2f"}},"descriptionNode":"$La30"}},"descriptionNode":"$La31"}},"descriptionNode":"$La32"},"billing_address":{"title":"Address","type":"object","properties":{"street_line_1":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:street_line_1","street_line_2":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:street_line_2","region":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:region","city":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:city","country_code":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:country_code","postcode":"$18:props:children:0:props:children:props:responses:201:content:application/json:schema:properties:shipping_address:properties:postcode"},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"risk_level":{"type":"string","description":"The risk level of the card.\n\nIf the risk level is `HIGH`, the payment might be declined.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:risk_level:enum","descriptionNode":"$La33"},"fees":{"type":"array","description":"The details of the order fee.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the order fee.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:properties:fees:items:properties:type:enum","descriptionNode":"$La34"},"amount":{"type":"object","description":"The amount and currency of the payment fee.","properties":{"value":{"type":"integer","description":"The amount of the payment fee (minor currency unit). For\nexample, enter `7034` for €70.34 in the field.","descriptionNode":"$La35"},"currency":{"type":"string","description":"The currency of the payment fee. [ISO\n4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in\nupper case.\n\n\n:::info\n\nFor more information about the supported currencies, see: [Help\nCenter](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n\n:::","descriptionNode":"$La36"}},"descriptionNode":"$La37"}}},"descriptionNode":"$La38"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:payments:items:required"},"descriptionNode":"$La39"},"related":{"type":"array","description":"The details of related orders. You can use the ID of the related order to [Retrieve the order information](https://developer.revolut.com/docs/api/merchant#retrieve-order).","items":{"title":"Order-Related","type":"object","properties":{"id":{"type":"string","description":"The ID of the related order. You can use this ID to get more information about the related order using the [Retrieve an order](https://developer.revolut.com/docs/api/merchant#retrieve-order) operation.","descriptionNode":"$La3a"},"type":{"type":"string","description":"The type of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:type:enum","descriptionNode":"$La3b"},"state":{"type":"string","description":"The state of the related order.","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:related:items:properties:state:enum","descriptionNode":"$La3c"},"amount":{"type":"object","description":"The amount and currency of the related order.","properties":{"value":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$La3d"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La3e"}},"descriptionNode":"$La3f"}}},"descriptionNode":"$La40"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$La41"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$La42"},"checkout_url":{"type":"string","description":"Link to a checkout page hosted by Revolut.","format":"uri","descriptionNode":"$La43"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$La44"}},"required":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:required","descriptionNode":"$La45"},"examples":{"created_order_min_params":{"summary":"Order created with minimal required parameters","value":{"id":"64a3f721-a5c8-aeee-bfb5-d5a984d32e9c","public_id":"54933ff3-9fe5-49cd-8760-7d0e8c3ec198","type":"PAYMENT","state":"PENDING","created_at":"2023-07-04T10:40:33.069624Z","updated_at":"2023-07-04T10:40:33.069624Z","capture_mode":"AUTOMATIC","customer_id":"51918dc4-c02c-49e4-9b8b-3f08c8b01248","email":"example.customer@email.com","order_amount":{"value":500,"currency":"GBP"},"order_outstanding_amount":{"value":500,"currency":"GBP"},"metadata":{},"checkout_url":"https://business.revolut.com/payment-link/h2B9Dow-wZhUkz_zn-VJzQ"}},"created_order_additional_params":{"summary":"Order created with additional parameters","value":{"id":"64a3f606-3fb8-a2ab-970e-4cafdb62e04c","public_id":"c8c6b05a-6a4f-463e-a2a7-44e1a0c77e18","type":"PAYMENT","state":"PENDING","created_at":"2023-07-04T10:35:50.542458Z","updated_at":"2023-07-04T10:35:50.542458Z","description":"Example product","capture_mode":"MANUAL","customer_id":"51918dc4-c02c-49e4-9b8b-3f08c8b01248","email":"example.customer@email.com","order_amount":{"value":500,"currency":"GBP"},"order_outstanding_amount":{"value":500,"currency":"GBP"},"shipping_address":{"street_line_1":"7 Westferry Circus","city":"London","country_code":"GB","postcode":"E14 4HD"},"metadata":{"product_type":"Example"},"checkout_url":"https://business.revolut.com/payment-link/oqdE4aDHfhjIxrBaak9GPg","merchant_order_uri":"https://example.com/orders/12345"}}}}},"descriptionNode":"$La46"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$La47"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$La48"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"},"examples":{"example-1":{"value":{"errorId":"94b27660-fdda-49ec-8b85-cd46a068ade0","timestamp":1601296792533}}}}},"headers":{},"descriptionNode":"$La49"},"401":{"description":"Unauthorized","descriptionNode":"$La4a"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"errorId":{"type":"string","description":"The ID of the error. You can share this ID with Revolut support for troubleshooting.","descriptionNode":"$La4b"},"timestamp":{"type":"integer","description":"The date and time the error happened.","descriptionNode":"$La4c"}},"required":"$26:props:children:0:props:children:props:responses:404:content:application/json:schema:required"}}},"descriptionNode":"$La4d"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The order total expressed in minor currency units, according to the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217). For example, `7034` in `EUR` corresponds to €70.34.\n\n:::info\nConversion between major and minor units varies by currency. For instance, `100` minor units equal £1.00 in `GBP`, whereas in `ISK` they represent 100 units. For more details, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217).\n:::","descriptionNode":"$La4e"},"capture_mode":{"type":"string","description":"The capture mode of the order. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The order is captured automatically after payment authorisation.\n- `MANUAL`: The order is not captured automatically. You must manually capture the order later.\n\nFor more information, see [Capture an order](https://developer.revolut.com/docs/api/merchant#capture-order).","enum":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:capture_mode:enum","descriptionNode":"$La4f"},"merchant_order_ext_ref":{"type":"string","description":"Merchant order ID for external reference.\n\nUse this field to set the ID that your own system can use to easily track orders.","descriptionNode":"$La50"},"email":{"type":"string","description":"The email of the customer.","format":"email","descriptionNode":"$La51"},"description":{"type":"string","description":"The description of the order.","descriptionNode":"$La52"},"currency":{"type":"string","format":"ISO 4217","minLength":3,"maxLength":3,"description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La53"},"settlement_currency":{"type":"string","description":"[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case. \n\nIf `settlement_currency` is different from the value of `currency`, the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial `currency`.\n\nIf `settlement_currency` is not specified, this value is taken from `currency`.\n\n:::info\nFor more information about the supported currencies, see: [Help Center](https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/).\n:::","descriptionNode":"$La54"},"customer_id":{"type":"string","description":"ID of the [customer](https://developer.revolut.com/docs/api/merchant#tag-customers) that is associated with this order.\n\n\nWhen you specify a `customer_id`, the email associated with the customer ID overrides the value of the `email` field.","descriptionNode":"$La55"},"shipping_address":{"title":"Address","type":"object","properties":{"street_line_1":{"type":"string","description":"Street line 1 information.","descriptionNode":"$La56"},"street_line_2":{"type":"string","description":"Street line 2 information.","descriptionNode":"$La57"},"region":{"type":"string","description":"The region associated with the address.","descriptionNode":"$La58"},"city":{"type":"string","description":"The city associated with the address.","descriptionNode":"$La59"},"country_code":{"type":"string","description":"The country associated with the address.","descriptionNode":"$La5a"},"postcode":{"type":"string","description":"The postcode associated with the address.","descriptionNode":"$La5b"}},"required":"$19:props:children:0:props:children:props:responses:200:content:application/json:schema:items:properties:shipping_address:required"},"enforce_challenge":{"type":"string","description":"The enforce challenge mode. `AUTOMATIC` is used by default.\n\n- `AUTOMATIC`: The payments created for an order, will have challenge requirement calculated by our fraud mechanisms and might not require it.\n- `FORCED`: The payments created for an order will require a challenge. Currently only supported for card payments and forces 3DS challenge. ","enum":"$1b:props:children:0:props:children:props:requestBody:content:application/json:schema:properties:enforce_challenge:enum","descriptionNode":"$La5c"},"metadata":{"type":"object","description":"Additional information to track your orders in your system, by providing custom metadata using `\"\" : \"\"` pairs.\n\n:::warning\n**Restrictions:**\n\n- Both keys and values must be `string`s\n- Values cannot be `null`.\n- Max number of key-value pairs: `50`\n- Max length of values: `500` characters\n- Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: `^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$`\n:::","maxProperties":50,"additionalProperties":{"type":"string","maxLength":500,"description":"Additional metadata value provided with the corresponding metadata key.","descriptionNode":"$La5d"},"examples":"$1a:props:children:0:props:children:props:responses:200:content:application/json:schema:properties:metadata:examples","descriptionNode":"$La5e"},"merchant_order_uri":{"type":"string","format":"uri","pattern":"^https?:\\/{2}.+/gi","maxLength":2000,"description":"The URI of the order stored in the merchant's order management system.\n\nThis URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's **Business website** configured in the Revolut Business account.\n\n:::warning\nRestrictions:\n- Must be a valid URI as defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)\n- URI scheme is required and must be either `http` or `https`\n- URI host is required and cannot be `localhost` or an IP address\n- Max length: `2000`\n- Reserved or invalid characters must be percent-encoded (for example, use `%20` instead of a space)\n:::","descriptionNode":"$La5f"}},"required":["amount","currency"]},"examples":{"example_min_order":{"summary":"Example order with minimal required parameters","value":{"amount":500,"currency":"GBP","email":"example.customer@email.com"}},"example_order_with_additional_params":{"summary":"Example order with additional parameters","value":{"amount":500,"currency":"GBP","capture_mode":"MANUAL","email":"example.customer@email.com","description":"Example product","shipping_address":{"street_line_1":"7 Westferry Circus","city":"London","country_code":"GB","postcode":"E14 4HD"},"enforce_challenge":"FORCED","metadata":{"product_type":"Example"},"merchant_order_uri":"https://example.com/orders/12345"}}}}},"description":""},"variantLabels":["Order created with minimal required parameters","Order created with additional parameters"],"children":["$La60","$La61"]}]}],false]}] 9f3:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$La62"}}}] 9f4:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_order","label":"Example order","rawValue":"$1b:props:children:0:props:children:props:requestBody:content:application/json:examples:example_order:value","block":"$La63"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] 9f5:["$","$Lbd",null,{"exampleBlocks":{"200":{"application/json":{"variants":[{"key":"updated_order","label":"Updated order","rawValue":"$1b:props:children:0:props:children:props:responses:200:content:application/json:examples:updated_order:value","block":"$La64"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$La65"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$La66"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$La67"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] a60:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"create-order-deprecated","children":[["$La68",["$","span",null,{"className":"y9a0do2","children":"deprecated"}]],["$","$L15",null,{"id":"create-order-deprecated"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/create-order-deprecated.md"}]]}]}],"$undefined"]}] a6b:T61c,
curl -X POST "https://merchant.revolut.com/api/1.0/orders" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}'
a6c:Tf7d,
const payload = {
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
};
fetch("https://merchant.revolut.com/api/1.0/orders", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
a6d:T1514,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://merchant.revolut.com/api/1.0/orders"
  jsonData := []byte(`
{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
a6e:Tcb3,
import requests

url = "https://merchant.revolut.com/api/1.0/orders"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
a6f:T1a7b,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/1.0/orders"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
a70:T1f0f,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://merchant.revolut.com/api/1.0/orders"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""amount"": 500,
  ""currency"": ""GBP"",
  ""email"": ""example.customer@email.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
a71:T624,
curl -X POST "https://sandbox-merchant.revolut.com/api/1.0/orders" \
  -H "Content-Type: application/json" \
  -H "Authorization: __RP_TOK_0__" \
  -d '{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}'
a72:Tf85,
const payload = {
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
};
fetch("https://sandbox-merchant.revolut.com/api/1.0/orders", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "__RP_TOK_0__"
  },
  body: JSON.stringify(payload)
})
  .then(response => response.json())
  .then(data => console.log(data));
a73:T151c,
package main

import (
  "fmt"
  "net/http"
  "bytes"
  "encoding/json"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/1.0/orders"
  jsonData := []byte(`
{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}
  `)
  req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "__RP_TOK_0__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
a74:Tcbb,
import requests

url = "https://sandbox-merchant.revolut.com/api/1.0/orders"
headers = {
  "Content-Type": "application/json",
  "Authorization": "__RP_TOK_0__"
}
payload = {
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
a75:T1a83,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    String body = """
{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}
    """;

    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/1.0/orders"))
      .header("Content-Type", "application/json")
      .header("Authorization", "__RP_TOK_0__")
      .POST(HttpRequest.BodyPublishers.ofString(body))
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
a76:T1f17,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Post,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/1.0/orders"),
  Headers =
  {
    { "Authorization", "__RP_TOK_0__" },
  },
  Content = new StringContent(@"{
  ""amount"": 500,
  ""currency"": ""GBP"",
  ""email"": ""example.customer@email.com""
}")
  {
    Headers =
    {
      ContentType = new MediaTypeHeaderValue("application/json")
    }
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
a61:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$La69",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$La6a"}],"requestBody":"$18:props:children:0:props:children:props:requestBody","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$18:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://merchant.revolut.com/api/1.0/orders\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}'","templateHtml":"$a6b","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n};\nfetch(\"https://merchant.revolut.com/api/1.0/orders\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$a6c","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/1.0/orders\"\n jsonData := []byte(`\n{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$a6d","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/1.0/orders\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$a6e","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/1.0/orders\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$a6f","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/1.0/orders\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 500,\n \"\"currency\"\": \"\"GBP\"\",\n \"\"email\"\": \"\"example.customer@email.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$a70","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X POST \"https://sandbox-merchant.revolut.com/api/1.0/orders\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: __RP_TOK_0__\" \\\n -d '{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}'","templateHtml":"$a71","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"javascript","label":"JavaScript","templateCode":"const payload = {\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n};\nfetch(\"https://sandbox-merchant.revolut.com/api/1.0/orders\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n },\n body: JSON.stringify(payload)\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$a72","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n \"bytes\"\n \"encoding/json\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/1.0/orders\"\n jsonData := []byte(`\n{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n `)\n req, _ := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonData))\n req.Header.Add(\"Content-Type\", \"application/json\")\n req.Header.Add(\"Authorization\", \"__RP_TOK_0__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$a73","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/1.0/orders\"\nheaders = {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"__RP_TOK_0__\"\n}\npayload = {\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.json())","templateHtml":"$a74","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n String body = \"\"\"\n{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}\n \"\"\";\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/1.0/orders\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Authorization\", \"__RP_TOK_0__\")\n .POST(HttpRequest.BodyPublishers.ofString(body))\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$a75","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Post,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/1.0/orders\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_0__\" },\n },\n Content = new StringContent(@\"{\n \"\"amount\"\": 500,\n \"\"currency\"\": \"\"GBP\"\",\n \"\"email\"\": \"\"example.customer@email.com\"\"\n}\")\n {\n Headers =\n {\n ContentType = new MediaTypeHeaderValue(\"application/json\")\n }\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$a76","tokens":[{"marker":"__RP_TOK_0__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer "}}]},"method":"post","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/1.0/orders","parameters":["$a61:props:children:0:props:children:1:props:parameters:0"]}],"$La77"],"$La78","$La79"]}]]}] a77:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$La7a"}}}] a78:["$","$Lbc",null,{"exampleBlocks":{"application/json":{"variants":[{"key":"example_min_order","label":"Example order with minimal required parameters","rawValue":"$18:props:children:0:props:children:props:requestBody:content:application/json:examples:example_min_order:value","block":"$La7b"},{"key":"example_order_with_additional_params","label":"Example order with additional parameters","rawValue":"$18:props:children:0:props:children:props:requestBody:content:application/json:examples:example_order_with_additional_params:value","block":"$La7c"}],"syncedPropertyName":"$undefined"}},"title":"Request body samples","headingAs":"h4"}] a79:["$","$Lbd",null,{"exampleBlocks":{"201":{"application/json":{"variants":[{"key":"created_order_min_params","label":"Order created with minimal required parameters","rawValue":"$18:props:children:0:props:children:props:responses:201:content:application/json:examples:created_order_min_params:value","block":"$La7d"},{"key":"created_order_additional_params","label":"Order created with additional parameters","rawValue":"$18:props:children:0:props:children:props:responses:201:content:application/json:examples:created_order_additional_params:value","block":"$La7e"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"example-1","label":"example-1","rawValue":"$18:props:children:0:props:children:props:responses:400:content:application/json:examples:example-1:value","block":"$La7f"}],"syncedPropertyName":"$undefined"}},"401":{},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"errorId":"string","timestamp":123},"block":"$La80"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] 9e2:"Update an order (Deprecated)" 975:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 976:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 977:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 978:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 979:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 97a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 97b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 97c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 97d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 97e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 97f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 980:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] 981:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 982:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] 983:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] a68:"Create an order (Deprecated)" 984:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 985:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 986:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] 987:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 988:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 989:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] 98a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 98b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 98c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] 98d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 98e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 98f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 990:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 991:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 992:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 993:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] 994:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] 995:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] 996:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] 997:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] 998:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] 999:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 99a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 99b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] 99c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 99d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 99e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] 99f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] 9a0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] 9a1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] 9a2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] 9a3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] 9a4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] 9a5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] 9a6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] 9a7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] 9a8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] 9a9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] 9aa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] 9ab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] 9ac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] 9ad:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] 9ae:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] 9af:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] 9b0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] 9b1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] 9b2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] 9b3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] 9b4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] 9b5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] 9b6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] 9b7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] 9b8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] 9b9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] 9ba:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] 9bb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] 9bc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 9bd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 9be:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] 9bf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] 9c0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 9c1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 9c2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] 9c3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] 9c4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] 9c5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] 9c6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 9c7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 9c8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] 9c9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 9ca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 9cb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] 9cc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] 9cd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] 9ce:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] 9cf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] 9d0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 9d1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] 9d2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 9d3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] 9d4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the customer."}]]}] 9d5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 9d6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Settlement currency."}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] 9d7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] 9d8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] 9d9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] 9da:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] 9db:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] 9dc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] 9dd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] 9de:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] 9df:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The enforce challenge mode. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The payments created for an order, will have challenge requirement calculated by our fraud mechanisms and might not require it."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"FORCED"}],": The payments created for an order will require a challenge. Currently only supported for card payments and forces 3DS challenge."]}],"\n"]}]]}] 9e3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Update the details of an order."}],"\n",["$","p","p-1",{"children":"You can update the details of an order based on the state of the order:"}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"PENDING"}]," state: You can use all the following parameters to update the order."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"AUTHORISED"}]," or ",["$","code","code-1",{"children":"COMPLETED"}]," state: You can update only the ",["$","code","code-2",{"children":"merchant_order_ext_ref"}],", ",["$","code","code-3",{"children":"description"}],", ",["$","code","code-4",{"children":"metadata"}]," and ",["$","code","code-5",{"children":"shipping_address"}]," parameters."]}],"\n",["$","li","li-2",{"children":[["$","code","code-0",{"children":"PROCESSING"}]," state: You cannot update the order."]}],"\n"]}]]}] 9e4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] 9e5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] 9e6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] 9f6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Permanent order ID used to retrieve, capture, cancel, or refund an order after authorization."}]]}] 9f7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary ID for the order."}],"\n",["$","p","p-1",{"children":"It expires when the payment is authorized."}]]}] 9f8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order."}]]}] 9f9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the order."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the order lifecycle, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/order-lifecycle","target":"_blank","rel":"noreferrer","children":"Order and payment lifecycle"}],"."]}]}]]}]]}] 9fa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was created."}]]}] 9fb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was last updated."}]]}] 9fc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the order was completed."}]]}] 9fd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] 9fe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] 9ff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a00:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] a01:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," associated with this order."]}]]}] a02:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] a03:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The phone number of the customer."}]]}] a04:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The customer's full name."}]]}] a62:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$La81","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] a05:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] a06:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a07:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the order."}]]}] a08:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the order (minor currency unit) that is outstanding. For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] a09:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the amount that is outstanding. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a0a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency outstanding to be paid for this order."}]]}] a0b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the refunded order (minor currency unit). For example, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] a0c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the refunded order. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a0d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the refunded order."}]]}] a0e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] a0f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] a10:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] a11:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] a12:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] a13:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] a14:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment."}]]}] a15:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the payment."}]]}] a16:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The reason for a ",["$","code","code-0",{"children":"FAILED"}]," or ",["$","code","code-1",{"children":"DECLINED"}]," payment."]}],"\n",["$","p","p-1",{"children":["A failed or declined payment can result from multiple reasons. To learn\nmore, check our ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/reference/error-codes/decline-reasons","target":"_blank","rel":"noreferrer","children":"decline\nreasons"}],"."]}]]}] a17:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was created."}]]}] a18:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the payment was last updated."}]]}] a19:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Temporary token of the payment used to fetch the reward offer during\ncheckout and link user registrations to the given offers."}],"\n",["$","p","p-1",{"children":"The token is only valid for a limited time."}]]}] a1a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment (minor currency unit). For example, enter\n",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] a1b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] a1c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment."}]]}] a1d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the settled payment (minor currency unit). For example,\nenter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] a1e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the settled payment. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in upper\ncase."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] a1f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the settled payment."}]]}] a20:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the payment method. This value is present only if the payment method was previously saved."}]]}] a21:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the payment."}]]}] a22:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the card."}]]}] a23:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of card funding."}]]}] a24:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country where the card was issued."}]]}] a25:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The BIN of the card."}]]}] a26:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The last four digits of the card."}]]}] a27:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The expiry date of the card in the format of MM/YY."}]]}] a28:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The name of the cardholder."}]]}] a29:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of 3D Secure check."}]]}] a2a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The 3D Secure version."}]]}] a2b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the 3D Secure check. Only for orders with successful payments."}]]}] a2c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of CVV verification."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Verification result","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV matches the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_MATCH"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV does not match the card's CVV","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"INCORRECT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Provided CVV format is incorrect for this type of card","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"NOT_PROCESSED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"CVV verification was not performed","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] a2d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of address verification."}]]}] a2e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of postcode verification."}]]}] a2f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The result of cardholder verification."}]]}] a30:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the check for card payment. Only for orders with successful payments."}]]}] a31:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of the card. Only present for payments with ",["$","code","code-0",{"children":"payment_method.type"}]," = ",["$","code","code-1",{"children":"CARD"}],"."]}]]}] a32:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the payment method used to make the payment."}]]}] a33:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The risk level of the card."}],"\n",["$","p","p-1",{"children":["If the risk level is ",["$","code","code-0",{"children":"HIGH"}],", the payment might be declined."]}]]}] a34:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the order fee."}]]}] a35:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The amount of the payment fee (minor currency unit). For\nexample, enter ",["$","code","code-0",{"children":"7034"}]," for €70.34 in the field."]}]]}] a36:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The currency of the payment fee. ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO\n4217"}]," currency code in\nupper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help\nCenter"}],"."]}]}]]}]]}] a37:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the payment fee."}]]}] a38:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of the order fee."}]]}] a39:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The details of all the payment attempts that have been made towards this order (successful or unsuccessful)."}]]}] a3a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ID of the related order. You can use this ID to get more information about the related order using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve an order"}]," operation."]}]]}] a3b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The type of the related order."}]]}] a3c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The state of the related order."}]]}] a3d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] a3e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a3f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The amount and currency of the related order."}]]}] a40:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The details of related orders. You can use the ID of the related order to ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#retrieve-order","target":"_blank","rel":"noreferrer","children":"Retrieve the order information"}],"."]}]]}] a41:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] a42:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] a43:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Link to a checkout page hosted by Revolut."}]]}] a44:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] a45:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An Order object helps you through the process of accepting payments from your customers."}],"\n",["$","p","p-1",{"children":["Create an order for every customer session or while an order is being created in your own system. Then, the order goes through multiple states using the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/sdks/merchant-web-sdk/install-widget","target":"_blank","rel":"noreferrer","children":"Revolut Checkout Widget"}]," to collect payments from your customers."]}]]}] a46:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Order created"}]]}] a47:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] a48:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] a49:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] a4a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] a4b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The ID of the error. You can share this ID with Revolut support for troubleshooting."}]]}] a4c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The date and time the error happened."}]]}] a4d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] a4e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The order total expressed in minor currency units, according to the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],". For example, ",["$","code","code-0",{"children":"7034"}]," in ",["$","code","code-1",{"children":"EUR"}]," corresponds to €70.34."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Conversion between major and minor units varies by currency. For instance, ",["$","code","code-0",{"children":"100"}]," minor units equal £1.00 in ",["$","code","code-1",{"children":"GBP"}],", whereas in ",["$","code","code-2",{"children":"ISK"}]," they represent 100 units. For more details, see the ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217 standard"}],"."]}]}]]}]]}] a4f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The capture mode of the order. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The order is captured automatically after payment authorisation."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"MANUAL"}],": The order is not captured automatically. You must manually capture the order later."]}],"\n"]}],"\n",["$","p","p-1",{"children":["For more information, see ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#capture-order","target":"_blank","rel":"noreferrer","children":"Capture an order"}],"."]}]]}] a50:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant order ID for external reference."}],"\n",["$","p","p-1",{"children":"Use this field to set the ID that your own system can use to easily track orders."}]]}] a51:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The email of the customer."}]]}] a52:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The description of the order."}]]}] a53:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a54:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":[["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code in upper case."]}],"\n",["$","p","p-1",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is different from the value of ",["$","code","code-1",{"children":"currency"}],", the money will be exchanged when the amount is settled to your merchant account. In case of a refund or chargeback, the money will be exchanged to the order's initial ",["$","code","code-2",{"children":"currency"}],"."]}],"\n",["$","p","p-2",{"children":["If ",["$","code","code-0",{"children":"settlement_currency"}]," is not specified, this value is taken from ",["$","code","code-1",{"children":"currency"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information about the supported currencies, see: ",["$","a","a-0",{"href":"https://help.revolut.com/business/help/merchant-accounts/payments/in-which-currencies-can-i-accept-payments/","target":"_blank","rel":"noreferrer","children":"Help Center"}],"."]}]}]]}]]}] a55:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["ID of the ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#tag-customers","target":"_blank","rel":"noreferrer","children":"customer"}]," that is associated with this order."]}],"\n",["$","p","p-1",{"children":["When you specify a ",["$","code","code-0",{"children":"customer_id"}],", the email associated with the customer ID overrides the value of the ",["$","code","code-1",{"children":"email"}]," field."]}]]}] a56:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 1 information."}]]}] a57:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Street line 2 information."}]]}] a58:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The region associated with the address."}]]}] a59:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The city associated with the address."}]]}] a5a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The country associated with the address."}]]}] a5b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The postcode associated with the address."}]]}] a5c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The enforce challenge mode. ",["$","code","code-0",{"children":"AUTOMATIC"}]," is used by default."]}],"\n",["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":[["$","code","code-0",{"children":"AUTOMATIC"}],": The payments created for an order, will have challenge requirement calculated by our fraud mechanisms and might not require it."]}],"\n",["$","li","li-1",{"children":[["$","code","code-0",{"children":"FORCED"}],": The payments created for an order will require a challenge. Currently only supported for card payments and forces 3DS challenge."]}],"\n"]}]]}] a5d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Additional metadata value provided with the corresponding metadata key."}]]}] a5e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Additional information to track your orders in your system, by providing custom metadata using ",["$","code","code-0",{"children":"\"\" : \"\""}]," pairs."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["$","strong","strong-0",{"children":"Restrictions:"}]}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Both keys and values must be ",["$","code","code-0",{"children":"string"}],"s"]}],"\n",["$","li","li-1",{"children":["Values cannot be ",["$","code","code-0",{"children":"null"}],"."]}],"\n",["$","li","li-2",{"children":["Max number of key-value pairs: ",["$","code","code-0",{"children":"50"}]]}],"\n",["$","li","li-3",{"children":["Max length of values: ",["$","code","code-0",{"children":"500"}]," characters"]}],"\n",["$","li","li-4",{"children":["Format of keys: Must start with a letter and contain only letters, digits, and underscores. Max 40 characters. Pattern: ",["$","code","code-0",{"children":"^[a-zA-Z][a-zA-Z\\\\d_]{0,39}$"}]]}],"\n"]}]]}]]}]]}] a5f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URI of the order stored in the merchant's order management system."}],"\n",["$","p","p-1",{"children":["This URI will be included in the order confirmation email for payments made via Revolut Pay. If specified, this URI will override the default link to the merchant's ",["$","strong","strong-0",{"children":"Business website"}]," configured in the Revolut Business account."]}],"\n",["$","div","inlinealert-0",{"data-type":"warning","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMark","color":"var(--rui-color-warning)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":"Restrictions:"}],["$","ul","ul-0",{"children":["\n",["$","li","li-0",{"children":["Must be a valid URI as defined by ",["$","a","a-0",{"href":"https://datatracker.ietf.org/doc/html/rfc3986","target":"_blank","rel":"noreferrer","children":"RFC 3986"}]]}],"\n",["$","li","li-1",{"children":["URI scheme is required and must be either ",["$","code","code-0",{"children":"http"}]," or ",["$","code","code-1",{"children":"https"}]]}],"\n",["$","li","li-2",{"children":["URI host is required and cannot be ",["$","code","code-0",{"children":"localhost"}]," or an IP address"]}],"\n",["$","li","li-3",{"children":["Max length: ",["$","code","code-0",{"children":"2000"}]]}],"\n",["$","li","li-4",{"children":["Reserved or invalid characters must be percent-encoded (for example, use ",["$","code","code-0",{"children":"%20"}]," instead of a space)"]}],"\n"]}]]}]]}]]}] a69:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Create an ",["$","code","code-0",{"children":"Order"}]," object."]}]]}] a6a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] a7a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$La82","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] a83:T459,
{
  "amount": 100,
  "currency": "EUR",
  "merchant_order_ext_ref": "#2234"
}
a63:["$","div","request-application/json-example_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a83"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"amount\": 100,\n \"currency\": \"EUR\",\n \"merchant_order_ext_ref\": \"#2234\"\n}"}]}]]}] a84:Te51,
{
  "id": "5fd927ba-6f73-4a01-8e2b-fcd37fb629c5",
  "public_id": "94a11217-6319-4d34-8dae-a2b80b953adb",
  "type": "PAYMENT",
  "state": "PENDING",
  "created_at": "2020-10-15T07:46:40.648108Z",
  "updated_at": "2020-10-15T07:46:40.648108Z",
  "order_amount": {
    "value": 100,
    "currency": "EUR"
  },
  "merchant_order_ext_ref": "#2234",
  "email": "johndoe001@gmail.com",
  "checkout_url": "https://business.revolut.com/payment-link/uLHGQVGNx_ZRDV14z5VFIA"
}
a64:["$","div","200-application/json-updated_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a84"}}]}]],"$La85"]}] a65:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] a66:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] a67:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] a85:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"5fd927ba-6f73-4a01-8e2b-fcd37fb629c5\",\n \"public_id\": \"94a11217-6319-4d34-8dae-a2b80b953adb\",\n \"type\": \"PAYMENT\",\n \"state\": \"PENDING\",\n \"created_at\": \"2020-10-15T07:46:40.648108Z\",\n \"updated_at\": \"2020-10-15T07:46:40.648108Z\",\n \"order_amount\": {\n \"value\": 100,\n \"currency\": \"EUR\"\n },\n \"merchant_order_ext_ref\": \"#2234\",\n \"email\": \"johndoe001@gmail.com\",\n \"checkout_url\": \"https://business.revolut.com/payment-link/uLHGQVGNx_ZRDV14z5VFIA\"\n}"}]}] a86:T45d,
{
  "amount": 500,
  "currency": "GBP",
  "email": "example.customer@email.com"
}
a7b:["$","div","request-application/json-example_min_order",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a86"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"email\": \"example.customer@email.com\"\n}"}]}]]}] a87:Tfd1,
{
  "amount": 500,
  "currency": "GBP",
  "capture_mode": "MANUAL",
  "email": "example.customer@email.com",
  "description": "Example product",
  "shipping_address": {
    "street_line_1": "7 Westferry Circus",
    "city": "London",
    "country_code": "GB",
    "postcode": "E14 4HD"
  },
  "enforce_challenge": "FORCED",
  "metadata": {
    "product_type": "Example"
  },
  "merchant_order_uri": "https://example.com/orders/12345"
}
a7c:["$","div","request-application/json-example_order_with_additional_params",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a87"}}]}]],"$La88"]}] a89:T1305,
{
  "id": "64a3f721-a5c8-aeee-bfb5-d5a984d32e9c",
  "public_id": "54933ff3-9fe5-49cd-8760-7d0e8c3ec198",
  "type": "PAYMENT",
  "state": "PENDING",
  "created_at": "2023-07-04T10:40:33.069624Z",
  "updated_at": "2023-07-04T10:40:33.069624Z",
  "capture_mode": "AUTOMATIC",
  "customer_id": "51918dc4-c02c-49e4-9b8b-3f08c8b01248",
  "email": "example.customer@email.com",
  "order_amount": {
    "value": 500,
    "currency": "GBP"
  },
  "order_outstanding_amount": {
    "value": 500,
    "currency": "GBP"
  },
  "metadata": {},
  "checkout_url": "https://business.revolut.com/payment-link/h2B9Dow-wZhUkz_zn-VJzQ"
}
a7d:["$","div","201-application/json-created_order_min_params",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a89"}}]}]],"$La8a"]}] a8b:T1ba9,
{
  "id": "64a3f606-3fb8-a2ab-970e-4cafdb62e04c",
  "public_id": "c8c6b05a-6a4f-463e-a2a7-44e1a0c77e18",
  "type": "PAYMENT",
  "state": "PENDING",
  "created_at": "2023-07-04T10:35:50.542458Z",
  "updated_at": "2023-07-04T10:35:50.542458Z",
  "description": "Example product",
  "capture_mode": "MANUAL",
  "customer_id": "51918dc4-c02c-49e4-9b8b-3f08c8b01248",
  "email": "example.customer@email.com",
  "order_amount": {
    "value": 500,
    "currency": "GBP"
  },
  "order_outstanding_amount": {
    "value": 500,
    "currency": "GBP"
  },
  "shipping_address": {
    "street_line_1": "7 Westferry Circus",
    "city": "London",
    "country_code": "GB",
    "postcode": "E14 4HD"
  },
  "metadata": {
    "product_type": "Example"
  },
  "checkout_url": "https://business.revolut.com/payment-link/oqdE4aDHfhjIxrBaak9GPg",
  "merchant_order_uri": "https://example.com/orders/12345"
}
a7e:["$","div","201-application/json-created_order_additional_params",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$a8b"}}]}]],"$La8c"]}] a7f:["$","div","400-application/json-example-1",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n  \"timestamp\": 1601296792533\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"94b27660-fdda-49ec-8b85-cd46a068ade0\",\n \"timestamp\": 1601296792533\n}"}]}]]}] a80:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
{\n  \"errorId\": \"string\",\n  \"timestamp\": 123\n}
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"errorId\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] a88:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"amount\": 500,\n \"currency\": \"GBP\",\n \"capture_mode\": \"MANUAL\",\n \"email\": \"example.customer@email.com\",\n \"description\": \"Example product\",\n \"shipping_address\": {\n \"street_line_1\": \"7 Westferry Circus\",\n \"city\": \"London\",\n \"country_code\": \"GB\",\n \"postcode\": \"E14 4HD\"\n },\n \"enforce_challenge\": \"FORCED\",\n \"metadata\": {\n \"product_type\": \"Example\"\n },\n \"merchant_order_uri\": \"https://example.com/orders/12345\"\n}"}]}] a8a:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"64a3f721-a5c8-aeee-bfb5-d5a984d32e9c\",\n \"public_id\": \"54933ff3-9fe5-49cd-8760-7d0e8c3ec198\",\n \"type\": \"PAYMENT\",\n \"state\": \"PENDING\",\n \"created_at\": \"2023-07-04T10:40:33.069624Z\",\n \"updated_at\": \"2023-07-04T10:40:33.069624Z\",\n \"capture_mode\": \"AUTOMATIC\",\n \"customer_id\": \"51918dc4-c02c-49e4-9b8b-3f08c8b01248\",\n \"email\": \"example.customer@email.com\",\n \"order_amount\": {\n \"value\": 500,\n \"currency\": \"GBP\"\n },\n \"order_outstanding_amount\": {\n \"value\": 500,\n \"currency\": \"GBP\"\n },\n \"metadata\": {},\n \"checkout_url\": \"https://business.revolut.com/payment-link/h2B9Dow-wZhUkz_zn-VJzQ\"\n}"}]}] a8c:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"id\": \"64a3f606-3fb8-a2ab-970e-4cafdb62e04c\",\n \"public_id\": \"c8c6b05a-6a4f-463e-a2a7-44e1a0c77e18\",\n \"type\": \"PAYMENT\",\n \"state\": \"PENDING\",\n \"created_at\": \"2023-07-04T10:35:50.542458Z\",\n \"updated_at\": \"2023-07-04T10:35:50.542458Z\",\n \"description\": \"Example product\",\n \"capture_mode\": \"MANUAL\",\n \"customer_id\": \"51918dc4-c02c-49e4-9b8b-3f08c8b01248\",\n \"email\": \"example.customer@email.com\",\n \"order_amount\": {\n \"value\": 500,\n \"currency\": \"GBP\"\n },\n \"order_outstanding_amount\": {\n \"value\": 500,\n \"currency\": \"GBP\"\n },\n \"shipping_address\": {\n \"street_line_1\": \"7 Westferry Circus\",\n \"city\": \"London\",\n \"country_code\": \"GB\",\n \"postcode\": \"E14 4HD\"\n },\n \"metadata\": {\n \"product_type\": \"Example\"\n },\n \"checkout_url\": \"https://business.revolut.com/payment-link/oqdE4aDHfhjIxrBaak9GPg\",\n \"merchant_order_uri\": \"https://example.com/orders/12345\"\n}"}]}] a81:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] a82:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}] b0a:T54c,Type of the transaction. | Value | Description | | ----- | ----------- | | `Settlement` | Settlement of a payment into the merchant balance. | | `Refund` | Refund entry reducing the merchant balance. | | `External transfer money return` | Return of an external transfer entry. | | `Topup` | Balance top-up entry. | | `Topup Return` | Reversal of a top-up entry. | | `Customer dispute - withdrawal` | Chargeback or dispute withdrawal from the merchant balance. | | `Customer dispute - won` | Reversal of a previous dispute withdrawal. | | `Transfer from linked pocket` | Transfer from a linked balance pocket. | | `Automatic negative balance recovery` | Automatic recovery entry for a negative balance. | | `Payout` | Payout-related ledger entry. | | `Payout to an external account` | Transfer of payout funds to an external account. | | `Transfer from linked pocket with FX` | Transfer from a linked pocket involving FX conversion. | | `Payout with FX` | Payout-related entry involving FX conversion. | | `Money reserve block` | Reserve block entry withholding funds. | | `Money reserve unblock` | Release of previously blocked reserve funds. | | `IC++ post-billing fee` | IC++ fee charged after billing. | | `Fee refund` | Reversal of a previously charged fee. | | `Unrecognised transaction` | Transaction that does not map to a more specific category. |b37:T7af,transaction_id,order_id,original_order_id,started_date,updated_date,completed_date,payment_created_date,payment_captured_date,type,state,description,merchant_order_ext_ref,customer_id,amount,currency,settlement_amount,settlement_currency,payment_method,fee_amount,fee_currency,processing_fee_amount,processing_fee_currency,browser_url,location_id 67f66fa6-200c-aaef-8708-cb78366f8a30,67f66f41-3022-a623-827e-e0616c0d04e7,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-09T13:01:26.288638Z,2025-04-10T13:02:09.843018Z,2025-04-10T13:02:09.837719Z,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837719Z,SETTLEMENT,COMPLETED,Summer hat,ORD-2025-0042,,100.00,GBP,99.00,GBP,CARD,1.00,GBP,1.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fb7-300d-bbff-9819-dc89477a9b41,67f67052-4133-b734-938f-f1727d1e15f8,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-10T09:10:00.000000Z,2025-04-10T09:12:00.000000Z,2025-04-10T09:12:00.000000Z,,,REFUND,COMPLETED,Refund for Summer hat,ORD-2025-0042-R1,,25.00,GBP,-25.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fc8-411e-cc10-a92a-ed9a588b0c52,67f67063-5244-c845-a49a-a2838e2f26a9,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-11T08:30:00.000000Z,2025-04-11T08:45:00.000000Z,2025-04-11T08:45:00.000000Z,,,CHARGEBACK,COMPLETED,Chargeback for Summer hat,ORD-2025-0042-CB1,,75.00,GBP,-75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fd9-522f-dd21-ba3b-feab699a1d63,67f67074-6355-d956-b50a-a3949f3a37a0,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-15T10:00:00.000000Z,2025-04-15T10:05:00.000000Z,2025-04-15T10:05:00.000000Z,,,CHARGEBACK_REVERSAL,COMPLETED,Chargeback reversal for Summer hat,ORD-2025-0042-CBR1,,75.00,GBP,75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,b38:T468,payment_id,type,description,original_payment_id,order_id,state,reason,amount,currency,surcharge_amount,tip_amount,refunded_amount,created_date,captured_date,merchant_order_ext_ref,payment_method,location_id,customer_id,customer_card_number,customer_card_country,customer_card_brand,customer_card_type,customer_card_category,customer_email,fee_amount,fee_currency 67f66fa6-7e98-ae73-9570-50583cec116d,PAYMENT,Payment from customer,,67f66f41-3022-a623-827e-e0616c0d04e7,COMPLETED,,1.00,GBP,,0.00,0.00,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837Z,ORD-2025-0042,CARD,,cust-0001-0000-0000-000000000001,528143******4148,GB,VISA,DEBIT,consumer,customer@example.com,0.01,GBP 6807b0a5-a367-afbf-b31f-353730b788b5,PAYMENT,Payment from customer,,6807b09c-c62a-a656-818e-f071ef67ee36,DECLINED,,10.01,GBP,,0.00,0.00,2025-04-22T15:07:17.352Z,,,PAY_WITH_REVOLUT,,,,,,,,customer@example.com,, 67efa316-db8a-aec6-8eb4-46e47b6ebdc4,PAYMENT,Payment from customer,,67efa305-be19-a456-a6a2-154b218ac386,FAILED,INSUFFICIENT_FUNDS,0.57,USD,,0.00,0.00,2025-04-04T09:15:02.13Z,,,CARD,,,222300******9399,GB,VISA,DEBIT,consumer,customer@example.com,,b39:T5f7,created_date,completed_date,payout_affected_date,affected_payout_amount,transaction_id,order_id,dispute_id,merchant_order_reference,type,related_icpp_charge_id,transaction_amount,transaction_currency,billing_amount,billing_currency,state,original_transaction_id,original_transaction_amount,original_transaction_currency,original_order_id,original_order_channel,original_merchant_order_reference,fee_amount,fee_currency,settlement_amount,settlement_currency,location_id,location_name,submerchant_id,payout_transfer_reference,payout_total_amount,payout_date 2025-03-25T14:34:05.708899Z,2025-03-26T14:34:38.06903Z,2025-03-26T14:34:38.06903Z,true,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,67e2be76-89c5-ae4f-9103-a152ae6f0584,,ORD-2025-0042,Settlement,,0.57,USD,0.57,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,0.57,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z 2025-03-25T15:38:45.162946Z,2025-03-26T15:39:58.03824Z,2025-03-26T15:39:58.03824Z,true,67e2ce05-1a16-abeb-b05b-5059073bcdaa,67e2ce00-6665-a52b-9f10-368f886054d7,a81bba54-e3f9-450f-aa50-7aea8e4e5b9a,ORD-2025-0042-CB1,Customer dispute - withdrawal,,-0.40,USD,-0.40,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,-0.40,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z30:["$","$51","download-report-file",{"children":[["$","section",null,{"className":"y9a0do0","data-variant":"endpoint","children":["$","$L52",null,{"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"oneOf":[{"title":"Settlement report CSV","type":"object","description":"CSV output for `settlement_report`. Contains settled transactions associated with a Merchant account.\n\nThe first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction.\n\nA partial-settlement is represented by separate `SETTLEMENT` and `REFUND` rows instead of a dedicated type.\n\n:::note\nThe actual response is a raw `text/csv` string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field.\n:::","properties":{"transaction_id":{"type":"string","format":"uuid","description":"Unique identifier of the ledger transaction in the core settlement system. Matches `transaction_id` in the payout statement report for the same event. Not the same as `payment_id` in the payments report — a payment and its resulting ledger transaction have different UUIDs. Use `order_id` to cross-reference with the payments report.","descriptionNode":"$La8d"},"order_id":{"type":"string","format":"uuid","description":"Unique identifier of the order. An order is the top-level entity that groups one or more payment attempts against it. `order_id` is consistent across all report types and can be used to cross-reference between the payments report and the settlement or payout reports.","descriptionNode":"$La8e"},"original_order_id":{"type":"string","format":"uuid","description":"For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so `order_id` refers to the refund or chargeback order while `original_order_id` points back to the original payment's order. For settlement transactions, matches `order_id`.","descriptionNode":"$La8f"},"started_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was started. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$La90"},"updated_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was last updated. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$La91"},"completed_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was completed. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$La92"},"payment_created_date":{"type":"string","format":"date-time","description":"Payment authorisation or creation timestamp for rows linked to a payment, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. Empty for refunds and non-payment-related rows where no payment timestamp applies. This displayed value is separate from the report filter timeframe.","descriptionNode":"$La93"},"payment_captured_date":{"type":"string","format":"date-time","description":"Payment capture timestamp for rows linked to a captured payment, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. Empty for refunds, non-payment-related rows, or payments not captured. This displayed value is separate from the report filter timeframe.","descriptionNode":"$La94"},"type":{"type":"string","description":"Type of the settlement report row.\n\nA partial-settlement is represented by separate `SETTLEMENT` and `REFUND` rows instead of a dedicated type.\n\n| Value | Description |\n| ----- | ----------- |\n| `SETTLEMENT` | Settlement of a payment into the merchant balance. |\n| `REFUND` | Refund entry reducing the merchant balance. |\n| `CHARGEBACK` | Dispute withdrawal entry reducing the merchant balance. |\n| `CHARGEBACK_REVERSAL` | Reversal of a previous chargeback, restoring funds to the merchant balance. |","enum":["SETTLEMENT","REFUND","CHARGEBACK","CHARGEBACK_REVERSAL"],"descriptionNode":"$La95"},"state":{"type":"string","description":"State of the transaction.","descriptionNode":"$La96"},"description":{"type":"string","description":"Description of the order.","descriptionNode":"$La97"},"merchant_order_ext_ref":{"type":"string","description":"Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created.","descriptionNode":"$La98"},"customer_id":{"type":"string","format":"uuid","description":"Unique identifier of the customer related to an order.","descriptionNode":"$La99"},"amount":{"type":"number","description":"Total amount of the order.","descriptionNode":"$La9a"},"currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code that represents the currency of the order.","examples":["GBP"],"descriptionNode":"$La9b"},"settlement_amount":{"type":"number","description":"Total amount settled on the merchant's account.","descriptionNode":"$La9c"},"settlement_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code that represents the currency of the settled amount.","examples":["GBP"],"descriptionNode":"$La9d"},"payment_method":{"type":"string","description":"Type of the payment method the customer used to pay for the order.","examples":["CARD"],"descriptionNode":"$La9e"},"fee_amount":{"type":"number","description":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees).","descriptionNode":"$La9f"},"fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code that represents the currency of the total fee.","examples":["GBP"],"descriptionNode":"$Laa0"},"processing_fee_amount":{"type":"number","description":"Acquiring markup fee only — a subset of `fee_amount`. Represents Revolut's service fee, excluding interchange and scheme fees.","descriptionNode":"$Laa1"},"processing_fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code that represents the currency of the acquiring markup fee.","examples":["GBP"],"descriptionNode":"$Laa2"},"browser_url":{"type":"string","format":"uri","description":"The URL where the customer initiated the payment.","descriptionNode":"$Laa3"},"location_id":{"type":"string","format":"uuid","description":"Unique identifier of the location related to the transaction.","descriptionNode":"$Laa4"}},"descriptionNode":"$Laa5"},{"title":"Custom report CSV","type":"object","description":"CSV output for `custom_report` report type. Contains settled and processing transactions with a configurable set of columns.\n\nThe first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction.\n\nThe columns included in the response depend on the `options.columns` list specified in the request. If no columns list was provided, all available columns are included.\n\nCustom metadata columns can also be requested using the `metadata.` prefix, for example `metadata.custom_attribute`.\n\n:::note\nThe actual response is a raw `text/csv` string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field.\n:::","properties":{"transaction_id":{"type":"string","format":"uuid","description":"Unique identifier of the ledger transaction in the core settlement system. Matches `transaction_id` in the settlement and payout reports for the same event. Not the same as `payment_id` in the payments report — a payment and its resulting ledger transaction have different UUIDs. Use `order_id` to cross-reference with the payments report.","descriptionNode":"$Laa6"},"related_transaction_id":{"type":"string","format":"uuid","description":"For refund and chargeback transactions, the ledger transaction ID of the original payment that this transaction reverses. Corresponds to `original_transaction_id` in the payout statement report.","descriptionNode":"$Laa7"},"transaction_description":{"type":"string","description":"Description of the transaction.","descriptionNode":"$Laa8"},"order_id":{"type":"string","format":"uuid","description":"Unique identifier of the order. An order is the top-level entity that groups one or more payment attempts against it. `order_id` is consistent across all report types and can be used to cross-reference between the payments report and the settlement or payout reports.","descriptionNode":"$Laa9"},"original_order_id":{"type":"string","format":"uuid","description":"For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so `order_id` refers to the refund or chargeback order while `original_order_id` points back to the original payment's order. For settlement transactions, matches `order_id`.","descriptionNode":"$Laaa"},"original_order_ext_ref":{"type":"string","description":"Merchant's order identifier of the original order for external reference.","descriptionNode":"$Laab"},"order_description":{"type":"string","description":"Description of the order.","descriptionNode":"$Laac"},"order_channel":{"type":"string","description":"Channel through which the order was created.\n\nThe value depends on the order source and integration. It may reflect platform-specific or externally provided values, so the set of returned values should not be treated as a fixed enum.","descriptionNode":"$Laad"},"order_customer_note":{"type":"string","description":"Note added by the customer at the time of the order.","descriptionNode":"$Laae"},"order_tip_amount":{"type":"number","description":"Tip amount set at the order level.","descriptionNode":"$Laaf"},"order_created_by":{"type":"string","description":"Identifier of the user who created the order.","descriptionNode":"$Lab0"},"payment_initiated_by":{"type":"string","description":"Identifier of who initiated the payment.","descriptionNode":"$Lab1"},"order_line_items":{"type":"string","description":"Line items included in the order, if any.","descriptionNode":"$Lab2"},"payout_id":{"type":"string","format":"uuid","description":"Unique identifier of the payout that this transaction contributed to. Use to cross-reference with the payout statement report.","descriptionNode":"$Lab3"},"payout_reference":{"type":"string","description":"Reference of the payout transfer associated with the transaction.","descriptionNode":"$Lab4"},"invoice_reference":{"type":"string","description":"Invoice reference associated with the order, if any.","descriptionNode":"$Lab5"},"dispute_id":{"type":"string","format":"uuid","description":"Unique identifier of the dispute, if applicable.","descriptionNode":"$Lab6"},"account_id":{"type":"string","format":"uuid","description":"Unique identifier of the merchant account.","descriptionNode":"$Lab7"},"account_balance":{"type":"number","description":"Account balance at the time of the transaction.","descriptionNode":"$Lab8"},"started_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was started. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$Lab9"},"created_date":{"type":"string","format":"date-time","description":"Date and time the order was created.","descriptionNode":"$Laba"},"updated_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was last updated. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$Labb"},"completed_date":{"type":"string","format":"date-time","description":"Date and time the row's source record was completed. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. This displayed value is separate from the report filter timeframe.","descriptionNode":"$Labc"},"payment_created_date":{"type":"string","format":"date-time","description":"Payment authorisation or creation timestamp for rows linked to a payment, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. Empty for refunds and non-payment-related rows where no payment timestamp applies. This displayed value is separate from the report filter timeframe.","descriptionNode":"$Labd"},"payment_captured_date":{"type":"string","format":"date-time","description":"Payment capture timestamp for rows linked to a captured payment, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. Empty for refunds, non-payment-related rows, or payments not captured. This displayed value is separate from the report filter timeframe.","descriptionNode":"$Labe"},"type":{"type":"string","description":"Type of the transaction.\n\n| Value | Description |\n| ----- | ----------- |\n| `SETTLEMENT` | Settlement of a payment into the merchant balance. |\n| `RESERVE` | Reserve entry holding funds on the merchant balance. |\n| `REFUND` | Refund entry reducing the merchant balance. |\n| `TOPUP` | Balance top-up entry. |\n| `TOPUP_RETURN` | Reversal of a top-up entry. |\n| `CHARGEBACK` | Dispute withdrawal from the merchant balance. |\n| `CHARGEBACK_REVERSAL` | Reversal of a previous chargeback. |\n| `CREDIT_REIMBURSEMENT` | Credit reimbursement entry. |\n| `FEE` | Fee charged against the merchant balance. |\n| `PAYOUT` | Payout-related ledger entry. |\n| `TRANSFER` | Balance transfer entry. |\n| `REVOLUT_REFUND` | Refund-related entry specific to Revolut internal flows. |\n| `REVOLUT_FEE` | Fee-related entry specific to Revolut internal flows. |\n| `WRITE_OFF` | Write-off entry. |\n| `CHARGE` | Charge entry posted to the merchant balance. |","enum":["SETTLEMENT","RESERVE","REFUND","TOPUP","TOPUP_RETURN","CHARGEBACK","CHARGEBACK_REVERSAL","CREDIT_REIMBURSEMENT","FEE","PAYOUT","TRANSFER","REVOLUT_REFUND","REVOLUT_FEE","WRITE_OFF","CHARGE"],"descriptionNode":"$Labf"},"legacy_type":{"type":"string","description":"Legacy type value for backwards compatibility.","descriptionNode":"$Lac0"},"state":{"type":"string","description":"State of the transaction.","descriptionNode":"$Lac1"},"description":{"type":"string","description":"Description of the transaction.","descriptionNode":"$Lac2"},"merchant_order_ext_ref":{"type":"string","description":"Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created.","descriptionNode":"$Lac3"},"customer_id":{"type":"string","format":"uuid","description":"Unique identifier of the customer related to the order.","descriptionNode":"$Lac4"},"amount":{"type":"number","description":"Total amount of the order.","descriptionNode":"$Lac5"},"currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the order.","examples":["GBP"],"descriptionNode":"$Lac6"},"settlement_amount":{"type":"number","description":"Total amount settled on the merchant's account.","descriptionNode":"$Lac7"},"settlement_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount.","examples":["GBP"],"descriptionNode":"$Lac8"},"exchange_rate":{"type":"number","description":"Exchange rate applied if currency conversion occurred.","descriptionNode":"$Lac9"},"refunded_amount":{"type":"number","description":"Amount refunded for the order.","descriptionNode":"$Laca"},"statement_descriptor":{"type":"string","description":"Statement descriptor shown on the customer's bank statement.","descriptionNode":"$Lacb"},"tip_amount":{"type":"number","description":"Tip amount included in the transaction.","descriptionNode":"$Lacc"},"surcharge_amount":{"type":"number","description":"Surcharge amount applied to the transaction. Omitted when no surcharge applies.","descriptionNode":"$Lacd"},"order_surcharge_amount":{"type":"number","description":"Surcharge amount set at the order level.","descriptionNode":"$Lace"},"terminal_hardware_id":{"type":"string","description":"Identifier of the card reader hardware used, for in-person payments.","descriptionNode":"$Lacf"},"customer_name":{"type":"string","description":"Name of the customer.","descriptionNode":"$Lad0"},"customer_email":{"type":"string","format":"email","description":"Email address of the customer.","descriptionNode":"$Lad1"},"customer_card_number":{"type":"string","description":"Masked card number used for the payment.","examples":["492942******5709"],"descriptionNode":"$Lad2"},"customer_card_brand":{"type":"string","description":"Card brand used for the payment. Derived from BIN data. Example values include `VISA`, `MASTERCARD`, `MASTERCARD_DEBIT`, `MAESTRO`, `AMEX`, `DINERS`, `DISCOVER`, `JCB`.","examples":["VISA"],"descriptionNode":"$Lad3"},"customer_card_type":{"type":"string","description":"Card funding type.\n\n| Value | Description |\n| ----- | ----------- |\n| `DEBIT` | Debit card. |\n| `CREDIT` | Credit card. |\n| `PREPAID` | Prepaid card. |\n| `DEFERRED_DEBIT` | Deferred debit card. |\n| `CHARGE` | Charge card. |","enum":["DEBIT","CREDIT","PREPAID","DEFERRED_DEBIT","CHARGE"],"descriptionNode":"$Lad4"},"customer_card_category":{"type":"string","description":"Card commercial category.\n\n| Value | Description |\n| ----- | ----------- |\n| `consumer` | Personal card. |\n| `commercial` | Business or corporate card. |","enum":["consumer","commercial"],"descriptionNode":"$Lad5"},"payment_method":{"type":"string","description":"Payment method the customer used to pay for the order.","examples":["CARD"],"descriptionNode":"$Lad6"},"fee_amount":{"type":"number","description":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees).","descriptionNode":"$Lad7"},"fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the total fee.","examples":["GBP"],"descriptionNode":"$Lad8"},"processing_fee_amount":{"type":"number","description":"Acquiring markup fee only — a subset of `fee_amount`. Represents Revolut's service fee, excluding interchange and scheme fees.","descriptionNode":"$Lad9"},"processing_fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the acquiring markup fee.","examples":["GBP"],"descriptionNode":"$Lada"},"fx_fee_amount":{"type":"number","description":"Foreign exchange fee amount, if applicable.","descriptionNode":"$Ladb"},"fx_fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the FX fee.","examples":["GBP"],"descriptionNode":"$Ladc"},"browser_url":{"type":"string","format":"uri","description":"The URL where the customer initiated the payment.","descriptionNode":"$Ladd"},"beneficiary_name":{"type":"string","description":"Name of the beneficiary, for bank transfer payments.","descriptionNode":"$Lade"},"beneficiary_account_number":{"type":"string","description":"Account number of the beneficiary, for bank transfer payments.","descriptionNode":"$Ladf"},"location_id":{"type":"string","format":"uuid","description":"Unique identifier of the location related to the transaction.","descriptionNode":"$Lae0"},"location_name":{"type":"string","description":"Name of the location related to the transaction.","descriptionNode":"$Lae1"},"order_custom_field_name":{"type":"string","description":"Name of a custom field set on the order.","descriptionNode":"$Lae2"},"order_custom_field_value":{"type":"string","description":"Value of a custom field set on the order.","descriptionNode":"$Lae3"},"offline_payment_state":{"type":"string","description":"State of an offline payment, if applicable.","descriptionNode":"$Lae4"},"order_authorisation_type":{"type":"string","description":"Authorisation type of the order, for example `FULL` or `PRE_AUTH`.","descriptionNode":"$Lae5"}},"descriptionNode":"$Lae6"},{"title":"Payments report CSV","type":"object","description":"CSV output for `payments_report` report type. Contains all payments including failed and declined ones.\n\nThe first row is a header row with column names. Subsequent rows contain payment data, one row per payment.\n\nFor failed and declined payments, `fee_amount` and `fee_currency` are omitted. For payments made without a card, card-related columns are omitted.\n\n:::note\nThe actual response is a raw `text/csv` string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field.\n:::","properties":{"payment_id":{"type":"string","format":"uuid","description":"Unique identifier of the payment attempt in the acquiring system. Corresponds to `id` in the IC++ fee breakdown report for the same payment. Not the same as `transaction_id` in the settlement or payout reports — a payment and its resulting ledger transaction have different UUIDs. Use `order_id` to cross-reference with the settlement or payout reports.","descriptionNode":"$Lae7"},"type":{"type":"string","description":"Type of the payment.\n\n| Value | Description |\n| ----- | ----------- |\n| `PAYMENT` | A payment attempt made against the order. |\n| `REFUND` | A refund record reversing a previously completed payment. |","enum":["PAYMENT","REFUND"],"descriptionNode":"$Lae8"},"description":{"type":"string","description":"Description of the payment.","descriptionNode":"$Lae9"},"original_payment_id":{"type":"string","format":"uuid","description":"For refunds, the acquiring ID of the original payment that this record reverses. Corresponds to `payment_id` on the original payment row. Populated only when `type` is `REFUND`.","descriptionNode":"$Laea"},"order_id":{"type":"string","format":"uuid","description":"Unique identifier of the order associated with this payment. An order can have multiple payment attempts — for example, a retry after a declined payment. Use `order_id` to cross-reference with the settlement or payout reports.","descriptionNode":"$Laeb"},"state":{"type":"string","description":"State of the payment.\n\n| Value | Description |\n| ----- | ----------- |\n| `COMPLETED` | The payment completed successfully. |\n| `FAILED` | The payment failed during processing. |\n| `DECLINED` | The payment was rejected by the issuer or payment flow. |\n| `CANCELLED` | The payment was cancelled before completion. |\n| `PROCESSING` | The payment is still being processed. |","enum":["COMPLETED","FAILED","DECLINED","CANCELLED","PROCESSING"],"descriptionNode":"$Laec"},"reason":{"type":"string","description":"Reason code for a failed or declined payment. Present only when `state` is `FAILED` or `DECLINED`.\n\nExample values: `INSUFFICIENT_FUNDS`, `DO_NOT_HONOUR`, `EXPIRED_CARD`, `INVALID_CVV`, `THREE_DS_CHALLENGE_FAILED`, `SUSPECTED_FRAUD`, `LOST_CARD`, `STOLEN_CARD`, `TECHNICAL_ERROR`.","descriptionNode":"$Laed"},"amount":{"type":"number","description":"Total amount of the payment.","descriptionNode":"$Laee"},"currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the payment.","examples":["GBP"],"descriptionNode":"$Laef"},"surcharge_amount":{"type":"number","description":"Surcharge amount applied to the payment. Empty when no surcharge applies — this field is empty, not set to `0`.","descriptionNode":"$Laf0"},"tip_amount":{"type":"number","description":"Tip amount included in the payment, if any.","descriptionNode":"$Laf1"},"refunded_amount":{"type":"number","description":"Amount refunded for the payment.","descriptionNode":"$Laf2"},"created_date":{"type":"string","format":"date-time","description":"Date and time the payment was created.","descriptionNode":"$Laf3"},"captured_date":{"type":"string","format":"date-time","description":"Date and time the payment was captured, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. Empty when the payment has not been captured.","descriptionNode":"$Laf4"},"merchant_order_ext_ref":{"type":"string","description":"Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created.","descriptionNode":"$Laf5"},"payment_method":{"type":"string","description":"Payment method used.","examples":["CARD"],"descriptionNode":"$Laf6"},"location_id":{"type":"string","format":"uuid","description":"Unique identifier of the location where the payment was made.","descriptionNode":"$Laf7"},"customer_id":{"type":"string","format":"uuid","description":"Unique identifier of the customer.","descriptionNode":"$Laf8"},"customer_card_number":{"type":"string","description":"Masked card number used for the payment.","examples":["492942******5709"],"descriptionNode":"$Laf9"},"customer_card_country":{"type":"string","description":"Country of the card used for the payment, as an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.","examples":["GB"],"descriptionNode":"$Lafa"},"customer_card_brand":{"type":"string","description":"Card brand used for the payment. Derived from BIN data. Example values include `VISA`, `MASTERCARD`, `MASTERCARD_DEBIT`, `MAESTRO`, `AMEX`, `DINERS`, `DISCOVER`, `JCB`.","examples":["VISA"],"descriptionNode":"$Lafb"},"customer_card_type":{"type":"string","description":"Card funding type.\n\n| Value | Description |\n| ----- | ----------- |\n| `DEBIT` | Debit card. |\n| `CREDIT` | Credit card. |\n| `PREPAID` | Prepaid card. |\n| `DEFERRED_DEBIT` | Deferred debit card. |\n| `CHARGE` | Charge card. |","enum":["DEBIT","CREDIT","PREPAID","DEFERRED_DEBIT","CHARGE"],"descriptionNode":"$Lafc"},"customer_card_category":{"type":"string","description":"Card commercial category.\n\n| Value | Description |\n| ----- | ----------- |\n| `consumer` | Personal card. |\n| `commercial` | Business or corporate card. |","enum":["consumer","commercial"],"descriptionNode":"$Lafd"},"customer_email":{"type":"string","format":"email","description":"Email address of the customer.","descriptionNode":"$Lafe"},"fee_amount":{"type":"number","description":"Total fee amount charged for the payment. Omitted for failed and declined payments.","descriptionNode":"$Laff"},"fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the fee. Omitted for failed and declined payments.","examples":["GBP"],"descriptionNode":"$Lb00"}},"descriptionNode":"$Lb01"},{"title":"Payout statement report CSV","type":"object","description":"CSV output for `payout_statement_report` report type. Contains all transactions that contributed to a specific payout.\n\nThe first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction.\n\n:::note\nThe actual response is a raw `text/csv` string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field.\n:::","properties":{"created_date":{"type":"string","format":"date-time","description":"Date and time the transaction was created.","descriptionNode":"$Lb02"},"completed_date":{"type":"string","format":"date-time","description":"Date and time the transaction was completed.","descriptionNode":"$Lb03"},"payout_affected_date":{"type":"string","format":"date-time","description":"Date and time the payout was affected by this transaction.","descriptionNode":"$Lb04"},"affected_payout_amount":{"type":"boolean","description":"Indicates whether this transaction contributed to the payout amount (`true`) or not (`false`).\n\nNote: despite the name implying a monetary amount, this field is a boolean flag. A rename is planned for a future API version.","descriptionNode":"$Lb05"},"transaction_id":{"type":"string","format":"uuid","description":"Unique identifier of the ledger transaction in the core settlement system. Matches `transaction_id` in the settlement report for the same event. Use `order_id` to cross-reference with the payments report.","descriptionNode":"$Lb06"},"order_id":{"type":"string","format":"uuid","description":"Unique identifier of the order associated with this transaction. Use `order_id` to cross-reference with the payments report or settlement report.","descriptionNode":"$Lb07"},"dispute_id":{"type":"string","format":"uuid","description":"Unique identifier of the dispute associated with a chargeback or chargeback reversal transaction. Empty for rows not related to a dispute.","descriptionNode":"$Lb08"},"merchant_order_reference":{"type":"string","description":"Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created.","descriptionNode":"$Lb09"},"type":{"type":"string","description":"$b0a","enum":["Settlement","Refund","External transfer money return","Topup","Topup Return","Customer dispute - withdrawal","Customer dispute - won","Transfer from linked pocket","Automatic negative balance recovery","Payout","Payout to an external account","Transfer from linked pocket with FX","Payout with FX","Money reserve block","Money reserve unblock","IC++ post-billing fee","Fee refund","Unrecognised transaction"],"descriptionNode":"$Lb0b"},"related_icpp_charge_id":{"type":"string","format":"uuid","description":"Unique identifier of the IC++ charge related to the transaction, if applicable.","descriptionNode":"$Lb0c"},"transaction_amount":{"type":"number","description":"Amount of the transaction in the transaction currency.","descriptionNode":"$Lb0d"},"transaction_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the transaction.","examples":["GBP"],"descriptionNode":"$Lb0e"},"billing_amount":{"type":"number","description":"Amount of the transaction in the billing currency.","descriptionNode":"$Lb0f"},"billing_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the billing amount.","examples":["GBP"],"descriptionNode":"$Lb10"},"state":{"type":"string","description":"State of the transaction.","examples":["COMPLETED"],"descriptionNode":"$Lb11"},"original_transaction_id":{"type":"string","format":"uuid","description":"For refunds and chargebacks, the ledger transaction ID of the original payment that this transaction reverses. Corresponds to `transaction_id` on the original settlement row. \n\n:::note\nPopulated only for reversal-type rows — for example, when `type` is `Refund` or `Customer dispute - withdrawal`.\n:::","descriptionNode":"$Lb12"},"original_transaction_amount":{"type":"number","description":"Amount of the original transaction.","descriptionNode":"$Lb13"},"original_transaction_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the original transaction.","examples":["GBP"],"descriptionNode":"$Lb14"},"original_order_id":{"type":"string","format":"uuid","description":"For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so `order_id` refers to the refund or chargeback order while `original_order_id` points back to the original payment's order. For settlement transactions, matches `order_id`.","descriptionNode":"$Lb15"},"original_order_channel":{"type":"string","description":"Channel through which the original order was created.\n\nThe value depends on the original order source and integration. It may reflect platform-specific or externally provided values, so the set of returned values should not be treated as a fixed enum.","examples":["API"],"descriptionNode":"$Lb16"},"original_merchant_order_reference":{"type":"string","description":"Merchant's order reference for the original order. The value of the `merchant_order_data.reference` field set when the original order was created.","descriptionNode":"$Lb17"},"fee_amount":{"type":"number","description":"Total fee amount charged for the transaction.","descriptionNode":"$Lb18"},"fee_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the fee.","examples":["GBP"],"descriptionNode":"$Lb19"},"settlement_amount":{"type":"number","description":"Total amount settled on the merchant's account.","descriptionNode":"$Lb1a"},"settlement_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount.","examples":["GBP"],"descriptionNode":"$Lb1b"},"location_id":{"type":"string","format":"uuid","description":"Unique identifier of the location associated with the transaction.","descriptionNode":"$Lb1c"},"location_name":{"type":"string","description":"Name of the location associated with the transaction.","descriptionNode":"$Lb1d"},"submerchant_id":{"type":"string","format":"uuid","description":"Unique identifier of the submerchant associated with the transaction.","descriptionNode":"$Lb1e"},"payout_transfer_reference":{"type":"string","description":"Reference of the bank transfer for this payout. This value is the same across all rows in the report, as each report covers a single payout.","descriptionNode":"$Lb1f"},"payout_total_amount":{"type":"number","description":"Total amount of this payout. This value is the same across all rows in the report, as each report covers a single payout.","descriptionNode":"$Lb20"},"payout_date":{"type":"string","format":"date-time","description":"Date and time the payout covered by this report was created, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC date-time format. This value is the same across all rows in the report, as each report covers a single payout.","descriptionNode":"$Lb21"}},"descriptionNode":"$Lb22"},{"title":"IC++ fee breakdown report CSV","type":"object","description":"CSV output for `icpp_fee_breakdown_report` report type. Contains IC++ fee components broken down per transaction for a specific IC++ charge.\n\nThe first row is a header row with column names. Subsequent rows contain one row per transaction.\n\n`card_interchange_fee_amount` and `card_scheme_fee_amount` are omitted for Revolut Pay transactions.\n\n:::note\nThe actual response is a raw `text/csv` string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field.\n\n`payment_method` in this report returns `REVOLUT_PAY` for Revolut Pay transactions. Other reports use `PAY_WITH_REVOLUT` for the same payment method.\n:::","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the payment in the acquiring system. Corresponds to `payment_id` in the payments report for the same payment.","descriptionNode":"$Lb23"},"created_at":{"type":"string","format":"date-time","description":"Date and time the payment was created.","descriptionNode":"$Lb24"},"operation":{"type":"string","description":"Type of the IC++ transaction.\n\n| Value | Description |\n| ----- | ----------- |\n| `SALE` | Fee breakdown for a payment sale. |\n| `REFUND` | Fee breakdown for a refund. |\n| `DISPUTE` | Fee breakdown for a dispute-related transaction. |","enum":["SALE","REFUND","DISPUTE"],"descriptionNode":"$Lb25"},"amount":{"type":"number","description":"Transaction amount.","descriptionNode":"$Lb26"},"currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the transaction.","examples":["GBP"],"descriptionNode":"$Lb27"},"settlement_amount":{"type":"number","description":"Amount settled on the merchant's account.","descriptionNode":"$Lb28"},"settlement_currency":{"type":"string","description":"The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the settled amount.","examples":["GBP"],"descriptionNode":"$Lb29"},"payment_method":{"type":"string","description":"Payment method used. Returns `REVOLUT_PAY` for Revolut Pay, or the card scheme name for card payments.","examples":["REVOLUT_PAY"],"descriptionNode":"$Lb2a"},"card_scheme":{"type":"string","description":"Card BIN scheme.","examples":["VISA"],"descriptionNode":"$Lb2b"},"card_funding":{"type":"string","description":"Card funding type.","examples":["DEBIT"],"descriptionNode":"$Lb2c"},"order_description":{"type":"string","description":"Description of the order.","descriptionNode":"$Lb2d"},"order_merchant_external_ref":{"type":"string","description":"Merchant's order reference. The value of the `merchant_order_data.reference` field set when the order was created.","descriptionNode":"$Lb2e"},"original_operation_id":{"type":"string","format":"uuid","description":"For refunds and disputes, the acquiring ID of the original payment. Corresponds to `original_payment_id` in the payments report.","descriptionNode":"$Lb2f"},"acquiring_fee_amount":{"type":"number","description":"IC++ acquiring markup fee component.","descriptionNode":"$Lb30"},"card_interchange_fee_amount":{"type":"number","description":"Interchange fee component. Omitted for Revolut Pay transactions.","descriptionNode":"$Lb31"},"card_scheme_fee_amount":{"type":"number","description":"Card scheme fee component. Omitted for Revolut Pay transactions.","descriptionNode":"$Lb32"},"card_type":{"type":"string","description":"Card commercial category.\n\n| Value | Description |\n| ----- | ----------- |\n| `COMMERCIAL` | Business or corporate card. |\n| `CONSUMER` | Personal card. |","enum":["COMMERCIAL","CONSUMER"],"descriptionNode":"$Lb33"},"order_channel":{"type":"string","description":"Channel through which the order was created.","examples":["API"],"descriptionNode":"$Lb34"},"card_country":{"type":"string","description":"Country of the card, as an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.","examples":["GB"],"descriptionNode":"$Lb35"}},"descriptionNode":"$Lb36"}]},"examples":{"settlement_report":{"summary":"Settlement report","value":"$b37"},"custom_report":{"summary":"Custom report (filtered columns)","value":"transaction_id,order_id,payment_created_date,payment_captured_date,payment_method,amount,currency,state,updated_date\n649ae37f-99ca-a7db-a4fb-5924af14ad7c,649ae35c-2558-adea-bf98-3a7156a764e7,2023-06-28T13:20:46.07498Z,2023-06-28T13:30:46.07498Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.07498Z\n649ae3de-e945-af9f-98c8-1d6172e350b5,649ae3ab-3998-ab2b-ad95-41b48346be69,2023-06-28T13:22:46.075569Z,2023-06-28T13:30:46.075569Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.075569Z\n649ae48b-37f6-a097-9cb0-4fc2a89d9e5a,649ae479-d7e8-a139-993b-bf75865c5059,2023-06-28T13:35:46.084289Z,2023-06-28T13:38:46.084289Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:38:46.084289Z"},"payments_report":{"summary":"Payments report","value":"$b38"},"payout_statement_report":{"summary":"Payout statement report","value":"$b39"}}}},"descriptionNode":"$Lb3a"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Lb3b"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Lb3c"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Lb3d"}}}}},"descriptionNode":"$Lb3e"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Lb3f"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Lb40"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Lb41"}}}}},"descriptionNode":"$Lb42"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"code":{"type":"string","description":"An identifier that can be used to determine what went wrong.\n\nError codes are not globally unique, but uniqueness is guaranteed within endpoints.","descriptionNode":"$Lb43"},"message":{"type":"string","description":"Some human readable text describing what went wrong.","descriptionNode":"$Lb44"},"timestamp":{"type":"integer","description":"The [UNIX timestamp](https://www.unixtimestamp.com/) of the date and time the error happened.","descriptionNode":"$Lb45"}}}}},"descriptionNode":"$Lb46"}},"requestBody":"$undefined","variantLabels":["Settlement report","Custom report (filtered columns)","Payments report","Payout statement report"],"children":["$Lb47","$Lb48"]}]}],false]}] b47:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$","div",null,{"className":"y9a0do1","children":[["$","h2",null,{"id":"download-report-file","children":[["$Lb49","$undefined"],["$","$L15",null,{"id":"download-report-file"}]]}],["$","$L16",null,{"url":"/docs/api/merchant/Legacy/operations/download-report-file.md"}]]}]}],"$undefined"]}] b4e:T8b5,
fetch("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
b4f:Td9d,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
b50:T6c9,
import requests

url = "https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
b51:T1541,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
b52:T1461,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
b53:T8bd,
fetch("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file", {
  method: "GET",
  headers: {
    "Authorization": "__RP_TOK_1__"
  }
})
  .then(response => response.json())
  .then(data => console.log(data));
b54:Tda5,
package main

import (
  "fmt"
  "net/http"
)

func main() {
  url := "https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "__RP_TOK_1__")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  fmt.Println(res)
}
b55:T6d1,
import requests

url = "https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"
headers = {
  "Authorization": "__RP_TOK_1__"
}

response = requests.get(url, headers=headers)
print(response.json())
b56:T1549,
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

public class Main {
  public static void main(String[] args) {
    HttpClient client = HttpClient.newHttpClient();
    HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"))
      .header("Authorization", "__RP_TOK_1__")
      .GET(HttpRequest.BodyPublishers.noBody())
      .build();

    client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
      .thenApply(HttpResponse::body)
      .thenAccept(System.out::println)
      .join();
  }
}
b57:T1469,
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage
{
  Method = HttpMethod.Get,
  RequestUri = new Uri("https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file"),
  Headers =
  {
    { "Authorization", "__RP_TOK_1__" },
  }
};

using (var response = await client.SendAsync(request))
{
  response.EnsureSuccessStatusCode();
  var body = await response.Content.ReadAsStringAsync();
  Console.WriteLine(body);
}
b48:["$","div",null,{"className":"ezz1n30","children":[["$","div",null,{"data-header":"$undefined","className":"ezz1n31","children":["$Lb4a",["$","$L5a",null,{"parameters":[{"name":"Authorization","in":"header","schema":{"type":"string","format":"Bearer ","examples":"$26:props:children:0:props:children:props:children:1:props:children:0:props:children:1:props:parameters:0:schema:examples"},"required":true,"description":"This parameter accepts the [Merchant API Secret key](https://business.revolut.com/settings/apis?tab=merchant-api) to authorise requests coming from the merchant's backend. \n\nIt ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a `Bearer` token.\n\n:::info\nFor more information, see: [Authentication](https://developer.revolut.com/docs/api/merchant#authentication)\n:::","descriptionNode":"$Lb4b"},{"name":"report_run_id","in":"path","schema":{"type":"string","format":"uuid","description":"A UUID string, typically used to identify resources.","descriptionNode":"$Lb4c"},"required":true,"description":"Unique ID of the report run.","descriptionNode":"$Lb4d"}],"requestBody":"$undefined","heading":"Request","requestBodySchemaTitle":"Request body","headingAs":"h3"}],["$","$L5e",null,{"responses":"$30:props:children:0:props:children:props:responses","headingAs":"h3"}]]}],["$","div",null,{"className":"ezz1n32","children":[[["$","$L5f",null,{"itemsByServer":{"https://merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$b4e","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$b4f","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$b50","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$b51","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$b52","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}}],"https://sandbox-merchant.revolut.com":[{"id":"curl","label":"cURL","templateCode":"curl -X GET \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\" \\\n -H \"Authorization: __RP_TOK_1__\"","templateHtml":"
curl -X GET \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\" \\\n  -H \"Authorization: __RP_TOK_1__\"
","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["shell-double-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["shell-double-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"javascript","label":"JavaScript","templateCode":"fetch(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\", {\n method: \"GET\",\n headers: {\n \"Authorization\": \"__RP_TOK_1__\"\n }\n})\n .then(response => response.json())\n .then(data => console.log(data));","templateHtml":"$b53","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"go","label":"Go","templateCode":"package main\n\nimport (\n \"fmt\"\n \"net/http\"\n)\n\nfunc main() {\n url := \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"\n req, _ := http.NewRequest(\"GET\", url, nil)\n req.Header.Add(\"Authorization\", \"__RP_TOK_1__\")\n\n res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n fmt.Println(res)\n}","templateHtml":"$b54","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"python","label":"Python","templateCode":"import requests\n\nurl = \"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"\nheaders = {\n \"Authorization\": \"__RP_TOK_1__\"\n}\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())","templateHtml":"$b55","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"java","label":"Java","templateCode":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\npublic class Main {\n public static void main(String[] args) {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"))\n .header(\"Authorization\", \"__RP_TOK_1__\")\n .GET(HttpRequest.BodyPublishers.noBody())\n .build();\n\n client.sendAsync(request, HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenAccept(System.out::println)\n .join();\n }\n}","templateHtml":"$b56","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}},{"id":"csharp","label":"C#","templateCode":"using System.Net.Http;\nusing System.Net.Http.Headers;\n\nvar client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n Method = HttpMethod.Get,\n RequestUri = new Uri(\"https://sandbox-merchant.revolut.com/api/report-runs/__RP_TOK_0__/file\"),\n Headers =\n {\n { \"Authorization\", \"__RP_TOK_1__\" },\n }\n};\n\nusing (var response = await client.SendAsync(request))\n{\n response.EnsureSuccessStatusCode();\n var body = await response.Content.ReadAsStringAsync();\n Console.WriteLine(body);\n}","templateHtml":"$b57","tokens":[{"marker":"__RP_TOK_0__","paramName":"report_run_id","paramIn":"path","pipeline":["json-string-inner"]},{"marker":"__RP_TOK_1__","paramName":"Authorization","paramIn":"header","pipeline":["json-string-inner"]}],"defaults":{"header:Authorization":"Bearer ","path:report_run_id":"123e4567-e89b-12d3-a456-426614174000"}}]},"method":"get","servers":"$26:props:children:0:props:children:props:children:1:props:children:1:props:children:0:0:props:servers","path":"/api/report-runs/{report_run_id}/file","parameters":["$b48:props:children:0:props:children:1:props:parameters:0","$b48:props:children:0:props:children:1:props:parameters:1"]}],"$Lb58"],"$Lb59","$Lb5a"]}]]}] b58:["$","$Lba",null,{"security":[{"Api-Key":[]}],"authorization":{"Api-Key":{"type":"apiKey","in":"header","name":"Authorization","description":"Each Merchant API request must contain an authorization header in the following format:\n\n```\n'Authorization: Bearer '\n```\n\nTo use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout.\n\n:::info\nFor detailed instructions on generating your API keys, see: [Generate API keys](https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys).\n:::","descriptionNode":"$Lb5b"}}}] b59:["$","$Lbc",null,{"exampleBlocks":{},"title":"Request body samples","headingAs":"h4"}] b5c:T7af,transaction_id,order_id,original_order_id,started_date,updated_date,completed_date,payment_created_date,payment_captured_date,type,state,description,merchant_order_ext_ref,customer_id,amount,currency,settlement_amount,settlement_currency,payment_method,fee_amount,fee_currency,processing_fee_amount,processing_fee_currency,browser_url,location_id 67f66fa6-200c-aaef-8708-cb78366f8a30,67f66f41-3022-a623-827e-e0616c0d04e7,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-09T13:01:26.288638Z,2025-04-10T13:02:09.843018Z,2025-04-10T13:02:09.837719Z,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837719Z,SETTLEMENT,COMPLETED,Summer hat,ORD-2025-0042,,100.00,GBP,99.00,GBP,CARD,1.00,GBP,1.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fb7-300d-bbff-9819-dc89477a9b41,67f67052-4133-b734-938f-f1727d1e15f8,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-10T09:10:00.000000Z,2025-04-10T09:12:00.000000Z,2025-04-10T09:12:00.000000Z,,,REFUND,COMPLETED,Refund for Summer hat,ORD-2025-0042-R1,,25.00,GBP,-25.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fc8-411e-cc10-a92a-ed9a588b0c52,67f67063-5244-c845-a49a-a2838e2f26a9,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-11T08:30:00.000000Z,2025-04-11T08:45:00.000000Z,2025-04-11T08:45:00.000000Z,,,CHARGEBACK,COMPLETED,Chargeback for Summer hat,ORD-2025-0042-CB1,,75.00,GBP,-75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fd9-522f-dd21-ba3b-feab699a1d63,67f67074-6355-d956-b50a-a3949f3a37a0,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-15T10:00:00.000000Z,2025-04-15T10:05:00.000000Z,2025-04-15T10:05:00.000000Z,,,CHARGEBACK_REVERSAL,COMPLETED,Chargeback reversal for Summer hat,ORD-2025-0042-CBR1,,75.00,GBP,75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,b5f:T468,payment_id,type,description,original_payment_id,order_id,state,reason,amount,currency,surcharge_amount,tip_amount,refunded_amount,created_date,captured_date,merchant_order_ext_ref,payment_method,location_id,customer_id,customer_card_number,customer_card_country,customer_card_brand,customer_card_type,customer_card_category,customer_email,fee_amount,fee_currency 67f66fa6-7e98-ae73-9570-50583cec116d,PAYMENT,Payment from customer,,67f66f41-3022-a623-827e-e0616c0d04e7,COMPLETED,,1.00,GBP,,0.00,0.00,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837Z,ORD-2025-0042,CARD,,cust-0001-0000-0000-000000000001,528143******4148,GB,VISA,DEBIT,consumer,customer@example.com,0.01,GBP 6807b0a5-a367-afbf-b31f-353730b788b5,PAYMENT,Payment from customer,,6807b09c-c62a-a656-818e-f071ef67ee36,DECLINED,,10.01,GBP,,0.00,0.00,2025-04-22T15:07:17.352Z,,,PAY_WITH_REVOLUT,,,,,,,,customer@example.com,, 67efa316-db8a-aec6-8eb4-46e47b6ebdc4,PAYMENT,Payment from customer,,67efa305-be19-a456-a6a2-154b218ac386,FAILED,INSUFFICIENT_FUNDS,0.57,USD,,0.00,0.00,2025-04-04T09:15:02.13Z,,,CARD,,,222300******9399,GB,VISA,DEBIT,consumer,customer@example.com,,b61:T5f7,created_date,completed_date,payout_affected_date,affected_payout_amount,transaction_id,order_id,dispute_id,merchant_order_reference,type,related_icpp_charge_id,transaction_amount,transaction_currency,billing_amount,billing_currency,state,original_transaction_id,original_transaction_amount,original_transaction_currency,original_order_id,original_order_channel,original_merchant_order_reference,fee_amount,fee_currency,settlement_amount,settlement_currency,location_id,location_name,submerchant_id,payout_transfer_reference,payout_total_amount,payout_date 2025-03-25T14:34:05.708899Z,2025-03-26T14:34:38.06903Z,2025-03-26T14:34:38.06903Z,true,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,67e2be76-89c5-ae4f-9103-a152ae6f0584,,ORD-2025-0042,Settlement,,0.57,USD,0.57,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,0.57,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z 2025-03-25T15:38:45.162946Z,2025-03-26T15:39:58.03824Z,2025-03-26T15:39:58.03824Z,true,67e2ce05-1a16-abeb-b05b-5059073bcdaa,67e2ce00-6665-a52b-9f10-368f886054d7,a81bba54-e3f9-450f-aa50-7aea8e4e5b9a,ORD-2025-0042-CB1,Customer dispute - withdrawal,,-0.40,USD,-0.40,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,-0.40,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Zb5a:["$","$Lbd",null,{"exampleBlocks":{"200":{"text/csv":{"variants":[{"key":"settlement_report","label":"Settlement report","rawValue":"$b5c","block":"$Lb5d"},{"key":"custom_report","label":"Custom report (filtered columns)","rawValue":"transaction_id,order_id,payment_created_date,payment_captured_date,payment_method,amount,currency,state,updated_date\n649ae37f-99ca-a7db-a4fb-5924af14ad7c,649ae35c-2558-adea-bf98-3a7156a764e7,2023-06-28T13:20:46.07498Z,2023-06-28T13:30:46.07498Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.07498Z\n649ae3de-e945-af9f-98c8-1d6172e350b5,649ae3ab-3998-ab2b-ad95-41b48346be69,2023-06-28T13:22:46.075569Z,2023-06-28T13:30:46.075569Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.075569Z\n649ae48b-37f6-a097-9cb0-4fc2a89d9e5a,649ae479-d7e8-a139-993b-bf75865c5059,2023-06-28T13:35:46.084289Z,2023-06-28T13:38:46.084289Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:38:46.084289Z","block":"$Lb5e"},{"key":"payments_report","label":"Payments report","rawValue":"$b5f","block":"$Lb60"},{"key":"payout_statement_report","label":"Payout statement report","rawValue":"$b61","block":"$Lb62"}],"syncedPropertyName":"$undefined"}},"400":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$Lb63"}],"syncedPropertyName":"$undefined"}},"401":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$Lb64"}],"syncedPropertyName":"$undefined"}},"404":{"application/json":{"variants":[{"key":"default","label":"Example","rawValue":{"code":"string","message":"string","timestamp":123},"block":"$Lb65"}],"syncedPropertyName":"$undefined"}}},"headingAs":"h4"}] b49:"Download report file" a8d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the ledger transaction in the core settlement system. Matches ",["$","code","code-0",{"children":"transaction_id"}]," in the payout statement report for the same event. Not the same as ",["$","code","code-1",{"children":"payment_id"}]," in the payments report — a payment and its resulting ledger transaction have different UUIDs. Use ",["$","code","code-2",{"children":"order_id"}]," to cross-reference with the payments report."]}]]}] a8e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the order. An order is the top-level entity that groups one or more payment attempts against it. ",["$","code","code-0",{"children":"order_id"}]," is consistent across all report types and can be used to cross-reference between the payments report and the settlement or payout reports."]}]]}] a8f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so ",["$","code","code-0",{"children":"order_id"}]," refers to the refund or chargeback order while ",["$","code","code-1",{"children":"original_order_id"}]," points back to the original payment's order. For settlement transactions, matches ",["$","code","code-2",{"children":"order_id"}],"."]}]]}] a90:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was started. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. This displayed value is separate from the report filter timeframe."}]]}] a91:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was last updated. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. This displayed value is separate from the report filter timeframe."}]]}] a92:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was completed. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. This displayed value is separate from the report filter timeframe."}]]}] a93:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Payment authorisation or creation timestamp for rows linked to a payment, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. Empty for refunds and non-payment-related rows where no payment timestamp applies. This displayed value is separate from the report filter timeframe."]}]]}] a94:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Payment capture timestamp for rows linked to a captured payment, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. Empty for refunds, non-payment-related rows, or payments not captured. This displayed value is separate from the report filter timeframe."]}]]}] a95:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the settlement report row."}],"\n",["$","p","p-1",{"children":["A partial-settlement is represented by separate ",["$","code","code-0",{"children":"SETTLEMENT"}]," and ",["$","code","code-1",{"children":"REFUND"}]," rows instead of a dedicated type."]}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"SETTLEMENT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settlement of a payment into the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REFUND"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Refund entry reducing the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGEBACK"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Dispute withdrawal entry reducing the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGEBACK_REVERSAL"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a previous chargeback, restoring funds to the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] a96:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State of the transaction."}]]}] a97:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the order."}]]}] a98:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."]}]]}] a99:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the customer related to an order."}]]}] a9a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount of the order."}]]}] a9b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code that represents the currency of the order."]}]]}] a9c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount settled on the merchant's account."}]]}] a9d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code that represents the currency of the settled amount."]}]]}] a9e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the payment method the customer used to pay for the order."}]]}] a9f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees)."}]]}] aa0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code that represents the currency of the total fee."]}]]}] aa1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Acquiring markup fee only — a subset of ",["$","code","code-0",{"children":"fee_amount"}],". Represents Revolut's service fee, excluding interchange and scheme fees."]}]]}] aa2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code that represents the currency of the acquiring markup fee."]}]]}] aa3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL where the customer initiated the payment."}]]}] aa4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the location related to the transaction."}]]}] aa5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["CSV output for ",["$","code","code-0",{"children":"settlement_report"}],". Contains settled transactions associated with a Merchant account."]}],"\n",["$","p","p-1",{"children":"The first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction."}],"\n",["$","p","p-2",{"children":["A partial-settlement is represented by separate ",["$","code","code-0",{"children":"SETTLEMENT"}]," and ",["$","code","code-1",{"children":"REFUND"}]," rows instead of a dedicated type."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The actual response is a raw ",["$","code","code-0",{"children":"text/csv"}]," string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field."]}]}]]}]]}] aa6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the ledger transaction in the core settlement system. Matches ",["$","code","code-0",{"children":"transaction_id"}]," in the settlement and payout reports for the same event. Not the same as ",["$","code","code-1",{"children":"payment_id"}]," in the payments report — a payment and its resulting ledger transaction have different UUIDs. Use ",["$","code","code-2",{"children":"order_id"}]," to cross-reference with the payments report."]}]]}] aa7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refund and chargeback transactions, the ledger transaction ID of the original payment that this transaction reverses. Corresponds to ",["$","code","code-0",{"children":"original_transaction_id"}]," in the payout statement report."]}]]}] aa8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the transaction."}]]}] aa9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the order. An order is the top-level entity that groups one or more payment attempts against it. ",["$","code","code-0",{"children":"order_id"}]," is consistent across all report types and can be used to cross-reference between the payments report and the settlement or payout reports."]}]]}] aaa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so ",["$","code","code-0",{"children":"order_id"}]," refers to the refund or chargeback order while ",["$","code","code-1",{"children":"original_order_id"}]," points back to the original payment's order. For settlement transactions, matches ",["$","code","code-2",{"children":"order_id"}],"."]}]]}] aab:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Merchant's order identifier of the original order for external reference."}]]}] aac:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the order."}]]}] aad:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Channel through which the order was created."}],"\n",["$","p","p-1",{"children":"The value depends on the order source and integration. It may reflect platform-specific or externally provided values, so the set of returned values should not be treated as a fixed enum."}]]}] aae:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Note added by the customer at the time of the order."}]]}] aaf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Tip amount set at the order level."}]]}] ab0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Identifier of the user who created the order."}]]}] ab1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Identifier of who initiated the payment."}]]}] ab2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Line items included in the order, if any."}]]}] ab3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the payout that this transaction contributed to. Use to cross-reference with the payout statement report."}]]}] ab4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Reference of the payout transfer associated with the transaction."}]]}] ab5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Invoice reference associated with the order, if any."}]]}] ab6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the dispute, if applicable."}]]}] ab7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the merchant account."}]]}] ab8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Account balance at the time of the transaction."}]]}] ab9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was started. For payment rows, this is the payment start timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction start timestamp. This displayed value is separate from the report filter timeframe."}]]}] aba:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the order was created."}]]}] abb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was last updated. For payment rows, this is the payment update timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction update timestamp. This displayed value is separate from the report filter timeframe."}]]}] abc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the row's source record was completed. For payment rows, this is the payment completion timestamp. For non-payment rows such as refunds and chargebacks, this is the transaction completion timestamp. This displayed value is separate from the report filter timeframe."}]]}] abd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Payment authorisation or creation timestamp for rows linked to a payment, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. Empty for refunds and non-payment-related rows where no payment timestamp applies. This displayed value is separate from the report filter timeframe."]}]]}] abe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Payment capture timestamp for rows linked to a captured payment, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. Empty for refunds, non-payment-related rows, or payments not captured. This displayed value is separate from the report filter timeframe."]}]]}] abf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the transaction."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"SETTLEMENT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settlement of a payment into the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"RESERVE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reserve entry holding funds on the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REFUND"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Refund entry reducing the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"TOPUP"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Balance top-up entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"TOPUP_RETURN"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a top-up entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGEBACK"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Dispute withdrawal from the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGEBACK_REVERSAL"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a previous chargeback.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CREDIT_REIMBURSEMENT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Credit reimbursement entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"FEE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Fee charged against the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"PAYOUT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payout-related ledger entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"TRANSFER"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Balance transfer entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REVOLUT_REFUND"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Refund-related entry specific to Revolut internal flows.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REVOLUT_FEE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Fee-related entry specific to Revolut internal flows.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"WRITE_OFF"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Write-off entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Charge entry posted to the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] ac0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Legacy type value for backwards compatibility."}]]}] ac1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State of the transaction."}]]}] ac2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the transaction."}]]}] ac3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."]}]]}] ac4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the customer related to the order."}]]}] ac5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount of the order."}]]}] ac6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the order."]}]]}] ac7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount settled on the merchant's account."}]]}] ac8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."]}]]}] ac9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Exchange rate applied if currency conversion occurred."}]]}] aca:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount refunded for the order."}]]}] acb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Statement descriptor shown on the customer's bank statement."}]]}] acc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Tip amount included in the transaction."}]]}] acd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Surcharge amount applied to the transaction. Omitted when no surcharge applies."}]]}] ace:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Surcharge amount set at the order level."}]]}] acf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Identifier of the card reader hardware used, for in-person payments."}]]}] ad0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the customer."}]]}] ad1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Email address of the customer."}]]}] ad2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Masked card number used for the payment."}]]}] ad3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Card brand used for the payment. Derived from BIN data. Example values include ",["$","code","code-0",{"children":"VISA"}],", ",["$","code","code-1",{"children":"MASTERCARD"}],", ",["$","code","code-2",{"children":"MASTERCARD_DEBIT"}],", ",["$","code","code-3",{"children":"MAESTRO"}],", ",["$","code","code-4",{"children":"AMEX"}],", ",["$","code","code-5",{"children":"DINERS"}],", ",["$","code","code-6",{"children":"DISCOVER"}],", ",["$","code","code-7",{"children":"JCB"}],"."]}]]}] ad4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card funding type."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DEBIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CREDIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Credit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"PREPAID"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Prepaid card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DEFERRED_DEBIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Deferred debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Charge card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] ad5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card commercial category."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"consumer"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Personal card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"commercial"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Business or corporate card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] ad6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Payment method the customer used to pay for the order."}]]}] ad7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total fee amount applied to the order, aggregated across all fee components (acquiring markup + interchange + scheme fees)."}]]}] ad8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the total fee."]}]]}] ad9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Acquiring markup fee only — a subset of ",["$","code","code-0",{"children":"fee_amount"}],". Represents Revolut's service fee, excluding interchange and scheme fees."]}]]}] ada:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the acquiring markup fee."]}]]}] adb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Foreign exchange fee amount, if applicable."}]]}] adc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the FX fee."]}]]}] add:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"The URL where the customer initiated the payment."}]]}] ade:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the beneficiary, for bank transfer payments."}]]}] adf:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Account number of the beneficiary, for bank transfer payments."}]]}] ae0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the location related to the transaction."}]]}] ae1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location related to the transaction."}]]}] ae2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of a custom field set on the order."}]]}] ae3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Value of a custom field set on the order."}]]}] ae4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State of an offline payment, if applicable."}]]}] ae5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Authorisation type of the order, for example ",["$","code","code-0",{"children":"FULL"}]," or ",["$","code","code-1",{"children":"PRE_AUTH"}],"."]}]]}] ae6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["CSV output for ",["$","code","code-0",{"children":"custom_report"}]," report type. Contains settled and processing transactions with a configurable set of columns."]}],"\n",["$","p","p-1",{"children":"The first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction."}],"\n",["$","p","p-2",{"children":["The columns included in the response depend on the ",["$","code","code-0",{"children":"options.columns"}]," list specified in the request. If no columns list was provided, all available columns are included."]}],"\n",["$","p","p-3",{"children":["Custom metadata columns can also be requested using the ",["$","code","code-0",{"children":"metadata."}]," prefix, for example ",["$","code","code-1",{"children":"metadata.custom_attribute"}],"."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The actual response is a raw ",["$","code","code-0",{"children":"text/csv"}]," string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field."]}]}]]}]]}] ae7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the payment attempt in the acquiring system. Corresponds to ",["$","code","code-0",{"children":"id"}]," in the IC++ fee breakdown report for the same payment. Not the same as ",["$","code","code-1",{"children":"transaction_id"}]," in the settlement or payout reports — a payment and its resulting ledger transaction have different UUIDs. Use ",["$","code","code-2",{"children":"order_id"}]," to cross-reference with the settlement or payout reports."]}]]}] ae8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the payment."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"PAYMENT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"A payment attempt made against the order.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REFUND"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"A refund record reversing a previously completed payment.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] ae9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the payment."}]]}] aea:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds, the acquiring ID of the original payment that this record reverses. Corresponds to ",["$","code","code-0",{"children":"payment_id"}]," on the original payment row. Populated only when ",["$","code","code-1",{"children":"type"}]," is ",["$","code","code-2",{"children":"REFUND"}],"."]}]]}] aeb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the order associated with this payment. An order can have multiple payment attempts — for example, a retry after a declined payment. Use ",["$","code","code-0",{"children":"order_id"}]," to cross-reference with the settlement or payout reports."]}]]}] aec:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State of the payment."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"COMPLETED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The payment completed successfully.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"FAILED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The payment failed during processing.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DECLINED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The payment was rejected by the issuer or payment flow.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CANCELLED"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The payment was cancelled before completion.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"PROCESSING"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"The payment is still being processed.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] aed:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Reason code for a failed or declined payment. Present only when ",["$","code","code-0",{"children":"state"}]," is ",["$","code","code-1",{"children":"FAILED"}]," or ",["$","code","code-2",{"children":"DECLINED"}],"."]}],"\n",["$","p","p-1",{"children":["Example values: ",["$","code","code-0",{"children":"INSUFFICIENT_FUNDS"}],", ",["$","code","code-1",{"children":"DO_NOT_HONOUR"}],", ",["$","code","code-2",{"children":"EXPIRED_CARD"}],", ",["$","code","code-3",{"children":"INVALID_CVV"}],", ",["$","code","code-4",{"children":"THREE_DS_CHALLENGE_FAILED"}],", ",["$","code","code-5",{"children":"SUSPECTED_FRAUD"}],", ",["$","code","code-6",{"children":"LOST_CARD"}],", ",["$","code","code-7",{"children":"STOLEN_CARD"}],", ",["$","code","code-8",{"children":"TECHNICAL_ERROR"}],"."]}]]}] aee:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount of the payment."}]]}] aef:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the payment."]}]]}] af0:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Surcharge amount applied to the payment. Empty when no surcharge applies — this field is empty, not set to ",["$","code","code-0",{"children":"0"}],"."]}]]}] af1:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Tip amount included in the payment, if any."}]]}] af2:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount refunded for the payment."}]]}] af3:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the payment was created."}]]}] af4:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Date and time the payment was captured, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. Empty when the payment has not been captured."]}]]}] af5:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."]}]]}] af6:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Payment method used."}]]}] af7:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the location where the payment was made."}]]}] af8:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the customer."}]]}] af9:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Masked card number used for the payment."}]]}] afa:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Country of the card used for the payment, as an ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2","target":"_blank","rel":"noreferrer","children":"ISO 3166-1 alpha-2"}]," code."]}]]}] afb:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Card brand used for the payment. Derived from BIN data. Example values include ",["$","code","code-0",{"children":"VISA"}],", ",["$","code","code-1",{"children":"MASTERCARD"}],", ",["$","code","code-2",{"children":"MASTERCARD_DEBIT"}],", ",["$","code","code-3",{"children":"MAESTRO"}],", ",["$","code","code-4",{"children":"AMEX"}],", ",["$","code","code-5",{"children":"DINERS"}],", ",["$","code","code-6",{"children":"DISCOVER"}],", ",["$","code","code-7",{"children":"JCB"}],"."]}]]}] afc:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card funding type."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DEBIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CREDIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Credit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"PREPAID"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Prepaid card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DEFERRED_DEBIT"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Deferred debit card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CHARGE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Charge card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] afd:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card commercial category."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"consumer"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Personal card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"commercial"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Business or corporate card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] afe:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Email address of the customer."}]]}] aff:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total fee amount charged for the payment. Omitted for failed and declined payments."}]]}] b00:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the fee. Omitted for failed and declined payments."]}]]}] b01:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["CSV output for ",["$","code","code-0",{"children":"payments_report"}]," report type. Contains all payments including failed and declined ones."]}],"\n",["$","p","p-1",{"children":"The first row is a header row with column names. Subsequent rows contain payment data, one row per payment."}],"\n",["$","p","p-2",{"children":["For failed and declined payments, ",["$","code","code-0",{"children":"fee_amount"}]," and ",["$","code","code-1",{"children":"fee_currency"}]," are omitted. For payments made without a card, card-related columns are omitted."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The actual response is a raw ",["$","code","code-0",{"children":"text/csv"}]," string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field."]}]}]]}]]}] b02:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the transaction was created."}]]}] b03:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the transaction was completed."}]]}] b04:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the payout was affected by this transaction."}]]}] b05:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Indicates whether this transaction contributed to the payout amount (",["$","code","code-0",{"children":"true"}],") or not (",["$","code","code-1",{"children":"false"}],")."]}],"\n",["$","p","p-1",{"children":"Note: despite the name implying a monetary amount, this field is a boolean flag. A rename is planned for a future API version."}]]}] b06:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the ledger transaction in the core settlement system. Matches ",["$","code","code-0",{"children":"transaction_id"}]," in the settlement report for the same event. Use ",["$","code","code-1",{"children":"order_id"}]," to cross-reference with the payments report."]}]]}] b07:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the order associated with this transaction. Use ",["$","code","code-0",{"children":"order_id"}]," to cross-reference with the payments report or settlement report."]}]]}] b08:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the dispute associated with a chargeback or chargeback reversal transaction. Empty for rows not related to a dispute."}]]}] b09:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."]}]]}] b0b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the transaction."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Settlement"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Settlement of a payment into the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Refund"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Refund entry reducing the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"External transfer money return"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Return of an external transfer entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-3",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Topup"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Balance top-up entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-4",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Topup Return"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a top-up entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-5",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Customer dispute - withdrawal"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Chargeback or dispute withdrawal from the merchant balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-6",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Customer dispute - won"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a previous dispute withdrawal.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-7",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Transfer from linked pocket"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Transfer from a linked balance pocket.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-8",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Automatic negative balance recovery"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Automatic recovery entry for a negative balance.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-9",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payout-related ledger entry.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-10",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout to an external account"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Transfer of payout funds to an external account.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-11",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Transfer from linked pocket with FX"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Transfer from a linked pocket involving FX conversion.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-12",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Payout with FX"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Payout-related entry involving FX conversion.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-13",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Money reserve block"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reserve block entry withholding funds.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"$Lb66","$Lb67","$Lb68","$Lb69"],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] b0c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the IC++ charge related to the transaction, if applicable."}]]}] b0d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount of the transaction in the transaction currency."}]]}] b0e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the transaction."]}]]}] b0f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount of the transaction in the billing currency."}]]}] b10:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the billing amount."]}]]}] b11:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"State of the transaction."}]]}] b12:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds and chargebacks, the ledger transaction ID of the original payment that this transaction reverses. Corresponds to ",["$","code","code-0",{"children":"transaction_id"}]," on the original settlement row."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["Populated only for reversal-type rows — for example, when ",["$","code","code-0",{"children":"type"}]," is ",["$","code","code-1",{"children":"Refund"}]," or ",["$","code","code-2",{"children":"Customer dispute - withdrawal"}],"."]}]}]]}]]}] b13:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount of the original transaction."}]]}] b14:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the original transaction."]}]]}] b15:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds and chargebacks, the order ID of the original payment that this transaction reverses. Refunds and chargebacks create their own order in the system, so ",["$","code","code-0",{"children":"order_id"}]," refers to the refund or chargeback order while ",["$","code","code-1",{"children":"original_order_id"}]," points back to the original payment's order. For settlement transactions, matches ",["$","code","code-2",{"children":"order_id"}],"."]}]]}] b16:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Channel through which the original order was created."}],"\n",["$","p","p-1",{"children":"The value depends on the original order source and integration. It may reflect platform-specific or externally provided values, so the set of returned values should not be treated as a fixed enum."}]]}] b17:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference for the original order. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the original order was created."]}]]}] b18:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total fee amount charged for the transaction."}]]}] b19:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the fee."]}]]}] b1a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount settled on the merchant's account."}]]}] b1b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."]}]]}] b1c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the location associated with the transaction."}]]}] b1d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Name of the location associated with the transaction."}]]}] b1e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique identifier of the submerchant associated with the transaction."}]]}] b1f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Reference of the bank transfer for this payout. This value is the same across all rows in the report, as each report covers a single payout."}]]}] b20:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Total amount of this payout. This value is the same across all rows in the report, as each report covers a single payout."}]]}] b21:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Date and time the payout covered by this report was created, in ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_8601","target":"_blank","rel":"noreferrer","children":"ISO 8601"}]," UTC date-time format. This value is the same across all rows in the report, as each report covers a single payout."]}]]}] b22:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["CSV output for ",["$","code","code-0",{"children":"payout_statement_report"}]," report type. Contains all transactions that contributed to a specific payout."]}],"\n",["$","p","p-1",{"children":"The first row is a header row with column names. Subsequent rows contain transaction data, one row per transaction."}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["The actual response is a raw ",["$","code","code-0",{"children":"text/csv"}]," string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field."]}]}]]}]]}] b23:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Unique identifier of the payment in the acquiring system. Corresponds to ",["$","code","code-0",{"children":"payment_id"}]," in the payments report for the same payment."]}]]}] b24:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Date and time the payment was created."}]]}] b25:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Type of the IC++ transaction."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"SALE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Fee breakdown for a payment sale.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"REFUND"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Fee breakdown for a refund.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"DISPUTE"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Fee breakdown for a dispute-related transaction.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] b26:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Transaction amount."}]]}] b27:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the transaction."]}]]}] b28:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Amount settled on the merchant's account."}]]}] b29:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_4217","target":"_blank","rel":"noreferrer","children":"ISO 4217"}]," currency code of the settled amount."]}]]}] b2a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Payment method used. Returns ",["$","code","code-0",{"children":"REVOLUT_PAY"}]," for Revolut Pay, or the card scheme name for card payments."]}]]}] b2b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card BIN scheme."}]]}] b2c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card funding type."}]]}] b2d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Description of the order."}]]}] b2e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Merchant's order reference. The value of the ",["$","code","code-0",{"children":"merchant_order_data.reference"}]," field set when the order was created."]}]]}] b2f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["For refunds and disputes, the acquiring ID of the original payment. Corresponds to ",["$","code","code-0",{"children":"original_payment_id"}]," in the payments report."]}]]}] b30:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"IC++ acquiring markup fee component."}]]}] b31:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Interchange fee component. Omitted for Revolut Pay transactions."}]]}] b32:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card scheme fee component. Omitted for Revolut Pay transactions."}]]}] b33:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Card commercial category."}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"Value","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"Description","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"COMMERCIAL"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Business or corporate card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"CONSUMER"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Personal card.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}]]}] b34:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Channel through which the order was created."}]]}] b35:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["Country of the card, as an ",["$","a","a-0",{"href":"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2","target":"_blank","rel":"noreferrer","children":"ISO 3166-1 alpha-2"}]," code."]}]]}] b36:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["CSV output for ",["$","code","code-0",{"children":"icpp_fee_breakdown_report"}]," report type. Contains IC++ fee components broken down per transaction for a specific IC++ charge."]}],"\n",["$","p","p-1",{"children":"The first row is a header row with column names. Subsequent rows contain one row per transaction."}],"\n",["$","p","p-2",{"children":[["$","code","code-0",{"children":"card_interchange_fee_amount"}]," and ",["$","code","code-1",{"children":"card_scheme_fee_amount"}]," are omitted for Revolut Pay transactions."]}],"\n",["$","div","inlinealert-0",{"data-type":"note","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"InfoOutline","color":"var(--rui-color-grey-tone-50)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":[["$","p","p-0",{"children":["The actual response is a raw ",["$","code","code-0",{"children":"text/csv"}]," string. The object schema below is a documentation convention only: OpenAPI's schema language (JSON Schema) describes JSON data shapes and has no native construct for typed CSV columns, so each property here corresponds to a CSV column header rather than a JSON field."]}],["$","p","p-1",{"children":[["$","code","code-0",{"children":"payment_method"}]," in this report returns ",["$","code","code-1",{"children":"REVOLUT_PAY"}]," for Revolut Pay transactions. Other reports use ",["$","code","code-2",{"children":"PAY_WITH_REVOLUT"}]," for the same payment method."]}]]}]]}]]}] b3a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"OK"}]]}] b3b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] b3c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] b3d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] b3e:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Bad Request"}]]}] b3f:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] b40:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] b41:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] b42:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unauthorized"}]]}] b43:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"An identifier that can be used to determine what went wrong."}],"\n",["$","p","p-1",{"children":"Error codes are not globally unique, but uniqueness is guaranteed within endpoints."}]]}] b44:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Some human readable text describing what went wrong."}]]}] b45:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["The ",["$","a","a-0",{"href":"https://www.unixtimestamp.com/","target":"_blank","rel":"noreferrer","children":"UNIX timestamp"}]," of the date and time the error happened."]}]]}] b46:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Not Found"}]]}] b4a:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Use this endpoint to download the generated report file."}],"\n",["$","p","p-1",{"children":["A generated report file is available for 24 hours after report generation finishes. After that, the report run becomes ",["$","code","code-0",{"children":"expired"}]," and the file can no longer be downloaded."]}],"\n",["$","p","p-2",{"children":["The response is a raw ",["$","code","code-0",{"children":"text/csv"}]," file. The first row contains the column headers. The columns included depend on the report type used when creating the report run, and the ",["$","code","code-1",{"children":"options.columns"}]," list if specified."]}],"\n",["$","h3","h3-0",{"children":"IDs across report types"}],"\n",["$","p","p-3",{"children":"Revolut uses two separate ID systems across report types:"}],"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",["$","div","table-0",{"className":"eowryt0","children":["$","table",null,{"className":"eowryt1","children":[["$","thead","thead-0",{"children":["$","tr","tr-0",{"children":[["$","th","th-0",{"children":"ID column","className":"eowryt6","ref":"$undefined"}],["$","th","th-1",{"children":"System","className":"eowryt6","ref":"$undefined"}],["$","th","th-2",{"children":"Report types","className":"eowryt6","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],"className":"eowryt2","ref":"$undefined"}],["$","tbody","tbody-0",{"children":[["$","tr","tr-0",{"children":[["$","td","td-0",{"children":[["$","code","code-0",{"children":"payment_id"}],", ",["$","code","code-1",{"children":"id"}]],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Acquiring system"}]," - identifies a payment attempt"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"payments_report"}],", ",["$","code","code-1",{"children":"icpp_fee_breakdown_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-1",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"transaction_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Core ledger"}]," - identifies the settlement entry created when a payment is captured"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"settlement_report"}],", ",["$","code","code-1",{"children":"payout_statement_report"}],", ",["$","code","code-2",{"children":"custom_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}],["$","tr","tr-2",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"order_id"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":[["$","strong","strong-0",{"children":"Both systems"}]," - bridges the acquiring and ledger perspectives"],"className":"eowryt7","ref":"$undefined"}],["$","td","td-2",{"children":[["$","code","code-0",{"children":"settlement_report"}],", ",["$","code","code-1",{"children":"payments_report"}],", ",["$","code","code-2",{"children":"payout_statement_report"}],", ",["$","code","code-3",{"children":"custom_report"}]],"className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}]],"className":"eowryt3","ref":"$undefined"}]]}]}],"\n",["$","div","inlinealert-0",{"data-type":"tip","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"Lightbulb","color":"var(--rui-color-success)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["A payment and its resulting ledger transaction represent the same event but have ",["$","strong","strong-0",{"children":"different UUIDs"}],". To reconcile ",["$","code","code-0",{"children":"payments_report"}]," data against ",["$","code","code-1",{"children":"settlement_report"}]," data, join on ",["$","code","code-2",{"children":"order_id"}],"."]}]}]]}],"\n",["$","p","p-4",{"children":"Use the schema selector below to see the available columns for each report type."}]]}] b4b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":["This parameter accepts the ",["$","a","a-0",{"href":"https://business.revolut.com/settings/apis?tab=merchant-api","target":"_blank","rel":"noreferrer","children":"Merchant API Secret key"}]," to authorise requests coming from the merchant's backend."]}],"\n",["$","p","p-1",{"children":["It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a ",["$","code","code-0",{"children":"Bearer"}]," token."]}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For more information, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/api/merchant#authentication","target":"_blank","rel":"noreferrer","children":"Authentication"}]]}]}]]}]]}] b4c:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"A UUID string, typically used to identify resources."}]]}] b4d:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Unique ID of the report run."}]]}] b66:["$","tr","tr-14",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Money reserve unblock"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Release of previously blocked reserve funds.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] b67:["$","tr","tr-15",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"IC++ post-billing fee"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"IC++ fee charged after billing.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] b68:["$","tr","tr-16",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Fee refund"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Reversal of a previously charged fee.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] b69:["$","tr","tr-17",{"children":[["$","td","td-0",{"children":["$","code","code-0",{"children":"Unrecognised transaction"}],"className":"eowryt7","ref":"$undefined"}],["$","td","td-1",{"children":"Transaction that does not map to a more specific category.","className":"eowryt7","ref":"$undefined"}]],"className":"eowryt5","ref":"$undefined"}] b5b:["$","article",null,{"className":"_8qmzte0","children":[["$","p","p-0",{"children":"Each Merchant API request must contain an authorization header in the following format:"}],"\n","$Lb6a","\n",["$","p","p-1",{"children":"To use this API, you need to generate API keys from your Revolut Business account. The Secret key is used in the authorization header for all server calls, while the Public key is provided with payment methods at checkout."}],"\n",["$","div","inlinealert-0",{"data-type":"info","className":"_25vm6y0","children":[["$","div",null,{"className":"_25vm6y1","children":["$","$L4c",null,{"name":"ExclamationMarkOutline","color":"var(--rui-color-accent)","inline":true}]}],null,["$","div",null,{"className":"_25vm6y3","children":["$","p","p-0",{"children":["For detailed instructions on generating your API keys, see: ",["$","a","a-0",{"href":"https://developer.revolut.com/docs/guides/merchant/get-started#generate-api-keys","target":"_blank","rel":"noreferrer","children":"Generate API keys"}],"."]}]}]]}]]}] b6b:T2275,
transaction_id,order_id,original_order_id,started_date,updated_date,completed_date,payment_created_date,payment_captured_date,type,state,description,merchant_order_ext_ref,customer_id,amount,currency,settlement_amount,settlement_currency,payment_method,fee_amount,fee_currency,processing_fee_amount,processing_fee_currency,browser_url,location_id
67f66fa6-200c-aaef-8708-cb78366f8a30,67f66f41-3022-a623-827e-e0616c0d04e7,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-09T13:01:26.288638Z,2025-04-10T13:02:09.843018Z,2025-04-10T13:02:09.837719Z,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837719Z,SETTLEMENT,COMPLETED,Summer hat,ORD-2025-0042,,100.00,GBP,99.00,GBP,CARD,1.00,GBP,1.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,
67f66fb7-300d-bbff-9819-dc89477a9b41,67f67052-4133-b734-938f-f1727d1e15f8,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-10T09:10:00.000000Z,2025-04-10T09:12:00.000000Z,2025-04-10T09:12:00.000000Z,,,REFUND,COMPLETED,Refund for Summer hat,ORD-2025-0042-R1,,25.00,GBP,-25.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,
67f66fc8-411e-cc10-a92a-ed9a588b0c52,67f67063-5244-c845-a49a-a2838e2f26a9,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-11T08:30:00.000000Z,2025-04-11T08:45:00.000000Z,2025-04-11T08:45:00.000000Z,,,CHARGEBACK,COMPLETED,Chargeback for Summer hat,ORD-2025-0042-CB1,,75.00,GBP,-75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,
67f66fd9-522f-dd21-ba3b-feab699a1d63,67f67074-6355-d956-b50a-a3949f3a37a0,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-15T10:00:00.000000Z,2025-04-15T10:05:00.000000Z,2025-04-15T10:05:00.000000Z,,,CHARGEBACK_REVERSAL,COMPLETED,Chargeback reversal for Summer hat,ORD-2025-0042-CBR1,,75.00,GBP,75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,
b5d:["$","div","200-text/csv-settlement_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b6b"}}]}]],"$Lb6c"]}] b6d:Tca5,
transaction_id,order_id,payment_created_date,payment_captured_date,payment_method,amount,currency,state,updated_date
649ae37f-99ca-a7db-a4fb-5924af14ad7c,649ae35c-2558-adea-bf98-3a7156a764e7,2023-06-28T13:20:46.07498Z,2023-06-28T13:30:46.07498Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.07498Z
649ae3de-e945-af9f-98c8-1d6172e350b5,649ae3ab-3998-ab2b-ad95-41b48346be69,2023-06-28T13:22:46.075569Z,2023-06-28T13:30:46.075569Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.075569Z
649ae48b-37f6-a097-9cb0-4fc2a89d9e5a,649ae479-d7e8-a139-993b-bf75865c5059,2023-06-28T13:35:46.084289Z,2023-06-28T13:38:46.084289Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:38:46.084289Z
b5e:["$","div","200-text/csv-custom_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b6d"}}]}]],"$Lb6e"]}] b6f:T7af,transaction_id,order_id,original_order_id,started_date,updated_date,completed_date,payment_created_date,payment_captured_date,type,state,description,merchant_order_ext_ref,customer_id,amount,currency,settlement_amount,settlement_currency,payment_method,fee_amount,fee_currency,processing_fee_amount,processing_fee_currency,browser_url,location_id 67f66fa6-200c-aaef-8708-cb78366f8a30,67f66f41-3022-a623-827e-e0616c0d04e7,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-09T13:01:26.288638Z,2025-04-10T13:02:09.843018Z,2025-04-10T13:02:09.837719Z,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837719Z,SETTLEMENT,COMPLETED,Summer hat,ORD-2025-0042,,100.00,GBP,99.00,GBP,CARD,1.00,GBP,1.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fb7-300d-bbff-9819-dc89477a9b41,67f67052-4133-b734-938f-f1727d1e15f8,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-10T09:10:00.000000Z,2025-04-10T09:12:00.000000Z,2025-04-10T09:12:00.000000Z,,,REFUND,COMPLETED,Refund for Summer hat,ORD-2025-0042-R1,,25.00,GBP,-25.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fc8-411e-cc10-a92a-ed9a588b0c52,67f67063-5244-c845-a49a-a2838e2f26a9,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-11T08:30:00.000000Z,2025-04-11T08:45:00.000000Z,2025-04-11T08:45:00.000000Z,,,CHARGEBACK,COMPLETED,Chargeback for Summer hat,ORD-2025-0042-CB1,,75.00,GBP,-75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4, 67f66fd9-522f-dd21-ba3b-feab699a1d63,67f67074-6355-d956-b50a-a3949f3a37a0,67f66f41-3022-a623-827e-e0616c0d04e7,2025-04-15T10:00:00.000000Z,2025-04-15T10:05:00.000000Z,2025-04-15T10:05:00.000000Z,,,CHARGEBACK_REVERSAL,COMPLETED,Chargeback reversal for Summer hat,ORD-2025-0042-CBR1,,75.00,GBP,75.00,GBP,CARD,0.00,GBP,0.00,GBP,https://sandbox-checkout.revolut.com/payment-link/1ae44a1c-3ea8-47ac-b736-7d7d4c992bb4,b6c:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$b6f"}]}] b6e:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"transaction_id,order_id,payment_created_date,payment_captured_date,payment_method,amount,currency,state,updated_date\n649ae37f-99ca-a7db-a4fb-5924af14ad7c,649ae35c-2558-adea-bf98-3a7156a764e7,2023-06-28T13:20:46.07498Z,2023-06-28T13:30:46.07498Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.07498Z\n649ae3de-e945-af9f-98c8-1d6172e350b5,649ae3ab-3998-ab2b-ad95-41b48346be69,2023-06-28T13:22:46.075569Z,2023-06-28T13:30:46.075569Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:30:46.075569Z\n649ae48b-37f6-a097-9cb0-4fc2a89d9e5a,649ae479-d7e8-a139-993b-bf75865c5059,2023-06-28T13:35:46.084289Z,2023-06-28T13:38:46.084289Z,PAY_WITH_REVOLUT,0.05,GBP,COMPLETED,2023-06-28T13:38:46.084289Z"}]}] b70:T1bfa,
payment_id,type,description,original_payment_id,order_id,state,reason,amount,currency,surcharge_amount,tip_amount,refunded_amount,created_date,captured_date,merchant_order_ext_ref,payment_method,location_id,customer_id,customer_card_number,customer_card_country,customer_card_brand,customer_card_type,customer_card_category,customer_email,fee_amount,fee_currency
67f66fa6-7e98-ae73-9570-50583cec116d,PAYMENT,Payment from customer,,67f66f41-3022-a623-827e-e0616c0d04e7,COMPLETED,,1.00,GBP,,0.00,0.00,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837Z,ORD-2025-0042,CARD,,cust-0001-0000-0000-000000000001,528143******4148,GB,VISA,DEBIT,consumer,customer@example.com,0.01,GBP
6807b0a5-a367-afbf-b31f-353730b788b5,PAYMENT,Payment from customer,,6807b09c-c62a-a656-818e-f071ef67ee36,DECLINED,,10.01,GBP,,0.00,0.00,2025-04-22T15:07:17.352Z,,,PAY_WITH_REVOLUT,,,,,,,,customer@example.com,,
67efa316-db8a-aec6-8eb4-46e47b6ebdc4,PAYMENT,Payment from customer,,67efa305-be19-a456-a6a2-154b218ac386,FAILED,INSUFFICIENT_FUNDS,0.57,USD,,0.00,0.00,2025-04-04T09:15:02.13Z,,,CARD,,,222300******9399,GB,VISA,DEBIT,consumer,customer@example.com,,
b60:["$","div","200-text/csv-payments_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b70"}}]}]],"$Lb71"]}] b72:T1b7c,
created_date,completed_date,payout_affected_date,affected_payout_amount,transaction_id,order_id,dispute_id,merchant_order_reference,type,related_icpp_charge_id,transaction_amount,transaction_currency,billing_amount,billing_currency,state,original_transaction_id,original_transaction_amount,original_transaction_currency,original_order_id,original_order_channel,original_merchant_order_reference,fee_amount,fee_currency,settlement_amount,settlement_currency,location_id,location_name,submerchant_id,payout_transfer_reference,payout_total_amount,payout_date
2025-03-25T14:34:05.708899Z,2025-03-26T14:34:38.06903Z,2025-03-26T14:34:38.06903Z,true,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,67e2be76-89c5-ae4f-9103-a152ae6f0584,,ORD-2025-0042,Settlement,,0.57,USD,0.57,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,0.57,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z
2025-03-25T15:38:45.162946Z,2025-03-26T15:39:58.03824Z,2025-03-26T15:39:58.03824Z,true,67e2ce05-1a16-abeb-b05b-5059073bcdaa,67e2ce00-6665-a52b-9f10-368f886054d7,a81bba54-e3f9-450f-aa50-7aea8e4e5b9a,ORD-2025-0042-CB1,Customer dispute - withdrawal,,-0.40,USD,-0.40,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,-0.40,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z
b62:["$","div","200-text/csv-payout_statement_report",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b72"}}]}]],"$Lb73"]}] b74:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
b63:["$","div","400-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b74"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] b75:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
b64:["$","div","401-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b75"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] b76:T44d,
{
  "code": "string",
  "message": "string",
  "timestamp": 123
}
b65:["$","div","404-application/json-default",{"className":"wzy01m0 _18b50nc0 y9a0do3","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"$b76"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"{\n \"code\": \"string\",\n \"message\": \"string\",\n \"timestamp\": 123\n}"}]}]]}] b77:T468,payment_id,type,description,original_payment_id,order_id,state,reason,amount,currency,surcharge_amount,tip_amount,refunded_amount,created_date,captured_date,merchant_order_ext_ref,payment_method,location_id,customer_id,customer_card_number,customer_card_country,customer_card_brand,customer_card_type,customer_card_category,customer_email,fee_amount,fee_currency 67f66fa6-7e98-ae73-9570-50583cec116d,PAYMENT,Payment from customer,,67f66f41-3022-a623-827e-e0616c0d04e7,COMPLETED,,1.00,GBP,,0.00,0.00,2025-04-09T13:01:26.186Z,2025-04-10T13:02:09.837Z,ORD-2025-0042,CARD,,cust-0001-0000-0000-000000000001,528143******4148,GB,VISA,DEBIT,consumer,customer@example.com,0.01,GBP 6807b0a5-a367-afbf-b31f-353730b788b5,PAYMENT,Payment from customer,,6807b09c-c62a-a656-818e-f071ef67ee36,DECLINED,,10.01,GBP,,0.00,0.00,2025-04-22T15:07:17.352Z,,,PAY_WITH_REVOLUT,,,,,,,,customer@example.com,, 67efa316-db8a-aec6-8eb4-46e47b6ebdc4,PAYMENT,Payment from customer,,67efa305-be19-a456-a6a2-154b218ac386,FAILED,INSUFFICIENT_FUNDS,0.57,USD,,0.00,0.00,2025-04-04T09:15:02.13Z,,,CARD,,,222300******9399,GB,VISA,DEBIT,consumer,customer@example.com,,b71:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$b77"}]}] b78:T5f7,created_date,completed_date,payout_affected_date,affected_payout_amount,transaction_id,order_id,dispute_id,merchant_order_reference,type,related_icpp_charge_id,transaction_amount,transaction_currency,billing_amount,billing_currency,state,original_transaction_id,original_transaction_amount,original_transaction_currency,original_order_id,original_order_channel,original_merchant_order_reference,fee_amount,fee_currency,settlement_amount,settlement_currency,location_id,location_name,submerchant_id,payout_transfer_reference,payout_total_amount,payout_date 2025-03-25T14:34:05.708899Z,2025-03-26T14:34:38.06903Z,2025-03-26T14:34:38.06903Z,true,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,67e2be76-89c5-ae4f-9103-a152ae6f0584,,ORD-2025-0042,Settlement,,0.57,USD,0.57,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,0.57,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Z 2025-03-25T15:38:45.162946Z,2025-03-26T15:39:58.03824Z,2025-03-26T15:39:58.03824Z,true,67e2ce05-1a16-abeb-b05b-5059073bcdaa,67e2ce00-6665-a52b-9f10-368f886054d7,a81bba54-e3f9-450f-aa50-7aea8e4e5b9a,ORD-2025-0042-CB1,Customer dispute - withdrawal,,-0.40,USD,-0.40,USD,COMPLETED,67e2bedd-0e79-a8ea-ac4c-e9fd13693286,0.57,USD,67e2be76-89c5-ae4f-9103-a152ae6f0584,API,ORD-2025-0042,0.00,USD,-0.40,USD,4a0f98a6-0f61-4e85-9ef0-7e5d0cb92ef0,Store London,,Revolut USD payout 2025-03-26 MerchantName,0.17,2025-03-26T15:00:00Zb73:["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"$b78"}]}] b6a:["$","div","CodeBlock-0",{"className":"wzy01m0 _18b50nc0","children":[["$undefined",["$","$L4f",null,{"className":"_18b50nc3","defaultWrap":false,"children":["$","div",null,{"className":"_18b50nc4","dangerouslySetInnerHTML":{"__html":"
'Authorization: Bearer <yourSecretApiKey>'
"}}]}]],["$","div",null,{"className":"wzy01m1","children":["$","$L50",null,{"code":"'Authorization: Bearer '\n"}]}]]}]