{"openapi":"3.1.0","info":{"title":"Open Border API","version":"v1","description":"Open Border is the merchant-of-record layer for cross-border commerce. You collect the card in\nthe browser with one script, then create the charge from your server with a typed SDK. Open\nBorder handles entity routing, tax and duty, and settlement. All money fields are integer minor\nunits (for example, cents) with an explicit currency.\n\nCore checkout integration is two packages and two keys: **OpenBorder CDN JS** in the browser\nand the **OpenBorder Node SDK** on your server. Set up your account first, then wire up each\npackage.\n\n### Package links\n\n- [Node SDK (`@open-border/node`)](https://www.npmjs.com/package/@open-border/node)\n- [Medusa plugin (`@open-border/medusa-payment-openborder`)](https://www.npmjs.com/package/@open-border/medusa-payment-openborder)\n- [Checkout JS (`@open-border/js`)](https://www.npmjs.com/package/@open-border/js)\n- [Domain types (`@open-border/domain`)](https://www.npmjs.com/package/@open-border/domain)\n- [CDN checkout bundle](https://unpkg.com/@open-border/js/dist/openborder.global.js)\n\nAll packages above are public: install the `@open-border/*` packages from npm without an\n`.npmrc` or registry token.\n\n### Public example source\n\n- [Custom API sample store](https://github.com/OpenBorder/sample-store)\n- [Medusa demo store](https://github.com/OpenBorder/openborder-medusa-demo)\n\n## Setup\n\n### Generate your API keys\n\nOpen the merchant dashboard, go to **Developers**, and choose **Create API key**. Pick the\nenvironment (Test or Production); you get a paired key set:\n\n- A **secret key** (`sk_test_…` / `sk_live_…`), shown once — copy it immediately and keep it in\n  your server environment (for example `OB_SECRET_KEY`). It is never displayed again.\n- Its **publishable key** (`pk_test_…` / `pk_live_…`), which is public and stays visible on the\n  key at any time. This is the one you use in the browser.\n\nTest keys work right away. Production keys unlock after KYB approval and a signed merchant\nagreement. You can rotate or revoke a key from the same screen; rotating replaces both halves at\nonce, so update both ends when you do.\n\nTest keys only reach test rails and live keys only reach live rails — the two never mix.\n\n### Set your checkout branding\n\nBranding is optional and needs no code. In the dashboard under **Developers → Checkout\nbranding**, set your logo, primary and accent colors, and the pay-button label. The browser\nembed reads this automatically through your publishable key, so the card form matches your store\nthe next time it loads. Leave it unset to use the default theme.\n\n## OpenBorder CDN JS\n\nThe browser drop-in, published as `@open-border/js`. It renders the card field, collects the\ncard directly (your server never sees card data), applies your dashboard branding, and returns a\npayment method token. It authenticates with the publishable key and never charges.\n\n### Install\n\nLoad it straight from the CDN — no build step:\n\n```html\n<script src=\"https://unpkg.com/@open-border/js\"></script>\n```\n\nOr install it if you bundle with a framework:\n\n```bash\nnpm install @open-border/js\n```\n\n### Mount the checkout\n\nCreate a client with your publishable key and mount it into any element. The `currency` you pass\nselects the acquiring entity.\n\n```html\n<div id=\"checkout\"></div>\n<script src=\"https://unpkg.com/@open-border/js\"></script>\n<script>\n  const ob = OpenBorder('pk_test_...');\n  ob.mount('#checkout', {\n    currency: 'USD',\n    amount: 4200,\n    billingDetails: { name: 'Ada Lovelace', email: 'buyer@example.com' },\n    onSuccess: ({ paymentMethodId, entity }) => {\n      // Hand the token to your server to create the charge.\n      fetch('/charge', {\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json' },\n        body: JSON.stringify({ paymentMethodId }),\n      });\n    },\n    onError: (message) => console.error(message),\n  });\n</script>\n```\n\n### Options\n\n`OpenBorder(publishableKey, { apiBaseUrl })` takes the publishable key and an optional\n`apiBaseUrl` (it defaults to the host matching your key rail). `mount(target, options)` accepts:\n\n| Option | Required | Description |\n| --- | --- | --- |\n| `currency` | yes | Charge currency; selects the entity. One of USD, GBP, EUR, CAD, AUD. |\n| `amount` | no | Integer minor units. Display-only — labels the pay button; the charged amount is set server-side. |\n| `billingDetails` | no | Buyer `name`, `email`, and `address`, forwarded to the card for AVS. |\n| `onSuccess` | yes | Called with `{ paymentMethodId, entity }`. Send the token to your server. |\n| `onError` | no | Called with a safe, human-readable message on failure. |\n| `submitLabel` | no | Overrides the pay-button label. |\n\n`mount` returns `{ unmount }`. To change the currency after mounting, call `unmount()` and mount\nagain with the new currency — a payment method token is bound to one entity and cannot be reused\nacross currencies.\n\n## OpenBorder Node SDK\n\nThe typed server client, published as `@open-border/node`. It holds your secret key and turns\nthe payment method token from the browser into a charge. Never import it into browser code.\n\n### Install\n\n```bash\nnpm install @open-border/node\n```\n\n### Create the client\n\n```js\nimport { OpenBorderClient } from '@open-border/node';\n\nconst ob = new OpenBorderClient({ apiKey: process.env.OB_SECRET_KEY });\n```\n\nThe client targets the host matching your key rail (test keys use the sandbox, live keys use\nproduction). Pass `baseUrl` to override it.\n\n### Quote tax & duty, then create the charge\n\nTake the `paymentMethodId` your front end posted and create the charge in three steps: classify\nthe products to HS tariff codes, quote tax & duty for the ship-to destination, then create the\npayment intent with the quote attached. Money-mutating calls require a per-request idempotency\nkey (see Idempotency below).\n\n```js\nimport { OpenBorderClient, OpenBorderApiError } from '@open-border/node';\nimport { randomUUID } from 'node:crypto';\n\nconst ob = new OpenBorderClient({ apiKey: process.env.OB_SECRET_KEY });\n\nasync function charge(paymentMethodId) {\n  const address = { line1: '1 Market St', city: 'San Francisco', postal_code: '94105', country: 'US' };\n\n  // 1. Classify the products to HS tariff codes (cached per merchant, so\n  //    re-classifying the same product is cheap).\n  const { classifications } = await ob.createClassification({\n    destination_country: address.country,\n    products: [{ sku: 'HOODIE-M', title: 'Classic Hoodie', description: 'Cotton pullover hoodie' }],\n  });\n  const lineItems = [{\n    sku: 'HOODIE-M',\n    description: 'Classic Hoodie',\n    quantity: 1,\n    unit_amount: 4200, // integer minor units\n    hs_code: classifications[0].hs_code,\n  }];\n\n  // 2. Quote tax & duty for the trade lane (where it ships FROM and TO).\n  const quote = await ob.createTaxQuote({\n    ship_from_country: 'US', // your dispatch origin\n    destination_country: address.country,\n    destination_postal_code: address.postal_code,\n    currency: 'USD',\n    shipping_amount: 500,\n    line_items: lineItems,\n  });\n\n  // 3. Create the charge with the quote attached. tax_quote_id is required and\n  //    fixes the charged total (subtotal + shipping + tax + duty). It must be the\n  //    quote for THIS basket, or the charge is rejected as tax_quote_mismatch.\n  try {\n    const intent = await ob.createPaymentIntent(\n      {\n        tax_quote_id: quote.id,\n        amount: 4200, // merchandise subtotal, integer minor units\n        currency: 'USD',\n        shipping_amount: 500,\n        payment_method: paymentMethodId,\n        customer: { email: 'buyer@example.com' },\n        billing_address: address,\n        shipping_address: address,\n        line_items: lineItems,\n        merchant_reference: 'order_1042',\n      },\n      { idempotencyKey: randomUUID() },\n    );\n    return intent; // intent.status is 'succeeded' once the charge clears\n  } catch (err) {\n    if (err instanceof OpenBorderApiError) {\n      // Typed and safe: err.code, err.status, err.message — no provider details leak.\n    }\n    throw err;\n  }\n}\n```\n\n### Other operations\n\n| Method | Purpose |\n| --- | --- |\n| `createPaymentIntent(input, { idempotencyKey })` | Create a charge from a payment method token. |\n| `getPaymentIntent(id)` | Fetch a payment intent and its status. |\n| `capturePaymentIntent(input, { idempotencyKey })` | Capture a manual-capture authorization. |\n| `cancelPaymentIntent(input, { idempotencyKey })` | Cancel a manual-capture authorization. |\n| `createRefund(input, { idempotencyKey })` | Refund a captured payment, in full or part. |\n| `createTaxQuote(input)` | Estimate tax and duty before charging. |\n| `createClassification(input)` | Classify products to HS tariff codes. |\n| `getCheckoutConfig(input)` | Resolve the entity and publishable key server-side. |\n\nThe four money-mutating methods take a required `{ idempotencyKey }`; the read and quote calls do\nnot.\n\n### Errors\n\nAny non-2xx response is thrown as an `OpenBorderApiError` with a stable `code`, the HTTP `status`,\nand a safe `message`. A transport failure is thrown with code `network_error`. Provider errors\nare never leaked.\n\n## Core concepts\n\n### Idempotency\n\nEvery money-mutating request takes an idempotency key — the `idempotencyKey` option on the SDK,\nor the `Idempotency-Key` header if you call the API directly. Use a unique key per distinct\nrequest: a retry with the same key replays the first response, and the same key with a different\nbody is rejected. This makes a network retry safe and prevents a double charge.\n\n### Sandbox & test mode\n\nThere are two environments:\n\n- **Sandbox (test mode):** `https://api-sandbox.openborderpayments.com`\n- **Production (live mode):** `https://api.openborderpayments.com`\n\nBoth client packages pick the environment from the key you pass: a live key (`sk_live_…` /\n`pk_live_…`) targets production, and any other (test) key targets the sandbox. Override the\nhost explicitly with `baseUrl` (Node SDK) or `apiBaseUrl` (browser embed), for example to hit\na locally running API.\n\nTest and live are strictly gated: a test key only reaches test rails and a live key only\nreaches live rails — they never mix. With a test key, pay using card `4242 4242 4242 4242`,\nany future expiry, and any CVC. Develop and integrate against the sandbox with your test keys,\nthen switch to your live keys for production.\n\n### Amounts and currency\n\nMoney is always an integer in the currency minor unit, so `4200` in `USD` is $42.00. There is no\nimplicit conversion. Each supported currency (USD, GBP, EUR, CAD, AUD) settles to its own entity,\nselected by the charge currency; tax and duty follow the shipping destination.\n\n### Payouts\n\nOpen Border pays your settled balance to your bank weekly, per settlement currency — a USD\nbalance pays to your USD account, a EUR balance to your EUR account, with no conversion between\nthem. Each payout is your available balance for that currency: captured sales minus the platform\nfee, the rolling reserve (released back to your balance on the configured schedule), refunds and\nchargebacks, and any tax withheld under your tax policy. Balances under the per-currency minimum\n(the equivalent of $100) roll into the next week.\n\nAdd a bank account for each currency you sell in from the dashboard **Payouts** page. Details\nare passed directly to our payout partner; Open Border stores only a masked reference. Saving an\naccount for a currency that already has one replaces it.\n\nTrack payouts on the same page, or subscribe a webhook endpoint (dashboard **Webhooks** page) to\nthe payout lifecycle events:\n\n- `payout.created` — the weekly run disbursed your balance to your bank.\n- `payout.in_transit` — the transfer left our payout partner.\n- `payout.paid` — confirmed received by your bank.\n- `payout.failed` — the transfer failed (for example, a closed account); the funds return to\n  your available balance and pay out in a later cycle once the cause is fixed.\n\nEach of those callbacks carries `data.amount` and `data.currency`: **the net debited from that\nentity's settlement balance, which is what your bank received only when nothing was converted.**\nThat is the case for every payout above, and `data.conversion` is then `null`.\n\nIf you agree with Open Border to be paid in a **single payout currency** instead, each balance is\nconverted at dispatch and `data.conversion` is populated: `sellAmount` in `sellCurrency` (equal\nto `amount`), the `buyAmount` in `buyCurrency` your bank actually received, the executed `rate`,\nand the `midRate` beside it so the spread is derivable. `amount` and `currency` keep their\nmeaning — they still state the settlement balance the money left, so an integration that sums\nthem per currency stays correct — and the deposit is read from `conversion` rather than from\n`amount`. Do not recompute `buyAmount` from `sellAmount × rate`: the filled amount is what our\npayout partner executed, and a rate carries fewer decimals than that arithmetic needs. Balances\nare still held per entity, so a converted payout still arrives one per entity.\n\n### Webhooks\n\nRegister an endpoint per rail on the dashboard **Webhooks** page and subscribe it to the events\nyou act on. Each delivered body is documented under **Webhooks** at the end of this reference,\nwith the full schema for its `data` — so you can check a callback you received against the\ncontract instead of inferring it.\n\nFour properties hold for every event:\n\n- **Signed.** Each POST is signed with that endpoint’s secret; verify it over the exact raw\n  bytes of the body, before parsing.\n- **At-least-once.** The same event `id` can arrive more than once (a retry, or a redelivery\n  after a timeout). Make your handler idempotent on `id`, and return any 2xx as soon as you have\n  durably recorded it.\n- **Rail-scoped.** A test-mode event only reaches endpoints registered on the test rail, and a\n  live-mode event only live ones. `mode` on the body says which.\n- **`data` is camelCase**, unlike the snake_case REST resources.\n\nA callback carries the facts needed to react, not the whole record — and never customer identity\nor addresses. Read the resource (for example `GET /v1/disputes/{id}`) with your API key when you\nneed the full detail.\n\n### Calling the API directly\n\nYou do not need the SDK. Send your secret key as `Authorization: Bearer sk_test_…` (or the\n`X-API-Key` header) to any endpoint below. Each one is documented in the sections that follow."},"servers":[{"url":"https://api.openborderpayments.com","description":"Production (live mode)"},{"url":"https://api-sandbox.openborderpayments.com","description":"Sandbox (test mode)"}],"tags":[{"name":"Tax & Duty","description":"Classify products to HS tariff codes, then estimate tax & duty before charging."},{"name":"Payment Intents","description":"Create and confirm a charge, then capture or cancel a manual-capture authorization.\n\n**A charge needs a tax quote first.** `POST /v1/payment_intents` requires a\n`tax_quote_id` from **Tax & Duty → Create a tax & duty quote**\n(`POST /v1/tax_quotes`), so quote the basket before you charge it — there is no\nunquoted charge."},{"name":"Refunds","description":"Refund a captured payment, in full or part."},{"name":"Disputes","description":"Contest and track provider-driven chargebacks.\n\n**You never create a dispute — you are told about one.** A cardholder disputes a charge at\ntheir bank, and it reaches you as the `dispute.opened` webhook (documented under\n**Webhooks** below) carrying our dispute `id`, why it was raised (`data.reason`), the\ndeadline to answer (`data.evidenceDueBy`), and your own order id\n(`data.externalOrderId`).\n\nThe callback deliberately carries **no customer identity**, because a webhook endpoint may be\na third party or an inspection tool. Read the dispute back with `GET /v1/disputes/{id}` for\nthe full record: its `evidence_prefill` supplies the cardholder name, email address, and the\nbilling and shipping addresses, already formatted for the evidence fields. Then submit your\ndefence with `POST /v1/disputes/{id}/evidence`."},{"name":"Payouts","description":"Track money leaving Open Border for your bank. There is no payout API to call — payouts\nare created by the weekly run, and you are told about them.\n\n**`data.amount` is the net debited from your settlement balance for that entity, not\nnecessarily what your bank received.** For payouts denominated per settlement currency the\ntwo are the same and `data.conversion` is `null`. If your payouts are denominated in a\nsingle payout currency, the balance is converted before it is sent: `data.amount` stays the\namount sold in the settlement currency — the figure that matches the balance it left — and\nthe deposit is `data.conversion.buyAmount` in `data.conversion.buyCurrency`.\n\nReconcile against `conversion` rather than recomputing it. `buyAmount` is what our payout\npartner actually filled, so it is not `sellAmount × rate` — a rate carries fewer decimals\nthan the arithmetic would need, and rounding it yourself will not reproduce the cents. The\nconversion also states `midRate` beside the executed `rate`, so you can derive the spread\nbetween them. Rates are exact decimal strings; parsing one into a float stops it being the\nrate we executed at.\n\nBalances stay per entity and per currency either way — only the disbursement is converted,\nso a converted payout still arrives one per entity."},{"name":"Payment Methods","description":"Cards work out of the box. Wallet payment methods — **Apple Pay** and **Google Pay** —\nrender as a one-tap button above the card form in the checkout drop-in, and additionally\nrequire the domain serving your checkout page to be registered:\n\n1. Register the exact hostname with `POST /v1/payment_method_domains` — a bare, HTTPS-served\n   hostname such as `shop.example.com` (no scheme, path, or port). Subdomains register\n   separately, and `localhost` is not eligible — use a public HTTPS tunnel during\n   development and register the tunnel domain on your test rail.\n2. The registration fans out across every Open Border entity payment account on your API\n   key’s rail and returns each entity’s per-wallet activation (`apple_pay`, `google_pay`).\n   No file hosting or Apple/Google developer account is needed — validation happens\n   server-side.\n3. The wallet button appears automatically once the acquiring entity for the charge currency\n   reports the wallet `active` (or `enrolled`, where the provider accepts a registration but\n   offers no way to confirm it): Apple Pay in Safari with a card enrolled in Apple Wallet,\n   Google Pay in Chrome with a saved card. Everyone else sees the card form unchanged.\n4. If a wallet reports `inactive`, fix whatever its `error_message` describes and retry with\n   `POST /v1/payment_method_domains/validate`.\n\nA wallet authorization then reaches the same server-side charge as a card — your backend\nattaches it to `POST /v1/payment_intents` — in one of two forms, depending on the payment\nprovider your account resolves to. Most wallets produce an ordinary payment method token\n(`pm_…`) and need nothing else. Where the provider cannot tokenize a wallet, you first create\na payment session with `POST /v1/checkout/payment_sessions` and send\n`payment_method: { type: \"payment_session\", … }`; the checkout drop-in handles both.\n\nEither way the sheet shows the buyer the total you mount the checkout with — always the full\nlanded cost (subtotal + shipping + tax + duty), never the subtotal — and the charge must come\nto exactly that. A charge that does not match the amount the buyer approved is rejected."}],"security":[{"apiKey":[]},{"apiKeyHeader":[]}],"paths":{"/v1/classifications":{"post":{"operationId":"classifyProducts","summary":"Classify products to HS tariff codes","description":"Classify one or more products to their HS (Harmonized System) tariff codes. Each result carries the `hs_code`, a category, a normalized description, and a confidence in [0, 1]. Pass a known `hs_code` to validate/normalize it instead of classifying from text. Classifications are cached per merchant, so re-classifying the same product is cheap. A request carries at most 25 products and 32 KiB of aggregate raw JSON. Send `application/json` or an `application/*+json` structured media type. The returned `hs_code` is then required on each tax-quote line item.","tags":["Tax & Duty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassifyProductsRequest"},"examples":{"from_text":{"summary":"Classify two products from their titles","value":{"destination_country":"GB","products":[{"sku":"BAG-100","title":"Leather Handbag","description":"Women's leather handbag"},{"sku":"LAPTOP-PRO","title":"Professional Laptop"}]}},"known_hs_code":{"summary":"Validate/normalize a known HS code","value":{"products":[{"sku":"BAG-100","title":"Leather Handbag","hs_code":"420221"}]}}}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ClassifyProductsRequest"},"examples":{"from_text":{"summary":"Classify two products from their titles","value":{"destination_country":"GB","products":[{"sku":"BAG-100","title":"Leather Handbag","description":"Women's leather handbag"},{"sku":"LAPTOP-PRO","title":"Professional Laptop"}]}},"known_hs_code":{"summary":"Validate/normalize a known HS code","value":{"products":[{"sku":"BAG-100","title":"Leather Handbag","hs_code":"420221"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Classification"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request exceeds the outer JSON parser payload ceiling (`validation_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported JSON media type, charset, or content encoding; expected `application/json` or `application/*+json` with a supported charset and encoding (`validation_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/tax_quotes":{"post":{"operationId":"createTaxQuote","summary":"Create a tax & duty quote","description":"Estimate tax and duty for a basket shipping to a destination country, before charging. Each line item carries an `hs_code` (from POST /v1/classifications); the itemized breakdown (subtotal, shipping, tax, duty, total) is returned with a quote `id` valid for 30 minutes. Shipping, when supplied, is taxed by the provider and added to the total. US and CA destinations require at least one of `destination_region` or `destination_postal_code`; incomplete addresses return `validation_error` before any tax-provider request. Existing clients must add either field before this contract is deployed. Other destinations are unchanged. Minor-unit amount fields and the checked quote total are capped at 99,999,999; each line quantity is capped at 10,000. A quote accepts at most 25 line items and 32 KiB of aggregate raw JSON. Send `application/json` or an `application/*+json` structured media type. Pass that `id` as `tax_quote_id` when creating a payment intent — the quote is reloaded and revalidated at charge time, so a stale or mismatched quote is rejected rather than silently re-priced.","tags":["Tax & Duty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxQuoteRequest"},"examples":{"us_usd":{"summary":"obmor_us (USD) — ship US → GB","value":{"destination_country":"GB","destination_postal_code":"SW1A 2AA","ship_from_country":"US","currency":"USD","shipping_amount":1500,"line_items":[{"description":"Premium Widget","quantity":2,"unit_amount":2500,"sku":"WIDGET-001","hs_code":"847990"}]}},"gb_gbp":{"summary":"obmor_uk (GBP) — ship US → GB","value":{"destination_country":"GB","destination_postal_code":"SW1A 2AA","ship_from_country":"US","currency":"GBP","shipping_amount":1500,"line_items":[{"description":"Leather Handbag","quantity":1,"unit_amount":8900,"sku":"BAG-100","hs_code":"420221"}]}},"de_eur":{"summary":"obmor_eu (EUR) — ship US → DE","value":{"destination_country":"DE","destination_postal_code":"10117","ship_from_country":"US","currency":"EUR","shipping_amount":1500,"line_items":[{"description":"Professional Laptop","quantity":1,"unit_amount":24500,"sku":"LAPTOP-PRO","hs_code":"847130"}]}},"ca_cad":{"summary":"obmor_ca (CAD) — ship US → CA","value":{"destination_country":"CA","destination_region":"BC","destination_postal_code":"V6E 2V6","ship_from_country":"US","currency":"CAD","shipping_amount":1500,"line_items":[{"description":"Mountain Bike","quantity":1,"unit_amount":15900,"sku":"BIKE-7","hs_code":"871200"}]}},"au_aud":{"summary":"obmor_au (AUD) — ship US → AU","value":{"destination_country":"AU","destination_region":"NSW","destination_postal_code":"2060","ship_from_country":"US","currency":"AUD","shipping_amount":1500,"line_items":[{"description":"Premium Surfboard","quantity":1,"unit_amount":12900,"sku":"SURF-3","hs_code":"950629"}]}}}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CreateTaxQuoteRequest"},"examples":{"us_usd":{"summary":"obmor_us (USD) — ship US → GB","value":{"destination_country":"GB","destination_postal_code":"SW1A 2AA","ship_from_country":"US","currency":"USD","shipping_amount":1500,"line_items":[{"description":"Premium Widget","quantity":2,"unit_amount":2500,"sku":"WIDGET-001","hs_code":"847990"}]}},"gb_gbp":{"summary":"obmor_uk (GBP) — ship US → GB","value":{"destination_country":"GB","destination_postal_code":"SW1A 2AA","ship_from_country":"US","currency":"GBP","shipping_amount":1500,"line_items":[{"description":"Leather Handbag","quantity":1,"unit_amount":8900,"sku":"BAG-100","hs_code":"420221"}]}},"de_eur":{"summary":"obmor_eu (EUR) — ship US → DE","value":{"destination_country":"DE","destination_postal_code":"10117","ship_from_country":"US","currency":"EUR","shipping_amount":1500,"line_items":[{"description":"Professional Laptop","quantity":1,"unit_amount":24500,"sku":"LAPTOP-PRO","hs_code":"847130"}]}},"ca_cad":{"summary":"obmor_ca (CAD) — ship US → CA","value":{"destination_country":"CA","destination_region":"BC","destination_postal_code":"V6E 2V6","ship_from_country":"US","currency":"CAD","shipping_amount":1500,"line_items":[{"description":"Mountain Bike","quantity":1,"unit_amount":15900,"sku":"BIKE-7","hs_code":"871200"}]}},"au_aud":{"summary":"obmor_au (AUD) — ship US → AU","value":{"destination_country":"AU","destination_region":"NSW","destination_postal_code":"2060","ship_from_country":"US","currency":"AUD","shipping_amount":1500,"line_items":[{"description":"Premium Surfboard","quantity":1,"unit_amount":12900,"sku":"SURF-3","hs_code":"950629"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxQuote"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request exceeds the outer JSON parser payload ceiling (`validation_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported JSON media type, charset, or content encoding; expected `application/json` or `application/*+json` with a supported charset and encoding (`validation_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Tax provider failure returned without upstream details (`tax_quote_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/checkout/config":{"post":{"operationId":"getCheckoutConfig","summary":"Resolve the publishable key + entity for a currency","description":"Resolve the charge/product currency to the Open Border legal entity, its settlement currency, and the entity’s **publishable** key. Call this before collecting card details: tokenize the card on the returned publishable key so the resulting payment method token belongs to the same account the charge runs on (payment method tokens are account-scoped). The publishable key matches the API key’s rail (test vs live). Each supported currency maps to exactly one entity.","tags":["Checkout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutConfigRequest"},"examples":{"us_usd":{"summary":"Resolve obmor_us from USD","value":{"currency":"USD"}},"gb_gbp":{"summary":"Resolve obmor_uk from GBP","value":{"currency":"GBP"}},"de_eur":{"summary":"Resolve obmor_eu from EUR","value":{"currency":"EUR"}},"ca_cad":{"summary":"Resolve obmor_ca from CAD","value":{"currency":"CAD"}},"au_aud":{"summary":"Resolve obmor_au from AUD","value":{"currency":"AUD"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutConfig"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/checkout/payment_sessions":{"post":{"operationId":"createCheckoutPaymentSession","summary":"Create a wallet payment session (Apple Pay on the checkout.com rail)","description":"Create the payment session an Apple Pay button authorizes against, for merchants whose resolved provider charges wallets through a provider-hosted session rather than a browser-side token. Call it before opening the wallet sheet, then pass the returned `payment_session_id` — with the `session_data` the wallet component produces — as the `payment_method` of \"Create a payment intent\". This route moves no money: it creates no payment intent, takes no `Idempotency-Key`, and the charge is still created by `POST /v1/payment_intents`. The amount is NOT accepted from you — it is the total of the revalidated `tax_quote_id`, and the currency, entity, and processing account come from that quote too, so the buyer can only ever approve the price the charge will be revalidated against. The charge is then refused unless the session was created for the same merchant, from the same quote, at the same amount. `success_url` is required here: its origin is the merchant origin the wallet sheet presents. A merchant whose provider does not use wallet payment sessions gets a `validation_error`.","tags":["Checkout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentSessionRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSession"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/checkout/browser_config":{"post":{"operationId":"getBrowserCheckoutConfig","summary":"Resolve checkout config + branding for the embeddable element (publishable key)","description":"The browser-facing sibling of `/v1/checkout/config`, authenticated with a **publishable** key (`pk_…`) as the Bearer token instead of a secret key — safe to call from a storefront page. It returns the resolved entity, the entity’s **publishable** key, the settlement currency, and the merchant’s resolved checkout **branding** (their configured theme, or the base theme when unset), so the embeddable drop-in can render branded before tokenizing the card. Read-only and non-money: a publishable key can never create a charge. The merchant is resolved from the publishable key; the rail (test vs live) matches it.","tags":["Checkout"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserCheckoutConfigRequest"},"examples":{"us_usd":{"summary":"Resolve obmor_us + branding from USD","value":{"currency":"USD"}},"gb_gbp":{"summary":"Resolve obmor_uk + branding from GBP","value":{"currency":"GBP"}},"de_eur":{"summary":"Resolve obmor_eu + branding from EUR","value":{"currency":"EUR"}},"ca_cad":{"summary":"Resolve obmor_ca + branding from CAD","value":{"currency":"CAD"}},"au_aud":{"summary":"Resolve obmor_au + branding from AUD","value":{"currency":"AUD"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserCheckoutConfig"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/payment_method_domains":{"post":{"operationId":"registerPaymentMethodDomain","summary":"Register the checkout domain for wallet payment methods","description":"Register the domain that hosts your checkout so wallet payment methods (Apple Pay, Google Pay) can render there. Registration fans out across every Open Border entity’s payment account, on every payment provider, on the API key’s rail, and returns one entry per (`entity`, `provider`) with that account’s per-wallet activation (`apple_pay`, `google_pay`). A wallet is `active` when the provider confirmed it, `inactive` when it reported the wallet is not usable (see `error_message`), and `enrolled` when the provider accepted the registration but offers no way to confirm it — `enrolled` is **not** a synonym for `active`. No file hosting or Apple/Google account is needed — validation is handled server-side. Subdomains register separately (`shop.example.com` is not covered by `example.com`). Providers are independent: if one fails, the others are still registered and the failure is reported in `provider_errors`. Merchants have **one** domain: re-posting the same domain refreshes it, while posting a different domain while one exists returns `payment_method_domain_exists` (409) — changing a registered domain is an Open Border support operation, because a provider may be unable to withdraw the previous registration.","tags":["Payment Methods"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPaymentMethodDomainRequest"},"examples":{"storefront":{"summary":"Register the storefront checkout domain","value":{"domain":"shop.example.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDomain"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"operationId":"listPaymentMethodDomains","summary":"List the registered checkout domain and its wallet activation","description":"Read the merchant’s registered checkout domain on the API key’s rail, with each Open Border entity’s per-wallet (`apple_pay`, `google_pay`) activation status. `data` is empty when no domain has been registered yet.","tags":["Payment Methods"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDomainList"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/payment_method_domains/validate":{"post":{"operationId":"validatePaymentMethodDomains","summary":"Re-run wallet validation for the registered domain","description":"Retry wallet activation for every registration where any wallet (`apple_pay`, `google_pay`) is still `inactive` and return the refreshed statuses. Fully active registrations are left untouched, and so are registrations on a provider that offers no re-validation — those keep their stored status (an `enrolled` wallet stays `enrolled`, because that provider has nothing further to report). Use this after fixing whatever the `error_message` described. Returns `not_found` when no domain is registered on this rail.","tags":["Payment Methods"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDomain"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No payment method domain is registered (`not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/payment_intents":{"post":{"operationId":"createPaymentIntent","summary":"Create and confirm (or authorize) a payment intent","description":"**Call `POST /v1/tax_quotes` first — a quote is required to charge.** Every charge is priced from a server-issued tax quote, so the `tax_quote_id` body field below is REQUIRED; omitting it is a `validation_error` (400). There is no unquoted charge, so tax and duty can never silently be zero.\n\nThe order of calls:\n\n1. `POST /v1/classifications` — get the `hs_code` for each product.\n2. `POST /v1/tax_quotes` — quote tax & duty for this basket and ship-to destination, and keep the returned `id`.\n3. `POST /v1/payment_intents` (this endpoint) — send that `id` as `tax_quote_id`.\n\nCreate and confirm a charge. The acquiring entity is resolved from the charge/product `currency`; the billing address is retained for AVS/audit only and does not route. `amount` is the merchandise subtotal in minor units; the quote fixes the charged total (subtotal + shipping + tax + duty) and client-supplied tax/duty are never trusted. The quote is revalidated against this request — destination, currency, subtotal, shipping, and the exact line items — so a quote issued for a different basket is rejected with `tax_quote_mismatch` (422) before any charge. Shipping address is the tax/duty destination. Minor-unit amount fields and the final checked charge are capped at 99,999,999; each line quantity is capped at 10,000. With `capture_method` `automatic` (the default) the intent normally becomes `succeeded`, but a provider-confirmed asynchronous charge may return `processing` before a signed charge webhook converges it to `succeeded` or `failed`. Persist the order, poll this API, and never create a second payment while it is `processing`. With `manual` the funds are only authorized (intent becomes `authorized`) to be captured or canceled later.\n\n**A card the issuer wants authenticated returns `requires_action`, and the payment is not done.** One buyer-side step is outstanding, and it arrives in whichever shape the merchant's resolved provider uses: a `client_secret`, or a `next_action` redirect (send the buyer to `url`). Mount the Open Border checkout drop-in (`@openborder-mor/js`) and it performs the `client_secret` step for you — return this response body from its `onSuccess` and it authenticates the card, so your page needs no payment-processor code and keeps working if the rail changes.\n\nCompleting that step does NOT settle the intent: a signed provider webhook converges it to `succeeded` (automatic capture) or `authorized` (manual). **Read `GET /v1/payment_intents/{payment_intent_id}` server-side and fulfil on that**, never on the browser step returning — treat the two as separate events, because convergence is asynchronous and can land after the buyer has left. An abandoned challenge is released with `POST /v1/cancel`, which also invalidates the outstanding `client_secret` so it can never be completed against a dead checkout.\n\nSend a unique `Idempotency-Key`; a retry with the same key replays the first response. A retry is stopped with `idempotency_recovery_required` when a pre-upgrade attempt cannot be assigned safely to the authenticated test/live rail, or when the original checkout may have reached the provider and is too old to retry safely.","tags":["Payment Intents"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentIntentRequest"},"examples":{"us_usd_automatic":{"summary":"obmor_us — automatic capture (USD → GB). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":5000,"currency":"USD","capture_method":"automatic","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.com","name":"Test Buyer"},"billing_address":{"line1":"1 Market St","city":"San Francisco","state":"CA","postal_code":"94105","country":"US"},"shipping_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"line_items":[{"description":"Premium Widget","quantity":2,"unit_amount":2500,"sku":"WIDGET-001","hs_code":"847990"}],"merchant_reference":"order-gb-automatic-001","order_id":"1042"}},"gb_gbp_automatic":{"summary":"obmor_uk — automatic capture (GBP → GB). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":8900,"currency":"GBP","capture_method":"automatic","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.co.uk","name":"Test Buyer"},"billing_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"shipping_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"line_items":[{"description":"Leather Handbag","quantity":1,"unit_amount":8900,"sku":"BAG-100","hs_code":"420221"}],"merchant_reference":"order-gb-automatic-001","order_id":"1042"}},"de_eur_automatic":{"summary":"obmor_eu — automatic capture (EUR → DE). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":24500,"currency":"EUR","capture_method":"automatic","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.de","name":"Test Buyer"},"billing_address":{"line1":"Unter den Linden 1","city":"Berlin","postal_code":"10117","country":"DE"},"shipping_address":{"line1":"Unter den Linden 1","city":"Berlin","postal_code":"10117","country":"DE"},"line_items":[{"description":"Professional Laptop","quantity":1,"unit_amount":24500,"sku":"LAPTOP-PRO","hs_code":"847130"}],"merchant_reference":"order-de-automatic-001","order_id":"1042"}},"ca_cad_automatic":{"summary":"obmor_ca — automatic capture (CAD → CA). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":15900,"currency":"CAD","capture_method":"automatic","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.ca","name":"Test Buyer"},"billing_address":{"line1":"1055 W Pender St","city":"Vancouver","state":"BC","postal_code":"V6E 2V6","country":"CA"},"shipping_address":{"line1":"1055 W Pender St","city":"Vancouver","state":"BC","postal_code":"V6E 2V6","country":"CA"},"line_items":[{"description":"Mountain Bike","quantity":1,"unit_amount":15900,"sku":"BIKE-7","hs_code":"871200"}],"merchant_reference":"order-ca-automatic-001","order_id":"1042"}},"au_aud_automatic":{"summary":"obmor_au — automatic capture (AUD → AU). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":12900,"currency":"AUD","capture_method":"automatic","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.com.au","name":"Test Buyer"},"billing_address":{"line1":"101 Miller St","city":"North Sydney","state":"NSW","postal_code":"2060","country":"AU"},"shipping_address":{"line1":"101 Miller St","city":"North Sydney","state":"NSW","postal_code":"2060","country":"AU"},"line_items":[{"description":"Premium Surfboard","quantity":1,"unit_amount":12900,"sku":"SURF-3","hs_code":"950629"}],"merchant_reference":"order-au-automatic-001","order_id":"1042"}},"us_usd_manual":{"summary":"obmor_us — manual capture (USD → GB). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":5000,"currency":"USD","capture_method":"manual","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.com","name":"Test Buyer"},"billing_address":{"line1":"1 Market St","city":"San Francisco","state":"CA","postal_code":"94105","country":"US"},"shipping_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"line_items":[{"description":"Premium Widget","quantity":2,"unit_amount":2500,"sku":"WIDGET-001","hs_code":"847990"}],"merchant_reference":"order-gb-manual-001","order_id":"1042"}},"gb_gbp_manual":{"summary":"obmor_uk — manual capture (GBP → GB). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":8900,"currency":"GBP","capture_method":"manual","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.co.uk","name":"Test Buyer"},"billing_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"shipping_address":{"line1":"10 Downing St","city":"London","postal_code":"SW1A 2AA","country":"GB"},"line_items":[{"description":"Leather Handbag","quantity":1,"unit_amount":8900,"sku":"BAG-100","hs_code":"420221"}],"merchant_reference":"order-gb-manual-001","order_id":"1042"}},"de_eur_manual":{"summary":"obmor_eu — manual capture (EUR → DE). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":24500,"currency":"EUR","capture_method":"manual","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.de","name":"Test Buyer"},"billing_address":{"line1":"Unter den Linden 1","city":"Berlin","postal_code":"10117","country":"DE"},"shipping_address":{"line1":"Unter den Linden 1","city":"Berlin","postal_code":"10117","country":"DE"},"line_items":[{"description":"Professional Laptop","quantity":1,"unit_amount":24500,"sku":"LAPTOP-PRO","hs_code":"847130"}],"merchant_reference":"order-de-manual-001","order_id":"1042"}},"ca_cad_manual":{"summary":"obmor_ca — manual capture (CAD → CA). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":15900,"currency":"CAD","capture_method":"manual","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.ca","name":"Test Buyer"},"billing_address":{"line1":"1055 W Pender St","city":"Vancouver","state":"BC","postal_code":"V6E 2V6","country":"CA"},"shipping_address":{"line1":"1055 W Pender St","city":"Vancouver","state":"BC","postal_code":"V6E 2V6","country":"CA"},"line_items":[{"description":"Mountain Bike","quantity":1,"unit_amount":15900,"sku":"BIKE-7","hs_code":"871200"}],"merchant_reference":"order-ca-manual-001","order_id":"1042"}},"au_aud_manual":{"summary":"obmor_au — manual capture (AUD → AU). Generate tax_quote_id with \"Create a tax & duty quote\" first.","value":{"tax_quote_id":"00000000-0000-4000-8000-000000000000","amount":12900,"currency":"AUD","capture_method":"manual","payment_method":"pm_card_visa","shipping_amount":1500,"customer":{"email":"buyer@example.com.au","name":"Test Buyer"},"billing_address":{"line1":"101 Miller St","city":"North Sydney","state":"NSW","postal_code":"2060","country":"AU"},"shipping_address":{"line1":"101 Miller St","city":"North Sydney","state":"NSW","postal_code":"2060","country":"AU"},"line_items":[{"description":"Premium Surfboard","quantity":1,"unit_amount":12900,"sku":"SURF-3","hs_code":"950629"}],"merchant_reference":"order-au-manual-001","order_id":"1042"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency conflict — key reused with a different body, or a concurrent request with the same key still in flight, or a provider-backed payment attempt requires operator recovery (`idempotency_key_conflict`, `idempotency_in_progress`, `idempotency_recovery_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"recoveryRequired":{"summary":"The original payment attempt cannot be retried safely","value":{"error":{"code":"idempotency_recovery_required","message":"This payment attempt requires manual review before it can be retried","details":{"requires_manual_review":true}}}}}}}},"422":{"description":"The tax quote has expired (`tax_quote_expired`), or the tax quote does not match the checkout — destination, currency, subtotal, shipping, or line items (`tax_quote_mismatch`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/payment_intents/{payment_intent_id}":{"get":{"operationId":"getPaymentIntent","summary":"Retrieve a payment intent status","description":"Read the current Open Border payment-intent status for the authenticated merchant. This route is read-only: it does not require an `Idempotency-Key`, does not return the provider client secret, and returns `not_found` if the id is absent or belongs to another merchant.","tags":["Payment Intents"],"parameters":[{"name":"payment_intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentStatus"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Payment intent not found (`not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/capture":{"post":{"operationId":"capturePaymentIntent","summary":"Capture a manual-capture payment intent","description":"Capture the full authorized amount of a manual-capture payment intent that is in the `authorized` state, settling the funds and moving the intent to `captured`. Only valid for intents created with `capture_method` `manual`; partial capture is not supported. Send a unique `Idempotency-Key`; a retry with the same key replays the first response. A retry is stopped with `idempotency_recovery_required` when a pre-upgrade attempt cannot be assigned safely to the authenticated test/live rail.","tags":["Payment Intents"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapturePaymentIntentRequest"},"examples":{"capture":{"summary":"Capture an authorized intent. Replace payment_intent_id with a real id.","value":{"payment_intent_id":"11111111-1111-4111-8111-111111111111"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentAction"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency conflict — key reused with a different body, or a concurrent request with the same key still in flight, or a provider-backed payment attempt requires operator recovery (`idempotency_key_conflict`, `idempotency_in_progress`, `idempotency_recovery_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"recoveryRequired":{"summary":"The original payment attempt cannot be retried safely","value":{"error":{"code":"idempotency_recovery_required","message":"This payment attempt requires manual review before it can be retried","details":{"requires_manual_review":true}}}}}}}},"422":{"description":"Illegal state transition (`invalid_state_transition`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/cancel":{"post":{"operationId":"cancelPaymentIntent","summary":"Cancel a payment intent before settlement","description":"Cancel a payment intent that is either `authorized` (releasing the uncaptured authorization), `requires_action` (releasing the unconfirmed intent and invalidating its outstanding `client_secret`), or `processing` (requesting cancellation of a confirmed automatic charge that has not yet settled), moving it to `canceled`. The funds are never captured, and a canceled intent can no longer be captured or refunded. Send a unique `Idempotency-Key`; a retry with the same key replays the first response. A retry is stopped with `idempotency_recovery_required` when a pre-upgrade attempt cannot be assigned safely to the authenticated test/live rail.","tags":["Payment Intents"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelPaymentIntentRequest"},"examples":{"cancel":{"summary":"Cancel an authorized intent. Replace payment_intent_id with a real id.","value":{"payment_intent_id":"11111111-1111-4111-8111-111111111111"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentAction"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency conflict — key reused with a different body, or a concurrent request with the same key still in flight, or a provider-backed payment attempt requires operator recovery (`idempotency_key_conflict`, `idempotency_in_progress`, `idempotency_recovery_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"recoveryRequired":{"summary":"The original payment attempt cannot be retried safely","value":{"error":{"code":"idempotency_recovery_required","message":"This payment attempt requires manual review before it can be retried","details":{"requires_manual_review":true}}}}}}}},"422":{"description":"Illegal state transition (`invalid_state_transition`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/refund":{"post":{"operationId":"createRefund","summary":"Refund a payment intent (full or partial)","description":"Refund a captured payment intent, in full or in part. Omit `amount` to refund the entire captured total; supply `amount` in minor units for a partial refund (the sum of refunds may not exceed the captured total). Send a unique `Idempotency-Key`; a retry with the same key replays the first response. A retry is stopped with `idempotency_recovery_required` when a pre-upgrade attempt cannot be assigned safely to the authenticated test/live rail.","tags":["Refunds"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRefundRequest"},"examples":{"full":{"summary":"Full refund (omit amount). Replace payment_intent_id with a real id.","value":{"payment_intent_id":"11111111-1111-4111-8111-111111111111"}},"partial":{"summary":"Partial refund of 1000 minor units. Replace payment_intent_id with a real id.","value":{"payment_intent_id":"11111111-1111-4111-8111-111111111111","amount":1000,"reason":"customer_request"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refund"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency conflict — key reused with a different body, or a concurrent request with the same key still in flight, or a provider-backed payment attempt requires operator recovery (`idempotency_key_conflict`, `idempotency_in_progress`, `idempotency_recovery_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"recoveryRequired":{"summary":"The original payment attempt cannot be retried safely","value":{"error":{"code":"idempotency_recovery_required","message":"This payment attempt requires manual review before it can be retried","details":{"requires_manual_review":true}}}}}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/disputes/{id}/evidence":{"post":{"operationId":"submitDisputeEvidence","summary":"Submit evidence contesting a dispute","description":"Submit structured, text-only evidence contesting a chargeback. The dispute (referenced by the path `id`) must be awaiting a response; evidence is forwarded to the payment provider and the dispute moves to `under_review`. Disputes themselves are opened and resolved by the provider (delivered via webhooks), not created through the API. Send a unique `Idempotency-Key`; a retry with the same key replays the first response.","tags":["Disputes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDisputeEvidenceRequest"},"examples":{"shipped_goods":{"summary":"Contest a dispute with proof of delivery. Replace the :id path param with a real dispute id.","value":{"product_description":"Premium Widget, 2-pack","customer_name":"Test Buyer","shipping_carrier":"UPS","shipping_tracking_number":"1Z999AA10123456784","shipping_date":"2026-06-01","uncategorized_text":"Signed proof of delivery attached out of band."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dispute"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dispute not found (`dispute_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency conflict — key reused with a different body, or a concurrent request with the same key still in flight (`idempotency_key_conflict`, `idempotency_in_progress`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Dispute is not accepting evidence (`dispute_not_actionable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/disputes":{"get":{"operationId":"listDisputes","summary":"List disputes","description":"List the disputes raised against your charges on the API key’s rail, newest first. Disputes are opened and resolved by the payment provider, so this is how you reconcile them without relying on having received every `dispute.opened` webhook. Filter by `status` and page with `limit` / `offset`; `total` counts every dispute matching the filter, not just the returned page.","tags":["Disputes"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":80}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeList"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/disputes/{id}":{"get":{"operationId":"getDispute","summary":"Retrieve a dispute","description":"Read one dispute by the `id` carried on its `dispute.*` events — the chargeback reason, the disputed amount, the evidence deadline, whether evidence can still be submitted, and the `evidence_prefill` block (customer, addresses, and the reported shipment) to answer it with. Read-only: no `Idempotency-Key`. An id that is absent, belongs to another merchant, or lives on the other rail all return the same `dispute_not_found`.","tags":["Disputes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dispute"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dispute not found (`dispute_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/payment_intents/{payment_intent_id}/fulfillment":{"get":{"operationId":"getFulfillment","summary":"Retrieve shipment tracking","description":"Read the stored fulfillment for a payment intent on the API key’s merchant and rail. The OpenBorder fulfillment fields remain the state of record; `tracking_provider` is nullable advisory Ship24 registration and milestone state. Missing fulfillments, other merchants, and the other rail all return the same `not_found` response.","tags":["Payment Intents"],"parameters":[{"name":"payment_intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fulfillment"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"operationId":"reportFulfillment","summary":"Report how a sale shipped","description":"Record the required tracking number, optional carrier display snapshot, optional canonical Ship24 `courier_code`, and optional ship date for the sale behind a payment intent — typically pushed by a connected store when it fulfills the order. The report feeds the dispute evidence prefill, so a chargeback defence can state how the order shipped without retyping. One shipment per sale, first report wins: an identical repeat replays the stored fulfillment, a differing report is rejected with `fulfillment_conflict` (409). Correct current tracking with PATCH and the returned version; dispute evidence already submitted stays independently authoritative. This iteration models one physical shipment per sale and does not change the main payment-intent creation contract. Omit or leave carrier blank to use Ship24 courier auto-detection. Tracking numbers follow Ship24’s 5–50 character contract and are returned uppercase. Ship24 is advisory, asynchronous, and default-off. Test-mode fulfillments do not call Ship24 except through the guarded official Ship24 sample path enabled only on staging. Ship24 registration, detection, and events are advisory and never gate or trigger fund release. For a captured physical order, accepting a fulfillment whose tracking number passes the published format clears the shipment hold; normal settlement availability timing still applies. Send a unique `Idempotency-Key`; retry the same key only with the exact same payment intent and report to replay the first response. Multi-parcel orders are not representable; enter those in the evidence form directly. A supplied `courier_code` must come from the current Open Border courier catalog; omit it for auto-detection.","tags":["Payment Intents"],"parameters":[{"name":"payment_intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportFulfillmentRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fulfillment"}}}},"400":{"description":"Validation error, or a missing `Idempotency-Key` (`validation_error`, `idempotency_key_required`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"A different fulfillment already exists for this sale (`fulfillment_conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Illegal state transition (`invalid_state_transition`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"operationId":"correctFulfillment","summary":"Correct shipment tracking","description":"Fully replace a fulfillment, including its nullable canonical Ship24 `courier_code`, using optimistic concurrency. Exact retries replay; stale or differing edits return `fulfillment_conflict`. Omit `courier_code` for auto-detection.","tags":["Payment Intents"],"parameters":[{"name":"payment_intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectFulfillmentRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fulfillment"}}}},"400":{"description":"Validation error (`validation_error`, `invalid_amount`, …)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing/invalid key or wrong rail (`unauthorized`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Referenced resource not found (`not_found`, `tax_quote_not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The fulfillment version is stale or a concurrent edit differs (`fulfillment_conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Illegal state transition (`invalid_state_transition`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Shared API quota exceeded (`rate_limit_exceeded`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"Retry-After":{"description":"Whole seconds until this policy may admit another request","schema":{"type":"integer","minimum":1}}}},"500":{"description":"Internal or provider error (`internal_error`, `provider_error`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Shared rate-limit store unavailable while fail-closed (`rate_limit_unavailable`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"webhooks":{"payment_intent.created":{"post":{"operationId":"paymentIntentCreatedEvent","summary":"A payment intent was created","description":"A charge was started. No money has necessarily moved yet: on a manual-capture or asynchronous rail the sale settles later, and `payment_intent.captured`/`succeeded` is the money event. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payment Intents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentCreatedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payment_intent.succeeded":{"post":{"operationId":"paymentIntentSucceededEvent","summary":"A payment succeeded","description":"The charge was confirmed and captured on an automatic-capture intent. `data.amount` is the captured amount. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payment Intents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentSucceededEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payment_intent.captured":{"post":{"operationId":"paymentIntentCapturedEvent","summary":"An authorized payment was captured","description":"A manual (delayed) capture completed. `data.amount` is the captured amount — equal to the authorized amount on a full capture, less on a partial one. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payment Intents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentCapturedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payment_intent.canceled":{"post":{"operationId":"paymentIntentCanceledEvent","summary":"A payment intent was canceled","description":"An uncaptured authorization, an unconfirmed intent awaiting 3DS/SCA, or a confirmed-but-unsettled charge was released. Nothing was captured; `data.amount` is the amount that was voided. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payment Intents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentCanceledEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payment_intent.failed":{"post":{"operationId":"paymentIntentFailedEvent","summary":"A payment failed","description":"The charge did not succeed. The optional top-level `reason` is a short, safe summary — never a raw provider error. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payment Intents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentFailedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"refund.succeeded":{"post":{"operationId":"refundSucceededEvent","summary":"A refund succeeded","description":"A refund settled at the payment provider. `data.amount` is the refunded amount, which may be less than the sale on a partial refund. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Refunds"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundSucceededEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"refund.failed":{"post":{"operationId":"refundFailedEvent","summary":"A refund failed","description":"A refund did not settle; the funds were not returned to the cardholder. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Refunds"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundFailedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payout.created":{"post":{"operationId":"payoutCreatedEvent","summary":"A payout was created","description":"The weekly run disbursed your available balance for one entity to your bank. `data.amount` is the net debited from that settlement balance — read `data.conversion` before treating it as the deposit: when it is non-null the money was converted before being sent, and `data.conversion.buyAmount` is what your bank receives. Do not recompute the converted amount: `buyAmount` is what our payout partner filled, so it is not `sellAmount` multiplied by `rate`. Rates are exact decimal strings — parsing one into a float stops it being the rate we executed at. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payouts"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutCreatedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payout.in_transit":{"post":{"operationId":"payoutInTransitEvent","summary":"A payout left our payout partner","description":"The transfer is on its way to your bank but not yet confirmed received. The money fields are identical to `payout.created` — this event reports movement, never a repriced amount. Do not recompute the converted amount: `buyAmount` is what our payout partner filled, so it is not `sellAmount` multiplied by `rate`. Rates are exact decimal strings — parsing one into a float stops it being the rate we executed at. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payouts"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutInTransitEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payout.paid":{"post":{"operationId":"payoutPaidEvent","summary":"A payout was confirmed received","description":"Your bank confirmed receipt. This is the one to reconcile against: for a converted payout the cash that arrived is `data.conversion.buyAmount` in `data.conversion.buyCurrency`, while `data.amount` remains the settlement-currency amount that left your balance. Do not recompute the converted amount: `buyAmount` is what our payout partner filled, so it is not `sellAmount` multiplied by `rate`. Rates are exact decimal strings — parsing one into a float stops it being the rate we executed at. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payouts"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutPaidEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"payout.failed":{"post":{"operationId":"payoutFailedEvent","summary":"A payout failed","description":"The transfer did not arrive (for example a closed account) and the funds were returned to your available balance, so a later run pays them again. `reason` is a short, safe summary. `data.conversion` is null when the payout failed before its conversion executed — nothing was converted, so there is nothing to report. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Payouts"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutFailedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"dispute.opened":{"post":{"operationId":"disputeOpenedEvent","summary":"A chargeback was opened","description":"A cardholder disputed a charge. Act on this one: `data.reason` says why it was raised, `data.evidenceDueBy` is the deadline to answer, `data.canSubmitEvidence` says whether it can still be contested, and `data.externalOrderId` is your own order id. Submit your defence with POST /v1/disputes/{id}/evidence. The callback carries no customer identity by design. For the cardholder name, email address, and the billing/shipping addresses — the evidence a defence needs — read GET /v1/disputes/{id}, whose `evidence_prefill` supplies them. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Disputes"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeOpenedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"dispute.evidence_submitted":{"post":{"operationId":"disputeEvidenceSubmittedEvent","summary":"Dispute evidence was submitted","description":"Evidence contesting the dispute was submitted to the payment provider. The provider decides the outcome asynchronously, arriving later as `dispute.won` or `dispute.lost`. The callback carries no customer identity by design. For the cardholder name, email address, and the billing/shipping addresses — the evidence a defence needs — read GET /v1/disputes/{id}, whose `evidence_prefill` supplies them. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Disputes"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeEvidenceSubmittedEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"dispute.won":{"post":{"operationId":"disputeWonEvent","summary":"A dispute resolved in your favour","description":"The dispute was decided for you and `data.amount` was returned to your balance; the chargeback fee is kept. An outcome can be partial, in which case `data.amount` is the recovered amount rather than the full disputed amount. The callback carries no customer identity by design. For the cardholder name, email address, and the billing/shipping addresses — the evidence a defence needs — read GET /v1/disputes/{id}, whose `evidence_prefill` supplies them. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Disputes"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeWonEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}},"dispute.lost":{"post":{"operationId":"disputeLostEvent","summary":"A dispute resolved against you","description":"The dispute was decided against you. The disputed amount was already withdrawn when the chargeback opened, so nothing further is debited here. The callback carries no customer identity by design. For the cardholder name, email address, and the billing/shipping addresses — the evidence a defence needs — read GET /v1/disputes/{id}, whose `evidence_prefill` supplies them. Delivered as an HTTP POST to each active endpoint subscribed to this type on the event's own rail, signed with that endpoint's secret. Verify the signature over the exact raw body. Return any 2xx to acknowledge; anything else (or a timeout) is retried with backoff. Delivery is at-least-once, so make your handler idempotent on `id`. Field names inside `data` are camelCase, unlike the snake_case REST resources.","tags":["Disputes"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeLostEvent"}}}},"responses":{"2XX":{"description":"Acknowledged. Return any 2xx as soon as you have durably recorded the event — do the work afterwards. A non-2xx or a timeout is retried with backoff, and repeated failures disable the endpoint."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as `Authorization: Bearer sk_test_… | sk_live_…`. Test keys reach test rails only; live keys reach live rails only and require KYB approval. The two never mix (a live key on non-production rails is rejected with `unauthorized`)."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Alternative to the bearer scheme: the same key sent as `X-API-Key`."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128},"example":"idem-7bcf40eb-6ef5-42e7-ae88-44c4c3968454","description":"Client-supplied key for money-mutating POSTs, unique per distinct request. The first response is stored and replayed on retry; a retried key with a different body is an `idempotency_key_conflict`."}},"schemas":{"ClassifyProductsRequest":{"type":"object","properties":{"destination_country":{"type":"string","minLength":2,"maxLength":2},"products":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":500},"hs_code":{"type":"string","minLength":1,"maxLength":32}},"required":["title"],"additionalProperties":false}}},"required":["products"],"additionalProperties":false},"Classification":{"type":"object","properties":{"classifications":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sku":{"type":"string"},"hs_code":{"type":"string","minLength":1},"category":{"type":"string"},"description":{"type":"string"},"confidence":{"type":"number"}},"required":["index","hs_code","category","description","confidence"],"additionalProperties":false}}},"required":["classifications"],"additionalProperties":false},"CreateTaxQuoteRequest":{"type":"object","properties":{"destination_country":{"type":"string","minLength":2,"maxLength":2},"destination_region":{"description":"Destination state/province (code or full name). Required for US/CA when destination_postal_code is omitted.","type":"string","minLength":1,"maxLength":64,"pattern":"\\S"},"destination_postal_code":{"description":"Destination postal code. Required for US/CA when destination_region is omitted; the provider uses it to infer the state/province.","type":"string","minLength":1,"maxLength":32,"pattern":"\\S"},"ship_from_country":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 origin the goods ship FROM. With destination_country it forms the trade lane duty is priced on. Applies to every line item."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"shipping_amount":{"type":"integer","minimum":0,"maximum":99999999},"line_items":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","minLength":1,"maxLength":500},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"unit_amount":{"type":"integer","minimum":0,"maximum":99999999},"hs_code":{"type":"string","minLength":1,"maxLength":32}},"required":["description","quantity","unit_amount","hs_code"],"additionalProperties":false}},"customer":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"additionalProperties":false}},"required":["destination_country","ship_from_country","currency","line_items"],"additionalProperties":false,"allOf":[{"if":{"properties":{"destination_country":{"pattern":"^(?:[Uu][Ss]|[Cc][Aa])$"}},"required":["destination_country"]},"then":{"anyOf":[{"required":["destination_region"]},{"required":["destination_postal_code"]}]}}]},"TaxQuote":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination_country":{"type":"string","minLength":2,"maxLength":2},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"amount_breakdown":{"type":"object","properties":{"subtotal":{"type":"integer","minimum":0,"maximum":99999999},"shipping":{"type":"integer","minimum":0,"maximum":99999999},"tax":{"type":"integer","minimum":0,"maximum":99999999},"duty":{"type":"integer","minimum":0,"maximum":99999999},"total":{"type":"integer","minimum":0,"maximum":99999999},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["subtotal","shipping","tax","duty","total","currency"],"additionalProperties":false},"classifications":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hs_code":{"type":"string"},"confidence":{"type":"number"}},"required":["index","hs_code","confidence"],"additionalProperties":false}},"expires_at":{"type":"string"}},"required":["id","destination_country","currency","amount_breakdown","classifications","expires_at"],"additionalProperties":false},"CheckoutConfigRequest":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["currency"],"additionalProperties":false},"CheckoutConfig":{"type":"object","properties":{"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"provider":{"type":"string","enum":["stripe","checkout"]},"publishable_key":{"type":"string"},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"country":{"type":"string","minLength":2,"maxLength":2},"demo_store":{"type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["entity","provider","publishable_key","currency","country"],"additionalProperties":false},"CreatePaymentSessionRequest":{"type":"object","properties":{"billing_address":{"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":100},"postal_code":{"type":"string","minLength":1,"maxLength":20},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["line1","country"],"additionalProperties":false},"tax_quote_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Server-issued tax quote id (POST /v1/tax_quotes) this wallet sheet is priced from. Its total is the amount the buyer approves."},"success_url":{"type":"string","format":"uri","description":"Where the provider returns the buyer on success. Its ORIGIN is the merchant origin the wallet sheet presents, so it must be the page hosting the wallet button."},"failure_url":{"type":"string","format":"uri"}},"required":["billing_address","tax_quote_id","success_url","failure_url"],"additionalProperties":false},"PaymentSession":{"type":"object","properties":{"payment_session_id":{"type":"string","pattern":"^ps_[A-Za-z0-9_]{27}$"},"payment_session_token":{"type":"string"},"publishable_key":{"type":"string"},"provider":{"type":"string","enum":["stripe","checkout"]},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"amount":{"type":"integer","minimum":0,"maximum":99999999},"expires_at":{"type":"string","description":"When the underlying tax quote expires. Complete the wallet payment before this — a charge priced from an expired quote is rejected."},"flow_session":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["payment_session_id","payment_session_token","publishable_key","provider","entity","currency","amount","expires_at","flow_session"],"additionalProperties":false},"BrowserCheckoutConfigRequest":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["currency"],"additionalProperties":false},"BrowserCheckoutConfig":{"type":"object","properties":{"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"provider":{"type":"string","enum":["stripe","checkout"]},"publishable_key":{"type":"string"},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"country":{"type":"string","minLength":2,"maxLength":2},"branding":{"type":"object","properties":{"logoUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"primaryColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accentColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"backgroundColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"fontFamily":{"type":"string","minLength":1,"maxLength":100},"borderRadius":{"type":"integer","minimum":0,"maximum":40},"buttonLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":40},{"type":"null"}]}},"required":["logoUrl","primaryColor","accentColor","textColor","backgroundColor","fontFamily","borderRadius","buttonLabel"],"additionalProperties":false},"wallets":{"type":"object","properties":{"apple_pay":{"type":"boolean","description":"True when this merchant’s checkout domain is registered for Apple Pay on the account that would charge."},"google_pay":{"type":"boolean","description":"True when this merchant’s checkout domain is registered for Google Pay on the account that would charge."}},"required":["apple_pay","google_pay"],"additionalProperties":false}},"required":["entity","provider","publishable_key","currency","country","branding","wallets"],"additionalProperties":false},"RegisterPaymentMethodDomainRequest":{"type":"object","properties":{"domain":{"type":"string","pattern":"^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$","description":"The checkout domain that shows the wallet button, e.g. shop.example.com. Subdomains register separately."}},"required":["domain"],"additionalProperties":false},"PaymentMethodDomain":{"type":"object","properties":{"domain":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"registrations":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"provider":{"type":"string","enum":["stripe","checkout"]},"apple_pay":{"type":"object","properties":{"status":{"type":"string","enum":["active","inactive","enrolled","not_required"]},"error_message":{"type":"string"}},"required":["status"],"additionalProperties":false},"google_pay":{"type":"object","properties":{"status":{"type":"string","enum":["active","inactive","enrolled","not_required"]},"error_message":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["entity","provider","apple_pay","google_pay"],"additionalProperties":false}},"provider_errors":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["stripe","checkout"]},"code":{"type":"string"}},"required":["provider","code"],"additionalProperties":false}},"retained_at_provider":{"type":"array","items":{"type":"string","enum":["stripe","checkout"]}}},"required":["domain","mode","registrations"],"additionalProperties":false},"PaymentMethodDomainList":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"registrations":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"provider":{"type":"string","enum":["stripe","checkout"]},"apple_pay":{"type":"object","properties":{"status":{"type":"string","enum":["active","inactive","enrolled","not_required"]},"error_message":{"type":"string"}},"required":["status"],"additionalProperties":false},"google_pay":{"type":"object","properties":{"status":{"type":"string","enum":["active","inactive","enrolled","not_required"]},"error_message":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["entity","provider","apple_pay","google_pay"],"additionalProperties":false}},"provider_errors":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["stripe","checkout"]},"code":{"type":"string"}},"required":["provider","code"],"additionalProperties":false}},"retained_at_provider":{"type":"array","items":{"type":"string","enum":["stripe","checkout"]}}},"required":["domain","mode","registrations"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"CreatePaymentIntentRequest":{"type":"object","properties":{"tax_quote_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Server-issued tax quote id used to price this charge. Generate it with \"Create a tax & duty quote\" (POST /v1/tax_quotes) and pass the returned id here. Required — the charged total is subtotal + shipping + tax + duty from the revalidated quote."},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":99999999},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"shipping_amount":{"type":"integer","minimum":0,"maximum":99999999},"capture_method":{"type":"string","enum":["automatic","manual"]},"payment_method":{"anyOf":[{"type":"string","description":"Payment method token produced by the Open Border checkout element in the browser: pm_… (Stripe) or tok_… (checkout.com), matching the merchant’s resolved provider."},{"type":"object","properties":{"type":{"type":"string","const":"payment_session"},"payment_session_id":{"type":"string","pattern":"^ps_[A-Za-z0-9_]{27}$"},"session_data":{"type":"string","minLength":1}},"required":["type","payment_session_id","session_data"],"additionalProperties":false,"description":"A buyer’s wallet (Apple Pay) authorization of a payment session created with POST /v1/checkout/payment_sessions."}],"description":"What authorizes this charge: a browser-produced token (pm_… for Stripe, tok_… for checkout.com), or a wallet authorization of a payment session."},"success_url":{"type":"string","format":"uri"},"failure_url":{"type":"string","format":"uri"},"customer":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["email"],"additionalProperties":false},"buyer_context":{"type":"object","properties":{"ip_address":{"type":"string"},"user_agent":{"type":"string","maxLength":512},"accept_language":{"type":"string","maxLength":255}},"required":["ip_address"],"additionalProperties":false},"billing_address":{"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":100},"postal_code":{"type":"string","minLength":1,"maxLength":20},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["line1","country"],"additionalProperties":false},"shipping_address":{"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":100},"postal_code":{"type":"string","minLength":1,"maxLength":20},"country":{"type":"string","minLength":2,"maxLength":2}},"required":["line1","country"],"additionalProperties":false},"line_items":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"sku":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","minLength":1,"maxLength":500},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":10000},"unit_amount":{"type":"integer","minimum":0,"maximum":99999999},"hs_code":{"type":"string","minLength":1,"maxLength":32}},"required":["description","quantity","unit_amount","hs_code"],"additionalProperties":false}},"merchant_reference":{"type":"string","minLength":1,"maxLength":255},"order_id":{"description":"Your own order id, for correlating this charge with your system (maximum 255 characters). Echoed back on the response and forwarded to the payment provider for reconciliation. Not required to be unique.","type":"string","minLength":1,"maxLength":255},"metadata":{"type":"object","propertyNames":{"type":"string","maxLength":40,"pattern":"^(?![oO][bB][mM][oO][rR]_)","not":{"const":"obmor_merchant_id"},"allOf":[{"not":{"enum":["demo_store","public_order_alias"]}},{"not":{"const":"obmor_order_id"}}]},"additionalProperties":{"type":"string","maxLength":500},"description":"Merchant metadata (maximum 49 entries). The obmor_ key prefix is reserved for server use on every rail (case-insensitive); additional reserved keys: obmor_merchant_id, obmor_order_id, demo_store, public_order_alias.","maxProperties":49}},"required":["tax_quote_id","amount","currency","payment_method","customer","billing_address","shipping_address","line_items","merchant_reference"],"additionalProperties":false},"PaymentIntent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","description":"The intent lifecycle status: `requires_action` | `processing` | `authorized` | `succeeded` | `captured` | `canceled` | `failed`. **`requires_action` means the payment is not complete** — one buyer-side step is outstanding, carried by `client_secret` or `next_action` below. `processing` is a confirmed charge still settling, with nothing for the buyer to do. Both converge asynchronously on a signed provider webhook, so read `GET /v1/payment_intents/{payment_intent_id}` server-side before you fulfil."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `order_id` sent on the request, or null if none was sent."},"amount_breakdown":{"type":"object","properties":{"subtotal":{"type":"integer","minimum":0,"maximum":99999999},"shipping":{"type":"integer","minimum":0,"maximum":99999999},"tax":{"type":"integer","minimum":0,"maximum":99999999},"duty":{"type":"integer","minimum":0,"maximum":99999999},"total":{"type":"integer","minimum":0,"maximum":99999999},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["subtotal","shipping","tax","duty","total","currency"],"additionalProperties":false},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set only when `status` is `requires_action` **and** the outstanding step completes in the browser. On your server, project the merchant response to the shopper-safe checkout fields before returning it to the Open Border checkout drop-in (`@openborder-mor/js`); the card is then authenticated for you. Null otherwise. It is scoped to this one payment and cannot move money by itself, but treat it as single-use: do not log or store it, and `POST /v1/cancel` invalidates it along with the unconfirmed intent."},"next_action":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"redirect"},"url":{"type":"string","format":"uri"}},"required":["type","url"],"additionalProperties":false},{"type":"null"}],"description":"Set only when `status` is `requires_action` **and** the outstanding step is a redirect: send the buyer to `url`, and they come back to the `success_url` / `failure_url` you sent on the request. Null when the step is a `client_secret` one instead. At most one of the two is ever set, decided by the merchant’s resolved provider — branch on whichever is non-null rather than assuming a provider."},"flow_response":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"fraud":{"type":"object","properties":{"provider":{"type":"string","const":"maxmind"},"status":{"type":"string","enum":["assessed","unavailable"]},"score":{"anyOf":[{"type":"number","minimum":0.01,"maximum":99},{"type":"null"}]},"assessed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"decision":{"type":"string","enum":["allow","block"]},"policy":{"type":"object","properties":{"mode":{"type":"string","enum":["score_only","block"]},"threshold":{"anyOf":[{"type":"number","minimum":0.01,"maximum":99},{"type":"null"}]},"version":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["mode","threshold","version"],"additionalProperties":false}},"required":["provider","status","score","assessed_at"],"additionalProperties":false}},"required":["id","status","entity","order_id","amount_breakdown","client_secret","next_action"],"additionalProperties":false},"PaymentIntentStatus":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","description":"The intent lifecycle status: `requires_action` | `processing` | `authorized` | `succeeded` | `captured` | `canceled` | `failed`. This is server truth, and it is what to fulfil on: a completed browser step does not settle a payment, so an intent stays `requires_action` or `processing` until a signed provider webhook converges it — which can land after the buyer has closed the tab."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `order_id` sent when this payment intent was created, or null if none was."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount_captured":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"fraud":{"type":"object","properties":{"provider":{"type":"string","const":"maxmind"},"status":{"type":"string","enum":["assessed","unavailable"]},"score":{"anyOf":[{"type":"number","minimum":0.01,"maximum":99},{"type":"null"}]},"assessed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"decision":{"type":"string","enum":["allow","block"]},"policy":{"type":"object","properties":{"mode":{"type":"string","enum":["score_only","block"]},"threshold":{"anyOf":[{"type":"number","minimum":0.01,"maximum":99},{"type":"null"}]},"version":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["mode","threshold","version"],"additionalProperties":false}},"required":["provider","status","score","assessed_at"],"additionalProperties":false}},"required":["id","status","entity","order_id","amount","amount_captured","currency"],"additionalProperties":false},"CapturePaymentIntentRequest":{"type":"object","properties":{"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["payment_intent_id"],"additionalProperties":false},"PaymentIntentAction":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["captured","canceled"]},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount_captured":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["id","status","entity","amount","amount_captured","currency"],"additionalProperties":false},"CancelPaymentIntentRequest":{"type":"object","properties":{"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["payment_intent_id"],"additionalProperties":false},"CreateRefundRequest":{"type":"object","properties":{"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string","minLength":1}},"required":["payment_intent_id"],"additionalProperties":false},"Refund":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","description":"succeeded | pending | failed"},"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]}},"required":["id","status","payment_intent_id","amount","currency","entity"],"additionalProperties":false},"SubmitDisputeEvidenceRequest":{"type":"object","properties":{"product_description":{"type":"string","minLength":1},"customer_name":{"type":"string","minLength":1},"customer_email_address":{"type":"string","minLength":1},"customer_purchase_ip":{"type":"string","minLength":1},"billing_address":{"type":"string","minLength":1},"shipping_address":{"type":"string","minLength":1},"shipping_carrier":{"type":"string","minLength":1},"shipping_tracking_number":{"type":"string","minLength":1},"shipping_date":{"type":"string","minLength":1},"service_date":{"type":"string","minLength":1},"access_activity_log":{"type":"string","minLength":1},"refund_policy_disclosure":{"type":"string","minLength":1},"refund_refusal_explanation":{"type":"string","minLength":1},"cancellation_policy_disclosure":{"type":"string","minLength":1},"cancellation_rebuttal":{"type":"string","minLength":1},"duplicate_charge_explanation":{"type":"string","minLength":1},"uncategorized_text":{"type":"string","minLength":1}},"additionalProperties":false},"Dispute":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","description":"needs_response | under_review | won | lost | warning_needs_response | …"},"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"evidence_due_by":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"evidence_submitted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"can_submit_evidence":{"type":"boolean"},"simulated":{"type":"boolean"},"evidence_prefill":{"type":"object","properties":{"product_description":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer_email_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing_address_components":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"type":"string"}},"required":["line1","line2","city","state","postal_code","country"],"additionalProperties":false},{"type":"null"}]},"shipping_address_components":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"type":"string"}},"required":["line1","line2","city","state","postal_code","country"],"additionalProperties":false},{"type":"null"}]},"external_order_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_carrier":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["product_description","customer_name","customer_email_address","billing_address","shipping_address","billing_address_components","shipping_address_components","external_order_id","shipping_carrier","shipping_tracking_number","shipping_date"],"additionalProperties":false},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","mode","status","transaction_id","payment_intent_id","amount","currency","entity","reason","evidence_due_by","evidence_submitted_at","can_submit_evidence","simulated","created_at","updated_at"],"additionalProperties":false},"DisputeList":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["test","live"]},"status":{"type":"string","description":"needs_response | under_review | won | lost | warning_needs_response | …"},"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"evidence_due_by":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"evidence_submitted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"can_submit_evidence":{"type":"boolean"},"simulated":{"type":"boolean"},"evidence_prefill":{"type":"object","properties":{"product_description":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer_email_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing_address_components":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"type":"string"}},"required":["line1","line2","city","state","postal_code","country"],"additionalProperties":false},{"type":"null"}]},"shipping_address_components":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"type":"string"}},"required":["line1","line2","city","state","postal_code","country"],"additionalProperties":false},{"type":"null"}]},"external_order_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_carrier":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"shipping_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["product_description","customer_name","customer_email_address","billing_address","shipping_address","billing_address_components","shipping_address_components","external_order_id","shipping_carrier","shipping_tracking_number","shipping_date"],"additionalProperties":false},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","mode","status","transaction_id","payment_intent_id","amount","currency","entity","reason","evidence_due_by","evidence_submitted_at","can_submit_evidence","simulated","created_at","updated_at"],"additionalProperties":false}},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["data","total"],"additionalProperties":false},"Fulfillment":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["test","live"]},"payment_intent_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}]},"courier_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"tracking_number":{"type":"string"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"tracking_provider":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","const":"ship24"},"registration_status":{"type":"string","enum":["disabled","queued","registering","registered","failed","replacement_required"]},"courier_codes":{"type":"array","items":{"type":"string"}},"status_milestone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["provider","registration_status","courier_codes","status_milestone"],"additionalProperties":false},{"type":"null"}]}},"required":["id","mode","payment_intent_id","transaction_id","carrier","courier_code","tracking_number","shipped_at","created_at","version","updated_at","tracking_provider"],"additionalProperties":false},"ReportFulfillmentRequest":{"type":"object","properties":{"carrier":{"type":"string","maxLength":100},"courier_code":{"type":"string","minLength":1,"maxLength":100},"tracking_number":{"type":"string","minLength":5,"maxLength":50,"pattern":"^[A-Za-z0-9_/.-]+$"},"shipped_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["tracking_number"],"additionalProperties":false},"CorrectFulfillmentRequest":{"type":"object","properties":{"carrier":{"type":"string","maxLength":100},"courier_code":{"type":"string","minLength":1,"maxLength":100},"tracking_number":{"type":"string","minLength":5,"maxLength":50,"pattern":"^[A-Za-z0-9_/.-]+$"},"shipped_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"expected_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tracking_number","expected_version"],"additionalProperties":false},"PaymentIntentCreatedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payment_intent.created"},"data":{"type":"object","properties":{"paymentIntentId":{"type":"string","description":"The Open Border payment intent id."},"transactionId":{"type":"string","description":"The Open Border transaction (sale) id."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"],"description":"The acquiring Open Border entity, resolved from the charge currency."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"demoStore":{"description":"Test-rail only: the demo storefront a sale originated from.","type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for payment-intent lifecycle events. Amounts are integer minor units."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PaymentIntentSucceededEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payment_intent.succeeded"},"data":{"type":"object","properties":{"paymentIntentId":{"type":"string","description":"The Open Border payment intent id."},"transactionId":{"type":"string","description":"The Open Border transaction (sale) id."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"],"description":"The acquiring Open Border entity, resolved from the charge currency."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"demoStore":{"description":"Test-rail only: the demo storefront a sale originated from.","type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for payment-intent lifecycle events. Amounts are integer minor units."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PaymentIntentCapturedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payment_intent.captured"},"data":{"type":"object","properties":{"paymentIntentId":{"type":"string","description":"The Open Border payment intent id."},"transactionId":{"type":"string","description":"The Open Border transaction (sale) id."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"],"description":"The acquiring Open Border entity, resolved from the charge currency."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"demoStore":{"description":"Test-rail only: the demo storefront a sale originated from.","type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for payment-intent lifecycle events. Amounts are integer minor units."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PaymentIntentCanceledEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payment_intent.canceled"},"data":{"type":"object","properties":{"paymentIntentId":{"type":"string","description":"The Open Border payment intent id."},"transactionId":{"type":"string","description":"The Open Border transaction (sale) id."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"],"description":"The acquiring Open Border entity, resolved from the charge currency."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"demoStore":{"description":"Test-rail only: the demo storefront a sale originated from.","type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for payment-intent lifecycle events. Amounts are integer minor units."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PaymentIntentFailedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payment_intent.failed"},"data":{"type":"object","properties":{"paymentIntentId":{"type":"string","description":"The Open Border payment intent id."},"transactionId":{"type":"string","description":"The Open Border transaction (sale) id."},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"],"description":"The acquiring Open Border entity, resolved from the charge currency."},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"demoStore":{"description":"Test-rail only: the demo storefront a sale originated from.","type":"string","enum":["woocommerce","magento","medusa","custom_api","salesforce_b2c"]}},"required":["paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for payment-intent lifecycle events. Amounts are integer minor units."},"reason":{"description":"A short, safe summary of the outcome. Never a raw provider error.","type":"string"}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"RefundSucceededEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"refund.succeeded"},"data":{"type":"object","properties":{"refundId":{"type":"string"},"paymentIntentId":{"type":"string"},"transactionId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The refunded amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["refundId","paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for refund lifecycle events."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"RefundFailedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"refund.failed"},"data":{"type":"object","properties":{"refundId":{"type":"string"},"paymentIntentId":{"type":"string"},"transactionId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The refunded amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]}},"required":["refundId","paymentIntentId","transactionId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for refund lifecycle events."},"reason":{"description":"A short, safe summary of the outcome. Never a raw provider error.","type":"string"}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PayoutCreatedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payout.created"},"data":{"type":"object","properties":{"payoutId":{"type":"string"},"reference":{"type":"string"},"merchantId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The net debited from your settlement balance for this entity, in integer minor units of `currency` — NOT necessarily what landed in your bank. On a payout paid in its own settlement currency the two are the same. On a converted payout the deposit is conversion.buyAmount instead."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The settlement currency of `amount` — always this entity's own currency."},"conversion":{"anyOf":[{"type":"object","properties":{"sellCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The currency sold — the payout's own settlement currency."},"sellAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sold, in sellCurrency minor units. Equal to the payout's amount."},"buyCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"Your payout currency — the currency that reached your bank."},"buyAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bought, in buyCurrency minor units. THIS is the deposit, not the top-level amount."},"rate":{"type":"string","description":"The rate the conversion executed at. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."},"midRate":{"type":"string","description":"The market mid rate at execution, so the spread is derivable. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."}},"required":["sellCurrency","sellAmount","buyCurrency","buyAmount","rate","midRate"],"additionalProperties":false,"description":"The conversion a converted payout was paid through, exactly as recorded when it executed. Amounts are what the provider filled; buyAmount is never sellAmount multiplied by rate, so do not recompute it."},{"type":"null"}],"description":"Null when the payout was paid in its own settlement currency, which is every payout if your payouts are denominated per settlement currency. Non-null only when the balance was converted into a single payout currency before being sent."}},"required":["payoutId","reference","merchantId","entity","amount","currency","conversion"],"additionalProperties":false,"description":"Payload for payout lifecycle events. Read `conversion` before assuming `amount` is the deposit."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PayoutInTransitEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payout.in_transit"},"data":{"type":"object","properties":{"payoutId":{"type":"string"},"reference":{"type":"string"},"merchantId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The net debited from your settlement balance for this entity, in integer minor units of `currency` — NOT necessarily what landed in your bank. On a payout paid in its own settlement currency the two are the same. On a converted payout the deposit is conversion.buyAmount instead."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The settlement currency of `amount` — always this entity's own currency."},"conversion":{"anyOf":[{"type":"object","properties":{"sellCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The currency sold — the payout's own settlement currency."},"sellAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sold, in sellCurrency minor units. Equal to the payout's amount."},"buyCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"Your payout currency — the currency that reached your bank."},"buyAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bought, in buyCurrency minor units. THIS is the deposit, not the top-level amount."},"rate":{"type":"string","description":"The rate the conversion executed at. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."},"midRate":{"type":"string","description":"The market mid rate at execution, so the spread is derivable. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."}},"required":["sellCurrency","sellAmount","buyCurrency","buyAmount","rate","midRate"],"additionalProperties":false,"description":"The conversion a converted payout was paid through, exactly as recorded when it executed. Amounts are what the provider filled; buyAmount is never sellAmount multiplied by rate, so do not recompute it."},{"type":"null"}],"description":"Null when the payout was paid in its own settlement currency, which is every payout if your payouts are denominated per settlement currency. Non-null only when the balance was converted into a single payout currency before being sent."}},"required":["payoutId","reference","merchantId","entity","amount","currency","conversion"],"additionalProperties":false,"description":"Payload for payout lifecycle events. Read `conversion` before assuming `amount` is the deposit."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PayoutPaidEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payout.paid"},"data":{"type":"object","properties":{"payoutId":{"type":"string"},"reference":{"type":"string"},"merchantId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The net debited from your settlement balance for this entity, in integer minor units of `currency` — NOT necessarily what landed in your bank. On a payout paid in its own settlement currency the two are the same. On a converted payout the deposit is conversion.buyAmount instead."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The settlement currency of `amount` — always this entity's own currency."},"conversion":{"anyOf":[{"type":"object","properties":{"sellCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The currency sold — the payout's own settlement currency."},"sellAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sold, in sellCurrency minor units. Equal to the payout's amount."},"buyCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"Your payout currency — the currency that reached your bank."},"buyAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bought, in buyCurrency minor units. THIS is the deposit, not the top-level amount."},"rate":{"type":"string","description":"The rate the conversion executed at. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."},"midRate":{"type":"string","description":"The market mid rate at execution, so the spread is derivable. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."}},"required":["sellCurrency","sellAmount","buyCurrency","buyAmount","rate","midRate"],"additionalProperties":false,"description":"The conversion a converted payout was paid through, exactly as recorded when it executed. Amounts are what the provider filled; buyAmount is never sellAmount multiplied by rate, so do not recompute it."},{"type":"null"}],"description":"Null when the payout was paid in its own settlement currency, which is every payout if your payouts are denominated per settlement currency. Non-null only when the balance was converted into a single payout currency before being sent."}},"required":["payoutId","reference","merchantId","entity","amount","currency","conversion"],"additionalProperties":false,"description":"Payload for payout lifecycle events. Read `conversion` before assuming `amount` is the deposit."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"PayoutFailedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"payout.failed"},"data":{"type":"object","properties":{"payoutId":{"type":"string"},"reference":{"type":"string"},"merchantId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The net debited from your settlement balance for this entity, in integer minor units of `currency` — NOT necessarily what landed in your bank. On a payout paid in its own settlement currency the two are the same. On a converted payout the deposit is conversion.buyAmount instead."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The settlement currency of `amount` — always this entity's own currency."},"conversion":{"anyOf":[{"type":"object","properties":{"sellCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"The currency sold — the payout's own settlement currency."},"sellAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sold, in sellCurrency minor units. Equal to the payout's amount."},"buyCurrency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"],"description":"Your payout currency — the currency that reached your bank."},"buyAmount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bought, in buyCurrency minor units. THIS is the deposit, not the top-level amount."},"rate":{"type":"string","description":"The rate the conversion executed at. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."},"midRate":{"type":"string","description":"The market mid rate at execution, so the spread is derivable. An exact decimal string. Never parse it into a float — it would stop being the rate we executed at."}},"required":["sellCurrency","sellAmount","buyCurrency","buyAmount","rate","midRate"],"additionalProperties":false,"description":"The conversion a converted payout was paid through, exactly as recorded when it executed. Amounts are what the provider filled; buyAmount is never sellAmount multiplied by rate, so do not recompute it."},{"type":"null"}],"description":"Null when the payout was paid in its own settlement currency, which is every payout if your payouts are denominated per settlement currency. Non-null only when the balance was converted into a single payout currency before being sent."}},"required":["payoutId","reference","merchantId","entity","amount","currency","conversion"],"additionalProperties":false,"description":"Payload for payout lifecycle events. Read `conversion` before assuming `amount` is the deposit."},"reason":{"description":"A short, safe summary of why the transfer failed (for example a closed account). Never a raw provider error.","type":"string"}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"DisputeOpenedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"dispute.opened"},"data":{"type":"object","properties":{"disputeId":{"type":"string","description":"The Open Border dispute id — pass it to GET /v1/disputes/{id}."},"transactionId":{"type":"string"},"paymentIntentId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The disputed amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"status":{"description":"The provider status as of this write: needs_response | under_review | won | lost | warning_needs_response | … It is NOT derived from the event type — a first-seen terminal dispute emits dispute.opened and its outcome together, and both carry the terminal status.","type":"string"},"reason":{"description":"Why the cardholder disputed the charge, as the provider categorized it (for example fraudulent, product_not_received). Null when the provider stated none.","anyOf":[{"type":"string"},{"type":"null"}]},"evidenceDueBy":{"description":"ISO-8601 deadline for submitting evidence; null when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"canSubmitEvidence":{"description":"Whether evidence can still be submitted — the same value the dispute resource reports as can_submit_evidence.","type":"boolean"},"simulated":{"description":"True only for a dispute created by the Sandbox simulator; no such dispute exists at the payment provider. Always false on the live rail.","type":"boolean"},"externalOrderId":{"description":"Your own order id, as sent when the payment intent was created (order_id). Null when the sale carried none.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["disputeId","transactionId","paymentIntentId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for dispute (chargeback) lifecycle events. Customer identity and addresses are deliberately absent — read them from GET /v1/disputes/{id} (evidence_prefill)."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"DisputeEvidenceSubmittedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"dispute.evidence_submitted"},"data":{"type":"object","properties":{"disputeId":{"type":"string","description":"The Open Border dispute id — pass it to GET /v1/disputes/{id}."},"transactionId":{"type":"string"},"paymentIntentId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The disputed amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"status":{"description":"The provider status as of this write: needs_response | under_review | won | lost | warning_needs_response | … It is NOT derived from the event type — a first-seen terminal dispute emits dispute.opened and its outcome together, and both carry the terminal status.","type":"string"},"reason":{"description":"Why the cardholder disputed the charge, as the provider categorized it (for example fraudulent, product_not_received). Null when the provider stated none.","anyOf":[{"type":"string"},{"type":"null"}]},"evidenceDueBy":{"description":"ISO-8601 deadline for submitting evidence; null when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"canSubmitEvidence":{"description":"Whether evidence can still be submitted — the same value the dispute resource reports as can_submit_evidence.","type":"boolean"},"simulated":{"description":"True only for a dispute created by the Sandbox simulator; no such dispute exists at the payment provider. Always false on the live rail.","type":"boolean"},"externalOrderId":{"description":"Your own order id, as sent when the payment intent was created (order_id). Null when the sale carried none.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["disputeId","transactionId","paymentIntentId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for dispute (chargeback) lifecycle events. Customer identity and addresses are deliberately absent — read them from GET /v1/disputes/{id} (evidence_prefill)."}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"DisputeWonEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"dispute.won"},"data":{"type":"object","properties":{"disputeId":{"type":"string","description":"The Open Border dispute id — pass it to GET /v1/disputes/{id}."},"transactionId":{"type":"string"},"paymentIntentId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The disputed amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"status":{"description":"The provider status as of this write: needs_response | under_review | won | lost | warning_needs_response | … It is NOT derived from the event type — a first-seen terminal dispute emits dispute.opened and its outcome together, and both carry the terminal status.","type":"string"},"reason":{"description":"Why the cardholder disputed the charge, as the provider categorized it (for example fraudulent, product_not_received). Null when the provider stated none.","anyOf":[{"type":"string"},{"type":"null"}]},"evidenceDueBy":{"description":"ISO-8601 deadline for submitting evidence; null when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"canSubmitEvidence":{"description":"Whether evidence can still be submitted — the same value the dispute resource reports as can_submit_evidence.","type":"boolean"},"simulated":{"description":"True only for a dispute created by the Sandbox simulator; no such dispute exists at the payment provider. Always false on the live rail.","type":"boolean"},"externalOrderId":{"description":"Your own order id, as sent when the payment intent was created (order_id). Null when the sale carried none.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["disputeId","transactionId","paymentIntentId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for dispute (chargeback) lifecycle events. Customer identity and addresses are deliberately absent — read them from GET /v1/disputes/{id} (evidence_prefill)."},"reason":{"description":"A short, safe summary of the outcome. Never a raw provider error.","type":"string"}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"DisputeLostEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique event id. Delivery is at-least-once, so treat this as the idempotency key for your handler: the same id may arrive more than once."},"mode":{"type":"string","enum":["test","live"],"description":"Which rail produced the event. Test-mode events never reach a live endpoint."},"occurredAt":{"type":"string","description":"ISO-8601 timestamp of the state change that produced the event."},"type":{"type":"string","const":"dispute.lost"},"data":{"type":"object","properties":{"disputeId":{"type":"string","description":"The Open Border dispute id — pass it to GET /v1/disputes/{id}."},"transactionId":{"type":"string"},"paymentIntentId":{"type":"string"},"entity":{"type":"string","enum":["obmor_us","obmor_uk","obmor_eu","obmor_ca","obmor_au"]},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The disputed amount, in integer minor units."},"currency":{"type":"string","enum":["USD","GBP","EUR","CAD","AUD"]},"status":{"description":"The provider status as of this write: needs_response | under_review | won | lost | warning_needs_response | … It is NOT derived from the event type — a first-seen terminal dispute emits dispute.opened and its outcome together, and both carry the terminal status.","type":"string"},"reason":{"description":"Why the cardholder disputed the charge, as the provider categorized it (for example fraudulent, product_not_received). Null when the provider stated none.","anyOf":[{"type":"string"},{"type":"null"}]},"evidenceDueBy":{"description":"ISO-8601 deadline for submitting evidence; null when there is none.","anyOf":[{"type":"string"},{"type":"null"}]},"canSubmitEvidence":{"description":"Whether evidence can still be submitted — the same value the dispute resource reports as can_submit_evidence.","type":"boolean"},"simulated":{"description":"True only for a dispute created by the Sandbox simulator; no such dispute exists at the payment provider. Always false on the live rail.","type":"boolean"},"externalOrderId":{"description":"Your own order id, as sent when the payment intent was created (order_id). Null when the sale carried none.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["disputeId","transactionId","paymentIntentId","entity","amount","currency"],"additionalProperties":false,"description":"Payload for dispute (chargeback) lifecycle events. Customer identity and addresses are deliberately absent — read them from GET /v1/disputes/{id} (evidence_prefill)."},"reason":{"description":"A short, safe summary of the outcome. Never a raw provider error.","type":"string"}},"required":["id","mode","occurredAt","type","data"],"additionalProperties":false},"ErrorResponse":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","enum":["country_not_supported","currency_mismatch","invalid_amount","invalid_currency","validation_error","unauthorized","rate_limit_exceeded","rate_limit_unavailable","idempotency_key_required","idempotency_key_conflict","idempotency_in_progress","idempotency_recovery_required","not_found","invalid_state_transition","provider_error","provider_not_configured","fraud_check_unavailable","internal_error","tax_quote_failed","tax_quote_not_found","tax_quote_expired","tax_quote_mismatch","classification_failed","api_key_expired","api_key_revoked","api_key_conflict","api_key_limit_reached","merchant_not_live","merchant_context_required","domain_trust_required","last_owner_required","merchant_user_email_conflict","invite_token_invalid","insufficient_role","fraud_preview_too_large","already_member","dispute_not_found","dispute_not_actionable","fulfillment_conflict","shipment_hold_blocked","shipment_hold_not_releasable","incoming_hold_not_releasable","tax_withholding_not_releasable","payment_provider_switch_blocked","payment_method_domain_exists","payout_not_found","payout_below_minimum","payout_destination_name_mismatch","payout_home_currency_destination_missing","payout_mode_destination_missing","invoice_not_found","settlement_provider_error","support_provider_error","issue_tracker_provider_error","email_recipient_undeliverable","ledger_imbalance","identity_mirror_unavailable","storefront_screening_acknowledgement_required"]},"message":{"type":"string"},"details":{}}}}}}}}