# Two Documentation > Two provides B2B payment infrastructure APIs for trade accounts, checkout, invoicing, and more. - [Chatbot knowledge](https://docs.two.inc/llms-chatbot.txt): Self-contained documentation for knowledge import; includes request examples and response fields, without duplicated raw specs or response examples - [Full documentation](https://docs.two.inc/llms-full.txt): Complete documentation in a single file ## Guides - [Comprehensive Integration Assessment](https://docs.two.inc/llms/guides/acceptance-test-page.txt): Welcome to your essential guide for evaluating your integration with Two's B2B payment solutions. This document provides a structured approach to... - [OpenAPI Spec Downloads](https://docs.two.inc/llms/guides/api-spec-downloads-page.txt): Use this selector to download the latest OpenAPI YAML for the API you are - [Billing Period and Statement Documents](https://docs.two.inc/llms/guides/billing-period-and-statement-documents.txt): Use these endpoints to show buyers the invoices and credit notes that Two has assigned to a billing period or included in an issued statement. They... - [Child Orders](https://docs.two.inc/llms/guides/child-orders-page.txt): Child orders are a concept within Two's system that emerges when an original order is partially - [Understanding Decline Reasons](https://docs.two.inc/llms/guides/decline-reasons-page.txt): When processing orders through Two's APIs—such as Order Creation (POST /v1/order, POST /v1/order_intent) or customer onboarding (POST... - [Getting API Keys](https://docs.two.inc/llms/guides/getting-api-keys-page.txt): To interact with Two's APIs, you need to authenticate your requests using API keys. This guide explains how to generate and manage these keys for... - [Identifying Companies](https://docs.two.inc/llms/guides/identifying-companies-with-company-api.txt): This guide details how to effectively use Two's Company API to find businesses, gather their verified information, and use this data to accurately... - [Two Documentation](https://docs.two.inc/llms/guides.txt): Unified APIs for B2B payments, onboarding, and business - [Integration Notebooks](https://docs.two.inc/llms/guides/integration-notebooks-page.txt): These notebooks are designed for integrating developers to test and understand how our main API services work. They're all set up for use within our... - [Two Marketing Kit](https://docs.two.inc/llms/guides/marketing-kit-page.txt): The purpose of this Merchant Marketing Kit is to provide you everything you need to make sure your B2B customers know how they can purchase with - [Merchant & Partner FAQ](https://docs.two.inc/llms/guides/merchant-partner-faq-page.txt): This FAQ covers common operational questions for merchants and platform partners using - [Merchant & Partner Guide](https://docs.two.inc/llms/guides/merchant-partner-guide.txt): This guide is for merchant and partner operations teams working with Two in daily order, invoicing, and support - [Miro Boards](https://docs.two.inc/llms/guides/miro-boards-page.txt): The integration diagrams presented here illustrate the fundamental happy path for our API services, offering a streamlined overview of key API... - [Onfido Verification in Sandbox](https://docs.two.inc/llms/guides/onfido-verification-page.txt): Two utilizes Onfido for enhanced identity verification in specific scenarios, such as during Trade Account Onboarding or for higher-risk order... - [Order Creator](https://docs.two.inc/llms/guides/order-creator-page.txt): Order Creator lets merchants create B2B orders directly in the Two Merchant Portal. It is useful for offline sales flows such as phone, email,... - [Two Order States](https://docs.two.inc/llms/guides/order-states-page.txt): A Two order moves through a series of states from creation to completion or cancellation. Understanding these states helps you track, troubleshoot,... - [Webhooks](https://docs.two.inc/llms/guides/order-webhooks-api-page.txt): The Checkout API Order Webhooks allow merchants to gain visibility into how we reconcile incoming payments for the orders placed through our Two... - [Understanding the Order Creation Path with Two](https://docs.two.inc/llms/guides/path-to-order-creation.txt): This guide explains the essential steps and concepts for developers integrating Two's services directly via our API. A successful integration hinges... - [Trade Account Onboarding](https://docs.two.inc/llms/guides/path-to-trade-account-onboarding.txt): This guide explains how to integrate Two's Trade Account Onboarding process using the Trade Account API V3. This is an advanced workflow designed for... - [Postman Collections](https://docs.two.inc/llms/guides/postman-collections-page.txt): Use this plug-and-play Postman setup to test the core happy path - [Sandbox Behaviour](https://docs.two.inc/llms/guides/sandbox-behaviour-page.txt): Two's Sandbox Environment is a safe, isolated testing ground where you can develop your integration without moving real money or affecting live - [Setting Repayment Terms](https://docs.two.inc/llms/guides/setting-repayment-terms.txt): Repayment terms define when a buyer must pay. With Two, due dates depend on which flow you - [Settlement Reports](https://docs.two.inc/llms/guides/settlement-report-guide.txt): A settlement report explains how the amount in a payout was calculated. Use it to reconcile a Two payout with the orders, invoices, refunds, and fees... - [Invoice & Credit Note Templates](https://docs.two.inc/llms/guides/two-templates-page.txt): Two provides customisable templates for invoices and credit notes that are sent to your - [Billing Accounts & Grouped Statements](https://docs.two.inc/llms/guides/understanding-billing-accounts.txt): This guide explains how billing accounts and grouped statements behave for external - [Using Order Intent](https://docs.two.inc/llms/guides/using-order-intent.txt): This guide explains how to effectively use Two's POST /v1/order_intent endpoint. This is Step 2 in the Order Creation - [Order Validation & Calculations](https://docs.two.inc/llms/guides/validating-orders-page.txt): This guide provides a comprehensive overview of how to accurately calculate order amounts (including gross_amount, net_amount, and tax_amount) from... ## Plugins - [Craft Commerce Plugin](https://docs.two.inc/llms/plugins/craft.txt): Integrate Two's B2B payment solution into your Craft Commerce store, allowing business customers to pay on invoice with flexible payment - [Plugins](https://docs.two.inc/llms/plugins.txt): Two provides official plugins for popular e-commerce platforms, enabling you to offer flexible B2B payment solutions with minimal - [Magento Plugin](https://docs.two.inc/llms/plugins/magento.txt): Integrate Two's B2B payment solution into your Adobe Commerce or Magento 2 store, allowing business customers to pay on invoice with flexible payment... - [OpenCart Plugin](https://docs.two.inc/llms/plugins/opencart.txt): Integrate Two's B2B payment solution into your OpenCart store, allowing business customers to pay on invoice with flexible payment - [PrestaShop Plugin](https://docs.two.inc/llms/plugins/prestashop.txt): Integrate Two's B2B payment solution into your PrestaShop store, allowing business customers to pay on invoice with flexible payment - [Shopify Plugin](https://docs.two.inc/llms/plugins/shopify.txt): Integrate Two's B2B payment solution into your Shopify store via Mondido, allowing business customers to pay on invoice with flexible payment - [WooCommerce Plugin](https://docs.two.inc/llms/plugins/woocommerce.txt): Integrate Two's B2B payment solution into your WooCommerce store, allowing business customers to pay on invoice with flexible payment ## API Reference - [Retrieve Buyer Details](https://docs.two.inc/llms/api/autofill/get-current-buyer-details-get.txt): Retrieve details for the current buyer, for use in autopopulation of checkout fields. Per Two terms and conditions, this information **must not** be... - [Save Current Buyer Details](https://docs.two.inc/llms/api/autofill/store-current-buyer-details-post.txt): Save the specified buyer details for future retrieval. Per Two's terms and conditions, this service must only be used to store information exactly as... - [Delete Buyer Details.](https://docs.two.inc/llms/api/autofill/delete-current-buyer-details-delete.txt): Remove all saved details for the current buyer. This will remove all saved details that would be visible to the current merchant. This endpoint is... - [Create a Browser Delegation Token](https://docs.two.inc/llms/api/autofill/create-delegation-post.txt): Create a token for use within a buyer's browser. The token is returned as a response header called `Two-Delegated-Authority-Token`. To use the token,... - [Create new billing account handler](https://docs.two.inc/llms/api/billing-account/create-billing-account-post.txt): The endpoint `POST /billing/v1/account` enables the merchant to create a new billing account for a specific buyer. A billing account is a record of... - [Get billing account by ID.](https://docs.two.inc/llms/api/billing-account/get-billing-account-get.txt): The endpoint `/billing/v1/account/{id}` allows you to fetch the details for a given billing account that has been specified by its - [Update billing account handler](https://docs.two.inc/llms/api/billing-account/update-billing-account-patch.txt): Note: To update primary_email_addresses, cc_email_addresses, trade_names the request body must include all new values, including values that are not... - [Get billing accounts for a company.](https://docs.two.inc/llms/api/billing-account/get-billing-accounts-get.txt): The endpoint `/billing/v1/accounts` allows you to fetch all billing accounts associated with a specific buyer company against your - [Generate previews for billing statements](https://docs.two.inc/llms/api/billing-account/download-test-preview-for-merchant-get.txt): returns the statement as a file. Can choose period_status by status parameter. This will default to OPEN. Args: account_id (UUID): Billing... - [Get billing period summary](https://docs.two.inc/llms/api/billing-account/get-billing-period-summary-get.txt): "Statements" object: Contains all statements issued by Two for this billing period, each statement object reflecting information displayed on the... - [Get the current documents in a billing period.](https://docs.two.inc/llms/api/billing-account/get-billing-period-documents-get.txt): This is a live view: while the period is open, and after it closes if a credit note is issued, the document list and reconciliation fields may... - [Get all grouped payment statements for authenticated merchant.](https://docs.two.inc/llms/api/billing-account/make-billing-statements-handler-locals-get-billing-statements.txt) - [Get the download URL for the statement document.](https://docs.two.inc/llms/api/billing-account/get-billing-statement-download-url-get.txt) - [Get the document snapshot for an issued statement.](https://docs.two.inc/llms/api/billing-account/get-billing-statement-documents-get.txt): This response contains exactly the documents captured when this statement was issued. Invoice reconciliation fields are live and may change. If a... - [Get proposals](https://docs.two.inc/llms/api/business-registration/get-all-proposals-get.txt): Get matching proposals. Search parameters are optional. If `status` is omitted, only proposals currently requiring action are returned (`DRAFT`... - [Create proposal](https://docs.two.inc/llms/api/business-registration/create-proposal-post.txt): Create a new proposal for a business to be enrolled with Two, or for an existing enrollment to be updated. If this operation is authorized by a... - [Get proposal](https://docs.two.inc/llms/api/business-registration/get-proposal-get.txt): Get an existing proposal by id. Note that each merchant may only access proposals lodged by the same merchant. Also note that supplementary... - [Withdraw proposal](https://docs.two.inc/llms/api/business-registration/withdraw-proposal-delete.txt): Withdraw an existing proposal by id. Withdrawals will only be accepted for proposals with a status of `IN_REVIEW`. Withdrawal will not delete the... - [Submit proposal](https://docs.two.inc/llms/api/business-registration/submit-proposal-post.txt): Submit an existing proposal for review, by id. Submissions will only be accepted for proposals with a status of `DRAFT`. Submission attempts will... - [Get businesses](https://docs.two.inc/llms/api/business-registration/get-all-businesses-get.txt): Get all matching businesses that have previously been enrolled with Two via completed proposals. At least one search parameter must be provided. Note... - [Get business](https://docs.two.inc/llms/api/business-registration/get-business-get.txt): Get a business that has previously been enrolled with Two via a completed proposal. Note that each merchant may only access businesses referred to by... - [Get supported company types for a country](https://docs.two.inc/llms/api/business-registration/get-supported-company-types-get.txt): Returns the buyer company types this registry supports for the given country — the types that must be enrolled as buyers via the proposal flow on... - [Check validity of a browser delegation token](https://docs.two.inc/llms/api/business-registration/get-delegation-get.txt): Checks the validity of a browser delegation token, returning the token data if - [Create a browser delegation token](https://docs.two.inc/llms/api/business-registration/create-delegation-post.txt): Create a token for use within a buyer's browser. The token is returned as a response header called `Two-Delegated-Authority-Token`. To use the token,... - [Start returning buyer verification](https://docs.two.inc/llms/api/business-registration/returning-buyer-start-verification-handler-post.txt): Check if a business is already registered with the provided email address. If found, initiate email verification by sending a verification code to... - [Complete returning buyer verification](https://docs.two.inc/llms/api/business-registration/returning-buyer-complete-verification-handler-patch.txt): Validate the verification code sent to the buyer's email. If successful and a matching business is found, returns the buyer's business details... - [List every business matching a verified buyer email](https://docs.two.inc/llms/api/business-registration/returning-buyer-verification-matches-handler-get.txt): Requires either a merchant API key, or a delegation token scoped to this exact path (e.g. the token returned from `PATCH... - [Create order intent](https://docs.two.inc/llms/api/checkout/create-order-intent-handler-post.txt): The endpoint enables the merchant to check in advance whether invoice payment is applicable as a payment method for the `Buyer`. Two will perform a... - [Get order intent](https://docs.two.inc/llms/api/checkout/get-order-intent-handler-get.txt): The endpoint fetches a specific order - [Create order](https://docs.two.inc/llms/api/checkout/create-order-handler-post.txt): Endpoint to create a new order in Two's system. Once all the required order data has been added to the request body and the order has been created... - [Quote fees for an order before creating or editing it.](https://docs.two.inc/llms/api/checkout/calculate-pricing-order-fee-v-1-handler-post.txt): This endpoint returns the estimated fee for the provided amount and order terms, and a `buyer_fee_share` value that can be added as a buyer-facing... - [Get order details](https://docs.two.inc/llms/api/checkout/get-order-handler-get.txt): Endpoint to retrieve details related to a previously created order. The endpoint is typically used to check that the order has been verified... - [Edit order](https://docs.two.inc/llms/api/checkout/edit-order-handler-put.txt): Endpoint to edit a previously created order which has not been fulfilled. The request body may contain changes related items, quantity, prices, - [Generate a payment initiation link for a specific order.](https://docs.two.inc/llms/api/checkout/get-order-payment-link-handler-get.txt): This endpoint creates a secure payment link that allows buyers to initiate payment for an invoice. The link is only generated if: - The order is in a... - [Get orders by merchant order ID](https://docs.two.inc/llms/api/checkout/get-orders-by-merchant-order-id-handler-get.txt): Endpoint to retrieve all orders matching a given `merchant_order_id`. This is useful when the merchant's own order identifier was set during order... - [Confirm order](https://docs.two.inc/llms/api/checkout/mark-confirmed-order-handler-post.txt): The confirm endpoint moves an order to the "CONFIRMED" state, though this is optional as both verified and confirmed orders guarantee credit for 21... - [Renew order](https://docs.two.inc/llms/api/checkout/renew-order-handler-post.txt): Re-run credit check to renew our credit guarantee. If an external funding provider owns the order, we cancel that external order, re-create it, and... - [Cancel order](https://docs.two.inc/llms/api/checkout/cancel-order-handler-post.txt): Endpoint to change the state of an order to cancelled, and void the invoice. An order cannot change state to cancelled after being fulfilled. After... - [Get fulfilled orders](https://docs.two.inc/llms/api/checkout/get-fulfilled-order-handler-get.txt): This endpoint is used to fetch the associated fulfilled orders and refunds for a given order ID. If the requested order is linked to a partially... - [Fulfil order](https://docs.two.inc/llms/api/checkout/fulfill-order-handler-post.txt): Endpoint to fully or partially fulfill an order based on the line item selection and gross, net amount values. If fully fulfilled, the endpoint... - [Complete partial order](https://docs.two.inc/llms/api/checkout/complete-partial-order-handler-post.txt): Cancels any unfulfilled parts of a partially fulfilled order, completing it. Use this endpoint when the merchant has fulfilled some line items via... - [Fetch invoice details](https://docs.two.inc/llms/api/checkout/get-invoice-details-handler-get.txt): Return an object representing the current status of an invoice, including payment - [Get list of orders](https://docs.two.inc/llms/api/checkout/retrieve-order-list-handler-get.txt): Additionally following query params can be specified to manage pagination settings `limit` - set limit items per page (default=100) `page` -... - [Get order verification data](https://docs.two.inc/llms/api/checkout/get-order-verification-data-get.txt): Endpoint to retrieve verification data related to an order. This endpoint is typically used by merchants to get data related to the verification... - [Send order verification notification to buyer](https://docs.two.inc/llms/api/checkout/notify-order-handler-post.txt): Within the notification, the buyer will receive a link that they need to visit to complete their order verification. Supports both SMS and email... - [Refund order](https://docs.two.inc/llms/api/checkout/refund-order-handler-post.txt): Endpoint to refund an order. The customer will receive a credit note with a description of the items that are credited. An order can also be... - [Download PDF invoice via Order ID](https://docs.two.inc/llms/api/checkout/invoice-pdf-handler-get.txt): Endpoint to fetch the invoice for a fulfilled order using the global order ID. The order ID is returned as part of the create order response and is... - [Download PDF Invoice via Invoice ID](https://docs.two.inc/llms/api/checkout/invoice-document-handler-get.txt): Endpoint to fetch the invoice for a fulfilled order by using the global invoice ID. The invoice ID is provided in the response as part of the... - [Download PDF Invoices in a zip file](https://docs.two.inc/llms/api/checkout/zipped-invoice-pdfs-handler-get.txt): Only fulfilled orders can have - [Change an invoice post fulfillment](https://docs.two.inc/llms/api/checkout/edit-invoice-patch.txt): This will credit note the current invoice and create a new invoice, with new invoice number, with the requested fields updated. Note, this will not... - [edit_invoice_emails ](https://docs.two.inc/llms/api/checkout/edit-invoice-emails-put.txt) - [Create an invoice for one or more orders atomically.](https://docs.two.inc/llms/api/checkout/invoice-creation-handler-post.txt): This API provides invoicing operations including **grouped fulfillment** (also known as "Samlefaktura") for consolidating multiple verified orders... - [Return all tax codes for a given country.](https://docs.two.inc/llms/api/checkout/get-tax-codes-handler-get.txt) - [Retrieve API keys](https://docs.two.inc/llms/api/checkout/retrieve-merchant-api-keys-handler-get.txt): Retrieve a list of metadata associated with active API - [Create API key](https://docs.two.inc/llms/api/checkout/create-merchant-api-key-handler-post.txt): Create a new API key. An existing API key is required to authenticate the request. If you do not have an API key yet, this can be obtained from the... - [Retrieve API key](https://docs.two.inc/llms/api/checkout/retrieve-merchant-api-key-handler-get.txt): Retrieve metadata related to an active API - [Revoke API key](https://docs.two.inc/llms/api/checkout/revoke-merchant-api-key-handler-delete.txt): Revoke an existing API key. Once revoked, the key will stop working for subsequent - [Get settlements](https://docs.two.inc/llms/api/checkout/get-merchant-settlements-v-2-handler-get.txt): Endpoint to retrieve a cursor-paginated list of settlements for the authenticated merchant. Each settlement contains payout details including the... - [Get settlement statement](https://docs.two.inc/llms/api/checkout/get-merchant-settlement-statement-handler-get.txt): Endpoint to download a settlement statement file for a specific settlement. The response is a binary file (`.xlsx` or `.csv`) containing the detailed... - [Get settlement report](https://docs.two.inc/llms/api/checkout/get-merchant-statement-handler-get.txt): Endpoint to download a settlement report for a specified date range as `.xlsx` or `.csv`. The report contains all settlements within the given... - [Update reconciliation events](https://docs.two.inc/llms/api/checkout/update-reconciliation-events-handler-put.txt): Endpoint for merchants to provide reconciliation events (e.g., payins, credit notes and credit losses). As this is a PUT request, all events for the... - [Company Search](https://docs.two.inc/llms/api/company/company-search.txt): Search for companies by name or official registry IDs (e.g. organization numbers). This can for instance be integrated as an auto-complete search in... - [Supported Search Countries](https://docs.two.inc/llms/api/company/supported-search-countries.txt): List the countries [Company Search](/docs/api/company/company-search/) can serve, as ISO 3166-1 alpha-2 codes. Use it to decide whether to offer... - [Get Company](https://docs.two.inc/llms/api/company/get-company-company-canonical-or-lookup-id-get.txt): Get full details on a company, given a company's `lookup_id` or `canonical_id`. The result will include company's `canonical_id`, which is essential... - [Get Company Branches](https://docs.two.inc/llms/api/company/get-company-branches-company-canonical-id-branches-get.txt): ** This endpoint is only supported in Norway (`NO`) for now. ** Get all branches of a company, given a company's `canonical_id`, which you can get... - [Check whether a customer can be erased](https://docs.two.inc/llms/api/gdpr/merchant-gdpr-lookup-handler-get.txt): Use this before `POST /gdpr/v1/erasure` to find out whether a customer's personal data can be erased. It is read-only: nothing is changed, no... - [Request erasure of a customer's personal data](https://docs.two.inc/llms/api/gdpr/merchant-gdpr-erasure-handler-post.txt): Use this to erase a customer's personal data once `GET /gdpr/v1/lookup` has confirmed they are `eligible`. Pass the customer's `email` and your own... - [Retrieve company credit limit](https://docs.two.inc/llms/api/limits/get-buyer-credit-limits-get.txt): Retrieve buyer company credit limit based on buyer country code and organization - [Retrieve company credit limit by canonical ID](https://docs.two.inc/llms/api/limits/get-buyer-credit-limits-by-canonical-id-get.txt): Retrieve buyer company credit limit based on company canonical ID. This is a unique ID that represents a company on our system and can be obtained... - [Create a credit builder url for a buyer company.](https://docs.two.inc/llms/api/limits/create-credit-builder-url-handler-post.txt): Create buyer company credit builder url based on company canonical ID, and supply a return url for user to return to upon completion of credit... - [Get all marketplace merchants](https://docs.two.inc/llms/api/marketplace/get-partners-merchant-handler-v-1-get.txt): Retrieve all merchants associated with your marketplace. Note: The legacy endpoint `/v1/partner/{partner_id}/merchant` is deprecated but still... - [Create marketplace merchant](https://docs.two.inc/llms/api/marketplace/create-partner-merchant-handler-v-1-post.txt): Create a new merchant who can sell products or services through Two. Note: The legacy endpoint `/v1/partner/{partner_id}/merchant` is deprecated but... - [Get marketplace merchant](https://docs.two.inc/llms/api/marketplace/get-partner-merchant-handler-v-1-get.txt): Retrieve information about a specific merchant by ID. Note: The legacy endpoint `/v1/partner/{partner_id}/merchant/{merchant_id}` is deprecated but... - [Update marketplace merchant](https://docs.two.inc/llms/api/marketplace/update-partner-merchant-handler-v-1-patch.txt): Update details of a specific merchant associated with your marketplace. This is a partial update: only the fields included in the request body are... - [Get IBAN collection accounts](https://docs.two.inc/llms/api/marketplace/get-partner-iban-accounts-v-1-get.txt): Returns IBAN collection account details for eligible partners. Access is restricted - please contact Two support for more information. Note: The... - [Get all marketplace merchants](https://docs.two.inc/llms/api/marketplace/get-partners-merchant-handler-v-2-get.txt): Retrieve all merchants associated with your - [Create marketplace merchant](https://docs.two.inc/llms/api/marketplace/create-partner-merchant-handler-v-2-post.txt): Create a new marketplace merchant, linked to your partner account. Optionally provision portal users for the marketplace merchant at creation time... - [Get marketplace merchant](https://docs.two.inc/llms/api/marketplace/get-partner-merchant-by-id-or-shortname-handler-v-2-get.txt): Retrieve information about a specific merchant by ID or short name associated with your - [Update marketplace merchant](https://docs.two.inc/llms/api/marketplace/update-partner-merchant-handler-v-2-patch.txt): Update details of a specific merchant associated with your marketplace, identified by ID. This is a partial update: only the fields included in the... - [Get statement lines for all marketplace merchants](https://docs.two.inc/llms/api/marketplace/get-partner-statement-handler-v-2-get.txt): Retrieve a cursor-paginated feed of settlement statement lines for every merchant associated with your marketplace, in a single call. A line is one... - [Get merchant recourse limit](https://docs.two.inc/llms/api/recourse/get-merchant-recourse-limits-handler-get.txt): Once you have been successfully set up by Two with recourse, you will be assigned `merchant_recourse_limits`. This means the maximum exposure you may... - [Add customer recourse limit](https://docs.two.inc/llms/api/recourse/add-merchant-buyer-recourse-limit-handler-post.txt): To set a customer up on recourse, you need to send us the `max_amount`, representing the maximum exposure you are comfortable to have towards this... - [Get customer recourse limit by canonical ID](https://docs.two.inc/llms/api/recourse/get-merchant-buyer-recourse-limit-by-canonical-id-handler-get.txt): Endpoint to retrieve a specific customer's recourse limits using their canonical company ID. This is the preferred method as it uniquely identifies... - [Update or disable customer's recourse limit by canonical ID](https://docs.two.inc/llms/api/recourse/put-merchant-buyer-recourse-limit-by-canonical-id-handler-put.txt): This endpoint is to edit a previously added recourse limit for a specific customer using their canonical company ID. Note: `max_amount=0` will... - [Get customer recourse limit](https://docs.two.inc/llms/api/recourse/get-merchant-buyer-recourse-limit-handler-get.txt): Endpoint to retrieve a specific customer's recourse limits set up by you. Remember that a customer needs to be set up on recourse by you in the... - [Update or disable customer's recourse limit](https://docs.two.inc/llms/api/recourse/put-merchant-buyer-recourse-limit-handler-put.txt): This endpoint is to edit a previously added recourse limit for a specific customer or to disable it. Note: `max_amount=0` will disable recourse for... - [Trigger Future Invoice](https://docs.two.inc/llms/api/repay/trigger-future-invoice-testing-send-invoices-post.txt): **Only available in sandbox** This endpoint can be called to trigger invoice generation and distribution with a specified cut off date in sandbox... - [Create Repayment Plan](https://docs.two.inc/llms/api/repay/create-repayment-plan-plan-post.txt): Create a new repayment - [Get Repayment Plan](https://docs.two.inc/llms/api/repay/get-repayment-plan-plan-repayment-plan-id-get.txt) - [Update Repayment Plan](https://docs.two.inc/llms/api/repay/update-repayment-plan-plan-repayment-plan-id-patch.txt): Update repayment - [Get Repayment Plan Status](https://docs.two.inc/llms/api/repay/get-repayment-plan-status-plan-repayment-plan-id-status-get.txt) - [Get Repayment Plan Invoice Details](https://docs.two.inc/llms/api/repay/get-repayment-plan-invoice-details-plan-repayment-plan-id-invoices-get.txt) - [Cancel Repayment Plan](https://docs.two.inc/llms/api/repay/cancel-repayment-plan-plan-repayment-plan-id-cancellation-put.txt) - [Fulfill Repayment Plan](https://docs.two.inc/llms/api/repay/fulfill-repayment-plan-plan-repayment-plan-id-fulfilment-put.txt): Requests that Two marks the repayment plan as fulfilled. This endpoint will submit a request for Two to mark the repayment plan as fulfilled (the... - [Create Repayment Plan Preview](https://docs.two.inc/llms/api/repay/create-repayment-plan-preview-plan-preview-post.txt): Request a preview of a repayment plan based on key features of a plan including term length and total - [Update Instalment](https://docs.two.inc/llms/api/repay/update-instalment-plan-repayment-plan-id-instalment-instalment-id-put.txt) - [Create Repayment Account](https://docs.two.inc/llms/api/repay/create-repayment-account-account-post.txt): Creates a repayment account for use with repayment plan invoicing. When a repayment plan is created, an existing repayment account must be... - [Get Repayment Account](https://docs.two.inc/llms/api/repay/get-repayment-account-account-repayment-account-id-get.txt) - [Update Repayment Account](https://docs.two.inc/llms/api/repay/update-repayment-account-account-repayment-account-id-put.txt): Update the payment account information using the Two `repayment_account_id`. As was stated when creating a payment account, it is strongly... - [Get Invoice Document URL](https://docs.two.inc/llms/api/repay/get-invoice-document-url-invoice-invoice-id-pdf-get.txt): Retrieve the URL of the invoice PDF for the given invoice - [Get Invoice Details](https://docs.two.inc/llms/api/repay/get-invoice-details-invoice-invoice-id-get.txt) - [Credit Check](https://docs.two.inc/llms/api/repay/credit-check-credit-check-post.txt): Use the `POST /credit-check` endpoint to evaluate the funding eligibility of a buyer based on the total value of a prospective instalment plan and... - [Get customer list](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customers-v-2-handler-get.txt): Fetch a list of customers. Use ?limit or ?page_cursor parameter for cursor-based - [Create customer record](https://docs.two.inc/llms/api/trade-account-v2/create-merchant-customer-v-2-handler-post.txt) - [Get customer record](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customer-v-2-handler-get.txt) - [Replace customer record](https://docs.two.inc/llms/api/trade-account-v2/replace-merchant-customer-v-2-handler-put.txt) - [Patch customer record](https://docs.two.inc/llms/api/trade-account-v2/update-merchant-customer-v-2-handler-patch.txt) - [Get customer from external customer ID](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customer-lookup-v-2-handler-get.txt) - [Get customer user list](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customer-users-v-2-handler-get.txt): Fetch a list of users attached to the business customer account. Use ?limit or ?page_cursor parameter for cursor-based - [Create customer user record](https://docs.two.inc/llms/api/trade-account-v2/create-merchant-customer-user-v-2-handler-post.txt) - [Attach an existing verified verification to an existing merchant customer user.](https://docs.two.inc/llms/api/trade-account-v2/attach-merchant-customer-user-verification-v-2-handler-post.txt) - [Get customer user record](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customer-user-v-2-handler-get.txt) - [Replace customer user record](https://docs.two.inc/llms/api/trade-account-v2/replace-merchant-customer-user-v-2-handler-put.txt) - [Update a customer user record](https://docs.two.inc/llms/api/trade-account-v2/update-merchant-customer-user-v-2-handler-patch.txt) - [Delete customer user record.](https://docs.two.inc/llms/api/trade-account-v2/delete-merchant-customer-user-v-2-handler-delete.txt) - [Notify customer user](https://docs.two.inc/llms/api/trade-account-v2/notify-onboarding-handler-post.txt): Send a notification to customer user with a URL to complete onboarding via specified notification - [Get customer user record from external user ID](https://docs.two.inc/llms/api/trade-account-v2/get-merchant-customer-user-lookup-v-2-handler-get.txt) - [Create customer](https://docs.two.inc/llms/api/trade-account-v3/create-trade-account-customer-handler-post.txt): Onboard a business customer by providing their company details. Returns a customer record with credit assessment and a unique - [Get customer](https://docs.two.inc/llms/api/trade-account-v3/get-trade-account-customer-handler-get.txt): Retrieve the customer record including credit status and company - [Replace customer](https://docs.two.inc/llms/api/trade-account-v3/replace-trade-account-customer-handler-put.txt): Overwrite all mutable fields on the customer record. Fields not included in the request body will be reset to their - [Create user](https://docs.two.inc/llms/api/trade-account-v3/create-trade-account-user-handler-post.txt): Add a user who can place orders for your customers. A user is whoever is logged in to your system, so they belong to your merchant account rather... - [List customer users (deprecated)](https://docs.two.inc/llms/api/trade-account-v3/get-trade-account-customer-users-handler-get.txt): Fetch all users attached to the business customer account, including their verification status. Deprecated: users belong to your merchant account... - [Create customer user (deprecated)](https://docs.two.inc/llms/api/trade-account-v3/create-trade-account-customer-user-handler-post.txt): Deprecated in favour of `POST /user`. A user belongs to your merchant account rather than to one customer, so the same person can order for any of... - [Create user verification URL](https://docs.two.inc/llms/api/trade-account-v3/create-trade-account-user-verication-url-post.txt): Generate a redirect URL that the user can visit to verify their identity. Once verified, the user can place orders with one-click checkout. Only... - [Get user](https://docs.two.inc/llms/api/trade-account-v3/get-trade-account-user-handler-get.txt): Retrieve details of a user including their verification - [Update user](https://docs.two.inc/llms/api/trade-account-v3/update-trade-account-user-handler-patch.txt): Update contact details (email, phone number) for an existing user, and which of their details you have verified yourself. Fields you leave out keep... - [Delete user](https://docs.two.inc/llms/api/trade-account-v3/delete-trade-account-user-handler-delete.txt): Remove a user from your merchant account. They will no longer be able to place orders for any of your - [List which companies a user acts for](https://docs.two.inc/llms/api/trade-account-v3/get-trade-account-user-representations-handler-get.txt): Every company this user acts for, and who established each one. Revoked ones are not listed. Use `?limit` and `?page_cursor` to page - [Record the company a user acts for](https://docs.two.inc/llms/api/trade-account-v3/create-trade-account-user-representation-handler-post.txt): State that this user acts for the company identified by `canonical_id`, which is normally their employer. For a clerk at a chambers, that is the... - [Revoke the company a user acts for](https://docs.two.inc/llms/api/trade-account-v3/delete-trade-account-user-representation-handler-delete.txt): Say this user no longer acts for that company, for example after they change employer. There is no update: pointing at a different company is a... - [List customer payment methods](https://docs.two.inc/llms/api/trade-account-v3/list-payment-methods-get.txt): Retrieve all payment methods configured for the customer, including which one is set as - [Create customer payment method](https://docs.two.inc/llms/api/trade-account-v3/create-payment-method-post.txt): Add a payment method (e.g. bank account) that can be used for order - [Get customer payment method](https://docs.two.inc/llms/api/trade-account-v3/get-payment-method-get.txt) - [Delete customer payment method](https://docs.two.inc/llms/api/trade-account-v3/delete-payment-method-delete.txt): Remove a payment method from the customer. If the deleted method was the default, no default will be set - [Set default payment method](https://docs.two.inc/llms/api/trade-account-v3/set-default-payment-method-post.txt): Mark this payment method as the default for the customer. The previous default (if any) will be - [Autofill API](https://docs.two.inc/llms/api/autofill/autofill-api.txt): API for saving and retrieving buyer details, to support autofill of checkout fields. Subject to a buyer's opt-in consent, any merchant may store... - [Two Billing Account API](https://docs.two.inc/llms/api/billing-account/two-billing-account-api.txt): ## Overview and usage This API is for creating and managing billing accounts. A billing account serves as a record of transactions and payments for... - [Business Registration API](https://docs.two.inc/llms/api/business-registration/business-registration-api.txt): API for enrolling businesses that do not appear in national registries, e.g. sole traders and government departments. To create trade accounts or... - [Two Order API](https://docs.two.inc/llms/api/checkout/two-order-api.txt): This API is for creating orders connected to an online purchase through your solution. The API also functions as a central building block when using... - [Company API](https://docs.two.inc/llms/api/company/company-api.txt): The Company Information API provides comprehensive company information by querying nationally recognized business registers across our primary... - [GDPR API](https://docs.two.inc/llms/api/gdpr/gdpr-api.txt): Handle your customers' right-to-erasure requests without emailing Two. When one of your customers exercises their right to erasure under Article 17... - [Two Limits API](https://docs.two.inc/llms/api/limits/two-limits-api.txt): ## Overview and usage This API allows you to retrieve the credit limit of your buyers. To be specific, you can lookup credit limit for your buyers... - [Two Marketplace API](https://docs.two.inc/llms/api/marketplace/two-marketplace-api.txt): This API is for creating new merchants as a part of a marketplace setup using Two. The merchants that are onboarded through the markeplace are able... - [Two Recourse API](https://docs.two.inc/llms/api/recourse/two-recourse-api.txt): Our recourse fallback product allows you to fund orders with Two and get a payout from us, even if our risk engine would otherwise reject the order.... - [Two Repay API](https://docs.two.inc/llms/api/repay/two-repay-api.txt): ## Sequence Diagram [**Repayment Terms Guide**](/docs/guides/setting-repayment-terms/) ## Overview and usage: This API is designed for the purpose... - [Trade Account API V2 (deprecated)](https://docs.two.inc/llms/api/trade-account-v2/trade-account-api-v-2-deprecated.txt): **Deprecated: please use [Trade Account API V3](/docs/api/trade-account-v3/trade-account-api-v-3-preview/) instead.** This API allows you to onboard... - [Trade Account API V3 (preview)](https://docs.two.inc/llms/api/trade-account-v3/trade-account-api-v-3-preview.txt): **This API is currently in preview.** This API allows you to onboard your business customers to your own product and to the Two "Buy Now Pay Later"... - [Two webhooks](https://docs.two.inc/llms/api/webhooks/two-webhooks.txt): ## Overview and usage Two provides webhooks via a [portal](https://www.svix.com) that allows you to self-manage your application's webhook... ## Optional - [autofill-api.yaml](https://docs.two.inc/llms/openapi/autofill-api.txt): Raw OpenAPI specification - [billing-account-api.yaml](https://docs.two.inc/llms/openapi/billing-account-api.txt): Raw OpenAPI specification - [business-registration-api.yaml](https://docs.two.inc/llms/openapi/business-registration-api.txt): Raw OpenAPI specification - [checkout-api.yaml](https://docs.two.inc/llms/openapi/checkout-api.txt): Raw OpenAPI specification - [company-api.yaml](https://docs.two.inc/llms/openapi/company-api.txt): Raw OpenAPI specification - [gdpr-api.yaml](https://docs.two.inc/llms/openapi/gdpr-api.txt): Raw OpenAPI specification - [limits-api.yaml](https://docs.two.inc/llms/openapi/limits-api.txt): Raw OpenAPI specification - [marketplace-api.yaml](https://docs.two.inc/llms/openapi/marketplace-api.txt): Raw OpenAPI specification - [recourse-api.yaml](https://docs.two.inc/llms/openapi/recourse-api.txt): Raw OpenAPI specification - [repay-api.yaml](https://docs.two.inc/llms/openapi/repay-api.txt): Raw OpenAPI specification - [trade-account-v2-api.yaml](https://docs.two.inc/llms/openapi/trade-account-v2-api.txt): Raw OpenAPI specification - [trade-account-v3-api.yaml](https://docs.two.inc/llms/openapi/trade-account-v3-api.txt): Raw OpenAPI specification - [webhooks-api.yaml](https://docs.two.inc/llms/openapi/webhooks-api.txt): Raw OpenAPI specification