{"templateId":"markdown","versions":[{"version":"20240701","label":"2024-07-01 (Latest)","link":"/products/apms/klarna","default":true,"active":true,"folderId":"c6e104b6"}],"sharedDataIds":{"sidebar":"sidebar-products/apms/sidebars.yaml","current-catalog-info":"current-catalog-info-/products/apms/openapi","api-docs-products/apms/@20240701/openapi.yaml":"api-docs-products/apms/@20240701/openapi.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","img","tabs","tab","openapi-code-sample","json-schema","code-snippet"]},"custom_product":"APMs","type":"markdown"},"seo":{"title":"Klarna","description":"Worldpay for Developers - docs, code examples, resources and tools. Everything you need to build your omnichannel payment solution.","siteUrl":"https://docs.worldpay-bsh.securedataplatform.co.uk","image":"/access/assets/worldpay-logo-light.21b7daf79984773a9fcd7d4fbcb07ae5289dfffd6023c4c3dca720c7058e53dc.33f780a6.svg","keywords":"documentation, api, openapi, sdks, developer, payments, json, payouts, 3ds","jsonLd":{"@context":"https://schema.org","@type":"Organization","url":"https://docs.worldpay-bsh.securedataplatform.co.uk/access","name":"Worldpay"},"meta":[{"name":"google-site-verification","content":"zjziIKaP3ImsqsfhYnEBnq1R85UabiSwl7HTXuwtZuo"},{"name":"doc_product","content":"Access"},{"name":"doc_category","content":"Documentation"}],"llmstxt":{"hide":false,"sections":[{"title":"Payments API","description":"Payment orchestration API combining fraud assessment, 3ds authentication, SCA exemptions, Worldpay Token creation and a card or wallet based payment.","includeFiles":["products/payments/@20240601/**/*"]},{"title":"Payment Queries API","description":"Querying your payments data, based on a variety of parameters.","includeFiles":["products/payment-queries/@v1/**/*"]},{"title":"Card BIN Data API","description":"Provides detailed information about a card.","includeFiles":["products/card-bin/@v1/**/*"]},{"title":"3DS Authentication API","description":"Request 3DS authentication to protect against fraud, be SCA compliant and to shift liability using this standalone API.","includeFiles":["products/3ds/@v3/**/*"]},{"title":"FraudSight API","description":"Request a risk assessment and receive a response with an outcome (e.g. lowRisk) using this standalone API.","includeFiles":["products/fraudsight/@v1/**/*"]},{"title":"Checkout SDK","description":"Integrate using our clientside SDKs for both web and native devices. Benefit from SAQ-A/PCI-SSF compliance.","includeFiles":["products/checkout/web/@v2/**/*","products/checkout/ios/@v4/**/*","products/checkout/android/@v4/**/*","products/checkout/react-native/@v3/**/*","products/checkout/flutter/@v1/**/*"]},{"title":"Tokens API","description":"Minimizes the exposure of sensitive card details and increases the security of your customer's card details.","includeFiles":["products/tokens/@v3/**/*"]},{"title":"Card Payments API","description":"Request a card payment using this standalone API, requires separate requests for 3DS, Fraud assessment etc.","includeFiles":["products/card-payments/@v7/**/*"]},{"title":"Card Verifications API","description":"Verify your customer's card to maximize your authentication rates.","includeFiles":["products/card-verifications/@v6/**/*"]},{"title":"Account Payouts API","description":"Send funds to your customer's bank accounts and search for payouts using parameters.","includeFiles":["products/account-payouts/@20250101/**/*"]},{"title":"APMs","description":"Pay using eWallets, bank transfers, direct debits, local card schemes, Postpay and eInvoice/ Buy Now Pay Later.","includeFiles":["products/apms/@20240701/**/*"]},{"title":"Balance API","description":"Request your account details for a single account or all accounts under an entity.","includeFiles":["products/balance/@20250101/**/*"]},{"title":"Card Payouts API","description":"Send funds to your customer's cards.","includeFiles":["products/card-payouts/@v4/**/*"]},{"title":"Events (Webhooks)","description":"Receive status updates from Access Worldpay by setting up a webhook.","includeFiles":["products/events/@v1/**/*"]},{"title":"FX API","description":"Manage Foreign Exchange (FX) on your payments.","includeFiles":["products/fx/@v1/**/*"]},{"title":"Hosted Payment Pages (HPP) API","description":"Our low-code option to take payments securely at the lowest PCI compliance level - SAQ A.","includeFiles":["products/hosted-payment-pages/@v1/**/*"]},{"title":"Money Transfers API","description":"Money Transfer OCTs (Original Credit Transaction) allow funds to be pushed to an eligible card in 30 minutes or less.","includeFiles":["products/money-transfers/@v1/**/*"]},{"title":"Parties API","description":"Create parties, manage your payout instruments and beneficial owners and carry out identity verification checks.","includeFiles":["products/parties/@20250101/**/*"]},{"title":"SCA Exemptions API","description":"Maximize a frictionless checkout experience by using issuer data insights to apply exemptions.","includeFiles":["products/sca-exemptions/@v1/**/*"]},{"title":"Split Payments API","description":"Divide funds from a single payment amongst yourself and your parties/sellers.","includeFiles":["products/split-payments/@20250625/**/*"]},{"title":"Statements API","description":"Retrieve your account statement and see individual entries for all credits and debits.","includeFiles":["products/statements/@20250101/**/*"]},{"title":"Transfers API","description":"Transfer funds from source account to target account.","includeFiles":["products/transfers/@20250101/**/*"]},{"title":"Verified Tokens API","description":"Verified Tokens ensures that your customer's payment details are valid and CIT compliant when creating a token.","includeFiles":["products/verified-tokens/@v3/**/*"]}]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"klarna","__idx":0},"children":["Klarna"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Klarna is a \"Buy Now, Pay Later\" payment method allowing your customer to pay in installments."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Make yourself familiar with our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/reference/api-principles"},"children":["API principles"]}," to ensure a resilient integration."]}]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["Product overview"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"capabilities","__idx":1},"children":["Capabilities"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Klarna allows your customer to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["defer payment by 30 days"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["spread the cost over a period of up to 36 months (with financing)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["pay the full amount immediately with \"Pay Now\" for card, local domestic or local bank transfer payments"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["spread the cost over three (four in some markets) equal interest-free installments"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Klarna manages the relationship and collection of future installment payments directly with your customer. You receive full funding upfront and are protected from the risk of unpaid installments."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For recurring integrations, please see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/apms/klarna-recurring"},"children":["Klarna (recurring)"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"brand-and-marketing-guidelines","__idx":2},"children":["Brand and marketing guidelines"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the link for the latest guidelines from ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.klarna.com/marketing/solutions/grab-and-go/"},"children":["Klarna"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"feature-summary","__idx":3},"children":["Feature summary"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Payment type"},"children":["Payment type"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Countries"},"children":["Countries"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Recurring"},"children":["Recurring"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Reversals"},"children":["Reversals"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Partial reversals"},"children":["Partial reversals"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Disputes"},"children":["Disputes"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Auth only"},"children":["Auth only"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"center","data-label":"Auth and settlement (sale)"},"children":["Auth and settlement (sale)"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["Pay Now, Pay in Parts, Pay Later, Financing"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["CH, CZ, DK, AT, BE, FI, FR, DE, GR, IE, IT, NL, PT, SK, ES, GB, NO, PL, AU, CA, HU, MX, NZ, RO, SE, US"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["❌"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[" Refund - yes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[" Cancel - yes"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Partial refund - yes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Partial cancel - no"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["Handled directly via Klarna. We deduct the funds if the dispute is lost."]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["✅"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"center"},"children":["✅"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Klarna sets transaction limits, which are regularly updated and dependent upon the merchant, payment option, and your customer's purchase history."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["As a general guideline, limits typically range from 0,00 EUR to 10.000,00 EUR."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Refunds are completed through Klarna, arriving in your customer's account within 365 days. You can submit multiple partial refunds for one payment."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"acceptance-currencies","__idx":4},"children":["Acceptance currencies"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Currency"},"children":["Currency"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Currency codes"},"children":["Currency codes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Czech Koruna"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CZK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Danish Krone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DKK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Euro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EUR"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Norwegian Krone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NOK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Polish Złoty"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PLN"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Pound Sterling"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GBP"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Swedish Krona"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SEK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Swiss Franc"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CHF"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"customer-journey-and-integration-options","__idx":5},"children":["Customer journey and integration options"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"full-page-redirect---apms-api-only","__idx":6},"children":["Full page redirect - APMs API only"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The simplest integration option."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your customer is redirected from your site to Klarna’s hosted payment page to complete their payment."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You create a Klarna order using our APMs API, which returns a URL for the Klarna payment page that you redirect your customer to. After the transaction is completed, your customer is automatically redirected back to your site. You receive the payment confirmation asynchronously from us."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["On completion of the payment journey, your customer receives a payment receipt from Klarna."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/access/assets/klarna-redirect-flow.9d3ec99f71e15617897e84a0250b9eaf2255f9cbcb309467e88cd842efa9200a.05bf66c6.png","alt":"Klarna redirect flow","framed":false,"withLightbox":true,"width":"1200px"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer chooses Klarna as their payment method. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["They log into Klarna (or create an account).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer chooses how they would like to pay (options differ per market).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["They set their funding source. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer confirms the payment. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Klarna confirms that the payment is successful and returns your customer to your checkout confirmation page. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"klarna-web-sdk-presentation","__idx":7},"children":["Klarna Web SDK presentation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Requires additional development effort but provides an optimized customer experience, as the entire payment process takes place within your site using Klarna’s Web SDK."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With this fully integrated checkout flow, you can dynamically display Klarna’s branding, payment descriptors, and personalized messaging on your checkout pages."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can present the Klarna payment page in a pop-up box over your website, allowing your customer to complete payment without a full-page redirect (although this is still possible if you wish). ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Klarna provides two options for integration: ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Option 1: Klarna Web SDK + our APMs API"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","You embed Klarna’s Web SDK directly into your checkout page. You create the request with our APMs API and the response is used to initialize the Klarna SDK, which then displays the payment interface on your site. You receive the payment confirmation asynchronously from us.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Option 2: Klarna Web SDK + Klarna API/webhooks + our APMs API"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ","You embed Klarna’s Web SDK in your checkout page and integrate with Klarna’s API and webhooks. You create and manage the Klarna session directly with Klarna through server-side calls. As a final step, you provide the “Klarna Network Session Token” as the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["providerToken"]}," to the APMs API to complete the payment."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/access/assets/klarna-websdk-flow.ba7ced206d5a2026cfceedff8c5a308937024ac2fa58cffd6ade4831881755f9.05bf66c6.png","alt":"Klarna Web SDK presentation","framed":false,"withLightbox":true,"width":"1200px"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer reviews all available payment methods on your checkout page. Klarna is presented with dynamic text. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["They select Klarna and are presented with an illustration of a possible split. The Pay button is dynamically updated to “Pay with Klarna”.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer logs into Klarna (or creates an account). They choose how they would like to pay (options differ per market).",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your customer sets their funding source. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["They confirm the payment. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Klarna confirms that the payment is successful and returns your customer to your checkout confirmation page. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supplementary-purchase-data","__idx":8},"children":["Supplementary purchase data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Depending on your business type or the goods you sell, you may need to provide additional transaction details, such as order line items, subscription information, or mandatory industry-specific attributes."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Providing “supplementary purchase data” with Klarna offers greater context for each transaction, increasing their underwriting accuracy and strengthening their fraud assessment. The more information you share, the better your customers' experience and the greater the chances of increased acceptance rates and enhanced fraud prevention."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You have the option to provide supplementary purchase data in two formats:",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Option 1:"]}," You can pass specific data fields individually as structured elements within the payment request. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Option 2:"]}," Klarna data - You can include all necessary information encapsulated as a JSON string within the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["passthroughData"]}," field, using Klarna’s ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.klarna.com/klarna-network-distribution/api/klarna-network-data-schema/"},"children":["“Klarna Network Data for Acquiring Partners\" schema"]},".",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also combine the two options, e.g. sending “line items” as structured data while using “Klarna network data” for specific details like event information."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can see examples of the types of industry-specific transaction details that we support below. The \"Guest\" example demonstrates option 1, while the industry-specific examples demonstrate the use of Klarna data outlined in option 2."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Please note that if the same object is provided in both formats, Klarna prioritizes using “Klarna network data” for risk assessment purposes, while the structured “line items” are displayed to your customer during the Klarna purchase flow."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"get-started","__idx":9},"children":["Get started"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/apms/openapi"},"children":["API reference"]}," and set your headers."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"request","__idx":10},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-request","__idx":11},"children":["Example request"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 2110,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"providerToken\": \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"order\": {\n      \"items\": [\n        {\n          \"productCode\": \"DH12-HK\",\n          \"name\": \"Panaphonics DH12-HK & Accessories\",\n          \"quantity\": 1,\n          \"unitCost\": 12000,\n          \"totalTaxAmount\": 12000,\n          \"totalAmount\": 2000,\n          \"productUrl\": \"http://www.merchanturl.com/products/f2ytrdmn\",\n          \"imageUrl\": \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n        },\n        {\n          \"productCode\": \"PPSD256\",\n          \"name\": \"Panaphonics SD Card 256GB\",\n          \"quantity\": 2,\n          \"unitCost\": 2400,\n          \"totalTaxAmount\": 800,\n          \"totalAmount\": 4800,\n          \"productUrl\": \"http://www.merchanturl.com/products/f2a8d7e34\",\n          \"imageUrl\": \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n        }\n      ]\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 2110,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"providerToken\": \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"order\": {\n        \"items\": [\n          {\n            \"productCode\": \"DH12-HK\",\n            \"name\": \"Panaphonics DH12-HK & Accessories\",\n            \"quantity\": 1,\n            \"unitCost\": 12000,\n            \"totalTaxAmount\": 12000,\n            \"totalAmount\": 2000,\n            \"productUrl\": \"http://www.merchanturl.com/products/f2ytrdmn\",\n            \"imageUrl\": \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n          },\n          {\n            \"productCode\": \"PPSD256\",\n            \"name\": \"Panaphonics SD Card 256GB\",\n            \"quantity\": 2,\n            \"unitCost\": 2400,\n            \"totalTaxAmount\": 800,\n            \"totalAmount\": 4800,\n            \"productUrl\": \"http://www.merchanturl.com/products/f2a8d7e34\",\n            \"imageUrl\": \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n          }\n        ]\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 2110,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"providerToken\": \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"order\": {\n      \"items\": [\n        {\n          \"productCode\": \"DH12-HK\",\n          \"name\": \"Panaphonics DH12-HK & Accessories\",\n          \"quantity\": 1,\n          \"unitCost\": 12000,\n          \"totalTaxAmount\": 12000,\n          \"totalAmount\": 2000,\n          \"productUrl\": \"http://www.merchanturl.com/products/f2ytrdmn\",\n          \"imageUrl\": \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n        },\n        {\n          \"productCode\": \"PPSD256\",\n          \"name\": \"Panaphonics SD Card 256GB\",\n          \"quantity\": 2,\n          \"unitCost\": 2400,\n          \"totalTaxAmount\": 800,\n          \"totalAmount\": 4800,\n          \"productUrl\": \"http://www.merchanturl.com/products/f2a8d7e34\",\n          \"imageUrl\": \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n        }\n      ]\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 2110,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"providerToken\\\": \\\"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"order\\\": {\"\n      , \"   \\\"items\\\": [\"\n      , \"    {\"\n      , \"     \\\"productCode\\\": \\\"DH12-HK\\\",\"\n      , \"     \\\"name\\\": \\\"Panaphonics DH12-HK & Accessories\\\",\"\n      , \"     \\\"quantity\\\": 1,\"\n      , \"     \\\"unitCost\\\": 12000,\"\n      , \"     \\\"totalTaxAmount\\\": 12000,\"\n      , \"     \\\"totalAmount\\\": 2000,\"\n      , \"     \\\"productUrl\\\": \\\"http://www.merchanturl.com/products/f2ytrdmn\\\",\"\n      , \"     \\\"imageUrl\\\": \\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\"\"\n      , \"    },\"\n      , \"    {\"\n      , \"     \\\"productCode\\\": \\\"PPSD256\\\",\"\n      , \"     \\\"name\\\": \\\"Panaphonics SD Card 256GB\\\",\"\n      , \"     \\\"quantity\\\": 2,\"\n      , \"     \\\"unitCost\\\": 2400,\"\n      , \"     \\\"totalTaxAmount\\\": 800,\"\n      , \"     \\\"totalAmount\\\": 4800,\"\n      , \"     \\\"productUrl\\\": \\\"http://www.merchanturl.com/products/f2a8d7e34\\\",\"\n      , \"     \\\"imageUrl\\\": \\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\"\"\n      , \"    }\"\n      , \"   ]\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 2110,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          providerToken: 'krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          },\n          order: {\n            items: [\n              {\n                productCode: 'DH12-HK',\n                name: 'Panaphonics DH12-HK & Accessories',\n                quantity: 1,\n                unitCost: 12000,\n                totalTaxAmount: 12000,\n                totalAmount: 2000,\n                productUrl: 'http://www.merchanturl.com/products/f2ytrdmn',\n                imageUrl: 'http://www.merchanturl.com/products/f2ytrdmn_small.jpg'\n              },\n              {\n                productCode: 'PPSD256',\n                name: 'Panaphonics SD Card 256GB',\n                quantity: 2,\n                unitCost: 2400,\n                totalTaxAmount: 800,\n                totalAmount: 4800,\n                productUrl: 'http://www.merchanturl.com/products/f2a8d7e34',\n                imageUrl: 'http://www.merchanturl.com/products/f2a8d7e34_small.jpg'\n              }\n            ]\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 2110,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"providerToken\": \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"order\": {\n        \"items\": [\n          {\n            \"productCode\": \"DH12-HK\",\n            \"name\": \"Panaphonics DH12-HK & Accessories\",\n            \"quantity\": 1,\n            \"unitCost\": 12000,\n            \"totalTaxAmount\": 12000,\n            \"totalAmount\": 2000,\n            \"productUrl\": \"http://www.merchanturl.com/products/f2ytrdmn\",\n            \"imageUrl\": \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n          },\n          {\n            \"productCode\": \"PPSD256\",\n            \"name\": \"Panaphonics SD Card 256GB\",\n            \"quantity\": 2,\n            \"unitCost\": 2400,\n            \"totalTaxAmount\": 800,\n            \"totalAmount\": 4800,\n            \"productUrl\": \"http://www.merchanturl.com/products/f2a8d7e34\",\n            \"imageUrl\": \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n          }\n        ]\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 2110,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"providerToken\" => \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"order\" => array(\n      \"items\" => array(\n        array(\n          \"productCode\" => \"DH12-HK\",\n          \"name\" => \"Panaphonics DH12-HK & Accessories\",\n          \"quantity\" => 1,\n          \"unitCost\" => 12000,\n          \"totalTaxAmount\" => 12000,\n          \"totalAmount\" => 2000,\n          \"productUrl\" => \"http://www.merchanturl.com/products/f2ytrdmn\",\n          \"imageUrl\" => \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n        ),\n        array(\n          \"productCode\" => \"PPSD256\",\n          \"name\" => \"Panaphonics SD Card 256GB\",\n          \"quantity\" => 2,\n          \"unitCost\" => 2400,\n          \"totalTaxAmount\" => 800,\n          \"totalAmount\" => 4800,\n          \"productUrl\" => \"http://www.merchanturl.com/products/f2a8d7e34\",\n          \"imageUrl\" => \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n        )\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 2110,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    providerToken: 'krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    },\n    order: {\n      items: [\n        {\n          productCode: 'DH12-HK',\n          name: 'Panaphonics DH12-HK & Accessories',\n          quantity: 1,\n          unitCost: 12000,\n          totalTaxAmount: 12000,\n          totalAmount: 2000,\n          productUrl: 'http://www.merchanturl.com/products/f2ytrdmn',\n          imageUrl: 'http://www.merchanturl.com/products/f2ytrdmn_small.jpg'\n        },\n        {\n          productCode: 'PPSD256',\n          name: 'Panaphonics SD Card 256GB',\n          quantity: 2,\n          unitCost: 2400,\n          totalTaxAmount: 800,\n          totalAmount: 4800,\n          productUrl: 'http://www.merchanturl.com/products/f2a8d7e34',\n          imageUrl: 'http://www.merchanturl.com/products/f2a8d7e34_small.jpg'\n        }\n      ]\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"2110\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        providerToken = \"krn:network:eu1:live:session-token:eyJhbGciOiJFUzI1NiIsImtpZCI6ImNkYzM2MDFhLTBlODQtNDdjZi05ZGMwLWJjNzAxZjNkNDE2OCJ9.ewogICJwYXltZW50X3JlcXVlc3RzIiA6IFsgewogICAgImlkIiA6ICJrcm46cGF5bWVudDpldTE6cmVxdWVzdDo1MGI3NDhkZS05ZDIwLTljZWEtODVhMi1hNjZiNzFhY2JiMDMiLAogICAgInN0YXRlIiA6ICJDT01QTEVURUQiLAogICAgImFtb3VudCIgOiAxNTAwLAogICAgImN1cnJlbmN5IiA6ICJFVVIiLAogICAgImxhc3RfbW9kaWZpZWRfYXQiIDogIjIwMjYtMDQtMTNUMDc6NDk6MTYuNDYxMDQ1NTcxWiIKICB9IF0sCiAgImV4cCIgOiAxNzc2MDcwMTg2Cn0.q1xa-C_yToTpsaHyxBNfg0acp0zg6w_zpMiJOeVC3xnomwVA3SFtF0Y8Pw9J6mEBVUCOeEOh7674IzoBIvtbjQ\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        },\n        order = new {\n          items = new[] {\n            new {\n              productCode = \"DH12-HK\",\n              name = \"Panaphonics DH12-HK & Accessories\",\n              quantity = \"1\",\n              unitCost = \"12000\",\n              totalTaxAmount = \"12000\",\n              totalAmount = \"2000\",\n              productUrl = \"http://www.merchanturl.com/products/f2ytrdmn\",\n              imageUrl = \"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"\n            },\n            new {\n              productCode = \"PPSD256\",\n              name = \"Panaphonics SD Card 256GB\",\n              quantity = \"2\",\n              unitCost = \"2400\",\n              totalTaxAmount = \"800\",\n              totalAmount = \"4800\",\n              productUrl = \"http://www.merchanturl.com/products/f2a8d7e34\",\n              imageUrl = \"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"\n            }\n          },\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest - retail","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest - retail","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 16800,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"ORDER-DH12-0001\\\",\\\"line_items\\\":[{\\\"name\\\":\\\"Panaphonics DH12-HK & Accessories\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12000,\\\"unit_price\\\":12000,\\\"total_tax_amount\\\":1833,\\\"reference\\\":\\\"DH12-HK\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\"},{\\\"name\\\":\\\"Panaphonics SD Card 256GB\\\",\\\"quantity\\\":2,\\\"total_amount\\\":4800,\\\"unit_price\\\":2400,\\\"total_tax_amount\\\":800,\\\"reference\\\":\\\"PPSD256\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\"}],\\\"shipping\\\":[{\\\"shipping_reference\\\":\\\"shipment-recipient-e8fdc4f5\\\",\\\"recipient\\\":{\\\"attention\\\":\\\"Herr\\\",\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},\\\"address\\\":{\\\"street_address\\\":\\\"Neue Schönhauser Str. 2\\\",\\\"postal_code\\\":\\\"10178\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"shipping_option\\\":{\\\"shipping_type\\\":\\\"TO_DOOR\\\",\\\"shipping_type_attributes\\\":[\\\"SIGNATURE_REQUIRED\\\",\\\"EXPRESS\\\",\\\"TRACKED\\\"],\\\"shipping_carrier\\\":\\\"DHL\\\"}}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 16800,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"ORDER-DH12-0001\\\",\\\"line_items\\\":[{\\\"name\\\":\\\"Panaphonics DH12-HK & Accessories\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12000,\\\"unit_price\\\":12000,\\\"total_tax_amount\\\":1833,\\\"reference\\\":\\\"DH12-HK\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\"},{\\\"name\\\":\\\"Panaphonics SD Card 256GB\\\",\\\"quantity\\\":2,\\\"total_amount\\\":4800,\\\"unit_price\\\":2400,\\\"total_tax_amount\\\":800,\\\"reference\\\":\\\"PPSD256\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\"}],\\\"shipping\\\":[{\\\"shipping_reference\\\":\\\"shipment-recipient-e8fdc4f5\\\",\\\"recipient\\\":{\\\"attention\\\":\\\"Herr\\\",\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},\\\"address\\\":{\\\"street_address\\\":\\\"Neue Schönhauser Str. 2\\\",\\\"postal_code\\\":\\\"10178\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"shipping_option\\\":{\\\"shipping_type\\\":\\\"TO_DOOR\\\",\\\"shipping_type_attributes\\\":[\\\"SIGNATURE_REQUIRED\\\",\\\"EXPRESS\\\",\\\"TRACKED\\\"],\\\"shipping_carrier\\\":\\\"DHL\\\"}}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 16800,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"ORDER-DH12-0001\\\",\\\"line_items\\\":[{\\\"name\\\":\\\"Panaphonics DH12-HK & Accessories\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12000,\\\"unit_price\\\":12000,\\\"total_tax_amount\\\":1833,\\\"reference\\\":\\\"DH12-HK\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\"},{\\\"name\\\":\\\"Panaphonics SD Card 256GB\\\",\\\"quantity\\\":2,\\\"total_amount\\\":4800,\\\"unit_price\\\":2400,\\\"total_tax_amount\\\":800,\\\"reference\\\":\\\"PPSD256\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\"}],\\\"shipping\\\":[{\\\"shipping_reference\\\":\\\"shipment-recipient-e8fdc4f5\\\",\\\"recipient\\\":{\\\"attention\\\":\\\"Herr\\\",\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},\\\"address\\\":{\\\"street_address\\\":\\\"Neue Schönhauser Str. 2\\\",\\\"postal_code\\\":\\\"10178\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"shipping_option\\\":{\\\"shipping_type\\\":\\\"TO_DOOR\\\",\\\"shipping_type_attributes\\\":[\\\"SIGNATURE_REQUIRED\\\",\\\"EXPRESS\\\",\\\"TRACKED\\\"],\\\"shipping_carrier\\\":\\\"DHL\\\"}}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 16800,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"passthroughData\\\": \\\"{\\\\\"content_type\\\\\":\\\\\"vnd.klarna.interoperability-data.v3+json\\\\\",\\\\\"content\\\\\":{\\\\\"operation\\\\\":\\\\\"payment_request\\\\\",\\\\\"request\\\\\":{\\\\\"supplementary_purchase_data\\\\\":{\\\\\"purchase_reference\\\\\":\\\\\"ORDER-DH12-0001\\\\\",\\\\\"line_items\\\\\":[{\\\\\"name\\\\\":\\\\\"Panaphonics DH12-HK & Accessories\\\\\",\\\\\"quantity\\\\\":1,\\\\\"total_amount\\\\\":12000,\\\\\"unit_price\\\\\":12000,\\\\\"total_tax_amount\\\\\":1833,\\\\\"reference\\\\\":\\\\\"DH12-HK\\\\\",\\\\\"product_url\\\\\":\\\\\"http://www.merchanturl.com/products/f2ytrdmn\\\\\",\\\\\"image_url\\\\\":\\\\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\\\"},{\\\\\"name\\\\\":\\\\\"Panaphonics SD Card 256GB\\\\\",\\\\\"quantity\\\\\":2,\\\\\"total_amount\\\\\":4800,\\\\\"unit_price\\\\\":2400,\\\\\"total_tax_amount\\\\\":800,\\\\\"reference\\\\\":\\\\\"PPSD256\\\\\",\\\\\"product_url\\\\\":\\\\\"http://www.merchanturl.com/products/f2a8d7e34\\\\\",\\\\\"image_url\\\\\":\\\\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\\\"}],\\\\\"shipping\\\\\":[{\\\\\"shipping_reference\\\\\":\\\\\"shipment-recipient-e8fdc4f5\\\\\",\\\\\"recipient\\\\\":{\\\\\"attention\\\\\":\\\\\"Herr\\\\\",\\\\\"given_name\\\\\":\\\\\"James\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty@example.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491761234567\\\\\"},\\\\\"address\\\\\":{\\\\\"street_address\\\\\":\\\\\"Neue Schönhauser Str. 2\\\\\",\\\\\"postal_code\\\\\":\\\\\"10178\\\\\",\\\\\"city\\\\\":\\\\\"Berlin\\\\\",\\\\\"country\\\\\":\\\\\"DE\\\\\"},\\\\\"shipping_option\\\\\":{\\\\\"shipping_type\\\\\":\\\\\"TO_DOOR\\\\\",\\\\\"shipping_type_attributes\\\\\":[\\\\\"SIGNATURE_REQUIRED\\\\\",\\\\\"EXPRESS\\\\\",\\\\\"TRACKED\\\\\"],\\\\\"shipping_carrier\\\\\":\\\\\"DHL\\\\\"}}]}}}}\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 16800,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"ORDER-DH12-0001\",\"line_items\":[{\"name\":\"Panaphonics DH12-HK & Accessories\",\"quantity\":1,\"total_amount\":12000,\"unit_price\":12000,\"total_tax_amount\":1833,\"reference\":\"DH12-HK\",\"product_url\":\"http://www.merchanturl.com/products/f2ytrdmn\",\"image_url\":\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"},{\"name\":\"Panaphonics SD Card 256GB\",\"quantity\":2,\"total_amount\":4800,\"unit_price\":2400,\"total_tax_amount\":800,\"reference\":\"PPSD256\",\"product_url\":\"http://www.merchanturl.com/products/f2a8d7e34\",\"image_url\":\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"}],\"shipping\":[{\"shipping_reference\":\"shipment-recipient-e8fdc4f5\",\"recipient\":{\"attention\":\"Herr\",\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},\"address\":{\"street_address\":\"Neue Schönhauser Str. 2\",\"postal_code\":\"10178\",\"city\":\"Berlin\",\"country\":\"DE\"},\"shipping_option\":{\"shipping_type\":\"TO_DOOR\",\"shipping_type_attributes\":[\"SIGNATURE_REQUIRED\",\"EXPRESS\",\"TRACKED\"],\"shipping_carrier\":\"DHL\"}}]}}}}',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 16800,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"ORDER-DH12-0001\\\",\\\"line_items\\\":[{\\\"name\\\":\\\"Panaphonics DH12-HK & Accessories\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12000,\\\"unit_price\\\":12000,\\\"total_tax_amount\\\":1833,\\\"reference\\\":\\\"DH12-HK\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\\\"},{\\\"name\\\":\\\"Panaphonics SD Card 256GB\\\",\\\"quantity\\\":2,\\\"total_amount\\\":4800,\\\"unit_price\\\":2400,\\\"total_tax_amount\\\":800,\\\"reference\\\":\\\"PPSD256\\\",\\\"product_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34\\\",\\\"image_url\\\":\\\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\\\"}],\\\"shipping\\\":[{\\\"shipping_reference\\\":\\\"shipment-recipient-e8fdc4f5\\\",\\\"recipient\\\":{\\\"attention\\\":\\\"Herr\\\",\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},\\\"address\\\":{\\\"street_address\\\":\\\"Neue Schönhauser Str. 2\\\",\\\"postal_code\\\":\\\"10178\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"shipping_option\\\":{\\\"shipping_type\\\":\\\"TO_DOOR\\\",\\\"shipping_type_attributes\\\":[\\\"SIGNATURE_REQUIRED\\\",\\\"EXPRESS\\\",\\\"TRACKED\\\"],\\\"shipping_carrier\\\":\\\"DHL\\\"}}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 16800,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"passthroughData\" => \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"ORDER-DH12-0001\",\"line_items\":[{\"name\":\"Panaphonics DH12-HK & Accessories\",\"quantity\":1,\"total_amount\":12000,\"unit_price\":12000,\"total_tax_amount\":1833,\"reference\":\"DH12-HK\",\"product_url\":\"http://www.merchanturl.com/products/f2ytrdmn\",\"image_url\":\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"},{\"name\":\"Panaphonics SD Card 256GB\",\"quantity\":2,\"total_amount\":4800,\"unit_price\":2400,\"total_tax_amount\":800,\"reference\":\"PPSD256\",\"product_url\":\"http://www.merchanturl.com/products/f2a8d7e34\",\"image_url\":\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"}],\"shipping\":[{\"shipping_reference\":\"shipment-recipient-e8fdc4f5\",\"recipient\":{\"attention\":\"Herr\",\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},\"address\":{\"street_address\":\"Neue Schönhauser Str. 2\",\"postal_code\":\"10178\",\"city\":\"Berlin\",\"country\":\"DE\"},\"shipping_option\":{\"shipping_type\":\"TO_DOOR\",\"shipping_type_attributes\":[\"SIGNATURE_REQUIRED\",\"EXPRESS\",\"TRACKED\"],\"shipping_carrier\":\"DHL\"}}]}}}}\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 16800,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"ORDER-DH12-0001\",\"line_items\":[{\"name\":\"Panaphonics DH12-HK & Accessories\",\"quantity\":1,\"total_amount\":12000,\"unit_price\":12000,\"total_tax_amount\":1833,\"reference\":\"DH12-HK\",\"product_url\":\"http://www.merchanturl.com/products/f2ytrdmn\",\"image_url\":\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"},{\"name\":\"Panaphonics SD Card 256GB\",\"quantity\":2,\"total_amount\":4800,\"unit_price\":2400,\"total_tax_amount\":800,\"reference\":\"PPSD256\",\"product_url\":\"http://www.merchanturl.com/products/f2a8d7e34\",\"image_url\":\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"}],\"shipping\":[{\"shipping_reference\":\"shipment-recipient-e8fdc4f5\",\"recipient\":{\"attention\":\"Herr\",\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},\"address\":{\"street_address\":\"Neue Schönhauser Str. 2\",\"postal_code\":\"10178\",\"city\":\"Berlin\",\"country\":\"DE\"},\"shipping_option\":{\"shipping_type\":\"TO_DOOR\",\"shipping_type_attributes\":[\"SIGNATURE_REQUIRED\",\"EXPRESS\",\"TRACKED\"],\"shipping_carrier\":\"DHL\"}}]}}}}',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"16800\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        passthroughData = \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"ORDER-DH12-0001\",\"line_items\":[{\"name\":\"Panaphonics DH12-HK & Accessories\",\"quantity\":1,\"total_amount\":12000,\"unit_price\":12000,\"total_tax_amount\":1833,\"reference\":\"DH12-HK\",\"product_url\":\"http://www.merchanturl.com/products/f2ytrdmn\",\"image_url\":\"http://www.merchanturl.com/products/f2ytrdmn_small.jpg\"},{\"name\":\"Panaphonics SD Card 256GB\",\"quantity\":2,\"total_amount\":4800,\"unit_price\":2400,\"total_tax_amount\":800,\"reference\":\"PPSD256\",\"product_url\":\"http://www.merchanturl.com/products/f2a8d7e34\",\"image_url\":\"http://www.merchanturl.com/products/f2a8d7e34_small.jpg\"}],\"shipping\":[{\"shipping_reference\":\"shipment-recipient-e8fdc4f5\",\"recipient\":{\"attention\":\"Herr\",\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},\"address\":{\"street_address\":\"Neue Schönhauser Str. 2\",\"postal_code\":\"10178\",\"city\":\"Berlin\",\"country\":\"DE\"},\"shipping_option\":{\"shipping_type\":\"TO_DOOR\",\"shipping_type_attributes\":[\"SIGNATURE_REQUIRED\",\"EXPRESS\",\"TRACKED\"],\"shipping_carrier\":\"DHL\"}}]}}}}\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest - airline","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest - airline","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 24900,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"AIR\\\",\\\"pnr\\\":\\\"ABC123\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-03-15\\\",\\\"departure_time\\\":\\\"14:30\\\",\\\"arrival_date\\\":\\\"2026-03-15\\\",\\\"arrival_time\\\":\\\"17:45\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX1234\\\",\\\"departure_city\\\":\\\"AMS\\\",\\\"departure_airport\\\":\\\"Schiphol\\\",\\\"arrival_city\\\":\\\"FRA\\\",\\\"arrival_airport\\\":\\\"Frankfurt Airport\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"},{\\\"departure_date\\\":\\\"2026-03-22\\\",\\\"departure_time\\\":\\\"09:15\\\",\\\"arrival_date\\\":\\\"2026-03-22\\\",\\\"arrival_time\\\":\\\"10:30\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX4321\\\",\\\"departure_city\\\":\\\"FRA\\\",\\\"departure_airport\\\":\\\"Frankfurt Airport\\\",\\\"arrival_city\\\":\\\"AMS\\\",\\\"arrival_airport\\\":\\\"Schiphol\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Round-trip AMS-FRA Economy Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":24900,\\\"unit_price\\\":24900,\\\"total_tax_amount\\\":3975,\\\"reference\\\":\\\"ticket-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 24900,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"AIR\\\",\\\"pnr\\\":\\\"ABC123\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-03-15\\\",\\\"departure_time\\\":\\\"14:30\\\",\\\"arrival_date\\\":\\\"2026-03-15\\\",\\\"arrival_time\\\":\\\"17:45\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX1234\\\",\\\"departure_city\\\":\\\"AMS\\\",\\\"departure_airport\\\":\\\"Schiphol\\\",\\\"arrival_city\\\":\\\"FRA\\\",\\\"arrival_airport\\\":\\\"Frankfurt Airport\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"},{\\\"departure_date\\\":\\\"2026-03-22\\\",\\\"departure_time\\\":\\\"09:15\\\",\\\"arrival_date\\\":\\\"2026-03-22\\\",\\\"arrival_time\\\":\\\"10:30\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX4321\\\",\\\"departure_city\\\":\\\"FRA\\\",\\\"departure_airport\\\":\\\"Frankfurt Airport\\\",\\\"arrival_city\\\":\\\"AMS\\\",\\\"arrival_airport\\\":\\\"Schiphol\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Round-trip AMS-FRA Economy Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":24900,\\\"unit_price\\\":24900,\\\"total_tax_amount\\\":3975,\\\"reference\\\":\\\"ticket-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 24900,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"AIR\\\",\\\"pnr\\\":\\\"ABC123\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-03-15\\\",\\\"departure_time\\\":\\\"14:30\\\",\\\"arrival_date\\\":\\\"2026-03-15\\\",\\\"arrival_time\\\":\\\"17:45\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX1234\\\",\\\"departure_city\\\":\\\"AMS\\\",\\\"departure_airport\\\":\\\"Schiphol\\\",\\\"arrival_city\\\":\\\"FRA\\\",\\\"arrival_airport\\\":\\\"Frankfurt Airport\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"},{\\\"departure_date\\\":\\\"2026-03-22\\\",\\\"departure_time\\\":\\\"09:15\\\",\\\"arrival_date\\\":\\\"2026-03-22\\\",\\\"arrival_time\\\":\\\"10:30\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX4321\\\",\\\"departure_city\\\":\\\"FRA\\\",\\\"departure_airport\\\":\\\"Frankfurt Airport\\\",\\\"arrival_city\\\":\\\"AMS\\\",\\\"arrival_airport\\\":\\\"Schiphol\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Round-trip AMS-FRA Economy Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":24900,\\\"unit_price\\\":24900,\\\"total_tax_amount\\\":3975,\\\"reference\\\":\\\"ticket-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 24900,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"passthroughData\\\": \\\"{\\\\\"content_type\\\\\":\\\\\"vnd.klarna.interoperability-data.v3+json\\\\\",\\\\\"content\\\\\":{\\\\\"operation\\\\\":\\\\\"payment_request\\\\\",\\\\\"request\\\\\":{\\\\\"supplementary_purchase_data\\\\\":{\\\\\"travel_reservations\\\\\":[{\\\\\"travel_type\\\\\":\\\\\"AIR\\\\\",\\\\\"pnr\\\\\":\\\\\"ABC123\\\\\",\\\\\"itinerary_legs\\\\\":[{\\\\\"departure_date\\\\\":\\\\\"2026-03-15\\\\\",\\\\\"departure_time\\\\\":\\\\\"14:30\\\\\",\\\\\"arrival_date\\\\\":\\\\\"2026-03-15\\\\\",\\\\\"arrival_time\\\\\":\\\\\"17:45\\\\\",\\\\\"carrier_code\\\\\":\\\\\"XX\\\\\",\\\\\"carrier_name\\\\\":\\\\\"ExampleAir\\\\\",\\\\\"flight_number\\\\\":\\\\\"XX1234\\\\\",\\\\\"departure_city\\\\\":\\\\\"AMS\\\\\",\\\\\"departure_airport\\\\\":\\\\\"Schiphol\\\\\",\\\\\"arrival_city\\\\\":\\\\\"FRA\\\\\",\\\\\"arrival_airport\\\\\":\\\\\"Frankfurt Airport\\\\\",\\\\\"fare_class\\\\\":\\\\\"Y\\\\\",\\\\\"booking_class\\\\\":\\\\\"ECONOMY\\\\\"},{\\\\\"departure_date\\\\\":\\\\\"2026-03-22\\\\\",\\\\\"departure_time\\\\\":\\\\\"09:15\\\\\",\\\\\"arrival_date\\\\\":\\\\\"2026-03-22\\\\\",\\\\\"arrival_time\\\\\":\\\\\"10:30\\\\\",\\\\\"carrier_code\\\\\":\\\\\"XX\\\\\",\\\\\"carrier_name\\\\\":\\\\\"ExampleAir\\\\\",\\\\\"flight_number\\\\\":\\\\\"XX4321\\\\\",\\\\\"departure_city\\\\\":\\\\\"FRA\\\\\",\\\\\"departure_airport\\\\\":\\\\\"Frankfurt Airport\\\\\",\\\\\"arrival_city\\\\\":\\\\\"AMS\\\\\",\\\\\"arrival_airport\\\\\":\\\\\"Schiphol\\\\\",\\\\\"fare_class\\\\\":\\\\\"Y\\\\\",\\\\\"booking_class\\\\\":\\\\\"ECONOMY\\\\\"}],\\\\\"passengers\\\\\":[{\\\\\"given_name\\\\\":\\\\\"James\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty@example.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491761234567\\\\\",\\\\\"passenger_type\\\\\":\\\\\"ADULT\\\\\"}]}],\\\\\"line_items\\\\\":[{\\\\\"name\\\\\":\\\\\"Round-trip AMS-FRA Economy Class\\\\\",\\\\\"quantity\\\\\":1,\\\\\"total_amount\\\\\":24900,\\\\\"unit_price\\\\\":24900,\\\\\"total_tax_amount\\\\\":3975,\\\\\"reference\\\\\":\\\\\"ticket-001\\\\\"}]}}}}\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 24900,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"travel_reservations\":[{\"travel_type\":\"AIR\",\"pnr\":\"ABC123\",\"itinerary_legs\":[{\"departure_date\":\"2026-03-15\",\"departure_time\":\"14:30\",\"arrival_date\":\"2026-03-15\",\"arrival_time\":\"17:45\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX1234\",\"departure_city\":\"AMS\",\"departure_airport\":\"Schiphol\",\"arrival_city\":\"FRA\",\"arrival_airport\":\"Frankfurt Airport\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"},{\"departure_date\":\"2026-03-22\",\"departure_time\":\"09:15\",\"arrival_date\":\"2026-03-22\",\"arrival_time\":\"10:30\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX4321\",\"departure_city\":\"FRA\",\"departure_airport\":\"Frankfurt Airport\",\"arrival_city\":\"AMS\",\"arrival_airport\":\"Schiphol\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"Round-trip AMS-FRA Economy Class\",\"quantity\":1,\"total_amount\":24900,\"unit_price\":24900,\"total_tax_amount\":3975,\"reference\":\"ticket-001\"}]}}}}',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 24900,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"AIR\\\",\\\"pnr\\\":\\\"ABC123\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-03-15\\\",\\\"departure_time\\\":\\\"14:30\\\",\\\"arrival_date\\\":\\\"2026-03-15\\\",\\\"arrival_time\\\":\\\"17:45\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX1234\\\",\\\"departure_city\\\":\\\"AMS\\\",\\\"departure_airport\\\":\\\"Schiphol\\\",\\\"arrival_city\\\":\\\"FRA\\\",\\\"arrival_airport\\\":\\\"Frankfurt Airport\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"},{\\\"departure_date\\\":\\\"2026-03-22\\\",\\\"departure_time\\\":\\\"09:15\\\",\\\"arrival_date\\\":\\\"2026-03-22\\\",\\\"arrival_time\\\":\\\"10:30\\\",\\\"carrier_code\\\":\\\"XX\\\",\\\"carrier_name\\\":\\\"ExampleAir\\\",\\\"flight_number\\\":\\\"XX4321\\\",\\\"departure_city\\\":\\\"FRA\\\",\\\"departure_airport\\\":\\\"Frankfurt Airport\\\",\\\"arrival_city\\\":\\\"AMS\\\",\\\"arrival_airport\\\":\\\"Schiphol\\\",\\\"fare_class\\\":\\\"Y\\\",\\\"booking_class\\\":\\\"ECONOMY\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Round-trip AMS-FRA Economy Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":24900,\\\"unit_price\\\":24900,\\\"total_tax_amount\\\":3975,\\\"reference\\\":\\\"ticket-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 24900,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"passthroughData\" => \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"travel_reservations\":[{\"travel_type\":\"AIR\",\"pnr\":\"ABC123\",\"itinerary_legs\":[{\"departure_date\":\"2026-03-15\",\"departure_time\":\"14:30\",\"arrival_date\":\"2026-03-15\",\"arrival_time\":\"17:45\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX1234\",\"departure_city\":\"AMS\",\"departure_airport\":\"Schiphol\",\"arrival_city\":\"FRA\",\"arrival_airport\":\"Frankfurt Airport\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"},{\"departure_date\":\"2026-03-22\",\"departure_time\":\"09:15\",\"arrival_date\":\"2026-03-22\",\"arrival_time\":\"10:30\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX4321\",\"departure_city\":\"FRA\",\"departure_airport\":\"Frankfurt Airport\",\"arrival_city\":\"AMS\",\"arrival_airport\":\"Schiphol\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"Round-trip AMS-FRA Economy Class\",\"quantity\":1,\"total_amount\":24900,\"unit_price\":24900,\"total_tax_amount\":3975,\"reference\":\"ticket-001\"}]}}}}\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 24900,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"travel_reservations\":[{\"travel_type\":\"AIR\",\"pnr\":\"ABC123\",\"itinerary_legs\":[{\"departure_date\":\"2026-03-15\",\"departure_time\":\"14:30\",\"arrival_date\":\"2026-03-15\",\"arrival_time\":\"17:45\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX1234\",\"departure_city\":\"AMS\",\"departure_airport\":\"Schiphol\",\"arrival_city\":\"FRA\",\"arrival_airport\":\"Frankfurt Airport\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"},{\"departure_date\":\"2026-03-22\",\"departure_time\":\"09:15\",\"arrival_date\":\"2026-03-22\",\"arrival_time\":\"10:30\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX4321\",\"departure_city\":\"FRA\",\"departure_airport\":\"Frankfurt Airport\",\"arrival_city\":\"AMS\",\"arrival_airport\":\"Schiphol\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"Round-trip AMS-FRA Economy Class\",\"quantity\":1,\"total_amount\":24900,\"unit_price\":24900,\"total_tax_amount\":3975,\"reference\":\"ticket-001\"}]}}}}',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"24900\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        passthroughData = \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"travel_reservations\":[{\"travel_type\":\"AIR\",\"pnr\":\"ABC123\",\"itinerary_legs\":[{\"departure_date\":\"2026-03-15\",\"departure_time\":\"14:30\",\"arrival_date\":\"2026-03-15\",\"arrival_time\":\"17:45\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX1234\",\"departure_city\":\"AMS\",\"departure_airport\":\"Schiphol\",\"arrival_city\":\"FRA\",\"arrival_airport\":\"Frankfurt Airport\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"},{\"departure_date\":\"2026-03-22\",\"departure_time\":\"09:15\",\"arrival_date\":\"2026-03-22\",\"arrival_time\":\"10:30\",\"carrier_code\":\"XX\",\"carrier_name\":\"ExampleAir\",\"flight_number\":\"XX4321\",\"departure_city\":\"FRA\",\"departure_airport\":\"Frankfurt Airport\",\"arrival_city\":\"AMS\",\"arrival_airport\":\"Schiphol\",\"fare_class\":\"Y\",\"booking_class\":\"ECONOMY\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"Round-trip AMS-FRA Economy Class\",\"quantity\":1,\"total_amount\":24900,\"unit_price\":24900,\"total_tax_amount\":3975,\"reference\":\"ticket-001\"}]}}}}\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest - hotel","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest - hotel","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 71560,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"lodging_reservations\\\":[{\\\"hotel_name\\\":\\\"Grand Hotel Berlin\\\",\\\"hotel_address\\\":{\\\"street_address\\\":\\\"Friedrichstraße 123\\\",\\\"postal_code\\\":\\\"10117\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"check_in_date\\\":\\\"2026-04-10\\\",\\\"check_out_date\\\":\\\"2026-04-14\\\",\\\"number_of_nights\\\":4,\\\"number_of_rooms\\\":1,\\\"number_of_guests\\\":2,\\\"room_rate_per_night\\\":15900,\\\"room_type\\\":\\\"Deluxe Double Room\\\",\\\"guest\\\":{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"}}],\\\"line_items\\\":[{\\\"name\\\":\\\"Deluxe Double Room - 4 nights\\\",\\\"quantity\\\":4,\\\"total_amount\\\":63600,\\\"unit_price\\\":15900,\\\"total_tax_amount\\\":10151,\\\"reference\\\":\\\"room-booking-001\\\"},{\\\"name\\\":\\\"Breakfast Package\\\",\\\"quantity\\\":4,\\\"total_amount\\\":7960,\\\"unit_price\\\":1990,\\\"total_tax_amount\\\":1271,\\\"reference\\\":\\\"breakfast-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 71560,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"lodging_reservations\\\":[{\\\"hotel_name\\\":\\\"Grand Hotel Berlin\\\",\\\"hotel_address\\\":{\\\"street_address\\\":\\\"Friedrichstraße 123\\\",\\\"postal_code\\\":\\\"10117\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"check_in_date\\\":\\\"2026-04-10\\\",\\\"check_out_date\\\":\\\"2026-04-14\\\",\\\"number_of_nights\\\":4,\\\"number_of_rooms\\\":1,\\\"number_of_guests\\\":2,\\\"room_rate_per_night\\\":15900,\\\"room_type\\\":\\\"Deluxe Double Room\\\",\\\"guest\\\":{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"}}],\\\"line_items\\\":[{\\\"name\\\":\\\"Deluxe Double Room - 4 nights\\\",\\\"quantity\\\":4,\\\"total_amount\\\":63600,\\\"unit_price\\\":15900,\\\"total_tax_amount\\\":10151,\\\"reference\\\":\\\"room-booking-001\\\"},{\\\"name\\\":\\\"Breakfast Package\\\",\\\"quantity\\\":4,\\\"total_amount\\\":7960,\\\"unit_price\\\":1990,\\\"total_tax_amount\\\":1271,\\\"reference\\\":\\\"breakfast-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 71560,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"lodging_reservations\\\":[{\\\"hotel_name\\\":\\\"Grand Hotel Berlin\\\",\\\"hotel_address\\\":{\\\"street_address\\\":\\\"Friedrichstraße 123\\\",\\\"postal_code\\\":\\\"10117\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"check_in_date\\\":\\\"2026-04-10\\\",\\\"check_out_date\\\":\\\"2026-04-14\\\",\\\"number_of_nights\\\":4,\\\"number_of_rooms\\\":1,\\\"number_of_guests\\\":2,\\\"room_rate_per_night\\\":15900,\\\"room_type\\\":\\\"Deluxe Double Room\\\",\\\"guest\\\":{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"}}],\\\"line_items\\\":[{\\\"name\\\":\\\"Deluxe Double Room - 4 nights\\\",\\\"quantity\\\":4,\\\"total_amount\\\":63600,\\\"unit_price\\\":15900,\\\"total_tax_amount\\\":10151,\\\"reference\\\":\\\"room-booking-001\\\"},{\\\"name\\\":\\\"Breakfast Package\\\",\\\"quantity\\\":4,\\\"total_amount\\\":7960,\\\"unit_price\\\":1990,\\\"total_tax_amount\\\":1271,\\\"reference\\\":\\\"breakfast-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 71560,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"passthroughData\\\": \\\"{\\\\\"content_type\\\\\":\\\\\"vnd.klarna.interoperability-data.v3+json\\\\\",\\\\\"content\\\\\":{\\\\\"operation\\\\\":\\\\\"payment_request\\\\\",\\\\\"request\\\\\":{\\\\\"supplementary_purchase_data\\\\\":{\\\\\"lodging_reservations\\\\\":[{\\\\\"hotel_name\\\\\":\\\\\"Grand Hotel Berlin\\\\\",\\\\\"hotel_address\\\\\":{\\\\\"street_address\\\\\":\\\\\"Friedrichstraße 123\\\\\",\\\\\"postal_code\\\\\":\\\\\"10117\\\\\",\\\\\"city\\\\\":\\\\\"Berlin\\\\\",\\\\\"country\\\\\":\\\\\"DE\\\\\"},\\\\\"check_in_date\\\\\":\\\\\"2026-04-10\\\\\",\\\\\"check_out_date\\\\\":\\\\\"2026-04-14\\\\\",\\\\\"number_of_nights\\\\\":4,\\\\\"number_of_rooms\\\\\":1,\\\\\"number_of_guests\\\\\":2,\\\\\"room_rate_per_night\\\\\":15900,\\\\\"room_type\\\\\":\\\\\"Deluxe Double Room\\\\\",\\\\\"guest\\\\\":{\\\\\"given_name\\\\\":\\\\\"James\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty@example.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491761234567\\\\\"}}],\\\\\"line_items\\\\\":[{\\\\\"name\\\\\":\\\\\"Deluxe Double Room - 4 nights\\\\\",\\\\\"quantity\\\\\":4,\\\\\"total_amount\\\\\":63600,\\\\\"unit_price\\\\\":15900,\\\\\"total_tax_amount\\\\\":10151,\\\\\"reference\\\\\":\\\\\"room-booking-001\\\\\"},{\\\\\"name\\\\\":\\\\\"Breakfast Package\\\\\",\\\\\"quantity\\\\\":4,\\\\\"total_amount\\\\\":7960,\\\\\"unit_price\\\\\":1990,\\\\\"total_tax_amount\\\\\":1271,\\\\\"reference\\\\\":\\\\\"breakfast-001\\\\\"}]}}}}\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 71560,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"lodging_reservations\":[{\"hotel_name\":\"Grand Hotel Berlin\",\"hotel_address\":{\"street_address\":\"Friedrichstraße 123\",\"postal_code\":\"10117\",\"city\":\"Berlin\",\"country\":\"DE\"},\"check_in_date\":\"2026-04-10\",\"check_out_date\":\"2026-04-14\",\"number_of_nights\":4,\"number_of_rooms\":1,\"number_of_guests\":2,\"room_rate_per_night\":15900,\"room_type\":\"Deluxe Double Room\",\"guest\":{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"}}],\"line_items\":[{\"name\":\"Deluxe Double Room - 4 nights\",\"quantity\":4,\"total_amount\":63600,\"unit_price\":15900,\"total_tax_amount\":10151,\"reference\":\"room-booking-001\"},{\"name\":\"Breakfast Package\",\"quantity\":4,\"total_amount\":7960,\"unit_price\":1990,\"total_tax_amount\":1271,\"reference\":\"breakfast-001\"}]}}}}',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 71560,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"lodging_reservations\\\":[{\\\"hotel_name\\\":\\\"Grand Hotel Berlin\\\",\\\"hotel_address\\\":{\\\"street_address\\\":\\\"Friedrichstraße 123\\\",\\\"postal_code\\\":\\\"10117\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"check_in_date\\\":\\\"2026-04-10\\\",\\\"check_out_date\\\":\\\"2026-04-14\\\",\\\"number_of_nights\\\":4,\\\"number_of_rooms\\\":1,\\\"number_of_guests\\\":2,\\\"room_rate_per_night\\\":15900,\\\"room_type\\\":\\\"Deluxe Double Room\\\",\\\"guest\\\":{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"}}],\\\"line_items\\\":[{\\\"name\\\":\\\"Deluxe Double Room - 4 nights\\\",\\\"quantity\\\":4,\\\"total_amount\\\":63600,\\\"unit_price\\\":15900,\\\"total_tax_amount\\\":10151,\\\"reference\\\":\\\"room-booking-001\\\"},{\\\"name\\\":\\\"Breakfast Package\\\",\\\"quantity\\\":4,\\\"total_amount\\\":7960,\\\"unit_price\\\":1990,\\\"total_tax_amount\\\":1271,\\\"reference\\\":\\\"breakfast-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 71560,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"passthroughData\" => \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"lodging_reservations\":[{\"hotel_name\":\"Grand Hotel Berlin\",\"hotel_address\":{\"street_address\":\"Friedrichstraße 123\",\"postal_code\":\"10117\",\"city\":\"Berlin\",\"country\":\"DE\"},\"check_in_date\":\"2026-04-10\",\"check_out_date\":\"2026-04-14\",\"number_of_nights\":4,\"number_of_rooms\":1,\"number_of_guests\":2,\"room_rate_per_night\":15900,\"room_type\":\"Deluxe Double Room\",\"guest\":{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"}}],\"line_items\":[{\"name\":\"Deluxe Double Room - 4 nights\",\"quantity\":4,\"total_amount\":63600,\"unit_price\":15900,\"total_tax_amount\":10151,\"reference\":\"room-booking-001\"},{\"name\":\"Breakfast Package\",\"quantity\":4,\"total_amount\":7960,\"unit_price\":1990,\"total_tax_amount\":1271,\"reference\":\"breakfast-001\"}]}}}}\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 71560,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"lodging_reservations\":[{\"hotel_name\":\"Grand Hotel Berlin\",\"hotel_address\":{\"street_address\":\"Friedrichstraße 123\",\"postal_code\":\"10117\",\"city\":\"Berlin\",\"country\":\"DE\"},\"check_in_date\":\"2026-04-10\",\"check_out_date\":\"2026-04-14\",\"number_of_nights\":4,\"number_of_rooms\":1,\"number_of_guests\":2,\"room_rate_per_night\":15900,\"room_type\":\"Deluxe Double Room\",\"guest\":{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"}}],\"line_items\":[{\"name\":\"Deluxe Double Room - 4 nights\",\"quantity\":4,\"total_amount\":63600,\"unit_price\":15900,\"total_tax_amount\":10151,\"reference\":\"room-booking-001\"},{\"name\":\"Breakfast Package\",\"quantity\":4,\"total_amount\":7960,\"unit_price\":1990,\"total_tax_amount\":1271,\"reference\":\"breakfast-001\"}]}}}}',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"71560\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        passthroughData = \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"lodging_reservations\":[{\"hotel_name\":\"Grand Hotel Berlin\",\"hotel_address\":{\"street_address\":\"Friedrichstraße 123\",\"postal_code\":\"10117\",\"city\":\"Berlin\",\"country\":\"DE\"},\"check_in_date\":\"2026-04-10\",\"check_out_date\":\"2026-04-14\",\"number_of_nights\":4,\"number_of_rooms\":1,\"number_of_guests\":2,\"room_rate_per_night\":15900,\"room_type\":\"Deluxe Double Room\",\"guest\":{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"}}],\"line_items\":[{\"name\":\"Deluxe Double Room - 4 nights\",\"quantity\":4,\"total_amount\":63600,\"unit_price\":15900,\"total_tax_amount\":10151,\"reference\":\"room-booking-001\"},{\"name\":\"Breakfast Package\",\"quantity\":4,\"total_amount\":7960,\"unit_price\":1990,\"total_tax_amount\":1271,\"reference\":\"breakfast-001\"}]}}}}\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest - event","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest - event","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 39800,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"event_reservations\\\":[{\\\"event_name\\\":\\\"Coldplay - Music of the Spheres World Tour\\\",\\\"event_type\\\":\\\"CONCERT\\\",\\\"event_date\\\":\\\"2026-07-18\\\",\\\"event_time\\\":\\\"20:00\\\",\\\"venue_name\\\":\\\"Olympiastadion Berlin\\\",\\\"venue_address\\\":{\\\"street_address\\\":\\\"Olympischer Platz 3\\\",\\\"postal_code\\\":\\\"14053\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"ticket_category\\\":\\\"Standing - Golden Circle\\\",\\\"number_of_tickets\\\":2,\\\"attendees\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},{\\\"given_name\\\":\\\"Joan\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty2@example.de\\\",\\\"phone\\\":\\\"+491761234568\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Coldplay Concert - Golden Circle Standing\\\",\\\"quantity\\\":2,\\\"total_amount\\\":39800,\\\"unit_price\\\":19900,\\\"total_tax_amount\\\":6352,\\\"reference\\\":\\\"ticket-golden-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 39800,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"event_reservations\\\":[{\\\"event_name\\\":\\\"Coldplay - Music of the Spheres World Tour\\\",\\\"event_type\\\":\\\"CONCERT\\\",\\\"event_date\\\":\\\"2026-07-18\\\",\\\"event_time\\\":\\\"20:00\\\",\\\"venue_name\\\":\\\"Olympiastadion Berlin\\\",\\\"venue_address\\\":{\\\"street_address\\\":\\\"Olympischer Platz 3\\\",\\\"postal_code\\\":\\\"14053\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"ticket_category\\\":\\\"Standing - Golden Circle\\\",\\\"number_of_tickets\\\":2,\\\"attendees\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},{\\\"given_name\\\":\\\"Joan\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty2@example.de\\\",\\\"phone\\\":\\\"+491761234568\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Coldplay Concert - Golden Circle Standing\\\",\\\"quantity\\\":2,\\\"total_amount\\\":39800,\\\"unit_price\\\":19900,\\\"total_tax_amount\\\":6352,\\\"reference\\\":\\\"ticket-golden-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 39800,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"event_reservations\\\":[{\\\"event_name\\\":\\\"Coldplay - Music of the Spheres World Tour\\\",\\\"event_type\\\":\\\"CONCERT\\\",\\\"event_date\\\":\\\"2026-07-18\\\",\\\"event_time\\\":\\\"20:00\\\",\\\"venue_name\\\":\\\"Olympiastadion Berlin\\\",\\\"venue_address\\\":{\\\"street_address\\\":\\\"Olympischer Platz 3\\\",\\\"postal_code\\\":\\\"14053\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"ticket_category\\\":\\\"Standing - Golden Circle\\\",\\\"number_of_tickets\\\":2,\\\"attendees\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},{\\\"given_name\\\":\\\"Joan\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty2@example.de\\\",\\\"phone\\\":\\\"+491761234568\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Coldplay Concert - Golden Circle Standing\\\",\\\"quantity\\\":2,\\\"total_amount\\\":39800,\\\"unit_price\\\":19900,\\\"total_tax_amount\\\":6352,\\\"reference\\\":\\\"ticket-golden-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 39800,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"passthroughData\\\": \\\"{\\\\\"content_type\\\\\":\\\\\"vnd.klarna.interoperability-data.v3+json\\\\\",\\\\\"content\\\\\":{\\\\\"operation\\\\\":\\\\\"payment_request\\\\\",\\\\\"request\\\\\":{\\\\\"supplementary_purchase_data\\\\\":{\\\\\"event_reservations\\\\\":[{\\\\\"event_name\\\\\":\\\\\"Coldplay - Music of the Spheres World Tour\\\\\",\\\\\"event_type\\\\\":\\\\\"CONCERT\\\\\",\\\\\"event_date\\\\\":\\\\\"2026-07-18\\\\\",\\\\\"event_time\\\\\":\\\\\"20:00\\\\\",\\\\\"venue_name\\\\\":\\\\\"Olympiastadion Berlin\\\\\",\\\\\"venue_address\\\\\":{\\\\\"street_address\\\\\":\\\\\"Olympischer Platz 3\\\\\",\\\\\"postal_code\\\\\":\\\\\"14053\\\\\",\\\\\"city\\\\\":\\\\\"Berlin\\\\\",\\\\\"country\\\\\":\\\\\"DE\\\\\"},\\\\\"ticket_category\\\\\":\\\\\"Standing - Golden Circle\\\\\",\\\\\"number_of_tickets\\\\\":2,\\\\\"attendees\\\\\":[{\\\\\"given_name\\\\\":\\\\\"James\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty@example.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491761234567\\\\\"},{\\\\\"given_name\\\\\":\\\\\"Joan\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty2@example.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491761234568\\\\\"}]}],\\\\\"line_items\\\\\":[{\\\\\"name\\\\\":\\\\\"Coldplay Concert - Golden Circle Standing\\\\\",\\\\\"quantity\\\\\":2,\\\\\"total_amount\\\\\":39800,\\\\\"unit_price\\\\\":19900,\\\\\"total_tax_amount\\\\\":6352,\\\\\"reference\\\\\":\\\\\"ticket-golden-001\\\\\"}]}}}}\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 39800,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"event_reservations\":[{\"event_name\":\"Coldplay - Music of the Spheres World Tour\",\"event_type\":\"CONCERT\",\"event_date\":\"2026-07-18\",\"event_time\":\"20:00\",\"venue_name\":\"Olympiastadion Berlin\",\"venue_address\":{\"street_address\":\"Olympischer Platz 3\",\"postal_code\":\"14053\",\"city\":\"Berlin\",\"country\":\"DE\"},\"ticket_category\":\"Standing - Golden Circle\",\"number_of_tickets\":2,\"attendees\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},{\"given_name\":\"Joan\",\"family_name\":\"Moriarty\",\"email\":\"moriarty2@example.de\",\"phone\":\"+491761234568\"}]}],\"line_items\":[{\"name\":\"Coldplay Concert - Golden Circle Standing\",\"quantity\":2,\"total_amount\":39800,\"unit_price\":19900,\"total_tax_amount\":6352,\"reference\":\"ticket-golden-001\"}]}}}}',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 39800,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"event_reservations\\\":[{\\\"event_name\\\":\\\"Coldplay - Music of the Spheres World Tour\\\",\\\"event_type\\\":\\\"CONCERT\\\",\\\"event_date\\\":\\\"2026-07-18\\\",\\\"event_time\\\":\\\"20:00\\\",\\\"venue_name\\\":\\\"Olympiastadion Berlin\\\",\\\"venue_address\\\":{\\\"street_address\\\":\\\"Olympischer Platz 3\\\",\\\"postal_code\\\":\\\"14053\\\",\\\"city\\\":\\\"Berlin\\\",\\\"country\\\":\\\"DE\\\"},\\\"ticket_category\\\":\\\"Standing - Golden Circle\\\",\\\"number_of_tickets\\\":2,\\\"attendees\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@example.de\\\",\\\"phone\\\":\\\"+491761234567\\\"},{\\\"given_name\\\":\\\"Joan\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty2@example.de\\\",\\\"phone\\\":\\\"+491761234568\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"Coldplay Concert - Golden Circle Standing\\\",\\\"quantity\\\":2,\\\"total_amount\\\":39800,\\\"unit_price\\\":19900,\\\"total_tax_amount\\\":6352,\\\"reference\\\":\\\"ticket-golden-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 39800,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"passthroughData\" => \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"event_reservations\":[{\"event_name\":\"Coldplay - Music of the Spheres World Tour\",\"event_type\":\"CONCERT\",\"event_date\":\"2026-07-18\",\"event_time\":\"20:00\",\"venue_name\":\"Olympiastadion Berlin\",\"venue_address\":{\"street_address\":\"Olympischer Platz 3\",\"postal_code\":\"14053\",\"city\":\"Berlin\",\"country\":\"DE\"},\"ticket_category\":\"Standing - Golden Circle\",\"number_of_tickets\":2,\"attendees\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},{\"given_name\":\"Joan\",\"family_name\":\"Moriarty\",\"email\":\"moriarty2@example.de\",\"phone\":\"+491761234568\"}]}],\"line_items\":[{\"name\":\"Coldplay Concert - Golden Circle Standing\",\"quantity\":2,\"total_amount\":39800,\"unit_price\":19900,\"total_tax_amount\":6352,\"reference\":\"ticket-golden-001\"}]}}}}\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 39800,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"event_reservations\":[{\"event_name\":\"Coldplay - Music of the Spheres World Tour\",\"event_type\":\"CONCERT\",\"event_date\":\"2026-07-18\",\"event_time\":\"20:00\",\"venue_name\":\"Olympiastadion Berlin\",\"venue_address\":{\"street_address\":\"Olympischer Platz 3\",\"postal_code\":\"14053\",\"city\":\"Berlin\",\"country\":\"DE\"},\"ticket_category\":\"Standing - Golden Circle\",\"number_of_tickets\":2,\"attendees\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},{\"given_name\":\"Joan\",\"family_name\":\"Moriarty\",\"email\":\"moriarty2@example.de\",\"phone\":\"+491761234568\"}]}],\"line_items\":[{\"name\":\"Coldplay Concert - Golden Circle Standing\",\"quantity\":2,\"total_amount\":39800,\"unit_price\":19900,\"total_tax_amount\":6352,\"reference\":\"ticket-golden-001\"}]}}}}',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"39800\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        passthroughData = \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"event_reservations\":[{\"event_name\":\"Coldplay - Music of the Spheres World Tour\",\"event_type\":\"CONCERT\",\"event_date\":\"2026-07-18\",\"event_time\":\"20:00\",\"venue_name\":\"Olympiastadion Berlin\",\"venue_address\":{\"street_address\":\"Olympischer Platz 3\",\"postal_code\":\"14053\",\"city\":\"Berlin\",\"country\":\"DE\"},\"ticket_category\":\"Standing - Golden Circle\",\"number_of_tickets\":2,\"attendees\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@example.de\",\"phone\":\"+491761234567\"},{\"given_name\":\"Joan\",\"family_name\":\"Moriarty\",\"email\":\"moriarty2@example.de\",\"phone\":\"+491761234568\"}]}],\"line_items\":[{\"name\":\"Coldplay Concert - Golden Circle Standing\",\"quantity\":2,\"total_amount\":39800,\"unit_price\":19900,\"total_tax_amount\":6352,\"reference\":\"ticket-golden-001\"}]}}}}\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest - train","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/apms/@20240701/openapi.yaml","operationId":"paymentV2","exampleKey":"Klarna guest - train","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 12900,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"TRAIN-BKG-3321098\\\",\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"RAIL\\\",\\\"pnr\\\":\\\"RAIL789456\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-05-20\\\",\\\"departure_time\\\":\\\"08:47\\\",\\\"arrival_date\\\":\\\"2026-05-20\\\",\\\"arrival_time\\\":\\\"12:52\\\",\\\"carrier_code\\\":\\\"DB\\\",\\\"carrier_name\\\":\\\"Deutsche Bahn\\\",\\\"departure_city\\\":\\\"Amsterdam\\\",\\\"departure_station\\\":\\\"Amsterdam Centraal\\\",\\\"arrival_city\\\":\\\"Frankfurt\\\",\\\"arrival_station\\\":\\\"Frankfurt (Main) Hbf\\\",\\\"booking_class\\\":\\\"FIRST_CLASS\\\",\\\"seat_number\\\":\\\"62\\\",\\\"coach_number\\\":\\\"24\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@email.de\\\",\\\"phone\\\":\\\"+491765554433\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12900,\\\"unit_price\\\":12900,\\\"total_tax_amount\\\":2060,\\\"reference\\\":\\\"train-ticket-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": true\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": true,\n        \"tracked\": true,\n        \"identification\": true\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments \\\n  -H 'Content-Type: application/json' \\\n  -H 'WP-Api-Version: 2024-07-01' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 12900,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"TRAIN-BKG-3321098\\\",\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"RAIL\\\",\\\"pnr\\\":\\\"RAIL789456\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-05-20\\\",\\\"departure_time\\\":\\\"08:47\\\",\\\"arrival_date\\\":\\\"2026-05-20\\\",\\\"arrival_time\\\":\\\"12:52\\\",\\\"carrier_code\\\":\\\"DB\\\",\\\"carrier_name\\\":\\\"Deutsche Bahn\\\",\\\"departure_city\\\":\\\"Amsterdam\\\",\\\"departure_station\\\":\\\"Amsterdam Centraal\\\",\\\"arrival_city\\\":\\\"Frankfurt\\\",\\\"arrival_station\\\":\\\"Frankfurt (Main) Hbf\\\",\\\"booking_class\\\":\\\"FIRST_CLASS\\\",\\\"seat_number\\\":\\\"62\\\",\\\"coach_number\\\":\\\"24\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@email.de\\\",\\\"phone\\\":\\\"+491765554433\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12900,\\\"unit_price\\\":12900,\\\"total_tax_amount\\\":2060,\\\"reference\\\":\\\"train-ticket-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n\npayload = {\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"orderReference\": \"apm-order-12345\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"method\": \"klarna_network\",\n    \"value\": {\n      \"amount\": 12900,\n      \"currency\": \"GBP\"\n    },\n    \"narrative\": {\n      \"line1\": \"MindPalace\"\n    },\n    \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"TRAIN-BKG-3321098\\\",\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"RAIL\\\",\\\"pnr\\\":\\\"RAIL789456\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-05-20\\\",\\\"departure_time\\\":\\\"08:47\\\",\\\"arrival_date\\\":\\\"2026-05-20\\\",\\\"arrival_time\\\":\\\"12:52\\\",\\\"carrier_code\\\":\\\"DB\\\",\\\"carrier_name\\\":\\\"Deutsche Bahn\\\",\\\"departure_city\\\":\\\"Amsterdam\\\",\\\"departure_station\\\":\\\"Amsterdam Centraal\\\",\\\"arrival_city\\\":\\\"Frankfurt\\\",\\\"arrival_station\\\":\\\"Frankfurt (Main) Hbf\\\",\\\"booking_class\\\":\\\"FIRST_CLASS\\\",\\\"seat_number\\\":\\\"62\\\",\\\"coach_number\\\":\\\"24\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@email.de\\\",\\\"phone\\\":\\\"+491765554433\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12900,\\\"unit_price\\\":12900,\\\"total_tax_amount\\\":2060,\\\"reference\\\":\\\"train-ticket-001\\\"}]}}}}\",\n    \"paymentInstrument\": {\n      \"type\": \"direct\",\n      \"country\": \"GB\",\n      \"billingAddress\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"phone\": \"00000000000\",\n        \"address1\": \"Marylebone\",\n        \"address2\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"settlement\": {\n      \"auto\": True\n    },\n    \"resultUrls\": {\n      \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    },\n    \"shipping\": {\n      \"method\": \"physicalToDoor\",\n      \"timeFrame\": \"express\",\n      \"courier\": {\n        \"name\": \"DHL\",\n        \"preference\": \"leaveAtDoor\",\n        \"signature\": True,\n        \"tracked\": True,\n        \"identification\": True\n      },\n      \"firstName\": \"Mike\",\n      \"lastName\": \"Shipping\",\n      \"phone\": \"0123456789\",\n      \"email\": \"mike.shipping@email.com\",\n      \"address\": {\n        \"address1\": \"Worldpay\",\n        \"address2\": \"270-289 The Science Park\",\n        \"postalCode\": \"CB4 0WE\",\n        \"city\": \"Cambridgeshire\",\n        \"state\": \"Cambridgeshire\",\n        \"countryCode\": \"GB\"\n      }\n    }\n  }\n}\n\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"WP-Api-Version\": \"2024-07-01\"\n}\n\nresponse = requests.post(url, json=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\"\n      , \" \\\"orderReference\\\": \\\"apm-order-12345\\\",\"\n      , \" \\\"merchant\\\": {\"\n      , \"  \\\"entity\\\": \\\"default\\\"\"\n      , \" },\"\n      , \" \\\"instruction\\\": {\"\n      , \"  \\\"method\\\": \\\"klarna_network\\\",\"\n      , \"  \\\"value\\\": {\"\n      , \"   \\\"amount\\\": 12900,\"\n      , \"   \\\"currency\\\": \\\"GBP\\\"\"\n      , \"  },\"\n      , \"  \\\"narrative\\\": {\"\n      , \"   \\\"line1\\\": \\\"MindPalace\\\"\"\n      , \"  },\"\n      , \"  \\\"passthroughData\\\": \\\"{\\\\\"content_type\\\\\":\\\\\"vnd.klarna.interoperability-data.v3+json\\\\\",\\\\\"content\\\\\":{\\\\\"operation\\\\\":\\\\\"payment_request\\\\\",\\\\\"request\\\\\":{\\\\\"supplementary_purchase_data\\\\\":{\\\\\"purchase_reference\\\\\":\\\\\"TRAIN-BKG-3321098\\\\\",\\\\\"travel_reservations\\\\\":[{\\\\\"travel_type\\\\\":\\\\\"RAIL\\\\\",\\\\\"pnr\\\\\":\\\\\"RAIL789456\\\\\",\\\\\"itinerary_legs\\\\\":[{\\\\\"departure_date\\\\\":\\\\\"2026-05-20\\\\\",\\\\\"departure_time\\\\\":\\\\\"08:47\\\\\",\\\\\"arrival_date\\\\\":\\\\\"2026-05-20\\\\\",\\\\\"arrival_time\\\\\":\\\\\"12:52\\\\\",\\\\\"carrier_code\\\\\":\\\\\"DB\\\\\",\\\\\"carrier_name\\\\\":\\\\\"Deutsche Bahn\\\\\",\\\\\"departure_city\\\\\":\\\\\"Amsterdam\\\\\",\\\\\"departure_station\\\\\":\\\\\"Amsterdam Centraal\\\\\",\\\\\"arrival_city\\\\\":\\\\\"Frankfurt\\\\\",\\\\\"arrival_station\\\\\":\\\\\"Frankfurt (Main) Hbf\\\\\",\\\\\"booking_class\\\\\":\\\\\"FIRST_CLASS\\\\\",\\\\\"seat_number\\\\\":\\\\\"62\\\\\",\\\\\"coach_number\\\\\":\\\\\"24\\\\\"}],\\\\\"passengers\\\\\":[{\\\\\"given_name\\\\\":\\\\\"James\\\\\",\\\\\"family_name\\\\\":\\\\\"Moriarty\\\\\",\\\\\"email\\\\\":\\\\\"moriarty@email.de\\\\\",\\\\\"phone\\\\\":\\\\\"+491765554433\\\\\",\\\\\"passenger_type\\\\\":\\\\\"ADULT\\\\\"}]}],\\\\\"line_items\\\\\":[{\\\\\"name\\\\\":\\\\\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\\\\\",\\\\\"quantity\\\\\":1,\\\\\"total_amount\\\\\":12900,\\\\\"unit_price\\\\\":12900,\\\\\"total_tax_amount\\\\\":2060,\\\\\"reference\\\\\":\\\\\"train-ticket-001\\\\\"}]}}}}\\\",\"\n      , \"  \\\"paymentInstrument\\\": {\"\n      , \"   \\\"type\\\": \\\"direct\\\",\"\n      , \"   \\\"country\\\": \\\"GB\\\",\"\n      , \"   \\\"billingAddress\\\": {\"\n      , \"    \\\"firstName\\\": \\\"James\\\",\"\n      , \"    \\\"lastName\\\": \\\"Moriarty\\\",\"\n      , \"    \\\"phone\\\": \\\"00000000000\\\",\"\n      , \"    \\\"address1\\\": \\\"Marylebone\\\",\"\n      , \"    \\\"address2\\\": \\\"Westminster\\\",\"\n      , \"    \\\"postalCode\\\": \\\"NW1 6XE\\\",\"\n      , \"    \\\"city\\\": \\\"London\\\",\"\n      , \"    \\\"state\\\": \\\"Greater London\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  },\"\n      , \"  \\\"settlement\\\": {\"\n      , \"   \\\"auto\\\": true\"\n      , \"  },\"\n      , \"  \\\"resultUrls\\\": {\"\n      , \"   \\\"cancel\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/cancel\\\",\"\n      , \"   \\\"failure\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/failure\\\",\"\n      , \"   \\\"pending\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/pending\\\",\"\n      , \"   \\\"success\\\": \\\"https://worldpay-bsh.securedataplatform.co.uk/success\\\"\"\n      , \"  },\"\n      , \"  \\\"shipping\\\": {\"\n      , \"   \\\"method\\\": \\\"physicalToDoor\\\",\"\n      , \"   \\\"timeFrame\\\": \\\"express\\\",\"\n      , \"   \\\"courier\\\": {\"\n      , \"    \\\"name\\\": \\\"DHL\\\",\"\n      , \"    \\\"preference\\\": \\\"leaveAtDoor\\\",\"\n      , \"    \\\"signature\\\": true,\"\n      , \"    \\\"tracked\\\": true,\"\n      , \"    \\\"identification\\\": true\"\n      , \"   },\"\n      , \"   \\\"firstName\\\": \\\"Mike\\\",\"\n      , \"   \\\"lastName\\\": \\\"Shipping\\\",\"\n      , \"   \\\"phone\\\": \\\"0123456789\\\",\"\n      , \"   \\\"email\\\": \\\"mike.shipping@email.com\\\",\"\n      , \"   \\\"address\\\": {\"\n      , \"    \\\"address1\\\": \\\"Worldpay\\\",\"\n      , \"    \\\"address2\\\": \\\"270-289 The Science Park\\\",\"\n      , \"    \\\"postalCode\\\": \\\"CB4 0WE\\\",\"\n      , \"    \\\"city\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"state\\\": \\\"Cambridgeshire\\\",\"\n      , \"    \\\"countryCode\\\": \\\"GB\\\"\"\n      , \"   }\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/apmPayments\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"WP-Api-Version\", \"2024-07-01\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        'WP-Api-Version': '2024-07-01'\n      },\n      body: JSON.stringify({\n        transactionReference: 'Memory265-13/08/1876',\n        orderReference: 'apm-order-12345',\n        merchant: {entity: 'default'},\n        instruction: {\n          method: 'klarna_network',\n          value: {\n            amount: 12900,\n            currency: 'GBP'\n          },\n          narrative: {line1: 'MindPalace'},\n          passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"TRAIN-BKG-3321098\",\"travel_reservations\":[{\"travel_type\":\"RAIL\",\"pnr\":\"RAIL789456\",\"itinerary_legs\":[{\"departure_date\":\"2026-05-20\",\"departure_time\":\"08:47\",\"arrival_date\":\"2026-05-20\",\"arrival_time\":\"12:52\",\"carrier_code\":\"DB\",\"carrier_name\":\"Deutsche Bahn\",\"departure_city\":\"Amsterdam\",\"departure_station\":\"Amsterdam Centraal\",\"arrival_city\":\"Frankfurt\",\"arrival_station\":\"Frankfurt (Main) Hbf\",\"booking_class\":\"FIRST_CLASS\",\"seat_number\":\"62\",\"coach_number\":\"24\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@email.de\",\"phone\":\"+491765554433\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\",\"quantity\":1,\"total_amount\":12900,\"unit_price\":12900,\"total_tax_amount\":2060,\"reference\":\"train-ticket-001\"}]}}}}',\n          paymentInstrument: {\n            type: 'direct',\n            country: 'GB',\n            billingAddress: {\n              firstName: 'James',\n              lastName: 'Moriarty',\n              phone: '00000000000',\n              address1: 'Marylebone',\n              address2: 'Westminster',\n              postalCode: 'NW1 6XE',\n              city: 'London',\n              state: 'Greater London',\n              countryCode: 'GB'\n            }\n          },\n          settlement: {auto: true},\n          resultUrls: {\n            cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n            failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n            pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n            success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n          },\n          shipping: {\n            method: 'physicalToDoor',\n            timeFrame: 'express',\n            courier: {\n              name: 'DHL',\n              preference: 'leaveAtDoor',\n              signature: true,\n              tracked: true,\n              identification: true\n            },\n            firstName: 'Mike',\n            lastName: 'Shipping',\n            phone: '0123456789',\n            email: 'mike.shipping@email.com',\n            address: {\n              address1: 'Worldpay',\n              address2: '270-289 The Science Park',\n              postalCode: 'CB4 0WE',\n              city: 'Cambridgeshire',\n              state: 'Cambridgeshire',\n              countryCode: 'GB'\n            }\n          }\n        }\n      })\n    }\n  );\n\n  const data = await resp.json();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"bytes\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\"\n  var data = []byte(`{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"orderReference\": \"apm-order-12345\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"method\": \"klarna_network\",\n      \"value\": {\n        \"amount\": 12900,\n        \"currency\": \"GBP\"\n      },\n      \"narrative\": {\n        \"line1\": \"MindPalace\"\n      },\n      \"passthroughData\": \"{\\\"content_type\\\":\\\"vnd.klarna.interoperability-data.v3+json\\\",\\\"content\\\":{\\\"operation\\\":\\\"payment_request\\\",\\\"request\\\":{\\\"supplementary_purchase_data\\\":{\\\"purchase_reference\\\":\\\"TRAIN-BKG-3321098\\\",\\\"travel_reservations\\\":[{\\\"travel_type\\\":\\\"RAIL\\\",\\\"pnr\\\":\\\"RAIL789456\\\",\\\"itinerary_legs\\\":[{\\\"departure_date\\\":\\\"2026-05-20\\\",\\\"departure_time\\\":\\\"08:47\\\",\\\"arrival_date\\\":\\\"2026-05-20\\\",\\\"arrival_time\\\":\\\"12:52\\\",\\\"carrier_code\\\":\\\"DB\\\",\\\"carrier_name\\\":\\\"Deutsche Bahn\\\",\\\"departure_city\\\":\\\"Amsterdam\\\",\\\"departure_station\\\":\\\"Amsterdam Centraal\\\",\\\"arrival_city\\\":\\\"Frankfurt\\\",\\\"arrival_station\\\":\\\"Frankfurt (Main) Hbf\\\",\\\"booking_class\\\":\\\"FIRST_CLASS\\\",\\\"seat_number\\\":\\\"62\\\",\\\"coach_number\\\":\\\"24\\\"}],\\\"passengers\\\":[{\\\"given_name\\\":\\\"James\\\",\\\"family_name\\\":\\\"Moriarty\\\",\\\"email\\\":\\\"moriarty@email.de\\\",\\\"phone\\\":\\\"+491765554433\\\",\\\"passenger_type\\\":\\\"ADULT\\\"}]}],\\\"line_items\\\":[{\\\"name\\\":\\\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\\\",\\\"quantity\\\":1,\\\"total_amount\\\":12900,\\\"unit_price\\\":12900,\\\"total_tax_amount\\\":2060,\\\"reference\\\":\\\"train-ticket-001\\\"}]}}}}\",\n      \"paymentInstrument\": {\n        \"type\": \"direct\",\n        \"country\": \"GB\",\n        \"billingAddress\": {\n          \"firstName\": \"James\",\n          \"lastName\": \"Moriarty\",\n          \"phone\": \"00000000000\",\n          \"address1\": \"Marylebone\",\n          \"address2\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"settlement\": {\n        \"auto\": true\n      },\n      \"resultUrls\": {\n        \"cancel\": \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n        \"failure\": \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n        \"pending\": \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n        \"success\": \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n      },\n      \"shipping\": {\n        \"method\": \"physicalToDoor\",\n        \"timeFrame\": \"express\",\n        \"courier\": {\n          \"name\": \"DHL\",\n          \"preference\": \"leaveAtDoor\",\n          \"signature\": true,\n          \"tracked\": true,\n          \"identification\": true\n        },\n        \"firstName\": \"Mike\",\n        \"lastName\": \"Shipping\",\n        \"phone\": \"0123456789\",\n        \"email\": \"mike.shipping@email.com\",\n        \"address\": {\n          \"address1\": \"Worldpay\",\n          \"address2\": \"270-289 The Science Park\",\n          \"postalCode\": \"CB4 0WE\",\n          \"city\": \"Cambridgeshire\",\n          \"state\": \"Cambridgeshire\",\n          \"countryCode\": \"GB\"\n        }\n      }\n    }\n  }`)\n  req, err := http.NewRequest(\"POST\", reqUrl, bytes.NewBuffer(data))\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"WP-Api-Version\", \"2024-07-01\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\n$payload = array(\n  \"transactionReference\" => \"Memory265-13/08/1876\",\n  \"orderReference\" => \"apm-order-12345\",\n  \"merchant\" => array(\n    \"entity\" => \"default\"\n  ),\n  \"instruction\" => array(\n    \"method\" => \"klarna_network\",\n    \"value\" => array(\n      \"amount\" => 12900,\n      \"currency\" => \"GBP\"\n    ),\n    \"narrative\" => array(\n      \"line1\" => \"MindPalace\"\n    ),\n    \"passthroughData\" => \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"TRAIN-BKG-3321098\",\"travel_reservations\":[{\"travel_type\":\"RAIL\",\"pnr\":\"RAIL789456\",\"itinerary_legs\":[{\"departure_date\":\"2026-05-20\",\"departure_time\":\"08:47\",\"arrival_date\":\"2026-05-20\",\"arrival_time\":\"12:52\",\"carrier_code\":\"DB\",\"carrier_name\":\"Deutsche Bahn\",\"departure_city\":\"Amsterdam\",\"departure_station\":\"Amsterdam Centraal\",\"arrival_city\":\"Frankfurt\",\"arrival_station\":\"Frankfurt (Main) Hbf\",\"booking_class\":\"FIRST_CLASS\",\"seat_number\":\"62\",\"coach_number\":\"24\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@email.de\",\"phone\":\"+491765554433\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\",\"quantity\":1,\"total_amount\":12900,\"unit_price\":12900,\"total_tax_amount\":2060,\"reference\":\"train-ticket-001\"}]}}}}\",\n    \"paymentInstrument\" => array(\n      \"type\" => \"direct\",\n      \"country\" => \"GB\",\n      \"billingAddress\" => array(\n        \"firstName\" => \"James\",\n        \"lastName\" => \"Moriarty\",\n        \"phone\" => \"00000000000\",\n        \"address1\" => \"Marylebone\",\n        \"address2\" => \"Westminster\",\n        \"postalCode\" => \"NW1 6XE\",\n        \"city\" => \"London\",\n        \"state\" => \"Greater London\",\n        \"countryCode\" => \"GB\"\n      )\n    ),\n    \"settlement\" => array(\n      \"auto\" => true\n    ),\n    \"resultUrls\" => array(\n      \"cancel\" => \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n      \"failure\" => \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n      \"pending\" => \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n      \"success\" => \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n    ),\n    \"shipping\" => array(\n      \"method\" => \"physicalToDoor\",\n      \"timeFrame\" => \"express\",\n      \"courier\" => array(\n        \"name\" => \"DHL\",\n        \"preference\" => \"leaveAtDoor\",\n        \"signature\" => true,\n        \"tracked\" => true,\n        \"identification\" => true\n      ),\n      \"firstName\" => \"Mike\",\n      \"lastName\" => \"Shipping\",\n      \"phone\" => \"0123456789\",\n      \"email\" => \"mike.shipping@email.com\",\n      \"address\" => array(\n        \"address1\" => \"Worldpay\",\n        \"address2\" => \"270-289 The Science Park\",\n        \"postalCode\" => \"CB4 0WE\",\n        \"city\" => \"Cambridgeshire\",\n        \"state\" => \"Cambridgeshire\",\n        \"countryCode\" => \"GB\"\n      )\n    )\n  )\n);\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/json\",\n    \"WP-Api-Version: 2024-07-01\"\n  ],\n  CURLOPT_POSTFIELDS => json_encode($payload),\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'json'\nrequire 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/json'\nrequest['WP-Api-Version'] = '2024-07-01'\nrequest.body = {\n  transactionReference: 'Memory265-13/08/1876',\n  orderReference: 'apm-order-12345',\n  merchant: {entity: 'default'},\n  instruction: {\n    method: 'klarna_network',\n    value: {\n      amount: 12900,\n      currency: 'GBP'\n    },\n    narrative: {line1: 'MindPalace'},\n    passthroughData: '{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"TRAIN-BKG-3321098\",\"travel_reservations\":[{\"travel_type\":\"RAIL\",\"pnr\":\"RAIL789456\",\"itinerary_legs\":[{\"departure_date\":\"2026-05-20\",\"departure_time\":\"08:47\",\"arrival_date\":\"2026-05-20\",\"arrival_time\":\"12:52\",\"carrier_code\":\"DB\",\"carrier_name\":\"Deutsche Bahn\",\"departure_city\":\"Amsterdam\",\"departure_station\":\"Amsterdam Centraal\",\"arrival_city\":\"Frankfurt\",\"arrival_station\":\"Frankfurt (Main) Hbf\",\"booking_class\":\"FIRST_CLASS\",\"seat_number\":\"62\",\"coach_number\":\"24\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@email.de\",\"phone\":\"+491765554433\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\",\"quantity\":1,\"total_amount\":12900,\"unit_price\":12900,\"total_tax_amount\":2060,\"reference\":\"train-ticket-001\"}]}}}}',\n    paymentInstrument: {\n      type: 'direct',\n      country: 'GB',\n      billingAddress: {\n        firstName: 'James',\n        lastName: 'Moriarty',\n        phone: '00000000000',\n        address1: 'Marylebone',\n        address2: 'Westminster',\n        postalCode: 'NW1 6XE',\n        city: 'London',\n        state: 'Greater London',\n        countryCode: 'GB'\n      }\n    },\n    settlement: {auto: true},\n    resultUrls: {\n      cancel: 'https://worldpay-bsh.securedataplatform.co.uk/cancel',\n      failure: 'https://worldpay-bsh.securedataplatform.co.uk/failure',\n      pending: 'https://worldpay-bsh.securedataplatform.co.uk/pending',\n      success: 'https://worldpay-bsh.securedataplatform.co.uk/success'\n    },\n    shipping: {\n      method: 'physicalToDoor',\n      timeFrame: 'express',\n      courier: {\n        name: 'DHL',\n        preference: 'leaveAtDoor',\n        signature: true,\n        tracked: true,\n        identification: true\n      },\n      firstName: 'Mike',\n      lastName: 'Shipping',\n      phone: '0123456789',\n      email: 'mike.shipping@email.com',\n      address: {\n        address1: 'Worldpay',\n        address2: '270-289 The Science Park',\n        postalCode: 'CB4 0WE',\n        city: 'Cambridgeshire',\n        state: 'Cambridgeshire',\n        countryCode: 'GB'\n      }\n    }\n  }\n}.to_json\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing System.Text;\nusing System.Text.Json;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"WP-Api-Version\", \"2024-07-01\"},\n      }\n    };\n\n    string json = JsonSerializer.Serialize(new\n    {\n      transactionReference = \"Memory265-13/08/1876\",\n      orderReference = \"apm-order-12345\",\n      merchant = new {\n        entity = \"default\"\n      },\n      instruction = new {\n        method = \"klarna_network\",\n        value = new {\n          amount = \"12900\",\n          currency = \"GBP\"\n        },\n        narrative = new {\n          line1 = \"MindPalace\"\n        },\n        passthroughData = \"{\"content_type\":\"vnd.klarna.interoperability-data.v3+json\",\"content\":{\"operation\":\"payment_request\",\"request\":{\"supplementary_purchase_data\":{\"purchase_reference\":\"TRAIN-BKG-3321098\",\"travel_reservations\":[{\"travel_type\":\"RAIL\",\"pnr\":\"RAIL789456\",\"itinerary_legs\":[{\"departure_date\":\"2026-05-20\",\"departure_time\":\"08:47\",\"arrival_date\":\"2026-05-20\",\"arrival_time\":\"12:52\",\"carrier_code\":\"DB\",\"carrier_name\":\"Deutsche Bahn\",\"departure_city\":\"Amsterdam\",\"departure_station\":\"Amsterdam Centraal\",\"arrival_city\":\"Frankfurt\",\"arrival_station\":\"Frankfurt (Main) Hbf\",\"booking_class\":\"FIRST_CLASS\",\"seat_number\":\"62\",\"coach_number\":\"24\"}],\"passengers\":[{\"given_name\":\"James\",\"family_name\":\"Moriarty\",\"email\":\"moriarty@email.de\",\"phone\":\"+491765554433\",\"passenger_type\":\"ADULT\"}]}],\"line_items\":[{\"name\":\"TEST YYYY ICE Amsterdam-Frankfurt 1st Class\",\"quantity\":1,\"total_amount\":12900,\"unit_price\":12900,\"total_tax_amount\":2060,\"reference\":\"train-ticket-001\"}]}}}}\",\n        paymentInstrument = new {\n          type = \"direct\",\n          country = \"GB\",\n          billingAddress = new {\n            firstName = \"James\",\n            lastName = \"Moriarty\",\n            phone = \"00000000000\",\n            address1 = \"Marylebone\",\n            address2 = \"Westminster\",\n            postalCode = \"NW1 6XE\",\n            city = \"London\",\n            state = \"Greater London\",\n            countryCode = \"GB\"\n          }\n        },\n        settlement = new {\n          auto = \"true\"\n        },\n        resultUrls = new {\n          cancel = \"https://worldpay-bsh.securedataplatform.co.uk/cancel\",\n          failure = \"https://worldpay-bsh.securedataplatform.co.uk/failure\",\n          pending = \"https://worldpay-bsh.securedataplatform.co.uk/pending\",\n          success = \"https://worldpay-bsh.securedataplatform.co.uk/success\"\n        },\n        shipping = new {\n          method = \"physicalToDoor\",\n          timeFrame = \"express\",\n          courier = new {\n            name = \"DHL\",\n            preference = \"leaveAtDoor\",\n            signature = \"true\",\n            tracked = \"true\",\n            identification = \"true\"\n          },\n          firstName = \"Mike\",\n          lastName = \"Shipping\",\n          phone = \"0123456789\",\n          email = \"mike.shipping@email.com\",\n          address = new {\n            address1 = \"Worldpay\",\n            address2 = \"270-289 The Science Park\",\n            postalCode = \"CB4 0WE\",\n            city = \"Cambridgeshire\",\n            state = \"Cambridgeshire\",\n            countryCode = \"GB\"\n          }\n        }\n      }\n    });\n\n    using StringContent postData = new(json, Encoding.UTF8, \"application/json\");\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":12},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"$ref":"openapi.yaml#/components/schemas/ApmPaymentRequestV2"},"options":{"schemaExpansionLevel":0},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"$ref":"#/components/schemas/ApmPaymentRequestV2"},"MerchantV2":{"required":["entity"],"type":"object","properties":{"entity":{"maxLength":32,"minLength":3,"pattern":"^([A-Za-z0-9\\- ]*)$","type":"string","description":"Used to route the request in Access Worldpay, created as part of on-boarding.","example":"default"}}},"ValueV2":{"required":["amount","currency"],"type":"object","properties":{"currency":{"type":"string","description":"The supported [ISO 4217 currency codes](/products/reference/supported-countries-currencies#iso-currency-codes).","enum":["AED","AFN","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLP","CNH","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLE","SLL","SOS","SRD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VES","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"]},"amount":{"maximum":2147483647,"minimum":1,"type":"integer","description":"The amount in the lowest denomination of the currency, e.g. pennies for GBP, cents for USD.","format":"int64","example":1234}},"description":"The value of the payment."},"NarrativeV2":{"required":["line1"],"type":"object","properties":{"line1":{"maxLength":24,"minLength":1,"pattern":"^[a-zA-Z0-9-., ]*$","type":"string","description":"The description shown on your customer's bank statement for the payment.","example":"MindPalace"}}},"AchPaymentInstrumentV2":{"required":["accountNumber","accountType","billingAddress","routingNumber","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"accountType":{"type":"string","description":"Account type.","example":"checking","enum":["checking","savings","corporate","corporateSavings"]},"accountNumber":{"maxLength":17,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Account number of direct debit account.","example":"123456789"},"routingNumber":{"maxLength":9,"minLength":9,"pattern":"^[0-9]*$","type":"string","description":"Routing number of direct debit account.","example":"123456789"},"checkNumber":{"maxLength":15,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Check number of the direct debit account.","example":"123456789"},"companyName":{"maxLength":40,"minLength":1,"type":"string","description":"Company name if a corporate account.","example":"Joe Plumbing Ltd."},"billingAddress":{"$ref":"#/components/schemas/AchBillingAddress"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AchPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutAchPaymentInstrumentV2"}}},"CheckoutAchPaymentInstrumentV2":{"required":["accountNumber","accountType","billingAddress","routingNumber","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"accountType":{"type":"string","description":"Account type.","example":"checking","enum":["checking","savings","corporate","corporateSavings"]},"accountNumber":{"maxLength":17,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Account number of direct debit account.","example":"123456789"},"routingNumber":{"maxLength":9,"minLength":9,"pattern":"^[0-9]*$","type":"string","description":"Routing number of direct debit account.","example":"123456789"},"checkNumber":{"maxLength":15,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Check number of the direct debit account.","example":"123456789"},"companyName":{"maxLength":40,"minLength":1,"type":"string","description":"Company name if a corporate account.","example":"Joe Plumbing Ltd."},"billingAddress":{"$ref":"#/components/schemas/AchBillingAddress"},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AchPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutAchPaymentInstrumentV2"}}},"AchBillingAddress":{"required":["address1","city","countryCode","postalCode"],"type":"object","properties":{"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"address3":{"maxLength":80,"minLength":1,"type":"string","description":"Third line of the address."},"postalCode":{"maxLength":15,"minLength":1,"type":"string","description":"Postal code."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State code of the billing address in ISO 3166-2 format.","example":"US-OH"},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"CustomerDetailsAch":{"required":["firstName","lastName"],"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"customer@example.com"},"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."},"customerId":{"maxLength":15,"minLength":1,"pattern":"[a-zA-Z0-9]*","type":"string","description":"Your unique reference for the customer so that the 'pay faster next time' function can be used during checkout. This allows your customer's chosen bank to be stored for their next payment.","example":"44528abcd"}}},"AchInstruction":{"required":["customer","method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["ach"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/AchPaymentInstrumentV2"},"customer":{"$ref":"#/components/schemas/CustomerDetailsAch"}}},"AlipayCnInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayCnInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayCnInstrumentV2"}}},"CheckoutAlipayCnInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayCnInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayCnInstrumentV2"}}},"ResultUrlsAlipayCn":{"required":["failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"DeviceData":{"type":"object","properties":{"device":{"type":"string","description":"Device type.","enum":["desktop","mobile"]},"operatingSystem":{"type":"string","description":"Operating system.","enum":["windows","osx","linux","ios","android","other"]}}},"CustomerWithName":{"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"customer@example.com"},"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."}}},"AlipayCnInstruction":{"required":["method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["alipay_cn"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/AlipayCnInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsAlipayCn"},"deviceData":{"$ref":"#/components/schemas/DeviceData"},"customer":{"$ref":"#/components/schemas/CustomerWithName"}}},"AlipayHkInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayHkInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayHkInstrumentV2"}}},"CheckoutAlipayHkInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayHkInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayHkInstrumentV2"}}},"ResultUrlsAlipayHk":{"required":["failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"AlipayHkInstruction":{"required":["method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["alipay_hk"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/AlipayHkInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsAlipayHk"},"deviceData":{"$ref":"#/components/schemas/DeviceData"},"customer":{"$ref":"#/components/schemas/CustomerWithName"}}},"AlipayPlusInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayPlusInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayPlusInstrumentV2"}}},"CheckoutAlipayPlusInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/AlipayPlusInstrumentV2","checkout":"#/components/schemas/CheckoutAlipayPlusInstrumentV2"}}},"ResultUrlsAlipayPlus":{"required":["failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"AlipayPlusInstruction":{"required":["method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["alipay_uni"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/AlipayPlusInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsAlipayPlus"},"deviceData":{"$ref":"#/components/schemas/DeviceData"},"customer":{"$ref":"#/components/schemas/CustomerWithName"}}},"BancomatPayPaymentInstrument":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"CustomerDetailsBancomat":{"required":["email","firstName","lastName","phone"],"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"moriarty@example.com"},"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\d*$","type":"string","description":"Phone number."}}},"BancomatPayInstruction":{"required":["customer","method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["bancomat"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/BancomatPayPaymentInstrument"},"customer":{"$ref":"#/components/schemas/CustomerDetailsBancomat"}}},"CustomerWithEmail":{"required":["email"],"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"moriarty@example.com"}}},"BancontactPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/BancontactPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutBancontactPaymentInstrumentV2"}}},"CheckoutBancontactPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/BancontactPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutBancontactPaymentInstrumentV2"}}},"ResultUrlsBancontact":{"required":["cancel","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after payment cancellation.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"},"failure":{"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"}}},"BancontactInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["bancontact"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"paymentInstrument":{"$ref":"#/components/schemas/BancontactPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsBancontact"}}},"BizumPaymentInstrument":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"country":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"CustomerWithPhone":{"required":["phone"],"type":"object","properties":{"phone":{"maxLength":15,"minLength":5,"pattern":"^\\d*$","type":"string","description":"Your customer's phone number","example":"1234567890"}}},"BizumInstruction":{"required":["customer","method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["bizum"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/BizumPaymentInstrument"},"customer":{"$ref":"#/components/schemas/CustomerWithPhone"}}},"BlikInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/BlikInstrumentV2","checkout":"#/components/schemas/CheckoutBlikInstrumentV2"}}},"CheckoutBlikInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/BlikInstrumentV2","checkout":"#/components/schemas/CheckoutBlikInstrumentV2"}}},"ResultUrlsWithoutFailure":{"required":["cancel","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after payment cancellation.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"BlikInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","termsAccepted","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["blik"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"termsAccepted":{"type":"boolean","description":"You must collect your customer's consent to [Przelewy24's T&Cs](https://www.przelewy24.pl/regulamin) and pass the value as `true`. If the value is passed as `false`, your customer is redirected to a pending URL with an error appended."},"paymentInstrument":{"$ref":"#/components/schemas/BlikInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"EftPaymentInstrument":{"required":["accountNumber","accountType","billingAddress","routingNumber","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"accountType":{"type":"string","description":"Account type.","example":"checking","enum":["checking","savings","corporate","corporateSavings"]},"accountNumber":{"maxLength":17,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Account number of direct debit account.","example":"123456789"},"routingNumber":{"maxLength":9,"minLength":9,"pattern":"^[0-9]*$","type":"string","description":"Routing number of direct debit account.","example":"123456789"},"checkNumber":{"maxLength":15,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"Check number of the direct debit account.","example":"123456789"},"companyName":{"maxLength":40,"minLength":1,"type":"string","description":"Company name if a corporate account.","example":"Joe Plumbing Ltd."},"billingAddress":{"$ref":"#/components/schemas/AchBillingAddress"}}},"EftInstruction":{"required":["customer","method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["eft"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/EftPaymentInstrument"},"customer":{"$ref":"#/components/schemas/CustomerDetailsAch"}}},"EutellerPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/EutellerPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutEutellerPaymentInstrumentV2"}}},"CheckoutEutellerPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/EutellerPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutEutellerPaymentInstrumentV2"}}},"EutellerInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["euteller"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/EutellerPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"FloaBillingAddress":{"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name."},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\+\\d+$","type":"string","description":"Phone number."},"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"postalCode":{"maxLength":10,"minLength":1,"type":"string","description":"Postal code."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State"},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"description":"Contains the billing address information"},"FloaPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"FR","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"billingAddress":{"$ref":"#/components/schemas/FloaBillingAddress"}}},"FloaCustomer":{"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."},"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"moriarty@example.com"},"phone":{"maxLength":15,"minLength":5,"pattern":"^\\+\\d+$","type":"string","description":"Your customer's phone number","example":"+1234567890"}},"description":"Details about your customer"},"FloaShippingAddress":{"type":"object","properties":{"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address. Mandatory if shipping method is physical."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"postalCode":{"maxLength":15,"minLength":1,"type":"string","description":"Postal code. Mandatory if shipping method is physical."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City. Mandatory if shipping method is physical."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State."},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"FloaShipping":{"required":["method"],"type":"object","properties":{"method":{"type":"string","description":"Type of shipping method used for delivery. Shipping address is required for physical goods when shipping type is physicalToDoor etc. It can be omitted for digital goods.","enum":["physicalToDoor","physicalToCurb","physicalToMailbox","physicalPickupBox","physicalPickupPoint","physicalPickupStore","physicalPickupWarehouse","physicalOther","digitalEmail","digitalDownload","digitalOther"]},"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name. Mandatory if shipping method is physical."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name. Mandatory if shipping method is physical."},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\+\\d+$","type":"string","description":"Phone number","example":"+1234567890"},"address":{"$ref":"#/components/schemas/FloaShippingAddress"}},"description":"Object containing all data related to how the order will be shipped"},"FloaInstallmentPlan":{"required":["numberOfInstallments"],"type":"object","properties":{"numberOfInstallments":{"type":"integer","description":"Number of installments that the requested amount should be broken into. Belgium does not accept 4 installments.","format":"int32","enum":[3,4]}}},"FloaCustomerAgreement":{"required":["installmentPlan","type"],"type":"object","properties":{"type":{"type":"string","description":"The processing arrangement agreed with your customer","enum":["installment"]},"installmentPlan":{"$ref":"#/components/schemas/FloaInstallmentPlan"}},"description":"Contains specific customer agreements for the transaction"},"ResultUrlsFloa":{"required":["cancel","failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}},"description":"Object containing the URLs users are redirected to after a payment result"},"FloaItem":{"required":["name","quantity","totalAmount","unitCost"],"type":"object","properties":{"productCode":{"maxLength":255,"minLength":1,"type":"string","description":"SKU or product reference code."},"name":{"maxLength":1024,"minLength":1,"type":"string","description":"Description or name of item, e.g. “mobile phone”."},"quantity":{"maximum":2147483647,"minimum":1,"type":"number","description":"Number of items being purchased."},"unitCost":{"maximum":2147483647,"type":"number","description":"Cost for each unit of the item with tax included."},"totalAmount":{"maximum":2147483647,"minimum":-2147483648,"type":"number","description":"Sum of all chargeable elements on the line added together. Formula is: totalAmount = (unitCost x quantity) - totalDiscountAmount."}}},"FloaOrder":{"required":["items"],"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/FloaItem"}}},"description":"Object that contains the complete list of lines relating to the transaction."},"FloaInstruction":{"required":["customerAgreement","method","narrative","order","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method. \n Floa is preview only at this moment.","enum":["floa"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/FloaPaymentInstrumentV2"},"customer":{"$ref":"#/components/schemas/FloaCustomer"},"shipping":{"$ref":"#/components/schemas/FloaShipping"},"customerAgreement":{"$ref":"#/components/schemas/FloaCustomerAgreement"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsFloa"},"order":{"$ref":"#/components/schemas/FloaOrder"}}},"IdealInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/IdealInstrumentV2","checkout":"#/components/schemas/CheckoutIdealInstrumentV2"}}},"CheckoutIdealInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/IdealInstrumentV2","checkout":"#/components/schemas/CheckoutIdealInstrumentV2"}}},"ResultUrlsIdeal":{"required":["cancel","failure","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"AddressV2":{"required":["address1","city","countryCode","postalCode","state"],"type":"object","properties":{"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"address3":{"maxLength":80,"minLength":1,"type":"string","description":"Third line of the address."},"postalCode":{"maxLength":15,"minLength":1,"type":"string","description":"Postal code."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State."},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"description":"For non-EEA SEPA mandates, object is mandatory to be sent."},"Shipping":{"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name."},"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Email address.","example":"moriarty@example.com"},"address":{"$ref":"#/components/schemas/AddressV2"}},"description":"The shipping address is required for recurring payments."},"IdealInstruction":{"required":["method","narrative","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["ideal"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/IdealInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsIdeal"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"shipping":{"$ref":"#/components/schemas/Shipping"}}},"IdealMandate":{"required":["description","type"],"type":"object","properties":{"type":{"type":"string","description":"Field that contains the type of mandate.","enum":["recurring"]},"description":{"maxLength":255,"minLength":1,"type":"string","description":"Description of why the recurring payment is being created."}},"description":"Object that contains SEPA Direct Debit mandate information"},"IdealCustomerAgreement":{"required":["mandate","reference","type"],"type":"object","properties":{"type":{"type":"string","description":"Field required for recurring payments.","enum":["recurring"]},"reference":{"maxLength":64,"minLength":1,"type":"string","description":"A unique reference generated by you for recurring and token payments. This field must not have any spaces or start with \"_\"."},"mandate":{"$ref":"#/components/schemas/IdealMandate"}}},"IdealRecurringInstruction":{"required":["customer","customerAgreement","method","narrative","resultUrls","shipping","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["ideal"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/IdealInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsIdeal"},"customerAgreement":{"$ref":"#/components/schemas/IdealCustomerAgreement"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"shipping":{"$ref":"#/components/schemas/Shipping"}}},"KlarnaNetworkInstruction":{"required":["method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["klarna_network"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/KlarnaNetworkPaymentInstrumentV2"},"passthroughData":{"maxLength":10240,"minLength":1,"type":"string","description":"Passthrough field representing [additional payment information](/products/apms/klarna#supplementary-purchase-data). We do not validate this field beyond checking length. Must contain escaped JSON ready for transmission."},"providerToken":{"maxLength":8192,"minLength":1,"type":"string","description":"Provide Klarna’s “Klarna Network Session Token” here. This enables the continuation of your customer's journey when they start through Klarna's Web SDK or Klarna Boost features."},"settlement":{"$ref":"#/components/schemas/Settlement"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsKlarnaNetwork"},"shipping":{"$ref":"#/components/schemas/KlarnaNetworkShipping"},"order":{"$ref":"#/components/schemas/KlarnaNetworkOrder"}},"discriminator":{"propertyName":"method","mapping":{"klarna_network":"#/components/schemas/KlarnaNetworkInstruction"}}},"KlarnaNetworkBillingAddress":{"required":["address1","city","countryCode","firstName","lastName","postalCode","state"],"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name."},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\d*$","type":"string","description":"Phone number."},"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"postalCode":{"maxLength":10,"minLength":1,"type":"string","description":"Postal code."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State"},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"KlarnaNetworkPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"billingAddress":{"$ref":"#/components/schemas/KlarnaNetworkBillingAddress"}}},"Settlement":{"type":"object","properties":{"auto":{"type":"boolean","description":"Default `false`"}},"description":"Indicates whether the transaction should be sent for settlement now = `true`, or later = `false` at a time of your choosing."},"ResultUrlsKlarnaNetwork":{"required":["cancel","failure","pending","success"],"type":"object","properties":{"success":{"maxLength":1024,"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"maxLength":1024,"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"maxLength":1024,"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"maxLength":1024,"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"KlarnaNetworkAddress":{"required":["address1","city","countryCode","postalCode","state"],"type":"object","properties":{"address1":{"maxLength":80,"minLength":1,"type":"string","description":"First line of the address."},"address2":{"maxLength":80,"minLength":1,"type":"string","description":"Second line of the address."},"postalCode":{"maxLength":10,"minLength":1,"type":"string","description":"Postal code."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"City."},"state":{"maxLength":30,"minLength":1,"type":"string","description":"State."},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"Courier":{"type":"object","properties":{"name":{"maxLength":255,"minLength":1,"type":"string"},"preference":{"type":"string","enum":["contactlessDelivery","leaveAtDoor","leaveAtCurb","leaveWithNeighbour"]},"tracked":{"type":"boolean"},"identification":{"type":"boolean"},"signature":{"type":"boolean"},"empty":{"type":"boolean"}}},"KlarnaNetworkShipping":{"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name."},"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Email address.","example":"moriarty@example.com"},"address":{"$ref":"#/components/schemas/KlarnaNetworkAddress"},"timeFrame":{"type":"string","description":"Mandatory if you are sending to an alternative non-residential address. You must send this property together with `method`.","enum":["normal","express"]},"method":{"type":"string","description":"Mandatory if you are sending to an alternative non-residential address. You must send this property together with `timeFrame`.","enum":["physicalToDoor","physicalToCurb","physicalToMailbox","physicalPickupBox","physicalPickupPoint","physicalPickupStore","physicalPickupWarehouse","physicalOther","digitalEmail","digitalDownload","digitalOther"]},"courier":{"$ref":"#/components/schemas/Courier"},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\d*$","type":"string"}}},"KlarnaNetworkItem":{"required":["name","quantity","totalAmount","totalTaxAmount","unitCost"],"type":"object","properties":{"productCode":{"maxLength":255,"minLength":1,"type":"string","description":"Your customer facing product code, e.g. SKU (stock keeping unit) or similar."},"name":{"maxLength":1024,"minLength":1,"type":"string","description":"Description or name of item, e.g. “mobile phone”."},"quantity":{"maximum":2147483647,"minimum":1,"type":"number","description":"Number of items being purchased."},"unitCost":{"maximum":2147483647,"type":"number","description":"Cost for each unit of the item with tax included."},"totalTaxAmount":{"maximum":2147483647,"minimum":0,"type":"number","description":"How much of totalAmount is tax. If you need to work it out backwards the formula is: totalTaxAmount = totalAmount - (totalAmount / (1+(taxRate/10000)))."},"totalAmount":{"maximum":2147483647,"minimum":-2147483648,"type":"number","description":"Sum of all chargeable elements on the line added together. Formula is: totalAmount = (unitCost x quantity) - totalDiscountAmount."},"productUrl":{"maxLength":2048,"minLength":1,"type":"string","description":"Link to the product page that can later be embedded in communications between Klarna and your customer."},"imageUrl":{"maxLength":2048,"minLength":1,"type":"string","description":"Link to the product image that can later be embedded in communications between Klarna and your customer.\n\nNote: we recommend you submit this to improve the post-purchase customer experience."}}},"KlarnaNetworkOrder":{"required":["items"],"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/KlarnaNetworkItem"}}},"description":"Object that contains the complete list of lines relating to the transaction."},"KlarnaPaymentInstrumentV2":{"required":["country","language","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/KlarnaPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutKlarnaPaymentInstrumentV2"}}},"CheckoutKlarnaPaymentInstrumentV2":{"required":["country","language","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/KlarnaPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutKlarnaPaymentInstrumentV2"}}},"ResultUrlsKlarnaBase":{"required":["cancel","failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"KlarnaShipping":{"required":["address","email","firstName","lastName","phone"],"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"First name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Last name."},"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Email address.","example":"moriarty@example.com"},"address":{"$ref":"#/components/schemas/AddressV2"},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\d*$","type":"string","description":"Phone number."},"timeFrame":{"type":"string","description":"Mandatory if being sent to an alternative non-residential address and must be sent together with `method`.","enum":["normal","express"]},"method":{"type":"string","description":"Mandatory if being sent to an alternative non-residential address and must be sent together with `timeFrame`. This is required for physical goods being sent to an address not specified by your customer.","enum":["store pick up","pick up point","registered box","unregistered box"]}},"description":"This is required for physical goods. It can be omitted for digital goods."},"CustomerWithAdditionalDetails":{"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"customer@example.com"},"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."},"phone":{"maxLength":20,"minLength":4,"pattern":"^\\d*$","type":"string","description":"Phone number."},"dateOfBirth":{"maxLength":10,"minLength":1,"pattern":"^\\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"Date of birth."}}},"Item":{"required":["name","quantity","taxRate","totalAmount","totalTaxAmount","type","unitCost"],"type":"object","properties":{"type":{"type":"string","description":"The type of item.","enum":["discount","digital","giftCard","physical","shippingFee","storeCredit","salesTaxType","surcharge"]},"productCode":{"maxLength":180,"minLength":1,"pattern":"^([a-zA-Z0-9]*)$","type":"string","description":"Your customer facing product code, e.g. SKU (stock keeping unit) or similar."},"name":{"maxLength":260,"minLength":1,"pattern":"([a-zA-Z0-9 ]*)","type":"string","description":"Description or name of item, e.g. “mobile phone”."},"quantity":{"maximum":2147483647,"minimum":0,"type":"number","description":"Number of items being purchased."},"unitOfMeasure":{"maxLength":8,"minLength":1,"pattern":"^([a-zA-Z0-9 ]*)$","type":"string","description":"Free text field used to describe the unit of the item given, e.g. “kg”, “pcs”, “tickets”."},"unitCost":{"maximum":100000000,"type":"number","description":"Cost for each unit of the item with tax included."},"taxRate":{"maximum":10000,"type":"number","description":"Rate of tax as a percentage to be applied to the order line. Use the current tax rate on the date of order."},"totalTaxAmount":{"maximum":2147483647,"type":"number","description":"How much of totalAmount is tax. If you need to work it out backwards the formula is: totalTaxAmount = totalAmount - (totalAmount / (1+(taxRate/10000)))."},"totalAmount":{"maximum":2147483647,"type":"number","description":"Sum of all chargeable elements on the line added together. Formula is: totalAmount = (unitCost x quantity) - totalDiscountAmount."},"totalDiscountAmount":{"maximum":2147483647,"type":"number","description":"Total line discount."},"productUrl":{"maxLength":1024,"minLength":1,"type":"string","description":"Link to the product page that can later be embedded in communications between Klarna and your customer."},"imageUrl":{"maxLength":1024,"minLength":1,"type":"string","description":"Link to the product image that can later be embedded in communications between Klarna and your customer.\n\nNote: we recommend you submit this to improve the post-purchase customer experience."}}},"Order":{"required":["items","orderTotalTaxAmount","termsUrl"],"type":"object","properties":{"orderTotalTaxAmount":{"maximum":2147483647,"type":"number","description":"Sum of all tax in the order. A validation mechanism is in place to verify the tax calculations provided are correct and match the line level tax amounts."},"termsUrl":{"maxLength":1024,"minLength":1,"type":"string","description":"Link to your “Terms and Conditions”."},"items":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Item"}}}},"KlarnaRecurringCustomerAgreement":{"required":["description","endDate","startDate","type"],"type":"object","properties":{"type":{"type":"string","enum":["recurring"]},"description":{"maxLength":255,"minLength":1,"type":"string","description":"Description of subscription, e.g. \"Monthly lenses plan\"."},"agreementName":{"maxLength":255,"minLength":1,"type":"string","description":"Name of the product on subscription, e.g. \"Contact lenses\" (displayed as it would be on a bill). The subscription name you send is accepted, regardless of whether it exists on your side."},"startDate":{"pattern":"^\\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"Start date for the billing period the payment is for.","example":"2024-01-01"},"endDate":{"pattern":"^\\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"End date for the billing period the payment is for.","example":"2024-01-01"},"affiliateName":{"maxLength":255,"minLength":1,"type":"string","description":"Affiliate marketing name that makes the product memorable and impactful."}}},"KlarnaRecurringInstruction":{"required":["customerAgreement","narrative","order","paymentInstrument","resultUrls"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["klarna"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/KlarnaPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsKlarnaBase"},"shipping":{"$ref":"#/components/schemas/KlarnaShipping"},"customer":{"$ref":"#/components/schemas/CustomerWithAdditionalDetails"},"order":{"$ref":"#/components/schemas/Order"},"customerAgreement":{"$ref":"#/components/schemas/KlarnaRecurringCustomerAgreement"}}},"KlarnaTokenInstrumentV2":{"required":["country","language","tokenId","type"],"type":"object","properties":{"type":{"type":"string","enum":["token"]},"tokenId":{"type":"string"},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"}}},"KlarnaFollowupCustomerAgreement":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["recurring"]}}},"KlarnaFollowupInstruction":{"required":["customerAgreement","narrative","order","paymentInstrument","resultUrls"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["klarna"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/KlarnaTokenInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsKlarnaBase"},"shipping":{"$ref":"#/components/schemas/KlarnaShipping"},"customer":{"$ref":"#/components/schemas/CustomerWithAdditionalDetails"},"order":{"$ref":"#/components/schemas/Order"},"customerAgreement":{"$ref":"#/components/schemas/KlarnaFollowupCustomerAgreement"}}},"KonbiniInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/KonbiniInstrumentV2","checkout":"#/components/schemas/CheckoutKonbiniInstrumentV2"}}},"CheckoutKonbiniInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/KonbiniInstrumentV2","checkout":"#/components/schemas/CheckoutKonbiniInstrumentV2"}}},"ResultUrlsKonbini":{"required":["pending"],"type":"object","properties":{"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"}}},"CustomerDetailsKonbini":{"required":["email","lastName","phone"],"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"moriarty@example.com"},"lastName":{"maxLength":10,"minLength":1,"pattern":"^[a-zA-Z0-9- \\p{InCJK_Radicals_Supplement}\\p{InCJK_Symbols_and_Punctuation}\\p{InHiragana}\\p{InKatakana}\\p{InKatakana_Phonetic_Extensions}\\p{InEnclosed_CJK_Letters_and_Months}\\p{InCJK_Compatibility}\\p{InCJK_Unified_Ideographs_Extension_A}\\p{InCJK_Unified_Ideographs_Extension_B}\\p{InCJK_Unified_Ideographs}\\p{InCJK_Compatibility_Ideographs}\\p{InCJK_Compatibility_Ideographs_Supplement}\\p{InCJK_Compatibility_Forms}]*$","type":"string","description":"Your customer's last name."},"phone":{"maxLength":11,"minLength":10,"pattern":"^\\d*$","type":"string","description":"Your customer's phone number"}}},"KonbiniInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["konbini"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/KonbiniInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsKonbini"},"customer":{"$ref":"#/components/schemas/CustomerDetailsKonbini"}}},"MultibancoPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","example":"IT","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/MultibancoPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutMultibancoPaymentInstrumentV2"}}},"CheckoutMultibancoPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported ISO 3166-1 alpha-2 country code.","example":"IT","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/MultibancoPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutMultibancoPaymentInstrumentV2"}}},"MultibancoInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["multibanco"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/MultibancoPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"MyBankPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/MyBankPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutMyBankPaymentInstrumentV2"}}},"CheckoutMyBankPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/MyBankPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutMyBankPaymentInstrumentV2"}}},"MyBankInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["mybank"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/MyBankPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithName"}}},"CustomerWithId":{"required":["email"],"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"The customer's email address.","example":"customer@example.com"},"customerId":{"maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9]*$","type":"string","description":"Your unique reference for the customer so that the 'pay faster next time' function can be used during checkout. This allows the shoppers chosen bank to be stored for their next payment.","example":"44528abcd"}}},"OpenBankingPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"bankCode":{"maxLength":36,"minLength":1,"pattern":"^[a-zA-Z0-9]+$","type":"string","description":"36-character bank GUID must be included to be considered an SDK request. This is a bank identifier from the bank selection step on the SDK."}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/OpenBankingPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutOpenBankingPaymentInstrumentV2"}}},"CheckoutOpenBankingPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"bankCode":{"maxLength":36,"minLength":1,"pattern":"^[a-zA-Z0-9]+$","type":"string","description":"36-character bank GUID must be included to be considered an SDK request. This is a bank identifier from the bank selection step on the SDK."},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/OpenBankingPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutOpenBankingPaymentInstrumentV2"}}},"ResultUrlsOpenBanking":{"required":["cancel","failure","pending","success"],"type":"object","properties":{"success":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"minLength":1,"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"OpenBankingInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["open_banking"]},"expiryIn":{"maximum":43200,"minimum":30,"type":"integer","description":"Field is used for Pay by Link request. This parameter controls how many minutes a payment link will be available.","format":"int32","example":120},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"customer":{"$ref":"#/components/schemas/CustomerWithId"},"paymentInstrument":{"$ref":"#/components/schemas/OpenBankingPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsOpenBanking"}}},"PayPalInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"billingAddress":{"$ref":"#/components/schemas/PayPalBillingAddressV2"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PayPalInstrumentV2","checkout":"#/components/schemas/CheckoutPayPalInstrumentV2"}}},"CheckoutPayPalInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"billingAddress":{"$ref":"#/components/schemas/PayPalBillingAddressV2"},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PayPalInstrumentV2","checkout":"#/components/schemas/CheckoutPayPalInstrumentV2"}}},"PayPalBillingAddressV2":{"required":["address1","countryCode","state"],"type":"object","properties":{"address1":{"maxLength":80,"minLength":1,"type":"string"},"address2":{"maxLength":80,"minLength":1,"type":"string"},"address3":{"maxLength":80,"minLength":1,"type":"string"},"postalCode":{"maxLength":15,"minLength":1,"type":"string","description":"Only optional for country code IE (Ireland)."},"city":{"maxLength":50,"minLength":1,"type":"string","description":"Only optional for country code SG (Singapore)."},"state":{"maxLength":30,"minLength":1,"type":"string"},"countryCode":{"type":"string","description":"The supported [ISO 3166-1 alpha-2 country codes](/products/reference/supported-countries-currencies#iso-country-codes).","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"CustomerWithOptionalEmail":{"type":"object","properties":{"email":{"maxLength":128,"minLength":1,"pattern":"^(.+@.+\\..+)?$","type":"string","description":"Your customer's email address.","example":"customer@example.com"}}},"ResultUrls":{"type":"object","properties":{"success":{"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"type":"string","description":"The URL your customer is redirected to, after a failed payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"},"cancel":{"type":"string","description":"The URL your customer is redirected to, after a cancelled payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/cancel"}}},"Passenger":{"required":["code","firstName","lastName"],"type":"object","properties":{"code":{"maxLength":16,"minLength":1,"pattern":"^[A-Za-z0-9]*$","type":"string","description":"The passenger code."},"firstName":{"maxLength":60,"minLength":1,"type":"string","description":"The passenger’s first name."},"lastName":{"maxLength":60,"minLength":1,"type":"string","description":"The passenger’s last name."}},"description":"An object containing passenger details."},"IssuerAddress":{"required":["address1","city","countryCode","postalCode"],"type":"object","properties":{"address1":{"maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9 ]+$","type":"string","description":"The first line of the issuer's address."},"city":{"maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9 ]+$","type":"string","description":"The city of the issuer's address."},"countryCode":{"type":"string","description":"The country code of the issuer, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"postalCode":{"maxLength":10,"minLength":1,"pattern":"^[A-Za-z0-9 ]+$","type":"string","description":"The postal code of the issuer's address."}},"description":"An object containing the ticket issuer's address."},"FlightInfo":{"required":["arrivalAirport","carrierCode","departureAirport","departureDate","fareBasisCode","fareClassCode","flightCode","taxAmount"],"type":"object","properties":{"carrierCode":{"maxLength":2,"minLength":2,"pattern":"^[A-Z0-9]*$","type":"string","description":"Airline code for specific leg."},"flightCode":{"maxLength":4,"minLength":1,"pattern":"^[0-9]*$","type":"string","description":"The flight code."},"stopOver":{"type":"boolean","description":"Set to true if this flight leg is a stopover."},"departureAirport":{"maxLength":3,"minLength":3,"pattern":"^[A-Z]*$","type":"string","description":"The three letter IATA Airport Code for the departure airport."},"arrivalAirport":{"maxLength":3,"minLength":3,"pattern":"^[A-Z]*$","type":"string","description":"The three letter IATA Airport Code for the destination airport."},"departureDate":{"minLength":1,"pattern":"^(20[0-9]{2})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"Date of departure."},"fareClassCode":{"maxLength":15,"minLength":1,"pattern":"^[A-Z]*$","type":"string","description":"The code used by airlines to identify a fare type."},"fareBasisCode":{"maxLength":15,"minLength":1,"pattern":"^[A-Za-z0-9]*$","type":"string","description":"An extension to the fareClassCode for custom codes."},"taxAmount":{"minimum":0,"type":"integer","description":"The tax amount for this specific flight leg.","format":"int32"}},"description":"Array of flight legs (up to four)."},"Ticket":{"required":["flightDetails","issueDate","issuerAddress","number","restricted"],"type":"object","properties":{"number":{"maxLength":16,"minLength":1,"pattern":"^[A-Za-z0-9]*$","type":"string","description":"The ticket number."},"restricted":{"type":"boolean","description":"Ticket restriction flag."},"issueDate":{"pattern":"^(20[0-9]{2})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"An object containing the ticket's issue date."},"issuerAddress":{"$ref":"#/components/schemas/IssuerAddress"},"flightDetails":{"maxItems":4,"minItems":1,"type":"array","description":"Array of flight legs (up to four).","items":{"$ref":"#/components/schemas/FlightInfo"}}},"description":"An object containing ticket details."},"IndustryData":{"required":["agentCode","agentName","airlineCode","airlineName","passenger","ticket","type"],"type":"object","properties":{"type":{"type":"string","description":"Industry type.","enum":["airline"]},"agentCode":{"maxLength":8,"minLength":1,"pattern":"^[0-9]+$","type":"string","description":"The IATA travel agency code."},"agentName":{"maxLength":26,"minLength":1,"type":"string","description":"The name of the travel agent."},"airlineCode":{"minLength":1,"pattern":"^[A-Z]{2}$","type":"string","description":"The two character IATA airline code."},"airlineName":{"maxLength":256,"minLength":1,"type":"string","description":"The name of the airline (displayed as it would be on a bill)."},"passenger":{"$ref":"#/components/schemas/Passenger"},"ticket":{"$ref":"#/components/schemas/Ticket"}},"description":"An object containing industry-specific order data."},"PayPalInstruction":{"required":["method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["paypal"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/PayPalInstrumentV2"},"settlement":{"$ref":"#/components/schemas/Settlement"},"shipping":{"$ref":"#/components/schemas/Shipping"},"customer":{"$ref":"#/components/schemas/CustomerWithOptionalEmail"},"resultUrls":{"$ref":"#/components/schemas/ResultUrls"},"industryData":{"$ref":"#/components/schemas/IndustryData"}}},"PaysafeCardPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PaysafeCardPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutPaysafeCardPaymentInstrumentV2"}}},"CheckoutPaysafeCardPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PaysafeCardPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutPaysafeCardPaymentInstrumentV2"}}},"PaysafeCardInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["paysafecard"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"paymentInstrument":{"$ref":"#/components/schemas/PaysafeCardPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"}}},"PixPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PixPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutPixPaymentInstrumentV2"}}},"CheckoutPixPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PixPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutPixPaymentInstrumentV2"}}},"IdentityDocuments":{"type":"object","properties":{"reference":{"pattern":"^(\\d*)$","type":"string","description":"Serial number of customer's identity document which is being sent for payment creation. This is a conditional field which, if sent, must be accompanied with serial number of the document and customer's first name and last name. Must be 11 chars for CPF and 14 chars in case of CNPJ."},"type":{"type":"string","description":"Type of customer's identity document which is being sent for payment creation. This is a conditional field which, if sent, must be accompanied with serial number of the document and customer's first name and last name. It can be either CPF or CNPJ.","enum":["CPF","CNPJ"]}},"description":"Object that contains identity document information."},"CustomerWithIdentity":{"type":"object","properties":{"firstName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's first name."},"lastName":{"maxLength":22,"minLength":1,"type":"string","description":"Your customer's last name."},"identityDocuments":{"$ref":"#/components/schemas/IdentityDocuments"}}},"PixInstruction":{"required":["method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["pix"]},"expiryIn":{"maximum":86400,"type":"integer","description":"Time the QR code will remain valid, in seconds. If not provided, the default value of 86400 seconds is set.","format":"int32"},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/PixPaymentInstrumentV2"},"customer":{"$ref":"#/components/schemas/CustomerWithIdentity"}}},"PrzelewyInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PrzelewyInstrumentV2","checkout":"#/components/schemas/CheckoutPrzelewyInstrumentV2"}}},"CheckoutPrzelewyInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/PrzelewyInstrumentV2","checkout":"#/components/schemas/CheckoutPrzelewyInstrumentV2"}}},"PrzelewyInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["przelewy"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/PrzelewyInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"SepaInstrumentV2":{"required":["accountHolderName","iban","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"iban":{"maxLength":31,"minLength":1,"type":"string","description":"IBAN (International Bank Account Number)."},"accountHolderName":{"maxLength":255,"minLength":1,"type":"string","description":"Account holder name."},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"},"swiftBic":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9]+$","type":"string","description":"SEPA Direct Debit transactions to non-EEA countries require a BIC code, in addition to an IBAN. This attribute is mandatory for the UK, Switzerland, Monaco, Andorra, San Marino, Vatican city and Gibraltar."}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SepaInstrumentV2","checkout":"#/components/schemas/CheckoutSepaInstrumentV2"}}},"CheckoutSepaInstrumentV2":{"required":["accountHolderName","iban","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"iban":{"maxLength":31,"minLength":1,"type":"string","description":"IBAN (International Bank Account Number)."},"accountHolderName":{"maxLength":255,"minLength":1,"type":"string","description":"Account holder name."},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"},"swiftBic":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9]+$","type":"string","description":"SEPA Direct Debit transactions to non-EEA countries require a BIC code, in addition to an IBAN. This attribute is mandatory for the UK, Switzerland, Monaco, Andorra, San Marino, Vatican city and Gibraltar."},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SepaInstrumentV2","checkout":"#/components/schemas/CheckoutSepaInstrumentV2"}}},"SepaDirectInstrumentV2":{"required":["accountHolderName","iban","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"iban":{"maxLength":31,"minLength":1,"type":"string","description":"IBAN (International Bank Account Number)."},"accountHolderName":{"maxLength":255,"minLength":1,"type":"string","description":"Account holder name."},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},"billingAddress":{"$ref":"#/components/schemas/AddressV2"},"swiftBic":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9]+$","type":"string","description":"SEPA Direct Debit transactions to non-EEA countries require a BIC code, in addition to an IBAN. This attribute is mandatory for the UK, Switzerland, Monaco, Andorra, San Marino, Vatican city and Gibraltar."}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SepaInstrumentV2","checkout":"#/components/schemas/CheckoutSepaInstrumentV2"}}},"SepaCustomerAgreementOneTime":{"required":["mandate","type"],"type":"object","properties":{"type":{"type":"string","enum":["oneTime"]},"mandate":{"$ref":"#/components/schemas/MandateOneTime"}},"description":"Object that contains agreement information.","discriminator":{"propertyName":"type","mapping":{"guest":"#/components/schemas/SepaCustomerAgreementOneTime","recurring":"#/components/schemas/SepaCustomerAgreementRecurring"}}},"MandateRecurring":{"required":["mandateId","type"],"type":"object","properties":{"type":{"type":"string","enum":["recurring"]},"mandateId":{"maxLength":35,"minLength":1,"pattern":"^M-[0-9]{9}-[a-zA-Z0-9]+$","type":"string","description":"Unique reference created by you which identifies each e-Mandate signed by your customer. See our [formatting requirements overview](/products/articles/sepa-emandate-and-best-practice#mandate-ids)."},"mandateSignatureDate":{"pattern":"^\\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"ISO 8601 date-time (yyyy-mm-dd) when mandate has been signed."},"description":{"maxLength":255,"minLength":1,"type":"string","description":"Description of why the recurring payment is being created."}}},"SepaCustomerAgreementRecurring":{"required":["mandate","type"],"type":"object","properties":{"type":{"type":"string","enum":["recurring"]},"mandate":{"$ref":"#/components/schemas/MandateRecurring"}},"description":"Object that contains agreement information."},"MandateOneTime":{"required":["mandateId","type"],"type":"object","properties":{"type":{"type":"string","enum":["oneTime"]},"mandateId":{"maxLength":35,"minLength":1,"pattern":"^M-[0-9]{9}-[a-zA-Z0-9]+$","type":"string","description":"Unique reference created by you which identifies each e-Mandate signed by your customer. See our [formatting requirements overview](/products/articles/sepa-emandate-and-best-practice#mandate-ids)."},"mandateSignatureDate":{"pattern":"^\\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$","type":"string","description":"ISO 8601 date-time (yyyy-mm-dd) when mandate has been signed."},"description":{"maxLength":255,"minLength":1,"type":"string","description":"Description of why the recurring payment is being created."}}},"SepaInstruction":{"required":["customer","customerAgreement","narrative","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["sepa"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/SepaDirectInstrumentV2"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"customerAgreement":{"$ref":"#/components/schemas/SepaCustomerAgreementOneTime"}}},"SepaTokenInstrumentV2":{"required":["tokenId","type"],"type":"object","properties":{"type":{"type":"string","enum":["token"]},"tokenId":{"type":"string","description":"ID of the token generated by us. We return this in the SEPA DD recurring response."}}},"SepaTokenCustomerAgreement":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["recurring"]},"reference":{"maxLength":64,"minLength":1,"type":"string"}}},"SepaTokenInstruction":{"required":["customer","customerAgreement","narrative","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["sepa"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/SepaTokenInstrumentV2"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"},"customerAgreement":{"$ref":"#/components/schemas/SepaTokenCustomerAgreement"}}},"SafetyPayInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SafetyPayInstrumentV2","checkout":"#/components/schemas/CheckoutSafetyPayInstrumentV2"}}},"CheckoutSafetyPayInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SafetyPayInstrumentV2","checkout":"#/components/schemas/CheckoutSafetyPayInstrumentV2"}}},"SafetyPayInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["safetypay"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/SafetyPayInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"SatispayPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}}},"SatispayInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["satispay"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/SatispayPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithName"}}},"SwishPaymentInstrument":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SwishPaymentInstrument","checkout":"#/components/schemas/CheckoutSwishPaymentInstrument"}}},"CheckoutSwishPaymentInstrument":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/SwishPaymentInstrument","checkout":"#/components/schemas/CheckoutSwishPaymentInstrument"}}},"CustomerWithOptionalPhone":{"type":"object","properties":{"phone":{"maxLength":15,"minLength":5,"pattern":"^\\d*$","type":"string","description":"Your customer's phone number.","example":"34700000001"}}},"SwishInstruction":{"required":["method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["swish"]},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"value":{"$ref":"#/components/schemas/ValueV2"},"paymentInstrument":{"$ref":"#/components/schemas/SwishPaymentInstrument"},"customer":{"$ref":"#/components/schemas/CustomerWithOptionalPhone"}}},"TrustlyPaymentInstrumentV2":{"required":["country","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/TrustlyPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutTrustlyPaymentInstrumentV2"}}},"CheckoutTrustlyPaymentInstrumentV2":{"required":["country","sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"country":{"type":"string","description":"Your customer's country, must be a supported ISO 3166-1 alpha-2 country code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/TrustlyPaymentInstrumentV2","checkout":"#/components/schemas/CheckoutTrustlyPaymentInstrumentV2"}}},"TrustlyInstruction":{"required":["customer","method","narrative","paymentInstrument","resultUrls","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["trustly"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/TrustlyPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsWithoutFailure"},"customer":{"$ref":"#/components/schemas/CustomerWithEmail"}}},"ChinaUnionPayPaymentInstrumentV2":{"required":["language","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct"]},"language":{"type":"string","description":"Your customer's language, must be a supported ISO 639-1 language code.","enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]}}},"ResultUrlsChinaUnionPay":{"type":"object","properties":{"success":{"type":"string","description":"The URL your customer is redirected to, after a successful payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/success"},"pending":{"type":"string","description":"The URL your customer is redirected to, after a pending payment outcome.","example":"https://worldpay-bsh.securedataplatform.co.uk/pending"},"failure":{"type":"string","description":"The URL your customer is redirected to, after a payment creation fails.","example":"https://worldpay-bsh.securedataplatform.co.uk/failure"}}},"ChinaUnionPayInstruction":{"required":["method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["unionpay"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/ChinaUnionPayPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsChinaUnionPay"}}},"WeChatPayInstrumentV2":{"required":["type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/WeChatPayInstrumentV2","checkout":"#/components/schemas/CheckoutWeChatPayInstrumentV2"}}},"CheckoutWeChatPayInstrumentV2":{"required":["sessionHref","type"],"type":"object","properties":{"type":{"type":"string","enum":["direct","checkout"]},"sessionHref":{"type":"string","description":" URL of the session in which customer fields can be saved via Components SDK.","format":"uri"}},"discriminator":{"propertyName":"type","mapping":{"direct":"#/components/schemas/WeChatPayInstrumentV2","checkout":"#/components/schemas/CheckoutWeChatPayInstrumentV2"}}},"WeChatPayInstruction":{"required":["method","narrative","paymentInstrument","value"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["wechatpay"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"expiryIn":{"maximum":120,"minimum":1,"type":"integer","description":"Payment expiration limit in minutes, with a value between 1 and 120.","format":"int32","example":15},"paymentInstrument":{"$ref":"#/components/schemas/WeChatPayInstrumentV2"}}},"KlarnaInstruction":{"required":["narrative","order","paymentInstrument","resultUrls"],"type":"object","properties":{"method":{"type":"string","description":"Type of payment method.","enum":["klarna"]},"value":{"$ref":"#/components/schemas/ValueV2"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"paymentInstrument":{"$ref":"#/components/schemas/KlarnaPaymentInstrumentV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsKlarnaBase"},"shipping":{"$ref":"#/components/schemas/KlarnaShipping"},"customer":{"$ref":"#/components/schemas/CustomerWithAdditionalDetails"},"order":{"$ref":"#/components/schemas/Order"}}},"Customer":{"type":"object"},"ResultUrlsBase":{"type":"object","properties":{"success":{"type":"string"},"pending":{"type":"string"},"failure":{"type":"string"},"cancel":{"type":"string"}}},"PaymentInstrumentV2":{"type":"object","properties":{"type":{"type":"string","enum":["direct","token","checkout"]}}},"InstructionV2":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/ValueV2"},"method":{"type":"string","description":"Type of payment method."},"customer":{"$ref":"#/components/schemas/Customer"},"narrative":{"$ref":"#/components/schemas/NarrativeV2"},"resultUrls":{"$ref":"#/components/schemas/ResultUrlsBase"},"paymentInstrument":{"$ref":"#/components/schemas/PaymentInstrumentV2"}},"description":"Object that contains the payment type and details.","discriminator":{"propertyName":"method","mapping":{"ach":"#/components/schemas/AchInstruction","alipay_cn":"#/components/schemas/AlipayCnInstruction","alipay_hk":"#/components/schemas/AlipayHkInstruction","alipay_uni":"#/components/schemas/AlipayPlusInstruction","bancomat":"#/components/schemas/BancomatPayInstruction","bancontact":"#/components/schemas/BancontactInstruction","bizum":"#/components/schemas/BizumInstruction","blik":"#/components/schemas/BlikInstruction","eft":"#/components/schemas/EftInstruction","euteller":"#/components/schemas/EutellerInstruction","floa":"#/components/schemas/FloaInstruction","ideal guest":"#/components/schemas/IdealInstruction","ideal recurring":"#/components/schemas/IdealRecurringInstruction","klarna":"#/components/schemas/KlarnaNetworkInstruction","klarna recurring":"#/components/schemas/KlarnaRecurringInstruction","klarna token":"#/components/schemas/KlarnaFollowupInstruction","konbini":"#/components/schemas/KonbiniInstruction","multibanco":"#/components/schemas/MultibancoInstruction","mybank":"#/components/schemas/MyBankInstruction","open_banking":"#/components/schemas/OpenBankingInstruction","paypal":"#/components/schemas/PayPalInstruction","paysafecard":"#/components/schemas/PaysafeCardInstruction","pix":"#/components/schemas/PixInstruction","przelewy":"#/components/schemas/PrzelewyInstruction","sepa guest and first recurring":"#/components/schemas/SepaInstruction","sepa token":"#/components/schemas/SepaTokenInstruction","safetypay":"#/components/schemas/SafetyPayInstruction","satispay":"#/components/schemas/SatispayInstruction","swish":"#/components/schemas/SwishInstruction","trustly":"#/components/schemas/TrustlyInstruction","unionpay":"#/components/schemas/ChinaUnionPayInstruction","wechatpay":"#/components/schemas/WeChatPayInstruction"}},"oneOf":[{"$ref":"#/components/schemas/AchInstruction"},{"$ref":"#/components/schemas/AlipayCnInstruction"},{"$ref":"#/components/schemas/AlipayHkInstruction"},{"$ref":"#/components/schemas/AlipayPlusInstruction"},{"$ref":"#/components/schemas/BancomatPayInstruction"},{"$ref":"#/components/schemas/BancontactInstruction"},{"$ref":"#/components/schemas/BizumInstruction"},{"$ref":"#/components/schemas/BlikInstruction"},{"$ref":"#/components/schemas/EutellerInstruction"},{"$ref":"#/components/schemas/FloaInstruction"},{"$ref":"#/components/schemas/IdealInstruction"},{"$ref":"#/components/schemas/IdealRecurringInstruction"},{"$ref":"#/components/schemas/KlarnaNetworkInstruction"},{"$ref":"#/components/schemas/KlarnaInstruction"},{"$ref":"#/components/schemas/KlarnaRecurringInstruction"},{"$ref":"#/components/schemas/KlarnaFollowupInstruction"},{"$ref":"#/components/schemas/KonbiniInstruction"},{"$ref":"#/components/schemas/MultibancoInstruction"},{"$ref":"#/components/schemas/MyBankInstruction"},{"$ref":"#/components/schemas/OpenBankingInstruction"},{"$ref":"#/components/schemas/PayPalInstruction"},{"$ref":"#/components/schemas/PaysafeCardInstruction"},{"$ref":"#/components/schemas/PixInstruction"},{"$ref":"#/components/schemas/PrzelewyInstruction"},{"$ref":"#/components/schemas/SepaInstruction"},{"$ref":"#/components/schemas/SepaTokenInstruction"},{"$ref":"#/components/schemas/SafetyPayInstruction"},{"$ref":"#/components/schemas/SwishInstruction"},{"$ref":"#/components/schemas/TrustlyInstruction"},{"$ref":"#/components/schemas/WeChatPayInstruction"}]},"ApmPaymentRequestV2":{"required":["instruction","merchant","transactionReference"],"type":"object","properties":{"transactionReference":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_/!@#$%()*=.:;?\\[\\]{}~+]*$","type":"string","description":"For Bizum transactions, please follow this extra regex [a-zA-Z0-9]{4,12}"},"orderReference":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_/!@#$%()*=.:;?\\[\\]{}~+]*$","type":"string","description":"A reference that you can apply to one or more payments according to your business needs.\nYou may reuse the same reference across multiple payments, for example where:\n- the total amount for a single order is split across multiple payments\n- you use a single reference for each payment in a recurring agreement or split shipment scenario"},"merchant":{"$ref":"#/components/schemas/MerchantV2"},"instruction":{"$ref":"#/components/schemas/InstructionV2"}}}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Recommendation"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We suggest you provide the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelURL"]},",",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failureURL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pendingURL"]}," and  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["successURL"]}," attribute to redirect your customer to, once you have received the payment result."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"response","__idx":13},"children":["Response"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-response","__idx":14},"children":["Example response"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Guest response","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/klarna/klarna-response.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n  \"paymentInstrument\": {\n    \"method\": \"klarna_network\",\n    \"type\": \"direct\"\n  },\n  \"paymentId\": \"eyJrIjoiYXBtLXNlcnZpY2UtZGVmYXVsdCIsImxpbmtWZXJzaW9uIjoiNi4wLjAifQ==.BnnxxcMle38OazhwbF8J+4rtJi8CAq:Y3zUOn1dw6VWfvx:PHL5L0S+5ara5vz6ouV5yBmVUQCiSwQjs+1x5qJIJxAKWMWc2Mlb1doricEYlzsZIRIGCflvnYu1Ns8g1S0+66n6wCELiB9OHfX7cdCRSkT0a4UjAkBr16y36rhHD8i3MfeowBaRA60gR5WdTem66NOYspir3PJsMwGsI7JUSNUzNfcyYf:9A8ONjOcqG6UxedN+MVzWk3lOYs4HS580KRMMNREpmBeBMSEX5ykio0WGxZ:7eYQxnPFsTnA:7:SEfTDcAZofBDiAWAe+s8H9:TD3hQpRcoIM3I9mxkgdPhXDL2OFpFf7pNzE4GPA9QEPQrIYQg:q3eZ7ziTPGD:iOAJXRIEuMq+GdkYs3SWlTzbiGM76:BcqQDY0BAUI9GaFhKLR:b0g9SIKK71Rk9YpTLeiVSfZMnt+9116oW2VHgWW6AoAt202XuJ0AU7aToTM6HDqlAkiOs66Po3TBIlIqmMW0DQb44taw0DeEnQ==\",\n  \"lastEvent\": \"pending\",\n  \"_links\": {\n    \"self\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/apmPayments/eyJrIjoiYXBtLXNlcnZpY2UtZGVmYXVsdCIsImxpbmtWZXJzaW9uIjoiNi4wLjAifQ==.BnnxxcMle38OazhwbF8J+4rtJi8CAq:Y3zUOn1dw6VWfvx:PHL5L0S+5ara5vz6ouV5yBmVUQCiSwQjs+1x5qJIJxAKWMWc2Mlb1doricEYlzsZIRIGCflvnYu1Ns8g1S0+66n6wCELiB9OHfX7cdCRSkT0a4UjAkBr16y36rhHD8i3MfeowBaRA60gR5WdTem66NOYspir3PJsMwGsI7JUSNUzNfcyYf:9A8ONjOcqG6UxedN+MVzWk3lOYs4HS580KRMMNREpmBeBMSEX5ykio0WGxZ:7eYQxnPFsTnA:7:SEfTDcAZofBDiAWAe+s8H9:TD3hQpRcoIM3I9mxkgdPhXDL2OFpFf7pNzE4GPA9QEPQrIYQg:q3eZ7ziTPGD:iOAJXRIEuMq+GdkYs3SWlTzbiGM76:BcqQDY0BAUI9GaFhKLR:b0g9SIKK71Rk9YpTLeiVSfZMnt+9116oW2VHgWW6AoAt202XuJ0AU7aToTM6HDqlAkiOs66Po3TBIlIqmMW0DQb44taw0DeEnQ==\"\n    }\n  },\n  \"_actions\": {},\n  \"redirect\": \"https://secure-test.worldpay-bsh.securedataplatform.co.uk/jsp/test/shopper/APMSTSimulator.jsp?customerRef=3501456267&paymentMethod=KLARNA_NETWORK\",\n  \"commandId\": \"cmdF3buj-w58hiyu4I-QZqZi0\"\n}"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Error response","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/error.json","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"{\n  \"errorName\": \"bodyDoesNotMatchSchema\",\n  \"message\": \"The json body provided does not match the expected schema\",\n  \"validationErrors\": [\n    {\n      \"errorName\": \"fieldHasInvalidValue\",\n      \"message\": \"Field is mandatory\",\n      \"jsonPath\": \"$.instruction.value.amount\"\n    }\n  ]\n}"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"schema","__idx":15},"children":["Schema"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"$ref":"openapi.yaml#/components/schemas/PaymentResourceWithTransactionCode"},"options":{"schemaExpansionLevel":0},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"$ref":"#/components/schemas/PaymentResourceWithTransactionCode"},"SelfLink":{"type":"object","properties":{"href":{"type":"string"}},"description":"The URL you can invoke to fetch the last event for the payment."},"Links":{"type":"object","properties":{"self":{"$ref":"#/components/schemas/SelfLink"}},"description":"Links to resources related to the request."},"ActionLink":{"type":"object","properties":{"href":{"type":"string"},"method":{"type":"string"}},"description":"Link to resource to reverse, partially reverse, settle, partially settle, or confirm payment."},"ActionsV2":{"type":"object","properties":{"reverse":{"$ref":"#/components/schemas/ActionLink"},"partialReverse":{"$ref":"#/components/schemas/ActionLink"},"settle":{"$ref":"#/components/schemas/ActionLink"},"confirmPayment":{"$ref":"#/components/schemas/ActionLink"}}},"apm":{"title":"All others","type":"object","properties":{"method":{"type":"string","description":"Payment method."},"type":{"type":"string","description":"Type of the payment instrument."}},"description":"Payment instrument for: ACH, Alipay China, Alipay Hong Kong, Alipay Plus, BANCOMAT Pay, Bancontact, Bizum, BLIK, EFT, Euteller, iDEAL guest, iDEAL recurring, Klarna, Klarna (recurring), Konbini, Multibanco, MyBank, Open Banking, PaysafeCard, Pix, Przelewy24, SafetyPay, Satispay, Swish, Trustly, China UnionPay, WeChat Pay."},"paypal":{"title":"PayPal","type":"object","properties":{"method":{"type":"string","description":"Payment method."},"type":{"type":"string","description":"Type of the payment instrument.","enum":["redirect","sdk"]},"sdkReference":{"type":"string","description":"SDK reference for smart button."}},"description":"PayPal payment instrument."},"sepa":{"title":"SEPA DD","type":"object","properties":{"method":{"type":"string","description":"Payment method."},"type":{"type":"string","description":"Type of the payment instrument."},"tokenId":{"type":"string","description":"ID of the token generated by us. We return this in the SEPA DD recurring response."}},"description":"SEPA DD payment instrument."},"klarna_followup":{"title":"Klarna (recurring) token","type":"object","properties":{"method":{"type":"string","description":"Payment method."},"type":{"type":"string","description":"Type of the payment instrument."},"tokenId":{"type":"string","description":"Token ID."},"country":{"type":"string","description":"Country."},"productType":{"type":"string","description":"Product type."}},"description":"Klarna (recurring) token payment instrument."},"PaymentInstrument":{"type":"object","properties":{"method":{"type":"string","description":"Payment method."},"type":{"type":"string","description":"Type of the payment instrument."}},"description":"Payment instrument details for the payment response.","oneOf":[{"$ref":"#/components/schemas/apm"},{"$ref":"#/components/schemas/paypal"},{"$ref":"#/components/schemas/sepa"},{"$ref":"#/components/schemas/klarna_followup"}]},"PaymentResourceWithTransactionCode":{"type":"object","properties":{"paymentId":{"type":"string","description":"The identifier of the payment resource."},"lastEvent":{"type":"string","enum":["authorized","cancelFailed","cancelled","cancelRequested","sentForSettlement","sentForAuthorization","settlementFailed","chargebackReversed","chargedBack","disputeExpired","disputeFundsHeld","disputeFundsReleased","disputeReserveReleased","error","expired","disputeInformationRequested","disputeInformationSupplied","miscellaneous","pending","refunded","refundExpired","refundFailed","refundReversed","refused","refusedByIssuer","requestExpired","sentForRefund","settled","settlementReversed","cancelledByCustomer","signedFormReceived","unknown","manuallyAmended"]},"_links":{"$ref":"#/components/schemas/Links"},"_actions":{"$ref":"#/components/schemas/ActionsV2"},"redirect":{"type":"string","description":"The URL to redirect your customer to, or a QR code in Base64 to show to your customer, in order to complete the transaction."},"commandId":{"type":"string","description":"An action ID generated by us, identifying a single merchant interaction.","example":"cmdYNdIHBPJwbkjLiykzTx0"},"paymentInstrument":{"$ref":"#/components/schemas/PaymentInstrument"},"transactionCode":{"type":"string","description":"For **Pix payments** - display to your customer for them to copy and paste in the Pix app.\n\n          For **Swish payments** - use this value as the {token} in the custom URL scheme: `swish://paymentrequest?token={token}&callbackurl={callbackURL}`. This will prompt the app to open, allowing your customer to complete their payment.","example":"IZQ3iUfePwiWiwldJlipl8NGVA7w5IUg"}}}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"errors","__idx":16},"children":["Errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check out our API reference for ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/apms/openapi/payment/paymentv2#payment/paymentv2/response&c=400"},"children":["more responses or error codes"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"simulation","__idx":17},"children":["Simulation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To simulate payment outcomes and trigger webhooks in our Try environment you can send a request prompting our simulator."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You receive a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["redirect"]}," link to our simulator where you can choose different payment outcomes:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Simulator outcome option"},"children":["Simulator outcome option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Payment status"},"children":["Payment status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authorised"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorized"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Payment authorized successfully."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Refused"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refused"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unsuccessful payment - failure response from the provider."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Error in processing the payment or the session timed out."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopper Cancelled"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your customer cancelled the transaction."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/apms/openapi/payment-lifecycle/query"},"children":["Query the payment"]}," to receive the desired payment status."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also send requests to settlement or reversal endpoints to test the following statuses:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentForSettlement"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentForRefund"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next steps"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/apms/manage/"},"children":["Manage your Klarna payment"]}]}]},"headings":[{"value":"Klarna","id":"klarna","depth":1},{"value":"Capabilities","id":"capabilities","depth":4},{"value":"Brand and marketing guidelines","id":"brand-and-marketing-guidelines","depth":4},{"value":"Feature summary","id":"feature-summary","depth":4},{"value":"Acceptance currencies","id":"acceptance-currencies","depth":4},{"value":"Customer journey and integration options","id":"customer-journey-and-integration-options","depth":3},{"value":"Full page redirect - APMs API only","id":"full-page-redirect---apms-api-only","depth":4},{"value":"Klarna Web SDK presentation","id":"klarna-web-sdk-presentation","depth":4},{"value":"Supplementary purchase data","id":"supplementary-purchase-data","depth":3},{"value":"Get started","id":"get-started","depth":2},{"value":"Request","id":"request","depth":2},{"value":"Example request","id":"example-request","depth":3},{"value":"Parameters","id":"parameters","depth":3},{"value":"Response","id":"response","depth":2},{"value":"Example response","id":"example-response","depth":3},{"value":"Schema","id":"schema","depth":3},{"value":"Errors","id":"errors","depth":4},{"value":"Simulation","id":"simulation","depth":2}],"frontmatter":{"seo":{"title":"Klarna"}},"lastModified":"2026-07-06T08:56:03.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/apms/klarna","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}