# Orenda Management API > The administrative API for management systems and operator tools. This file concatenates the full documentation for LLM ingestion. ================================================================================ # Management API Source: https://api-management-docs.orenda-apps.com/overview/ > The administrative API for management systems and operator tools. The Management API is the **administrative interface** to the Orenda platform — customer management, manual operations, oversight, and configuration. It's a separate surface from the customer-facing API, with its own audience and its own documentation (this site). **Not for frontend applications.** The Management API is for backend administrative systems only — never call it from customer-facing apps, mobile apps, or any client-side code. For those, see the [customer API docs](https://api-docs.orenda-apps.com). ## Two ways to call it The Management API supports two kinds of caller, and most endpoints work with either: - **Service user (machine-to-machine)** — your backend authenticates with credentials Orenda issues and calls the API with no human in the loop (for example, inviting customers or bulk operations). - **Operator sign-in** — a person signs in (with 2FA) and acts through an admin tool. Either way the caller's **role** authorises each call. Both flows are covered in [Authentication](/authentication). A small number of sensitive endpoints are **only supported with an operator sign-in** — each such endpoint says so on its page. ## What you can do Create a user and their application for your program with one invite call, from the management API, with step-up. End-to-end: invite a user, onboard them, issue and fund a card. Service-user and operator tokens, roles, and permissions. Find applications, accounts, transactions, cards, payments, charges — with CSV export. Async report generation: transactions, customers, fees, MT940, and more. Accounts, payments, beneficiaries, and batches on a customer's behalf (PCI / Compliance-approved workflows only). Issue, block/unblock, and limits. Read the fee catalog and generate fee documents. Events Orenda pushes to you, and signature verification. ## Conventions - Base URL: `https://api.next.orenda.finance` — the same gateway as the customer API; what makes a call administrative is the **role** on the token. - **Prefer `/v1` paths.** Customer, account, card, payment, beneficiary and batch operations are all served on `/v1`. Older unprefixed paths for the same operations are still answered but are being retired, and some of them differ in method (for example card `block` was `GET`, on `/v1` it is `POST`). A handful of surfaces — search, reports, members and roles, and a few customer-record operations — have **no `/v1` route yet** and are documented on their unprefixed paths; those pages say so. How versions and retirements work is on [Versioning](/versioning). - Send `Authorization: Bearer ` on every call — see [Authentication](/authentication). Operator sessions select the test environment with `x-sandbox: true`; for service users the environment is fixed by the credential. - Management endpoints are scoped to a program via a **`programId` query parameter** — `?programId=abc` — on essentially every call. The program is selected by the request, not read from the token. Omitting it fails with `Missing programId in query string`. - **Retry-safety:** resource-creating `/v1` endpoints — issuing a card, creating a payment or a beneficiary, submitting a batch — accept a UUID idempotency key, as an `Idempotency-Key` header (batch payments: an `idempotencyKey` body field). Send one on anything that moves money or issues a card. See [Acting on a customer](/customer-operations#idempotency) and [Card operations](/cards-operations#idempotency) for the exact semantics, which differ between endpoints. - The `x-program-id` header is only used by the public, pre-authentication endpoints that need it to select a program (for example `POST /v2/auth/login`). Each such endpoint notes it on its page. - Endpoints are permission-gated within your role — operator or service user alike. Orenda configures those permissions when the role is set up — a call you expect to be allowed that returns `403` means the role needs adjusting, not the request. ================================================================================ # Authentication Source: https://api-management-docs.orenda-apps.com/authentication/ > How service users (machine-to-machine) and management operators get a token. Every Management API call carries `Authorization: Bearer `. There are two kinds of caller, and they obtain that token in completely different ways: | | **Service user** (machine-to-machine) | **Operator** (human) | | --- | --- | --- | | Who it is | Your backend, running unattended | A person in an admin tool | | Credentials | Username, password, client id + secret, issued by Orenda | The operator's own email + password | | Token from | Cognito directly ([below](#service-users-machine-to-machine)) | `POST /v2/auth/login` + 2FA ([below](#operator-sign-in)) | | Environment | Fixed by the credential (separate live and sandbox users) | Selected per session (`x-sandbox: true`) | | Step-up (SCA) | Exempt — there is no human to answer a challenge | Required on sensitive actions | Both end up as a bearer token whose **role** decides what the caller may do — the [roles and permissions](#roles-and-permissions) model below is the same for both. In both cases the token is a Cognito **ID token**, not an access token. The API rejects access tokens. ## Service users (machine-to-machine) A service user is a machine identity in your program. Orenda provisions it and gives you `USERNAME`, `PASSWORD`, `ClientId`, and the client secret used to compute `SECRET_HASH` — one set per environment, so the credential you use decides whether you are hitting live or sandbox. Token issuance is **IP-allowlisted**. Give Orenda support the egress IP or range of the backend that will authenticate, before you start. ### Get a token ```http POST https://cognito-idp.eu-west-1.amazonaws.com/ Content-Type: application/x-amz-json-1.1 X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth ``` ```json { "AuthFlow": "USER_PASSWORD_AUTH", "ClientId": "", "AuthParameters": { "USERNAME": "", "PASSWORD": "", "SECRET_HASH": "" } } ``` Use `AuthenticationResult.IdToken` as your bearer token. It is valid for about an hour; renew it with the returned `RefreshToken` (`AuthFlow: "REFRESH_TOKEN_AUTH"`) rather than re-sending the password on every call. ### What the token can call The Management API documented on this site, at **`https://api.next.orenda.finance`**. Calls are scoped to a program with the `programId` query parameter and authorised against your service user's role, exactly like an operator's. ### Step-up (SCA) exemption Endpoints that normally require a step-up confirmation — passkey or TOTP — recognise a service-user session and skip the challenge, since no human is present to answer it. Today that applies to [`POST /v1/access-management/customer-invites`](/invite-customer): send the invite without a `confirmation` object and it succeeds, where an operator would get `422 SCA_MISSING`. Everything else is unchanged: the endpoint still has to be permitted by the service user's role. ### When a step-up is refused An operator's step-up (passkey or TOTP, sent as `confirmation`) that is refused is always a `422`, never a `401` or `403`. A missing bearer is a `401`; an expired or invalid one is a `403` (`Forbidden`, no `code`). | Code | Meaning | What to do | | --- | --- | --- | | `SCA_MISSING` | No `confirmation` was sent. | Confirm, then send the same call again. | | `SCA_INVALID_METHOD` | A method the route doesn't accept, or no authenticator set up. | Use a passkey or TOTP. An operator's PIN is never accepted: some routes refuse it with this code, others ignore it and answer `SCA_MISSING`. | | `SCA_FAILED` | A wrong code, a rejected passkey, or a proof that isn't the operator's. | Try again; for a passkey, get a new challenge first. | | `SCA_EXPIRED` | The passkey session (3 minutes, one use) or the access token sent with the code expired or was already used. | Start the confirmation again. | | `SCA_ATTEMPTS_EXCEEDED` | Too many tries. | Wait a few minutes. | A malformed `confirmation` (for example `totp` without `accessToken`) is a `400`. Branch on `code`, not on `message`. ## Operator sign-in Operators authenticate through the **same auth endpoints as customers** — there is no separate management login. What makes a session an *operator* session is the role it carries. 1. `POST /v2/auth/login` with email + password, and the `x-program-id` header. 2. Complete the 2FA challenge with `POST /v2/auth/verify-2fa` (TOTP). Operators are expected to have 2FA set up; use `POST /v2/auth/mfa/setup` + `confirm` on first login. 3. Use the returned token as `Authorization: Bearer ` on every Management API call. The v2 auth routes take and return camelCase fields (`sessionToken`, `accessToken`, …). `/v1/auth/*` still works unchanged, with snake_case fields (`session_token`, `access_token`, …). ## Roles and permissions The role on the token determines what the caller can do — some roles administer a whole program, others are scoped to a subset of its customers. Service users are assigned a role the same way, so a machine identity can only act on the customers it is scoped to. Roles and their permissions are configured by Orenda when your access is set up. If a call you expect to be allowed returns `403`, ask Orenda to adjust the role rather than changing the request. Your token's own profile and role — `type: "SOFTWARE_USER"` for a service user, `type: "BO_USER"` for an operator — is not self-served; ask Orenda if you need it confirmed. ================================================================================ # Versioning Source: https://api-management-docs.orenda-apps.com/versioning/ > How the Management API changes over time: what we add without notice, what gets a new version, and how long a retired route keeps working. Additions arrive quietly, nothing you rely on disappears without warning, and when a route has to change shape it gets a new version next to the old one. This page is the contract behind that sentence. ## The version is in the path A route carries its major version as the first path segment: `/v1/...`. There is no version header and no per-program version setting. The version you call is the version you get. Versions are **per route, not per API**. A new major version is introduced for the routes that need one; the rest stay where they are. Where a route exists on two versions, the reference page for the older one names the newer one. Use the newest version for new work. The older version is unchanged and stays supported: a new version never retires the old one by itself. **Unprefixed paths are the exception.** A few operations predate path versioning and are still answered on paths without `/v1`. Where a `/v1` route exists for the same operation, the unprefixed path is deprecated and follows the process below. Where no `/v1` route exists yet (search, reports, members and roles, some customer-record operations) the unprefixed path is the current one, and its page says so. ## What changes without a new version Within a version we make **additive** changes without notice. Build your integration to tolerate them: | We may... | So you should... | | --- | --- | | Add a new endpoint | Nothing. | | Add a field to a response | Ignore fields you don't recognise. Never reject a response for having extra keys. | | Add an optional request field, query parameter, or header | Nothing. Existing requests keep working as they were. | | Add a value to an enum in a response (a status, a type, a `code`) | Have a default branch when you switch on an enum. An unknown value means "not handled yet", not "error". | | Add a new error `code` under an existing HTTP status | Switch on the HTTP status first, then on `code`. Fall through on codes you don't know. | | Add a new [webhook](/webhooks) event, or a field to an existing event's payload | Ignore `eventName`s and fields you don't recognise. Always acknowledge a delivery you don't handle. | | Change text meant for people (descriptions, `message` strings) | Never parse a `message`. Use the status and the `code`. | | Correct the docs where they didn't match what the API already did | Nothing changes on the wire. | Field order in JSON is never significant. ## What counts as a breaking change Anything that could make a correct integration stop working: - Removing or renaming an endpoint, a response field, or a request field. - Changing a field's type or format: a string becoming a number, a timestamp changing shape, a pattern tightening. - Making an optional request field, parameter, or header required. - Removing a value from an enum, or changing what an existing value means. - Removing an error response, or changing the HTTP status of an existing outcome. - Changing the method of an existing route, or how it is authenticated. - Removing a field from a webhook payload, or changing a signature scheme. We don't ship these inside an existing version, except as a fix ([below](#when-a-fix-changes-behaviour)). Otherwise a breaking change arrives one of two ways: 1. **A new version of the route.** The old version keeps working unchanged. 2. **Deprecation and removal**, following the process below, for something that has a replacement and shouldn't be needed any more. ### When a fix changes behaviour A fix for a security problem, or for behaviour that harms customers, can change an existing route in place instead of waiting for a new version. When it does, it's listed below with its date. **November 2026: refused step-up is a `422`.** An operator's refused passkey or authenticator code now answers `422` with `SCA_FAILED`, `SCA_EXPIRED` or `SCA_ATTEMPTS_EXCEEDED` (see [Authentication](/authentication#when-a-step-up-is-refused)). Before, the same refusals answered `400`, `401` or `500`, and batch payments answered `INVALID_TOTP`. A TOTP access token that isn't the operator's is refused with `422 SCA_FAILED` instead of `401`. What to do: branch on the `code` of a `422`. A `401` (no bearer) or `403` (expired or invalid bearer) is about the token, never the confirmation: refresh once and resend. A `403` that remains with a fresh token means the caller isn't allowed. ## Deprecation When a route or field is going away: 1. **It's marked.** Deprecated endpoints and fields are flagged `deprecated` in the API Reference, and the page names the replacement. 2. **It keeps working.** A deprecated route behaves exactly as before for the whole notice period. Deprecation changes the docs, not the wire. 3. **You hear about it.** We email your program's technical contact when the deprecation starts, and again before removal. 4. **It stays for at least six months.** Nothing is removed less than six months after it was marked deprecated. If your program is still calling it near the end of that period, we contact you before we switch it off. Deprecations in effect are visible in the reference, not listed here. ## Build for this Three habits make an integration safe against everything above: - **Ignore what you don't recognise**: extra fields, new enum values, new webhook events. - **Switch on status and `code`, never on `message`.** - **Read the deprecation emails**, and move to the named replacement when a page you use says `deprecated`. ================================================================================ # Issuing cards for your users Source: https://api-management-docs.orenda-apps.com/issue-cards/ > End-to-end: invite a user, onboard them, then issue and fund a card. This guide walks the **whole journey** for a program that issues cards to its end users — from inviting the user to a funded, ordered card. It spans three surfaces, so it's easy to lose the thread; the diagram below shows who calls what. The flow has three variants, chosen by how you invite the user: | | **Managed** (`PREPAID_CARD_CUSTOMER` invite) | **Default** (invite with no `role`) | **Cardholder on a corporate** (`EMPLOYEE`, or a role set up for your program) | | --- | --- | --- | --- | | Use case | Program funds the card on the user's behalf | User funds their own card via IBAN | A corporate holds the account; its employees — or the cardholders your program's role names — hold cards on it | | Funding | Program master account via [Load / Unload](/cards-operations) | User's assigned IBAN | The corporate's own account — the card spends from it directly | | Invite body | `role` + the funding `accountId` | `email` (plus whatever the role requires) | `role` + `corporateCustomerId` + `accountIds` + name | | Who onboards the user | The user, in your app | The user, in your app | **You**, on the Management API (KYC) | | Who orders the card | The user, or you | The user, or you | **You**, on the corporate's account | ## Who calls what ```mermaid sequenceDiagram participant P as Program (Management API) participant U as End user (Customer API) participant O as Orenda P->>O: POST /v1/access-management/customer-invites O-->>P: applicationId O-->>U: invite email (temporary password) U->>O: Sign in, accept legals, KYC, Sumsub O-->>U: onboarding completes (webhook to program) U->>O: Order card alt Managed P->>O: Load / Unload card balance else Default U->>O: Fund account via assigned IBAN end ``` Two things change the picture above. On a **program that uses a client reference** (users sign in through your identity provider) Orenda sends no invite email — the user signs in through your identity provider with the `clientReference` you supplied. For a **cardholder on a corporate** the onboarding is yours: you submit their KYC and order their card on the Management API; the cardholder signs in, accepts the legal agreements in-app, and uses the card. Both are called out in the steps below. ## Step 1 — Invite the user Invite the customer with one call to [`POST /v1/access-management/customer-invites`](/invite-customer). It creates the user *and* their application, and Orenda emails the user a temporary password. The invite body selects the funding model for the rest of the flow. ```http POST https://api.next.orenda.finance/v1/access-management/customer-invites?programId= Authorization: Bearer ``` Name the role and the funding `accountId` — the program account the user draws against: ```json { "email": "jane@example.com", "role": "PREPAID_CARD_CUSTOMER", "accountId": "8f1a2b3c-4d5e-4f6a-8b7c-9d0e1f2a3b4c" } ``` An invite with no `role` — the user onboards as a customer with their own account: ```json { "email": "jane@example.com" } ``` Name the role, the onboarded corporate and the account(s) the cardholder may reach. The role is `EMPLOYEE`, or a role set up for your program such as `CONSUMER_CARDHOLDER`. Send `firstName` and `lastName` — they are printed on the card. The API enforces them only when the role's configuration asks for them, so do not rely on a `400` to catch a missing name. If your program uses a client reference, add the `clientReference` your identity provider will present: ```json { "email": "ada@example.com", "clientReference": "firebase-uid-of-ada", "firstName": "Ada", "lastName": "Lovelace", "role": "CONSUMER_CARDHOLDER", "corporateCustomerId": "", "accountIds": [""] } ``` The cardholder gets no account of their own. See [Cardholders on a corporate](/invite-customer#cardholders-on-a-corporate) for the rules. You get back `data.applicationId` — the user's application, and their `customerId`. [Service users](/authentication#step-up-sca-exemption) are exempt from the step-up; an operator must send a `confirmation` (passkey or TOTP) or the call returns `422 SCA_MISSING`. Which user details are required depends on the role — send what you have, and a `400` names any field that's missing. Full field reference: [Invite a customer](/invite-customer). ## Step 2 — The user onboards (Customer API) Everything from here until the card is **the user acting with their own token** on the Customer API. The user signs in with the temporary password from the invite email (changing it and setting up 2FA/passkey on first login), then moves through onboarding: 1. **Accept legal agreements** — fetch `GET /v1/applications/{applicationId}/documents/legal`, then submit `POST /v1/applications/{applicationId}/documents/legal/accept` 2. **KYC** — fetch the schema (`GET /v1/applications/{applicationId}/kyc/schema`) and submit answers (`POST /v1/applications/{applicationId}/kyc`) 3. **Identity verification (Sumsub)** — get a token (`GET /v1/applications/{applicationId}/webtoken/sumsub`) and run the SDK 4. **Poll** `GET /v2/applications` until `status.currentStep` is `COMPLETED` The build order for the user's side, from sign-in through cards and payments, lives on the Customer API docs: [Integration order for an invited user](https://api-docs.orenda-apps.com/guides/invited-user-integration-order). You don't need to poll yourself: your program receives a [webhook](/webhooks) when the application is approved. There is no temporary password: the user signs in through your identity provider, and the `clientReference` from the invite is their identity. The onboarding steps are the same, driven by `status.currentStep` on `GET /v2/applications`. The cardholder does not go through these steps in your app. **You** submit their KYC on the Management API — `POST /v1/applications/{applicationId}/kyc` with the `applicationId` from the invite. Once approved, the cardholder is provisioned automatically and no account is created for them; at first sign-in they accept the program's legal agreements in-app. From then on their `GET /v2/applications` reports `status.currentStep: COMPLETED` (`currentStep: CUSTOMER` on v1) and the **corporate's** `customerId`, which is what makes every customer-scoped endpoint return the corporate's data, bounded to what they were granted. ## Step 3 — Order the card Once approved, the application carries the `customerId`, and the user's primary account is created automatically (read its `accountId`). Order the card: ```http POST /v1/customers/{customerId}/accounts/{accountId}/cards ``` The user can order their own card on the Customer API, or **you** can order it on the Management API (`POST …/cards`) — see [Card operations](/cards-operations). **Cardholders on a corporate.** For a user invited as an `EMPLOYEE`, or under a role your program defines (see [Invite a customer](/invite-customer#cardholders-on-a-corporate)), there is no account of their own: order the card on the **corporate's** account and name the cardholder in the body — `{ "cardType": "VIRTUAL", "forCustomerId": "" }` — where the cardholder's `customerId` is the `applicationId` the invite returned, and the path is the corporate's `customerId` and one of the `accountIds` from the invite. The card is printed with the cardholder's name and attributed to them, so among cardholders only they see it, and they see no other cardholder's card. The cardholder must belong to the path corporate and the account must be one they were granted, else `400`. You can order it as soon as the invite returns — before their KYC is complete. Whether the cardholder can also order a card themselves is set by the permissions on their role. The `NEW_CARD_ADDED` [webhook](/webhooks/new-card-added) for that card carries the **corporate's** `customerId` and `clientReference`, not the cardholder's — correlate the `cardId` with your own order response to know whose card it is. ## Step 4 — Fund the card Load funds onto the card from the program master account: ```http POST /v2/customers/{customerId}/accounts/{accountId}/balance ``` ```json { "amount": "100.00", "action": "LOAD" } ``` Use `"action": "UNLOAD"` to pull funds back to the master account. `amount` is a decimal string, exact in the account's currency, and the response's `availableBalance` is a decimal string too. `/v1/…/balance` still works unchanged, with `availableBalance` as a number: see [Balance](/cards-operations#balance). The user receives an IBAN on their account once onboarding completes. They fund the card by transferring money to that IBAN before using it — no Load/Unload call needed. Nothing per cardholder: the card spends from the **corporate's** account, so the corporate's balance is the card's funding. Every cardholder granted that account sees its balance and all of its transactions, including the other cardholders' card spend. ## Related Create the user and their application with one invite call. Issue, status, limits, Load/Unload. The Customer API steps in full. Get notified when the application is approved. ================================================================================ # Search Source: https://api-management-docs.orenda-apps.com/search/ > Find applications, accounts, transactions, and payment requests. The Management API has a family of read-only search endpoints with one shared shape. All of them: - take **comma-separated values** on every filter for multi-select, - paginate with `page` (default 1) and `limit`, - require `programId`, - and can export instead of returning JSON: pass `resultType=file` and you get a **presigned S3 CSV URL** (valid 1 hour) in place of the data array (`filePrefix` customises the filename). Responses share a flat envelope, with pagination alongside the results: ```json { "success": true, "data": [ … ], "total": 42, "page": 1, "limit": 10 } ``` Not every endpoint takes every shared filter — `keyword` and the date-range parameters in particular vary. Each API Reference page lists exactly what its endpoint accepts. Each endpoint below links to its **API Reference** page, where you can inspect the full schema and send a live request with the **Try it** playground. ## The endpoints | Endpoint | Notable extras | | --- | --- | | [`GET /v1/applications`](/api-reference/search/search-applications-and-customers) | `isCompany`, `workflowStage` (+`workflowStageExclude`), `applicationId`, `clientReference`, `isRisk` (risk-report format), `skipCustomerType`, `skipKycLastEvent`. Admin CSV exports include onboarding columns (`Current Step`, `Required Actions`) and **Risk Compliance Action** / **Risk Compliance Reason** when a compliance decision exists. `Current Step` may be `RISK_COMPLIANCE_REVIEW_RFI` when compliance has requested information from the program. | | [`GET /v2/accounts`](/api-reference/search/search-accounts-v2) | `accountId`, `accountProviderAccountId`, `iban`, `accountNumber`, `sortCode`, `accountName`, `accountType`, `status`, `provider`, `currency`. The CSV export has the same fields as the JSON results and ignores `page` / `limit`. | | [`GET /v2/transactions`](/api-reference/search/search-transactions-v2) | `accountId` (provider account IDs accepted), `transactionId`, `paymentId`, `direction`, `isFee`, merchant filters (`merchantId`/`Name`/`Country`), `cardId` (the `cardId` from `NEW_CARD_ADDED`), `endToEndRef`, `payeeName`/`payerName`, `provider`/`providerExclude`. Merges prepaid-master-account and crypto transactions where applicable. | | [`GET /v1/payments/requests`](/api-reference/search/search-payments) | `id` (alias `paymentRequestId`), `providerRequestId`, `batchItemId`, `childAccountId`, `type`, `subType`, `transactionMonitoring`, `currency`. | Use v2 for accounts and transactions. Every money figure comes back as a decimal string in major units: on accounts the `limits` figures and `accountProviderBalance` / `cardProviderBalance`; on transactions `amount`, `remainingBalance`, the fee split, `mutation.originalAmount` and the `cardAuth` amounts (each in its own currency), plus `cardAuth.fxRate` at full precision. A figure that can't be stated exactly is left out. CSV exports are the same on both versions. Card spend and card fee transactions carry `cardId` when the card is known: the card that made them, the same `cardId` you receive on [`NEW_CARD_ADDED`](/webhooks/new-card-added). `cardAuth.cardId` is the card provider's id, not ours, so do not join on it. A card purchase is usually booked when the merchant settles it, one to three days later, and a card transaction booked at settlement has the settlement date as its `dateTime` (some cards' purchases are booked at authorisation, and dated then). `cardAuth.purchaseTime` (ISO 8601, UTC) is when its card authorisation was recorded. It's absent whenever that time isn't known, for example when the settlement can't be matched to its authorisation, and on transactions that settled before the field was added. CSV exports have no column for it: their `Date and Time` is the transaction's `dateTime`. [`GET /v1/accounts`](/api-reference/search/search-accounts) and [`GET /v1/transactions`](/api-reference/search/search-transactions) still work and are unchanged. They take the same filters and return the same rows, with money figures as numbers. ## Defaults worth knowing **`GET /v1/payments/requests` does not return everything by default.** With no `status` filter it returns only `PENDING`, `PENDING_TM`, `INITIATED` and `PENDING_CANCELLATION` — pass an explicit `status` list to see anything else. Its date filters are also **`startDate` / `endDate`**, not `fromDate` / `toDate`. The `fromDate`/`toDate` names are ignored here, so a request carrying them silently searches an unbounded range rather than failing. The accounts search (v1 and v2) does not accept `keyword` — use the specific identifier filters (`accountId`, `iban`, `accountNumber`, `accountProviderAccountId`, `accountName`). Accounts in `PENDING` status are always excluded, whatever `status` you pass. `allPrograms` has no effect on it: `programId` always sets the program scope. ## Payment-request export columns (changed) **`GET /v1/payments/requests` now returns a defined field set instead of the stored record.** Previously the response — and the `resultType=file` CSV built from it — carried whatever the search index happened to hold, so any key the indexer wrote could turn up as a column. Both now follow the documented shape: the CSV columns are drawn from a **fixed, documented set of fields**, and which of them appear still depends on the rows returned — `json-2-csv` builds the header from the keys present across them, so an export of only `FEE` and `CARD` rows carries no `payee.*` columns. **Columns removed from the export** (and fields removed from the JSON response). This list is exhaustive — it is the full difference against the stored record, not against the published `PaymentRequest` schema: | Removed | What it held | | --- | --- | | `cardAuth`, and its `cardAuth.*` columns | Masked PAN, expiry, auth code, merchant detail | | `tmHistory` | Transaction-monitoring decisions and their reasons | | `auditId` | Internal audit record id | | `cryptoQuoteId` | Internal crypto quote id | | `refundFromCardProvider`, `refundPreCalculated` | Internal refund routing flags | | `idempotencyRequestHash` | Hash of the creating request's parameters | | `sandbox` | Internal environment flag; the route is already scoped by credential | | `isScheduled` | Internal batch scheduled-track routing flag | | `heldInternally`, `heldForCustomerId` | Internal direct-debit funding mechanics | **Nothing used for provider reconciliation or support was removed.** `providerRequestId`, `endToEndReference`, `originalEndToEndReference`, `providerStatus`, `entity`, `custodianId`, `debtorViban`, `batchItemId`, `batchId`, `unloadId`, `childAccountId`, `purpose` and `updatedAt` are all still returned, alongside `programId`, `subType` and `transactionMonitoring`. So is `payee.currency`, which on an international payout is the **target** currency the beneficiary was credited in — the top-level `currency` is the source we debited, and the two are deliberately different. If you match exports against a provider, or attribute a prepaid master-account row to its child, the keys you match on are unchanged. `originalEndToEndReference` matters most where reconciliation is hardest: when a cancellation at the bank burns the original end-to-end id and the payment is re-submitted, `endToEndReference` holds the id actually sent on the wire and `originalEndToEndReference` preserves the one the provider first saw. **The SEPA direct-debit cancellation context is still returned too** — `priorStatusBeforeCancellation`, `cancellationRequestedAt`, `cancellationReasonCode` and `cancellationSource`. `PENDING_CANCELLATION` is one of the default statuses, so those rows are in the default result set. **CSV column shapes are unchanged.** `statusHistory` is still flattened one column per entry — `statusHistory.0.status`, `statusHistory.1.status`, … — so existing sheets and parsers keep working. Column *order* does change, though: it now follows the documented field order rather than the stored record's key order. Parsers that read columns by name are unaffected; positional ones are not. Two corrections apply to the **JSON** response: `statusHistory` is now always an array (it could previously arrive as an object keyed `"0"`, `"1"`, …), and `isDirectDebit` is always present as a boolean rather than sometimes absent — so it now appears on every row of the export, not only on rows that stamped it. ## Program scope `programId` is **required on every search**, including when you pass `allPrograms=true`. That flag widens the search from one program to every program your operator role is entitled to — it does not replace `programId`, and it never reaches beyond your entitlements. A role with no program entitlement matches nothing rather than everything. On the accounts search the flag has no effect at all: that endpoint always scopes to the `programId` you pass. ================================================================================ # Reports Source: https://api-management-docs.orenda-apps.com/reports/ > Generate CSV/MT940 reports asynchronously and download them. Reports run **asynchronously**: you start a generation, poll its status, then download the result. All three endpoints need reports permission on your operator role. `POST /reports` with: ```json { "reportType": "transactions", "fromDate": "2026-05-01", "toDate": "2026-05-31" } ``` Returns `202` with an `executionId`. `reportType` is one of: `MT940`, `customers`, `fees`, `transactions`, `card_transactions`, `accounts`, `cards`. For `MT940`, an optional `"version": 2` selects the newer internal generator where the program supports it. `GET /reports/status/{executionId}` → `state` is `RUNNING`, `SUCCEEDED`, `FAILED`, or `CANCELLED`, with `submittedAt` / `completedAt`. Once `SUCCEEDED`: `GET /reports/{executionId}` → `{ "url": … }`, a presigned S3 URL valid for 1 hour. Results are scoped by the operator's role — operators with customer-scoped roles only see their own customers' data. If you integrated against the old docs: the paths changed. `POST /reports/generate` is now `POST /reports`, status is `GET /reports/status/{executionId}` (not `/reports/{executionId}/status`), and download is `GET /reports/{executionId}` (not `…/download`). There is no separate `/reports/mt940` — MT940 is a `reportType`. ================================================================================ # Webhooks Source: https://api-management-docs.orenda-apps.com/webhooks/ > Get notified in real time when customers, accounts, cards, or payments change. Webhooks let your system react the moment something happens on the platform — a customer completes onboarding, a card is issued, a payment settles, or a balance changes. Instead of polling the API, Orenda pushes the event to you. Orenda `POST`s a signed JSON payload to a **consumer URL** you register for your program. To get started, [contact the team](mailto:client.support@orenda.finance) to register your endpoint and receive your signing secret. Your program has one consumer URL for **production** and one for **sandbox**, and they must be different. Each event goes to the endpoint for the environment it came from. Because the payloads do not name the environment (see below), the URL that was called is how you tell which one it was. ## Common envelope Every delivery has the same top-level fields. The event type decides which additional object is included — an `account` object on account events, a `card` object on card events, and so on. | Field | Type | Notes | | --- | --- | --- | | `eventId` | string | UUID identifying the **event**. Every retry and replay of the same event carries the same `eventId`. | | `eventName` | string | One of the events in the table below. | | `timestamp` | string | ISO 8601, when the event was generated. | | `customerId` | string | The customer the event relates to. | | `payloadVersion` | number | Optional. `2` on transaction, account and card-authentication events whose amounts are decimal strings. Absent when those amounts are JSON numbers. | | `clientReference` | string | Optional. Your reference for the customer, when one was set. Included on customer, account, `NEW_CARD_ADDED` and `CARD_STATUS_UPDATE` events. | `programId` and `sandbox` appear only on `CUSTOMER_STATUS_UPDATE` deliveries that carry a `kycStatus`. No other notification includes them. Payloads are deliberately thin. Transaction events carry an identifier, not the full record — fetch the details through the API with your operator credentials. ## Events Each event has its own reference page with the exact payload. | Event | Fires when | Payload object | | --- | --- | --- | | [`CUSTOMER_STATUS_UPDATE`](/webhooks/customer-status-update) | A customer's onboarding/KYC status changes. | status fields | | [`ACCOUNT_STATUS_UPDATE`](/webhooks/account-status-update) | An account's status changes. | `account` | | [`ACCOUNT_BALANCE_UPDATE`](/webhooks/account-balance-update) | An account's settled balance changes. Not sent for card activity. | `account` | | [`NEW_CARD_ADDED`](/webhooks/new-card-added) | A new card is provisioned. | `card` | | [`CARD_STATUS_UPDATE`](/webhooks/card-status-update) | A card's lifecycle status changes. | `card` | | [`CARD_AUTH_STATUS_UPDATE`](/webhooks/card-auth-status-update) | A card authorisation / 3DS challenge is raised or resolved. | `cardAuthentication` | | [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated) | A payment request is created. | `paymentRequest` | | [`TRANSACTION_UPDATED`](/webhooks/transaction-updated) | A transaction changes after creation — amount, cancellation, completion. | `paymentRequest`, `reason` | | [`TRANSACTION_CREATED`](/webhooks/transaction-created) | A ledger transaction is created. | `transaction` (id only) | | [`TRANSACTION_STATUS_CHANGED`](/webhooks/transaction-status-changed) | A ledger transaction's status changes. | `transaction` (id only) | Card activity is covered end to end in the card transactions guide, available from [client.support@orenda.finance](mailto:client.support@orenda.finance): which events each stage of a purchase sends, and which stages send none. ### Card authorisation decisions Two further events are not notifications. Orenda sends them and **waits for your answer** to approve or decline a card transaction in real time. Your program must be registered for this service — [contact the team](mailto:client.support@orenda.finance). | Event | Fires when | | --- | --- | | [`CARD_AUTHORIZATION_REQUESTED`](/webhooks/card-authorization-request) | A card authorisation needs a decision. | | [`CARD_AUTHORIZATION_INCREMENTAL`](/webhooks/card-authorization-request) | An incremental authorisation is requested on an existing hold. | Those names are what you use to enable the service. In the body, the value is the lower-case dotted form (`"event": "card.authorization.requested"`) and there is no `eventName`, so switch on `event`. They are signed differently and are sent once, never retried or replayed — see [the reference page](/webhooks/card-authorization-request). Everything below applies to notifications only. ## Verifying the signature Every notification is signed with **HMAC-SHA256** over the **raw request body**, using your program's signing secret. The signature arrives in the **`Orenda-Payload-Signature`** header as a plain hex digest: ```js const crypto = require("crypto"); const sig = req.headers["orenda-payload-signature"]; const expected = Buffer.from( crypto .createHmac("sha256", signingSecret) .update(rawBody) // the raw request body, byte-for-byte .digest("hex"), "hex" ); const actual = typeof sig === "string" ? Buffer.from(sig, "hex") : Buffer.alloc(0); const ok = actual.length === expected.length && crypto.timingSafeEqual(expected, actual); ``` Verify over the bytes you received and never re-serialise. We sort every object's keys alphabetically at every level, so payloads arrive in sorted order; parsing and re-encoding the JSON is not guaranteed to reproduce the same bytes. Read the raw body before any JSON middleware touches it. The signature covers the body only. The `timestamp` field in the body is not signed separately and is not a freshness check, so rely on [de-duplication](#delivery-behaviour) to guard against a replayed request. ### Test vector Secret `test_secret_do_not_use` and this raw body, exactly as shown with no whitespace: ``` {"customerId":"7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02","eventId":"b8e2d1f4-7c3a-4b6e-9f05-2d8c1a7e4b63","eventName":"TRANSACTION_CREATED","timestamp":"2026-09-18T03:41:09.557Z","transaction":{"transactionId":"SETTLE-9e4c2b71-5d8a-4f3e-b1c0-7a6d2e9f8b45-DEBIT"}} ``` produce `Orenda-Payload-Signature` `0f3d59672d675381855490e82b1b1107a2ddae138ef1e0eb618dc940b8d265fd`. ## Delivery behaviour Respond with any `2xx` **within 10 seconds** to acknowledge. The response body is ignored. Acknowledge first and process afterwards. ### Retries A delivery is retried when your endpoint times out, can't be reached, or answers `5xx`, `429` or `408`. Any other `4xx`, and any `3xx` (redirects are not followed), is final. | Attempt | Sent | | --- | --- | | 1 | Immediately | | 2 | About 1 minute after attempt 1 fails | | 3 | About 5 minutes after attempt 2 fails | | 4 | About 15 minutes after attempt 3 fails | Each wait is randomly shortened by up to 20% so that a backlog does not arrive all at once. If you answer `429` with a `Retry-After` header, we wait that long instead (up to 15 minutes). After the fourth attempt the delivery is marked failed and is not retried again. Every attempt carries these headers: | Header | Value | | --- | --- | | `Orenda-Event-Id` | The `eventId`, so you can de-duplicate without parsing the body. | | `Orenda-Delivery-Id` | Identifies this delivery. Retries share it; a replay gets a new one. | | `Orenda-Attempt` | The attempt number, starting at `1`. | These headers are not covered by the signature. Use them for logging and de-duplication, never for a security decision. ### Replays We keep a record of every delivery and its attempts for 180 days. If your endpoint was down for longer than the retries cover, or you lost an event after acknowledging it, [contact the team](mailto:client.support@orenda.finance) and we will replay it. A replay sends the same event to the same URL as a new delivery, with the full retry policy, and the same `eventId`. Because the `eventId` is unchanged, your de-duplication will recognise a replay as a duplicate. If you recorded the event but lost it downstream, clear that entry first. ### Duplicates and ordering Delivery is at-least-once, so your handler must be idempotent. **De-duplicate on `eventId`** — it is derived from the change itself, so it never differs between two deliveries of the same change. Events are not guaranteed to arrive in the order they happened. A retry arrives after events that were sent later, and order is never guaranteed across accounts or between the two producers that both report a settlement (see [`TRANSACTION_CREATED`](/webhooks/transaction-created)). Order on the payload, not on arrival. For events that have a natural business key, it is an equivalent de-duplication key: | Event | Key | | --- | --- | | `TRANSACTION_INITIATED` | `eventName` + `paymentRequest.id` | | `TRANSACTION_UPDATED` | `eventId` only | | `TRANSACTION_CREATED` / `TRANSACTION_STATUS_CHANGED` | `eventName` + `transaction.transactionId` | | `CARD_AUTH_STATUS_UPDATE` | `cardAuthentication.id` + `cardAuthentication.status` | | `NEW_CARD_ADDED` / `CARD_STATUS_UPDATE` | `card.cardId` + `card.status` | | Account and customer events | `eventName` + `customerId` + the changed value | `TRANSACTION_UPDATED` has no business key. A purchase that goes 50 → 60 → 50 → 60 sends two `AMOUNT_INCREASED` events that are identical except for `eventId` and `timestamp`, and both are real. ### Unknown events and fields Return `2xx` for anything you do not recognise — an event name, a `reason`, a status, or a field. New ones are added without notice. Acknowledge them and read the record from the API if you need to know what happened. ### Reconciling Rebuild your state from the API rather than from the webhook stream alone: reconcile on a schedule, and after any outage of your own. For delivery investigations, [contact the team](mailto:client.support@orenda.finance). ================================================================================ # Authorisation decisions Source: https://api-management-docs.orenda-apps.com/webhooks/card-authorization-request/ > Approve or decline card authorisations in real time, while the network waits. Unlike notification webhooks, authorisation request webhooks **ask you a question and wait for your answer**. When a cardholder taps, swipes, or enters their card details, Orenda runs its own checks first — balance, spending limits, merchant category, and country restrictions. If those checks pass, we forward the authorisation to your endpoint. You then have the final say: approve it, or decline it based on your own business rules. ```mermaid sequenceDiagram participant C as Cardholder participant N as Card network participant O as Orenda participant Y as Your endpoint C->>N: Tap / swipe / online payment N->>O: Authorisation request O->>O: Balance, limits, MCC, country checks alt Orenda checks fail O-->>N: Decline else Orenda checks pass O->>Y: POST webhook (signed) alt Your endpoint responds in time Y-->>O: { "decision": "approve" } or { "decision": "decline" } O-->>N: Forward your decision else Timeout / no answer O->>O: Hold released O-->>N: Decline end end N-->>C: Transaction approved or declined ``` New to card transactions? Start with the card transactions guide (available from [client.support@orenda.finance](mailto:client.support@orenda.finance)) for the full lifecycle — what you are asked, what you are told, and when. **This feature is available by application only.** It is not enabled by default — [contact the team](mailto:client.support@orenda.finance) to request it for your program. The callback URL and the timeout are configured by Orenda. **You must answer every decision request, and an unanswered authorisation is declined.** The card network is holding the transaction open while it waits for your answer. Your endpoint has a maximum of **2 seconds** to respond — if you miss the deadline, the response is ignored and the transaction is treated as unanswered. We do not answer in your place. Your endpoint's availability is therefore part of your card service: while it is down or answering unusably, authorisations on your programme are declined. Refunds are the one exception — see [Refunds](#refunds). ## Two events | Event | When | | --- | --- | | `CARD_AUTHORIZATION_REQUESTED` | The first authorisation on a purchase. | | `CARD_AUTHORIZATION_INCREMENTAL` | A later authorisation raising the amount on the same purchase — a hotel extending a stay, a tip added to a bill. `amount` is the **additional** amount, not the new total. | Enabling `CARD_AUTHORIZATION_REQUESTED` automatically enables both — you will always be consulted on incremental authorisations for transactions you already approved. Both events share the same `transaction.transaction_link_id`, so you can match an incremental request back to the original authorisation. ## Example payload ```json { "event": "card.authorization.requested", "event_id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "occurred_at": "2026-09-16T08:12:28.000Z", "sandbox": false, "card": { "id": "c1a7e0d2-5b8e-4a61-9f3d-2e6b7c90a14f", "form_factor": "physical", "status": "active", "last_four": "8707" }, "customer": { "id": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "name": "Jane Okonkwo" }, "transaction": { "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "retrieval_reference_number": "625908121017", "transaction_link_id": "156203799486939", "type": "Goods and Service", "type_code": "00", "entry_channel": "POS", "amount": "-120.00", "currency": "GBP", "billing_amount": "-120.00", "billing_currency": "GBP", "billing_purchase_total": "-120.00", "authentication": { "method": "chip", "pin": "verified", "three_ds": false, "sca_applied": false, "avs": "not_provided" } }, "merchant": { "name": "TESCO STORES 2041", "city": "London", "country": "GB", "mcc": "5411", "mcc_category": "Retail Outlet Services", "mcc_description": "Grocery Stores, Supermarkets" } } ``` ### Fields worth reading twice | Field | Notes | | --- | --- | | `amount` / `billing_amount` | **Signed decimal strings in major units.** A debit is negative, a credit (refund) positive. Decimal places follow the currency — `-120.00` for GBP, `-12000` for JPY, `-12.000` for BHD. Compare as decimals, not floats. | | `currency` | ISO 4217 alpha-3, converted from the network's numeric code. | | `type` | The transaction type, from a **closed set** — see the table below. Derived from the network's own machine-readable code, not from the acquirer's free text. **Omitted** when the network sends no code. | | `type_code` | The network's raw two-digit code, exactly as sent. **This is the one to key behaviour on** — same rule as `merchant.mcc`. `type` is for humans. | | `entry_channel` | `"ATM"` or `"POS"` — which spend-limit bucket this transaction counts against, and the value our own limit check used. **Omitted** for a code outside the table below: absent means unclassified, never "POS by default". | | `billing_purchase_total` | **What the whole purchase comes to, including this leg** — signed, major units, in `billing_currency`. This is what makes an increase answerable: `amount` is the ADDITIONAL amount on an incremental, and this is the new total. On a first authorisation the two are equal. **Omitted** on a refund and on a programme without a balance check — so never key off its absence. | | `event_id` | **Stable across redeliveries.** Dedupe on it. Currently equal to `transaction.id`; treat them as separate fields, since only `event_id` is contractually stable. | | `retrieval_reference_number` | The network's retrieval reference number. Use it to reconcile against your copy of the transaction and to reference disputes. **Omitted** when the network does not supply one, so do not assume it is always present. | | `transaction_link_id` | Every authorisation on one purchase shares it — that is how an increase ties back to the authorisation it raises. Occasionally omitted. | | `merchant.mcc` | The network's merchant category code, **exactly as the acquirer sent it** — not padded, stripped or trimmed. It is normally four digits including any leading zero (`0742`, not `742`), and that is the form our catalogue and ref-data are keyed on, so it can be looked up as sent. An unusual value can occasionally reach you in another shape: it is passed through unchanged with no classification. Omitted entirely when it is not supplied. **This is the one to key behaviour on.** | | `merchant.mcc_category` | The high-level business classification — one of thirteen buckets. A convenience, not a control: we maintain it, so it can change as the classification is revised. **Omitted** for a code we have not classified — absent means unclassified, not "uncategorised merchant". A code that does not arrive as four digits is treated as unclassified rather than guessed at, and we raise an alert on our side. | | `merchant.mcc_description` | The merchant category's own name — `"Automated Fuel Dispensers"`. Free text for display, not for keying on: many are ALL-CAPS and the longest runs to 142 characters. Present only alongside `mcc_category`. | | `card.id` | Our card identifier — the one our API issued you. **Use it to identify the cardholder.** | | `occurred_at` | ISO 8601 UTC, from the network's transmission time. Use it for display, not ordering. | | `customer.id` | The cardholder. In sandbox it may not equal the Orenda customer id — prefer `card.id`. | ### Transaction types `type_code` is the network's own two-digit code and `type` is its label. The set is closed: every value you can receive is in this table. **Key behaviour on `type_code`**, not on `type`. The label is stable and is safe to display, but the code is what we match on ourselves and what the network guarantees. | Code | `type` | `entry_channel` | Moves money | | --- | --- | --- | --- | | `00` | Goods and Service | `POS` | Debit | | `01` | Cash Withdrawal (ATM) | `ATM` | Debit | | `02` | Cash Withdrawal (Manual Disbursement) | `ATM` | Not published | | `03` | Check Guarantee | `POS` | Debit | | `09` | Goods and Service with Cash Disbursement | `POS` | Debit | | `10` | Account Funding | `POS` | Debit | | `11` | Quasi Cash | `POS` | Debit | | `19` | Fee Collection | `POS` | Debit | | `20` | Returns/Refunds | `POS` | Credit | | `21` | Envelope Deposit | `POS` | Credit | | `22` | Cheque Deposit | `POS` | Credit | | `23` | Cash Deposit | `POS` | Credit | | `25` | Credit Adjustment | `POS` | Credit | | `26` | Visa Direct (Original Credit Transaction) | `POS` | Credit | | `28` | Prepaid Load / Activation | `POS` | Credit | | `29` | Funds Disbursement | `POS` | Debit | | `30` | Balance Inquiry | `POS` | No financial change | | `34` | Mini Statement | `POS` | No financial change | | `39` | Eligibility Inquiry | `POS` | No financial change | | `40` | Cardholder Account Transfer | `POS` | Credit and Debit | | `50` | Bill Payment | `POS` | Debit | | `53` | Payment | `POS` | Debit | | `70` | PIN Change | `POS` | No financial change | | `71` | PIN Unblock | `POS` | No financial change | | `92` | Address Verification | `POS` | No financial change | A code outside this table is still delivered: `type` falls back to `Transaction type ` and `entry_channel` is omitted. That means the network has published something new, so treat it as a purchase you do not recognise rather than as an error. "Moves money" is the network's own classification, for context — it is not a field on the payload. The authoritative signal for direction is the sign of `amount`: negative is money leaving the cardholder, positive is money returning. **Optional fields are omitted when unknown** — they will not appear in the payload at all, rather than being sent as `null`. Do not assume every field is always present. ## Refunds Refunds arrive through the same events — there is no separate refund event. You can tell them apart by the `amount`: **negative** for a purchase (money leaving the cardholder), **positive** for a refund (money coming back). **A refund is never declined because we could not reach you.** If your endpoint times out, errors or answers unusably on a refund, we approve it. Declining one would protect nothing: a refund places no hold and the money moves at settlement, which never consults your answer — it would only refuse the cardholder their own money at the terminal, over a fault on our side of the call. An explicit `{"decision": "decline"}` on a refund **is** still honoured — you answered, and that is the control you asked for. **This covers the codes that can only ever credit**, which is every credit code in the table above except one. `40` (Cardholder Account Transfer) is published "Credit and Debit": the network can settle it in either direction, so it may arrive with a positive `amount` and still take money. A `40` we could not ask you about is therefore treated like any other unanswered transaction, not as a guaranteed credit. Do not infer from a positive `amount` alone that a no-answer will approve — check `type_code`. Two more cases reach you through the same events: | Case | What you see | Recommended handling | | --- | --- | --- | | Card check (zero-amount authorisation) | `amount` is `"0.00"` | Approve — no money moves. | | A refund arrives with a negative amount | Cannot happen | `type` and the sign of `amount` are both derived from the same network code, so a `Returns/Refunds` leg is always positive. Key on the sign of `amount`, or on `type_code`; you do not need a branch for a mismatch between them. | ## Expected response Respond with any `2xx` status and a JSON object containing a `decision` field. Partial approvals are not supported: approve the full amount or decline. | Field | Type | Required | Description | | --- | --- | --- | --- | | `decision` | string | Yes | Exactly `"approve"` or `"decline"` (case-sensitive). | | `reason` | string | Recommended on a decline | Selects the message the cardholder sees — see below. | **Approve:** ```json { "decision": "approve" } ``` **Decline:** ```json { "decision": "decline", "reason": "insufficient_funds" } ``` ### `reason` selects what the cardholder sees Send `reason` as **one of the values below**. It is not a note for our support team — it **selects the response code the card network returns**, which is what the terminal prints and what the cardholder is told. A decline for an expired card and a decline on your own risk rule should not read the same at the till. | `reason` | What the cardholder sees | | --- | --- | | `card_expired` | Expired Card | | `card_inactive` | Restricted Card | | `account_inactive` | Account Restricted | | `insufficient_funds` | Insufficient Funds | | `limit_exceeded` | Exceeds Withdrawal Amount Limit | | `country_blocked` | Country is blocked | | `system_error` | Do Not Honour | | `mcc_blocked` | Transaction Forbidden to Cardholder | | `input_option_blocked` | Transaction Forbidden to Cardholder | | `duplicate_request` | Transaction Forbidden to Cardholder | | `transaction_forbidden_to_cardholder` | Transaction Forbidden to Cardholder | | `unknown` | Transaction Forbidden to Cardholder | Matching ignores case and surrounding whitespace. Nothing else is guessed at: we will not read `card-expired` or `Insufficient Balance` as anything but unrecognised. **Your decline is always honoured.** An unrecognised or missing `reason` never turns a decline into an approval and never causes an error — only the code we return changes. Anything outside the list, and an absent `reason`, is read as `unknown` and returns `119`. That is exactly what every decline returned before this list existed, so a receiver written against the earlier free-text contract keeps working unchanged. It just gives the cardholder the least useful message we have, on every decline. **Send a real reason.** `system_error` is for when *you* could not decide — your rules engine was down, a dependency timed out. Do not use it to describe the cardholder's situation. We also keep the raw string you sent, for support and investigation: trimmed and **truncated at 200 characters**. That text is never relayed to the network and never shown to the cardholder — only the code it selects is. **Only a `2xx` with `"decision": "approve"` approves a transaction.** Any other response is treated as no answer — this includes: - Non-`2xx` status codes (`3xx`, `4xx`, `5xx`) - Unparseable or empty body - An unrecognised `decision` value - No complete response within 2 seconds - A response over 64 KiB - `200 {"ok": true}` (a common mistake if you reuse a notification webhook handler) **Every one of these is declined**, refunds excepted. There is no response we read as "decide this one for me". ## Verifying the signature **Authorisation request webhooks use a different signature format to notification webhooks.** Notification webhooks sign the raw body only. Authorisation requests sign `.` — you cannot reuse the same verification logic for both. ```js const crypto = require("crypto"); const sig = req.headers["orenda-payload-signature"]; const timestamp = req.headers["orenda-signature-timestamp"]; // unix seconds // Reject rather than throw. `Buffer.from(undefined)` throws a TypeError, and // timingSafeEqual throws a RangeError on a length mismatch — so the naive // version 500s on an absent or truncated signature, which we read as NO ANSWER // and, under the default failure mode, decline. const expected = Buffer.from( crypto .createHmac("sha256", signingSecret) .update(`${timestamp}.${rawBody}`) // raw body, byte-for-byte .digest("hex"), "hex" ); const actual = typeof sig === "string" ? Buffer.from(sig, "hex") : Buffer.alloc(0); const signatureOk = actual.length === expected.length && crypto.timingSafeEqual(expected, actual); // Bind the clock too, or a captured request replays forever. const age = Math.abs(Date.now() / 1000 - Number(timestamp)); const fresh = Number.isFinite(age) && age < 300; if (!signatureOk || !fresh) return res.status(401).end(); ``` **Bind the clock as well as the body.** We sign the timestamp but do not reject on it — that is yours to enforce, and without it a captured request replays forever. Reject anything more than **300 seconds** old, as above; use the same value everywhere so a clock skew problem looks the same in every environment. ### Test vector Check your implementation against this known input: | Input | Value | | --- | --- | | Secret | `test_secret_do_not_use` | | `Orenda-Signature-Timestamp` | `1789546349` | | Raw body | `{"event":"card.authorization.requested","event_id":"4bd0e2c3-8780-4344-a8ab-d8c581ce1834"}` | | Signing base | `1789546349.` followed by the raw body | | Expected `Orenda-Payload-Signature` | `246f4c076a4f7f1960b63adcc19cdbd452e55640bbf6dbd4551dde4cad28c51d` | The same signing secret is used for decision requests and [webhooks](/webhooks). In rare cases a decision request can arrive without a signature. Rejecting it with a non-`2xx` counts as no answer — decide deliberately which you want. ### How to identify an authorisation request | Header | Present on | Purpose | | --- | --- | --- | | `Orenda-Payload-Signature` | All webhooks | HMAC-SHA256 signature (the signing base differs — see below) | | `Orenda-Signature-Timestamp` | **Authorisation requests only** | Unix timestamp included in the signing base | | `Orenda-Event-Id` | **Authorisation requests only** | Deduplicate requests | | `Orenda-Delivery-Id` | **Authorisation requests only** | Reference for support investigations | **If `Orenda-Event-Id` is present, this is an authorisation request** — answer it with a decision. Notification webhooks never carry it. **If `Orenda-Signature-Timestamp` is also present, verify using `.` as the signing base** — not the body alone. If neither header is present, this is a notification webhook and you verify using the body only (see [notification webhook signature verification](/webhooks#verifying-the-signature)). Do not use the timestamp header alone to tell the two apart. A decision request [can arrive unsigned](#test-vector), and then it carries neither `Orenda-Payload-Signature` nor `Orenda-Signature-Timestamp` — but it still carries `Orenda-Event-Id` and still needs a decision. Classifying it as a notification webhook would leave the authorisation unanswered. | Header | Meaning | | --- | --- | | `Orenda-Payload-Signature` | HMAC-SHA256 hex digest of `.`. | | `Orenda-Signature-Timestamp` | Unix seconds. Signed. | | `Orenda-Event-Id` | Mirrors `event_id` in the body. The body is authoritative. | | `Orenda-Delivery-Id` | This particular delivery. Differs between redeliveries of the same event. | ## Redeliveries If the card network does not receive a response in time, it retries the authorisation and we forward it to your endpoint again. **You may receive the same authorisation multiple times.** Return the same decision each time: if a repeat is declined after the original was approved, the original hold stays until the network confirms the outcome. Always deduplicate on `event_id`, which stays the same across retries. `Orenda-Delivery-Id` changes with each attempt and should not be used for deduplication. ## Other requirements - **HTTPS on a public hostname.** Plain HTTP, IP addresses and internal hostnames are rejected before the call is made. - **Redirects are not followed.** A `3xx` is no answer, and is declined — publish the final URL. - **Keep the response small.** A response over 64 KiB is **no answer** — we stop reading and decline. Answering `{"decision":"approve"}` followed by 65 KiB of rule context declines the card. - Be quick. You have **2 seconds**, covering DNS, TLS, your processing and the response body. Aim for a p99 under 500 ms — the card network is waiting, and a slow answer risks the network deciding without you. ================================================================================ # CUSTOMER_STATUS_UPDATE Source: https://api-management-docs.orenda-apps.com/webhooks/customer-status-update/ > Fires when a customer's onboarding/KYC status changes. Sent when a customer's onboarding, KYC, risk, or legal-acceptance status changes. The KYC status is normalised to a customer-facing label before delivery. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `programId`, `sandbox`, `customerId`, `clientReference`). ## Payload fields The status data is inlined on the body (there is no nested object for this event). | Field | Type | Notes | | --- | --- | --- | | `workflowStage` | string | Normalised onboarding stage (e.g. `Approved`). | | `kycStatus.status` | string | Normalised KYC label. | | `kycStatus.rejectionReasons` | string[] | Present when the KYC was rejected. | | `kycStatus.timestamp` | string | When the KYC status was set. | | `riskStatus` | object | Optional. `{ status, timestamp }`. | | `legalsStatus` | object | Optional. `{ accepted, timestamp }`. | ## Example ```json { "clientReference": "your-ref-001", "customerId": "cust_123", "eventId": "ae1f661b-a729-5a3f-86fa-5dbf60d42198", "eventName": "CUSTOMER_STATUS_UPDATE", "kycStatus": { "rejectionReasons": [], "status": "Approved", "timestamp": "2026-06-23T12:34:50.000Z" }, "legalsStatus": { "accepted": true, "timestamp": "2026-06-23T12:30:00.000Z" }, "programId": "yourprogram", "riskStatus": { "status": "APPROVED", "timestamp": "2026-06-23T12:34:50.000Z" }, "sandbox": false, "timestamp": "2026-06-23T12:34:56.789Z", "workflowStage": "Approved" } ``` ================================================================================ # ACCOUNT_STATUS_UPDATE Source: https://api-management-docs.orenda-apps.com/webhooks/account-status-update/ > Fires when an account's status changes. Sent when an account's status changes (e.g. `PENDING` → `ACTIVE`, or a block/closure). Carries the `account` object, without balances. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`, `clientReference`), plus `payloadVersion` (`2`). ## `account` fields The currency determines the rail identifiers: EUR carries `iban`/`bic`, GBP carries `accountNumber`/`sortCode`, and `MULTI` carries neither. | Field | Type | Notes | | --- | --- | --- | | `accountId` | string | The account identifier. | | `currency` | string | `EUR`, `GBP`, or `MULTI`. | | `iban` / `bic` | string | EUR accounts only. | | `accountNumber` / `sortCode` | string | GBP accounts only. | | `status` | string | `PENDING`, `ACTIVE`, `BLOCKED`, or `CLOSED`. | Integrations created before this format was introduced receive the original payload: there is no `payloadVersion` field, and `account` also carries `balances.settled`, a **number** in major units (`100.5` is 100.50). It is not a reliable balance on a status event, because an account with no balance on record is sent as `0`. Use [`ACCOUNT_BALANCE_UPDATE`](/webhooks/account-balance-update) for balances. We will contact you before anything changes for your programme. [Ask us](mailto:client.support@orenda.finance) which format you receive. ## Example ```json { "account": { "accountId": "acc_456", "bic": "CLRBNL2A029", "currency": "EUR", "iban": "NL31CLRB0024757476", "status": "ACTIVE" }, "customerId": "cust_123", "eventId": "df290b74-a81a-5537-abdb-58bedd72b50f", "eventName": "ACCOUNT_STATUS_UPDATE", "payloadVersion": 2, "timestamp": "2026-06-23T12:34:56.789Z" } ``` ================================================================================ # ACCOUNT_BALANCE_UPDATE Source: https://api-management-docs.orenda-apps.com/webhooks/account-balance-update/ > Fires when an account's settled balance changes. Sent when an account's settled balance changes. It is **not** sent for card spend — follow card activity through the card transactions guide (available from [client.support@orenda.finance](mailto:client.support@orenda.finance)). Carries the `account` object with the updated `balances.settled`. [`ACCOUNT_STATUS_UPDATE`](/webhooks/account-status-update) carries the same `account` without balances. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`, `clientReference`), plus `payloadVersion` (`2`). ## `account` fields The currency determines the rail identifiers: EUR carries `iban`/`bic`, GBP carries `accountNumber`/`sortCode`, and `MULTI` carries neither. | Field | Type | Notes | | --- | --- | --- | | `accountId` | string | The account identifier. | | `currency` | string | `EUR`, `GBP`, or `MULTI`. | | `iban` / `bic` | string | EUR accounts only. | | `accountNumber` / `sortCode` | string | GBP accounts only. | | `status` | string | `PENDING`, `ACTIVE`, `BLOCKED`, or `CLOSED`. | | `balances.settled` | string | Updated settled balance as a decimal string in major units of `currency` (`"100.00"`). Omitted for `MULTI` accounts and when it can't be stated exactly. | Integrations created before this format was introduced receive the original payload: there is no `payloadVersion` field and `balances.settled` is a **number** in major units (`100.5` is 100.50). We recommend moving to the format above, and we will contact you before anything changes for your programme. [Ask us](mailto:client.support@orenda.finance) which format you receive. ## Example ```json { "account": { "accountId": "acc_456", "balances": { "settled": "100.00" }, "bic": "CLRBNL2A029", "currency": "EUR", "iban": "NL31CLRB0024757476", "status": "ACTIVE" }, "customerId": "cust_123", "eventId": "02e1991f-a046-504e-a4f9-24b0ab19dd07", "eventName": "ACCOUNT_BALANCE_UPDATE", "payloadVersion": 2, "timestamp": "2026-06-23T12:34:56.789Z" } ``` ================================================================================ # NEW_CARD_ADDED Source: https://api-management-docs.orenda-apps.com/webhooks/new-card-added/ > Fires when a new card is provisioned. Sent when a new card is provisioned for a customer. Carries a trimmed `card` object. It may not be sent for a card created with an idempotency key. Treat a [`CARD_STATUS_UPDATE`](/webhooks/card-status-update) for a card you have not seen as a new card. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`, `clientReference`). ## `card` fields `nickName` and `limitGroupId` are included only when set. | Field | Type | Notes | | --- | --- | --- | | `cardId` | string | The card identifier. | | `accountId` | string | Account the card is attached to. | | `maskedPan` | string | Masked card number. The format depends on the card programme and may be the last four digits only. | | `cardType` | string | e.g. `VIRTUAL`, `PHYSICAL`. | | `currency` | string | Card currency. | | `status` | string | The values you will see on a card-transactions programme are `CREATING`, `CREATED`, `ACTIVE`, `BLOCKED`, `CANCELLED`, `PENDING` and `EXPIRED`, where `CREATING` is a placeholder while a card is being issued. **Not a closed set** — other card programmes on the platform publish further values, and more can be added, so compare case-insensitively and treat an unrecognised status as "unchanged" rather than as an error. | | `nickName` | string | Optional. Customer-set label. | | `limitGroupId` | string | Optional. Spend-limit group. | ## Example ```json { "card": { "accountId": "acc_456", "cardId": "card_789", "cardType": "VIRTUAL", "currency": "EUR", "limitGroupId": "lg_1", "maskedPan": "528211******1234", "nickName": "Travel card", "status": "CREATED" }, "customerId": "cust_123", "eventId": "02bcd792-b980-5e0c-9950-7acd4e2eee83", "eventName": "NEW_CARD_ADDED", "timestamp": "2026-06-23T12:34:56.789Z" } ``` ================================================================================ # CARD_STATUS_UPDATE Source: https://api-management-docs.orenda-apps.com/webhooks/card-status-update/ > Fires when a card's lifecycle status changes. Sent when a card's lifecycle status changes (e.g. activation, block, cancellation, expiry). Carries the same trimmed `card` object as [`NEW_CARD_ADDED`](/webhooks/new-card-added), with the updated `status`. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`, `clientReference`). ## `card` fields `nickName` and `limitGroupId` are included only when set. | Field | Type | Notes | | --- | --- | --- | | `cardId` | string | The card identifier. | | `accountId` | string | Account the card is attached to. | | `maskedPan` | string | Masked card number. The format depends on the card programme and may be the last four digits only. | | `cardType` | string | e.g. `VIRTUAL`, `PHYSICAL`. | | `currency` | string | Card currency. | | `status` | string | The values you will see on a card-transactions programme are `CREATING`, `CREATED`, `ACTIVE`, `BLOCKED`, `CANCELLED`, `PENDING` and `EXPIRED`, where `CREATING` is a placeholder while a card is being issued. **Not a closed set** — other card programmes on the platform publish further values, and more can be added, so compare case-insensitively and treat an unrecognised status as "unchanged" rather than as an error. | | `nickName` | string | Optional. Customer-set label. | | `limitGroupId` | string | Optional. Spend-limit group. | ## Example ```json { "card": { "accountId": "acc_456", "cardId": "card_789", "cardType": "VIRTUAL", "currency": "EUR", "limitGroupId": "lg_1", "maskedPan": "528211******1234", "nickName": "Travel card", "status": "ACTIVE" }, "customerId": "cust_123", "eventId": "11062aa9-3f0c-5d76-927c-b7e9c38a465c", "eventName": "CARD_STATUS_UPDATE", "timestamp": "2026-06-23T12:34:56.789Z" } ``` ================================================================================ # CARD_AUTH_STATUS_UPDATE Source: https://api-management-docs.orenda-apps.com/webhooks/card-auth-status-update/ > Fires when a card authorisation / 3DS challenge is raised or resolved. Sent when a card authorisation needs a decision (e.g. a 3-D Secure challenge) and again as the authorisation is resolved. Carries a trimmed `cardAuthentication` object. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`), plus `payloadVersion` (`2`). ## `cardAuthentication` fields Only `id`, `customerId` and `status` are guaranteed. Every other field is included only when known, so absent fields are omitted rather than sent as `null`. If an amount can't be stated exactly, `amount` and `currency` are both omitted. | Field | Type | Notes | | --- | --- | --- | | `id` | string | Authorisation record identifier. | | `customerId` | string | The cardholder. | | `status` | string | Authorisation lifecycle — e.g. `pending`, `approved`, `rejected`, `customer-accepted`, `customer-canceled`, then the scheme outcome (`AUTHENTICATED`, `DECLINED`, `EXPIRED`, …). Casing varies — compare case-insensitively. | | `accountId` | string | Optional. Account the card belongs to. | | `cardId` | string | Optional. The card identifier. | | `currency` | string | Optional. Transaction currency, ISO 4217 alpha-3 (`GBP`). | | `amount` | string | Optional. Transaction amount as a decimal string in major units of `currency`, with at least two decimals (`"19.99"`). | | `maskedPan` | string | Optional. Masked card number. | | `merchantName` | string | Optional. Acquirer/merchant name. | | `createdAt` | string | Optional. ISO 8601 (`2026-06-23T12:34:50.000Z`), on every card programme, so it can go straight to a date parser. When the authorisation was raised. Omitted when the provider sent nothing usable. | | `requestExpiresAt` | string | Optional. ISO 8601, same format as `createdAt`. When the challenge stops being answerable. Omitted when the provider sent nothing usable. | On some card programmes `cardId` is **not** the Orenda card id (match on `customerId`, `accountId`, amount and merchant), `maskedPan` is not sent, and statuses run `pending` → `approved` / `rejected` → the scheme outcome. In sandbox the scheme outcome is not sent. See the card transactions guide (available from [client.support@orenda.finance](mailto:client.support@orenda.finance)), or [contact the team](mailto:client.support@orenda.finance) if you are unsure which applies. Integrations created before this format was introduced receive the original payload: there is no `payloadVersion` field, `amount` is a **number** in the card programme's own unit (some programmes send major units, others minor units), and `currency` may be a numeric code. We recommend moving to the format above, and we will contact you before anything changes for your programme. [Ask us](mailto:client.support@orenda.finance) which format you receive. ## Example ```json { "cardAuthentication": { "accountId": "acc_456", "amount": "19.99", "cardId": "card_789", "createdAt": "2026-06-23T12:34:50.000Z", "currency": "EUR", "customerId": "cust_123", "id": "auth_abc", "maskedPan": "528211******1234", "merchantName": "ACME Store", "requestExpiresAt": "2026-06-23T12:44:50.000Z", "status": "pending" }, "customerId": "cust_123", "eventId": "8ec7f314-6c02-5684-ae99-e0f93d3f6114", "eventName": "CARD_AUTH_STATUS_UPDATE", "payloadVersion": 2, "timestamp": "2026-06-23T12:34:56.789Z" } ``` ================================================================================ # TRANSACTION_INITIATED Source: https://api-management-docs.orenda-apps.com/webhooks/transaction-initiated/ > Fires when a payment request is created. Sent when a payment request is created. Anyone who needs to know a transfer, a batch item or a card purchase now exists needs this event. It is sent **once**, on creation. Later changes — the amount moving, a cancellation, completion, a failure — arrive as [`TRANSACTION_UPDATED`](/webhooks/transaction-updated), which carries the same `paymentRequest` object plus a `reason`. **Card purchases** arrive with `type` `CARD` and `subType` `AUTHORIZATION`, `status` `PENDING`, and an `id` equal to the `event_id` of the purchase's first [authorisation decision request](/webhooks/card-authorization-request). They are created when the network **confirms** the authorisation, not when it is decided — so a purchase Orenda or you declined never produces one. Refunds do not create one either. See the card transactions guide (available from [client.support@orenda.finance](mailto:client.support@orenda.finance)). A **card check** — an authorisation approved at zero, such as a merchant verifying a card before saving it — arrives already `COMPLETED`, with `amount` `0`. Nothing settles a card check, so no further event follows for it, unless the merchant later adds an amount to the same purchase ([`TRANSACTION_UPDATED`](/webhooks/transaction-updated) `AMOUNT_INCREASED`). Read `status`; do not assume `PENDING`. **Card programmes on the settlement model.** Card programmes that booked a purchase as soon as it was authorised, and sent no `TRANSACTION_INITIATED` for it, now use the settlement model. Their prepaid child cards stay on the authorisation model, so such a programme has cards on both. A purchase finishes on the model it started on, even if it settles after the change. On the settlement model, a card purchase arrives here `PENDING` when it is **authorised** — there is no separate confirmation step and no decision request, so its `id` matches no `event_id`. A declined authorisation, a card check and a refund create none. The money moves later, at settlement, on [`TRANSACTION_CREATED`](/webhooks/transaction-created). All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`), plus `payloadVersion` (`2`). ## `paymentRequest` fields `payee`, `batchItemId`, `cryptoQuoteId`, `childAccountId` and `cardId` are included only when present. | Field | Type | Notes | | --- | --- | --- | | `id` | string | Payment request identifier. | | `paymentRef` | string | Your payment reference. | | `amount` | string | Decimal string in major units of `currency`, with the currency's decimals (`"50.00"`). Omitted if it can't be stated exactly. | | `currency` | string | Payment currency. | | `customerId` | string | Initiating customer. | | `accountId` | string | Source account. | | `type` | string | `CUSTOMER`, `BATCH` or `CARD`. No other value reaches a webhook. | | `subType` | string | `SEND`, `COLLECT`, `REFUND`, `SCHEDULED` or `AUTHORIZATION`. | | `createdDateTime` | string | When the request was created. | | `status` | string | Current status — see the [status list](/webhooks/transaction-updated#payment-request-statuses). | | `statusHistory` | array | Status transitions: `{ status, dateTime }`, and `errorReason` on a failure. | | `payee` | object | Optional. Beneficiary details. | | `batchItemId` | string | Optional. Present for batch payments. | | `cryptoQuoteId` | string | Optional. Present for crypto payments. | | `childAccountId` | string | Optional. Present for child-account payments. | | `cardId` | string | Optional. **Card purchases** (`type` `CARD`): the card that made the purchase, the same `cardId` you received on [`NEW_CARD_ADDED`](/webhooks/new-card-added). The settled ledger entry carries it too. | Integrations created before this format was introduced receive the original payload: there is no `payloadVersion` field and `amount` is a **number** in major units (`50` is 50.00), passed through exactly as the transaction stores it, so coerce with `Number()` rather than assuming the type. We recommend moving to the format above, and we will contact you before anything changes for your programme. [Ask us](mailto:client.support@orenda.finance) which format you receive. ## Examples Keys arrive sorted — see [verifying the signature](/webhooks#verifying-the-signature). ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "1d6c3b58-7e24-4a09-bf63-2c8e5d1a4079", "eventName": "TRANSACTION_INITIATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "50.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "PENDING", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "timestamp": "2026-09-17T14:05:13.664Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "e5b27f41-9a03-4c86-b152-7d0e4a9c3b68", "eventName": "TRANSACTION_INITIATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "50.00", "createdDateTime": "2026-09-17T12:34:50.000Z", "currency": "EUR", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "b7e1a940-2f58-4d03-9c6b-5a8d1e2f4c07", "payee": { "iban": "DE89370400440532013000", "name": "Jane Doe" }, "paymentRef": "INV-2026-001", "status": "PENDING", "statusHistory": [ { "dateTime": "2026-09-17T12:34:50.000Z", "status": "PENDING" } ], "subType": "SEND", "type": "CUSTOMER" }, "timestamp": "2026-09-17T12:34:56.789Z" } ``` Respond `2xx` within 10 seconds. The body is ignored. See [delivery behaviour](/webhooks#delivery-behaviour) for retries. ================================================================================ # TRANSACTION_UPDATED Source: https://api-management-docs.orenda-apps.com/webhooks/transaction-updated/ > Fires when a transaction changes after it was created. Sent when a payment request changes after creation. Anyone following a card purchase, a transfer or a batch item past its creation needs this event. It carries the same trimmed `paymentRequest` object as [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated), plus a `reason` saying what changed and what the values were before. **One event name for every kind of change.** Read `reason` to learn which. Add a case for a new `reason` rather than subscribing to a new event each time there is another way for a transaction to move. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`), plus `payloadVersion` (`2`). ## Reasons | `reason` | What happened | Payment request status after | | --- | --- | --- | | `AMOUNT_INCREASED` | The transaction is worth more than it was — an incremental authorisation on the same purchase (a hotel extending a stay, a tip added to a bill), or a confirmation that recomputed a higher total. On the [settlement model](#card-programmes-on-the-settlement-model), also a further settlement of a completed card purchase. | Unchanged (`PENDING`, or `COMPLETED` for a further settlement) | | `AMOUNT_REDUCED` | It is worth less — a partial reversal, a fuel-pump shortfall, one declined leg of a multi-leg purchase, or the rollback of an increase we refused. | Unchanged (`PENDING`) | | `CANCELLED` | Withdrawn before completing, and not coming back — the network reversed the authorisation in full, or a cancellation you requested is now confirmed. On the [settlement model](#card-programmes-on-the-settlement-model) a reversed card purchase can still be settled. | `FAILED` | | `COMPLETED` | The money moved. For a card purchase, the merchant has collected. | `COMPLETED` | | `EXPIRED` | The authorisation came to nothing: it completed at zero because nothing was presented against it, and any hold is released. On the [settlement model](#card-programmes-on-the-settlement-model), the authorisation expired, or we released a hold that outlived it. | `FAILED` | | `FAILED` | Refused. The text is in `statusHistory[].errorReason`. | `FAILED` | **A status change outranks an amount change.** When a single update both moves the status and changes the amount, you receive the status reason — `COMPLETED`, `CANCELLED`, `EXPIRED` or `FAILED` — and never `AMOUNT_*`. The new total is in `paymentRequest.amount` either way, so nothing is lost. `CANCELLED` and `EXPIRED` both leave the payment request `FAILED`. The status alone cannot tell you which happened, or tell either apart from a refusal — read `reason`. ## Card programmes on the settlement model On the settlement model a card purchase is created `PENDING` at authorisation and the money moves when the merchant settles; [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated) says which card purchases follow it. On top of the reasons above: | Change | `reason` | Status before → after | | --- | --- | --- | | An increase, a partial reversal, or an advice that restates the authorised amount | `AMOUNT_INCREASED` or `AMOUNT_REDUCED` | `PENDING` → `PENDING` | | A full reversal, or an advice that restates the amount at zero. `errorReason` starts with `Full reversal` | `CANCELLED` | `PENDING` → `FAILED` | | An approval given on our behalf (stand-in) is withdrawn, with no reversal or advice behind it | `AMOUNT_REDUCED`, or `CANCELLED` when nothing is left held (then `errorReason` starts with `Full reversal`) | `PENDING` → `PENDING`, or `PENDING` → `FAILED` | | The authorisation expired, or we released a hold that outlived it. `errorReason` is `Authorization expired — hold released` | `EXPIRED` | `PENDING` → `FAILED` | | The first settlement. `amount` is the settled amount, even when it is less than was held; the whole hold is released | `COMPLETED` | `PENDING` → `COMPLETED` | | A settlement after a full reversal or an expiry. The money has moved | `COMPLETED` | `FAILED` → `COMPLETED` | | A further settlement of the same purchase. `amount` rises to the settled total | `AMOUNT_INCREASED` | `COMPLETED` → `COMPLETED` | **On the settlement model, `CANCELLED` and `EXPIRED` are not final for a card purchase.** Keep a cancelled or expired purchase where a later `COMPLETED` can reach it, and apply an `AMOUNT_INCREASED` that arrives on a `COMPLETED` card purchase rather than discarding it. A declined authorisation, a card check and a refund create no payment request on the settlement model, so none of them sends this event. Nor does an increase or an advice after the purchase has settled, or been cancelled or expired: it changes nothing. ## Amounts are always the new total `paymentRequest.amount` is **what the transaction is worth now** — never a delta, in every case including `AMOUNT_INCREASED` and `AMOUNT_REDUCED`. `previousAmount` is what it was, so the change is `amount - previousAmount` if you need it. **Amounts are decimal strings.** `amount` and `previousAmount` are major-unit decimal strings of `paymentRequest.currency` (`"57.00"`), so use a decimal type to take the difference rather than a floating-point number. Either is omitted if it can't be stated exactly. Integrations created before this format was introduced receive the original payload: there is no `payloadVersion` field and `amount` is a **number** in major units, passed through as the transaction stores it, and `previousAmount` is a number. Coerce with `Number()` before comparing. We recommend moving to the format above, and we will contact you before anything changes for your programme. [Ask us](mailto:client.support@orenda.finance) which format you receive. This is the same convention as the [authorisation decision request](/webhooks/card-authorization-request), where `billing_purchase_total` carries the total and `amount` carries the individual leg. ## Fields Beyond the `paymentRequest` object documented on [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated#paymentrequest-fields): | Field | Type | Notes | | --- | --- | --- | | `reason` | string | One of the values above. | | `previousStatus` | string | The status held before this change. **Omitted** when the previous state had none. Can be a status the API never returns — see below. | | `previousAmount` | string | The total before this change, in the same decimal-string format as `amount`. Present on **every** update whose stored previous amount could be read, not only on `AMOUNT_*`. **Omitted** when it could not be read (an unparseable stored value), so never key off its absence. | ### Payment request statuses Any of these can appear as `paymentRequest.status` or `previousStatus`, and all six are returned by the payment requests API. | Status | Final? | What it means | | --- | --- | --- | | `INITIATED` | No | Accepted, not yet being worked. | | `PENDING` | No | In flight. A card purchase sits here from confirmation until it settles; a card check approved at zero skips it. | | `PENDING_TM` | No | Held in transaction monitoring. | | `PENDING_CANCELLATION` | No | A cancellation has been **requested** and can still be reverted. | | `COMPLETED` | Yes, with the exceptions in the notes | The money moved. A card check approved at zero is `COMPLETED` from creation: nothing moved, and nothing will. In the rare case the merchant later adds an amount to the same purchase, it returns to `PENDING` with an `AMOUNT_INCREASED` update. On the [settlement model](#card-programmes-on-the-settlement-model) a completed card purchase stays `COMPLETED` but its `amount` can still rise. | | `FAILED` | Yes, except a cancelled or expired card purchase on the settlement model | Refused, cancelled or expired — read `reason` to tell which. On the [settlement model](#card-programmes-on-the-settlement-model) a cancelled or expired card purchase moves to `COMPLETED` if the merchant settles anyway. | **Do not switch exhaustively on status.** `PENDING_TM` and `PENDING_CANCELLATION` are easy to miss because a purchase usually goes straight from `PENDING` to `COMPLETED` or `FAILED`, but both are real stored states and both are among the statuses the list endpoint returns **by default** when you pass no `status` filter, so always pass an explicit one when listing payment requests. Treat an unrecognised status as "still in flight" and read `reason` for what changed. A move into or out of `PENDING_TM` or `PENDING_CANCELLATION` does not send an event on its own. You see those statuses on an event only when the same update also changed the amount, which reports `AMOUNT_INCREASED` or `AMOUNT_REDUCED` with the monitoring status attached. ## Examples One per `reason`, for the same £57 fuel purchase. Keys arrive sorted — see [verifying the signature](/webhooks#verifying-the-signature). ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "9f8e7d6c-5b4a-3210-fedc-ba9876543210", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "57.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "PENDING", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "50.00", "previousStatus": "PENDING", "reason": "AMOUNT_INCREASED", "timestamp": "2026-09-17T14:31:44.512Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "2c7b4e91-6a05-4d38-bf12-e8a3c9d07b64", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "45.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "PENDING", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "60.00", "previousStatus": "PENDING", "reason": "AMOUNT_REDUCED", "timestamp": "2026-09-17T14:36:02.145Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "5e1a8c37-9b42-4f60-a7d5-3c0e6b2f91a8", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "57.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "COMPLETED", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" }, { "dateTime": "2026-09-19T02:11:04.009Z", "status": "COMPLETED" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "57.00", "previousStatus": "PENDING", "reason": "COMPLETED", "timestamp": "2026-09-19T02:11:04.231Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "8d3f6b02-4c71-4e95-b8a0-7f2c1d5e9403", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "57.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "FAILED", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" }, { "dateTime": "2026-09-17T14:40:02.510Z", "errorReason": "Full reversal — merchant reversal (code 400)", "status": "FAILED" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "57.00", "previousStatus": "PENDING", "reason": "CANCELLED", "timestamp": "2026-09-17T14:40:02.887Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "a4b9c158-2e76-4038-9d1f-6b5a0c3e847d", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "57.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "FAILED", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" }, { "dateTime": "2026-09-17T15:02:11.771Z", "errorReason": "Authorization completed at zero — nothing presented", "status": "FAILED" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "57.00", "previousStatus": "PENDING", "reason": "EXPIRED", "timestamp": "2026-09-17T15:02:12.004Z" } ``` ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "c6e0d274-8f39-4a51-b203-9e7c4a1b6d05", "eventName": "TRANSACTION_UPDATED", "payloadVersion": 2, "paymentRequest": { "accountId": "a9492268-1f1a-4a1e-9d2c-55b0b1a34d60", "amount": "57.00", "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "createdDateTime": "2026-09-17T14:05:10.221Z", "currency": "GBP", "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "id": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "paymentRef": "SHELL", "status": "FAILED", "statusHistory": [ { "dateTime": "2026-09-17T14:05:10.221Z", "status": "PENDING" }, { "dateTime": "2026-09-17T14:52:40.118Z", "errorReason": "Do Not Honour", "status": "FAILED" } ], "subType": "AUTHORIZATION", "type": "CARD" }, "previousAmount": "57.00", "previousStatus": "PENDING", "reason": "FAILED", "timestamp": "2026-09-17T14:52:40.396Z" } ``` Respond `2xx` within 10 seconds. The body is ignored. See [delivery behaviour](/webhooks#delivery-behaviour) for retries. ### Test vector Secret `test_secret_do_not_use` and the `AMOUNT_INCREASED` body above, sent exactly as this single line with no whitespace: ``` {"customerId":"7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02","eventId":"9f8e7d6c-5b4a-3210-fedc-ba9876543210","eventName":"TRANSACTION_UPDATED","payloadVersion":2,"paymentRequest":{"accountId":"a9492268-1f1a-4a1e-9d2c-55b0b1a34d60","amount":"57.00","createdDateTime":"2026-09-17T14:05:10.221Z","currency":"GBP","customerId":"7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02","id":"4bd0e2c3-8780-4344-a8ab-d8c581ce1834","paymentRef":"SHELL","status":"PENDING","statusHistory":[{"dateTime":"2026-09-17T14:05:10.221Z","status":"PENDING"}],"subType":"AUTHORIZATION","type":"CARD"},"previousAmount":"50.00","previousStatus":"PENDING","reason":"AMOUNT_INCREASED","timestamp":"2026-09-17T14:31:44.512Z"} ``` produces `Orenda-Payload-Signature` `7954d89e58e81f34797838536b318ad30f35fc52f5804c41046e5c4c7929fd54`. ## What does not send one Deliberately silent, because none of these is a change to the transaction: - **Internal bookkeeping.** Monitoring states, and identifiers stamped on the row after the fact — see the [statuses](#payment-request-statuses) above. - **A cancellation you have only requested.** It can still be reverted, so `CANCELLED` is sent when the cancellation is confirmed, not when it is asked for. - **A retry of a failed payment.** Re-posting with an idempotency key whose first attempt failed reopens the same request; the `FAILED` to `PENDING` move is not announced. - **A re-write of the row that does not change it.** - **An unconfirmed card hold released after 7 days.** No payment request was ever created, so there is nothing to update. `EXPIRED` is a different case — an authorisation that was confirmed and then completed at zero. So a transaction can be updated several times, or not at all. A multi-leg purchase — a fuel pump, a hotel bill — can send several `AMOUNT_INCREASED` events and then a `COMPLETED`, so size for more of these than `TRANSACTION_INITIATED`. ## Not only cards This fires for every transaction type you already receive `TRANSACTION_INITIATED` for, not just card purchases. Bank transfers, direct debits and batch items change status but not amount, so they send `COMPLETED`, `FAILED` and `CANCELLED` only. ## Duplicates and ordering A change can be delivered more than once (retries and replays), so see [delivery behaviour](/webhooks#delivery-behaviour). Dedupe on **`eventId`**, which is distinct per change and is repeated rather than reissued if the same change is delivered again. Do not build a key out of `reason` and the amounts. A purchase that goes 50 → 60 → 50 → 60 sends two `AMOUNT_INCREASED` events identical in every field but `eventId` and `timestamp`, and the second one is a real increase you need. **Arrival order is not delivery order.** Events for one account are normally delivered in order, but a redelivery can place an earlier change after a later one. Order on the payload rather than on arrival: `previousStatus` and `previousAmount` say what state the change started from. So an event whose `previousAmount` does not match the total you are holding is one of three things — one you have already applied, one that arrived early, or one whose predecessor you never received. We attempt delivery; we do not guarantee it. Treat a mismatch as "my state is stale" rather than as a sequence you can always reassemble, and re-read the payment request, which is authoritative. `paymentRequest.amount` is the total **as of this event**, not necessarily the current one: a later change may already have happened by the time you process it. **`COMPLETED` and [`TRANSACTION_CREATED`](/webhooks/transaction-created) race.** A settled card purchase produces both, from two independent processors, so either can arrive first. Do not wait for one before handling the other, and do not treat their order as meaningful. ================================================================================ # TRANSACTION_CREATED Source: https://api-management-docs.orenda-apps.com/webhooks/transaction-created/ > Fires when a ledger transaction is created. Sent when a ledger transaction is created. Anyone booking settled money needs this event. Deliberately minimal — the transaction identifier, and for a card transaction the card it belongs to and, on a settlement, the purchase. For card programmes this is how you learn a purchase has **settled**: `SETTLE--DEBIT` for a purchase, `SETTLE--CREDIT` for a refund or chargeback, and `FEE--DEBIT` for a card fee. **`` is not the payment request id.** It is the identifier of this booking, created when the purchase settles, and it is different for every settlement — including two settlements of the same purchase. Parsing it out of `transactionId` does **not** give you the purchase. Join on `purchasePaymentRequestId` below, and where that is absent use the fallback documented in the card transactions guide. See the reconciliation section of the card transactions guide, available from [client.support@orenda.finance](mailto:client.support@orenda.finance). **Card programmes on the settlement model.** For a card purchase on the settlement model this event arrives when the merchant **settles**, not at the till: the debit is for the settled amount and dated at settlement, and the purchase itself was announced earlier on [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated), which says which card purchases follow this model. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`). ## `transaction` fields | Field | Type | Notes | | --- | --- | --- | | `transactionId` | string | The transaction identifier. | | `purchasePaymentRequestId` | string | **Card settlements only.** The purchase this settlement belongs to — the same `paymentRequest.id` you received on [`TRANSACTION_INITIATED`](/webhooks/transaction-initiated) for the authorisation. Join on this rather than parsing the identifier above. | | `cardId` | string | **Card transactions only** — purchases, refunds and card fees. The card that made the transaction: the same `cardId` you received on [`NEW_CARD_ADDED`](/webhooks/new-card-added). Omitted on every other transaction, and when the card is not known. | ### When the purchase id is absent It is **omitted** rather than empty, and absence is normal: - on a **card fee** row — fees link to the purchase through the settlement, not directly; - on a settlement for an authorisation we never saw, which happens when the network stood in for us; - on a chargeback with no original authorisation behind it; - whenever we could not confirm the authorisation we found belongs to this purchase; - on card programmes on the settlement model where the bank behind the account does not carry it — [ask us](mailto:client.support@orenda.finance) whether yours does. So treat it as a shortcut when present, and keep the identifier-based join from the same guide as the fallback. Never key off its absence. ## Relationship to `TRANSACTION_UPDATED` A settled card purchase **usually** produces two deliveries: this one for the ledger entry, and [`TRANSACTION_UPDATED`](/webhooks/transaction-updated) with `reason: "COMPLETED"` for the payment request. Three, if your programme charges a card fee — that is a second `TRANSACTION_CREATED`. It can also be **one**. `TRANSACTION_UPDATED` reports a change to a payment request, so a settlement with no payment request behind it has nothing to report: a refund or dispute credit, a settlement for an authorisation we never saw, and the second and later settlements of a split purchase all arrive as `TRANSACTION_CREATED` alone. Do not wait for a `COMPLETED` that is not coming. On the settlement model, a further settlement of a split purchase **does** change its payment request: it also sends `TRANSACTION_UPDATED` with `reason: "AMOUNT_INCREASED"` as the completed amount rises to the settled total. A settlement that arrives after the purchase was cancelled or expired still completes it, with `TRANSACTION_UPDATED` `COMPLETED`. **The two race, and either can arrive first.** They come from two independent processors, so their order is not meaningful and not guaranteed. Handle each on arrival; do not wait for one before processing the other, and do not treat `COMPLETED` as a precondition for booking the ledger entry or the reverse. The two objects are different things: a payment request is the pending purchase, a ledger transaction is the booked entry. Fetch the full transaction record from the API — see [search](/search). The webhook carries only the identifier. ## Example Keys arrive sorted — see [verifying the signature](/webhooks#verifying-the-signature). ```json { "customerId": "7d2f9b44-0c3e-4f5a-8b21-6a9e3d1c5f02", "eventId": "3a8f5c20-6d14-4b79-9e02-8c5a1f7d3b46", "eventName": "TRANSACTION_CREATED", "timestamp": "2026-09-19T02:11:04.512Z", "transaction": { "cardId": "8f0c1d2e-3a4b-4c5d-9e6f-7a8b9c0d1e2f", "purchasePaymentRequestId": "4bd0e2c3-8780-4344-a8ab-d8c581ce1834", "transactionId": "SETTLE-6f1b8d47-2a95-4e03-bc78-90d5e1a3f27b-DEBIT" } } ``` Respond `2xx` within 10 seconds. The body is ignored. See [delivery behaviour](/webhooks#delivery-behaviour) for retries. ================================================================================ # TRANSACTION_STATUS_CHANGED Source: https://api-management-docs.orenda-apps.com/webhooks/transaction-status-changed/ > Fires when a ledger transaction's status changes. Sent when a ledger transaction's status changes. Deliberately minimal, the same shape as [`TRANSACTION_CREATED`](/webhooks/transaction-created): the transaction identifier, plus the card and purchase on a card transaction. All deliveries share the [common envelope](/webhooks#common-envelope) (`eventId`, `eventName`, `timestamp`, `customerId`). ## `transaction` fields | Field | Type | Notes | | --- | --- | --- | | `transactionId` | string | The transaction identifier. | | `purchasePaymentRequestId` | string | **Card settlements only.** As on [`TRANSACTION_CREATED`](/webhooks/transaction-created#transaction-fields). | | `cardId` | string | **Card transactions only.** The card that made the transaction, the `cardId` from [`NEW_CARD_ADDED`](/webhooks/new-card-added). Omitted otherwise, and when the card is not known. | Fetch the updated transaction record from the API — see [search](/search). The webhook carries only the identifiers. ## Example ```json { "customerId": "cust_123", "eventId": "83484353-bc10-5051-acab-e7c2d03ce02b", "eventName": "TRANSACTION_STATUS_CHANGED", "timestamp": "2026-06-23T12:34:56.789Z", "transaction": { "transactionId": "019ef46a-e035-72a2-98a1-3e07eaa8f435" } } ``` ================================================================================ # Acting on a customer Source: https://api-management-docs.orenda-apps.com/customer-operations/ > Accounts, payments, beneficiaries, and batches on a customer's behalf. Operators act on a customer through the customer-scoped `/v1` endpoints, authenticated with the operator's bearer token. Every call needs the **`programId` query parameter** — `?programId=abc`. Your operator role bounds *which* programs you may act on; the program itself is chosen by the request. The environment comes from your token: an operator session picks it at sign-in (`x-sandbox: true` on login), and a service user's credential is fixed to one environment. A `sandbox` query parameter on these endpoints is ignored. Acting on a customer's behalf is enabled only for **PCI- or Compliance-approved workflows** — it is not available to every program. Talk to Orenda before building on these endpoints. These are the **`/v1` routes**. The older, unprefixed paths (`/customers/{customerId}/…`) still answer but are being retired — build against `/v1`. ## Accounts - `GET /v2/accounts?programId=…&customerId=…` — accounts with balances and bank details, with the `limits` figures and provider balances as decimal strings (`/v1/accounts` still works unchanged, with those as numbers). Filter and paginate with `customerId`, `accountId`, `currency`, `status`, `page`, `limit`, `sortBy`, `sortOrder` (the list filters accept comma-separated values); `status` matches exactly, in upper case (`ACTIVE`). `resultType=file` returns a CSV export instead of JSON — it covers every match, so `page` and `limit` are ignored there. In sandbox, most providers return mock data. **Operators use `/v2/accounts`, not `/v2/customers/{customerId}/accounts`.** The path-scoped route is the *consumer* form: a management token that sends `customerId` in the path is rejected with `Backoffice request should not include customerId in path`. Pass the customer as the `customerId` **query parameter** instead. The same split applies to `GET /v2/transactions`. The same holds on v1. - `POST /v1/customers/{customerId}/accounts` — open an additional account; body `currency` or `accountAlias`. This one *is* path-scoped. Each call opens another account — repeating a `currency` opens a second one. Blocking, unblocking, closing, and sending an account confirmation letter are documented under **Customer & account operations** in the API Reference. ## Payments - `POST /v1/customers/{customerId}/accounts/{accountId}/payments` — send a payment for the customer. Required: `amount` (decimal string, max 2 dp) and `purpose` (purpose code). Also accepted: `beneficiaryId` (a saved payee — required unless you send a `cryptoQuote`), `currency` (defaults to the account currency, and any other currency is a `400`: pay in another currency with the international route below), `reference` (statement reference; the field allows 140 characters but some programs accept as few as 35), `chargeBearer` (`SHA` / `OUR` / `BEN`), `debtorViban`, and `scheduledDate` + `frequency` for scheduled/recurring. `amount` must be above zero. P2P transfers are detected automatically from the destination identifiers. Send an [`Idempotency-Key`](#idempotency) header so a retry can't double-send. ```json { "amount": "150.00", "purpose": "PP001", "beneficiaryId": "ben_4b8e1c9d", "reference": "Invoice 1024", "chargeBearer": "SHA" } ``` A payment refused for a banking limit with `reviewable: true` can be re-sent with `limitReview: { "note": "…", "documents": [ … ] }`, exactly as the customer would: it is measured and held on the account's owner, and the review records you, with your role, as the one who gave the reason. Upload the documents first on `POST /v1/customers/{customerId}/limit-review-documents`, and send `documents` (`[]` when there are none) to make the re-send the review's whole submission; left out, the documents can follow once, on the review. See [Transaction limits and limit reviews](#transaction-limits-and-limit-reviews). - `GET /v1/customers/{customerId}/accounts/{accountId}/payments/fee?amount=150.00` — preview the fee; returns `feeAmount`. Accounts without fee preview respond **`503 SERVICE_UNAVAILABLE`** — `accounts[].payments.feePreview` in `GET /v1/capabilities` tells you in advance — so branch on `503`, and don't treat it as a transient outage to retry. This was a `POST` with the amount in the body on the old surface. On `/v1` it is a `GET` with `amount` as a **query parameter**. - `GET /v1/customers/{customerId}/accounts/{accountId}/scheduled-payments` — the account's scheduled and recurring payments. `GET /v1/customers/{customerId}/scheduled-payments` gives the same across all the customer's accounts. - `DELETE /v1/customers/{customerId}/accounts/{accountId}/scheduled-payments/{scheduleId}` — cancel one. - `POST /v1/customers/{customerId}/accounts/{accountId}/payments/international` — an international (SWIFT / cross-currency) transfer. ## Beneficiaries - `POST /v1/customers/{customerId}/beneficiaries` — create a payee. Body: `accountId` (which of the customer's accounts the payee is linked to), `name`, and an `account` object matching the program's rails (UK `{ type: "uk", sortCode, accountNumber }`, EU `{ type: "iban", iban, bic }`). Optional `isCorporate`, `address`. Customer sessions must also send a `confirmation` object (step-up). **Management and SSO calls skip the step-up** and can omit it. Accepts an [`Idempotency-Key`](#idempotency) header. - `GET /v1/customers/{customerId}/beneficiaries` — list payees; paginate with `limit` and `nextToken`. - `GET /v1/customers/{customerId}/beneficiaries/{beneficiaryId}` — one payee. - `DELETE /v1/customers/{customerId}/beneficiaries/{beneficiaryId}` — remove a payee. Blocked while pending, scheduled, or batch payments still reference it. The old path carried an `accountId` and a trailing `/delete` (`DELETE /customers/{customerId}/accounts/{accountId}/beneficiaries/{beneficiaryId}/delete`). The `/v1` path is customer-scoped with no `/delete` suffix. ### Name check (CoP / VoP) `POST /v1/beneficiaries/verify` — check a payee's name against the account before you save or pay them. UK uses Confirmation of Payee, EU uses Verification of Payee; the endpoint picks the scheme from the account you send. ```json { "beneficiary": { "name": "Ada Lovelace" }, "account": { "type": "uk", "sortCode": "040506", "accountNumber": "87654321" } } ``` For EU send `{ "type": "iban", "iban": "…", "bic": "…" }` instead. Send `bic` with every IBAN; it must belong to the IBAN's bank. For a UK business payee, add `"isCorporate": true` to `beneficiary`. Returns `outcome` (`MATCH`, `CLOSE_MATCH`, `NO_MATCH` or `UNAVAILABLE`), `scheme` (`COP` or `VOP`), `suggestedName` on a close match, and the scheme's `reasonCode`. Read `outcome`, not `match`: `match: false` covers both `NO_MATCH` and `UNAVAILABLE` (the payee's bank couldn't check it). Neither covers errors. An upstream failure throws instead: a `400` for a rejected request, a `422` `NAME_VERIFICATION_API_ERROR` when the verification provider is down. Handle those separately, or a provider outage will look to your users like a failed payee. ## Transaction limits and limit reviews All nine of the customer's limits routes answer an operator too, on the customer's own routes, so you can act for the customer: | Route | What it does | Permission | |---|---|---| | `GET /v1/customers/{customerId}/transaction-limits` | The customer's limits, usage and headroom | `programs.transactionLimits.view` | | `PUT /v1/customers/{customerId}/transaction-limits` | Set the customer's own limits | `programs.transactionLimits.update` | | `GET /v1/customers/{customerId}/limit-reviews` | The customer's open limit reviews | `programs.limitReviews.view` | | `GET /v1/customers/{customerId}/limit-reviews/{reviewId}` | One review, as the customer sees it | `programs.limitReviews.view` | | `POST …/limit-reviews/{reviewId}/submission` | Give the customer's reason, or add documents to it | `programs.limitReviews.update` | | `POST …/limit-reviews/{reviewId}/documents` | Get somewhere to upload a document | `programs.limitReviews.update` | | `POST …/limit-reviews/{reviewId}/cancel` | Withdraw a payment waiting for review | `programs.limitReviews.update` | | `POST …/limit-reviews/{reviewId}/decline` | Ask for money arriving to be sent back | `programs.limitReviews.update` | | `POST /v1/customers/{customerId}/limit-review-documents` | Get somewhere to upload a document for a payment you will re-send with a reason | `programs.limitReviews.update` | Access comes from your role's claims, not its name: the permission is checked by the authorizer and again by the route, and a role without it gets `403`. Send `?programId=`, as on every call here. - **Admins and other operator roles** must name a program your token's `programs` claim allows. - **Custodian (guardian-bound) roles** are served only for a customer whose application in that program is bound to the custodian. - A token with no resolved access scope, for example a `CUSTODIAN_ADMIN` with no custodian binding, gets a `403` (`FORBIDDEN`): it is refused for who the caller is. - A customer outside that bound is a `404`, not a `403`. The customer is read within the program you name only, so a customer of another program gets a `404` on the limits and on a review, and an empty list of open reviews. - A customer with no limit settings in the program you named is a `404` on the limits read too (`No transaction limits for that customer`) when that program measures transactions: from an operator, that is a wrong id or program, or a customer whose role should have limits but has none. A customer whose role starts on no limits on purpose (no account of its own, for example a cardholder) gets the `200` with `limits: null` instead. So does a customer whose transactions aren't measured (the program isn't on limits or isn't counting, or their profile has no configured limits), as the customer's own token does. - Uploading a document for a payment, naming a program the customer has no application in is a `404`. A review read is the customer's view (never compliance's internal reason), with a short-lived `downloads` link (up to 15 minutes) for each document the customer uploaded. Read it again for fresh links. It names the account (`accountId`) and who paid whom as the customer sees it: `payer` and `payee` by name, with the IBAN or account number masked to the last four characters, and the payment's `reference`. **Acting on a review.** The rules are the customer's: a review takes the customer's reason once and their documents once, with the reason or in one later `/submission` with `documents` and no `note` (more are `409 LIMIT_REVIEW_DOCUMENTS_ADDED`). A payment re-sent with `limitReview.documents` (uploaded first on `…/limit-review-documents`, and even an empty list) is the review's whole submission: nothing more can be added to it. The review's history records you as the one who acted, with your role (`actor` `{ "type": "STAFF", "role": … }`), and compliance sees it in their view of the review, along with when documents followed the reason (`documentsAddedAt`); their emails say back office acted, for the customer. Cancelling or declining needs a `reason` (`{ "reason": "…" }`, `400` without it), kept on the history. An operator token with no user identity can't act (`404`). Deciding a review stays with compliance. **Setting the customer's limits.** A `reason` is required (`400` without it) and is kept on the change history with your identity and role. Raising or removing a limit needs **your own** step-up in `confirmation`, never the customer's, with no exemption: your TOTP with your own access token (`{ "method": "totp", "totp": "…", "accessToken": "…" }`), or a passkey assertion (`{ "method": "passkey", "passkeySession": "…", "assertion": "…" }`, the assertion as a JSON string), challenged with `POST /v2/auth/passkey/challenge` on your operator token. A PIN is not accepted (`422 SCA_MISSING`). Lowering a limit needs no step-up. When something actually changed, the customer is told in-app (`TRANSACTION_LIMITS_CHANGED`); there is no email. ### The customer's limit profile A customer's limits come from a **limit profile** (`SMALL`, `MEDIUM` or `LARGE` as standard) for their **category** (`CONSUMER`, `CORPORATE` or `PAYROLL`). They get their onboarding role's default when their application is created (`assignedBy: "SYSTEM_DEFAULT"`), so they have one throughout the review, before any account exists. Compliance can move them to another profile: | Route | What it does | Permission | |---|---|---| | `GET /v1/limit-profiles` | The profiles to pick from: the global ones (`programId: "GLOBAL"`), with the program's own replacing any of the same category and name | `programs.limitProfiles.view` | | `PUT /v1/customers/{customerId}/limit-settings` | Move the customer to another profile | `programs.limitSettings.update` | Send `?programId=` on both. On either route, a token with no resolved access scope gets a `403` (`FORBIDDEN`). The PUT takes `{ "limitProfile": "LARGE", "reason": "…" }`: - `limitProfile` must name a profile in the list for the customer's category, exactly as listed (`409 LIMIT_PROFILE_NOT_CONFIGURED` otherwise). - `reason` is required (1 to 500 characters) and kept on the change history with your identity and role. - `category` is optional. Changing it is for a `SUPER_ADMIN` with access to every program (`403` for anyone else). - A `403` (`FORBIDDEN`) also comes back when your token carries no user identity to record the change against. - The customer's own lower limits are kept. The same profile again answers `Already on that profile` and writes nothing. A customer with no limit settings in the program is a `404`. - Custodian (guardian-bound) roles can't use either route. The customer isn't notified. **At application approval.** Approving an application in review (`POST /v1/applications/{applicationId}/risk/decision` with `{ "action": "APPROVE", "reason": "…" }`) takes no limits. To approve a customer on another profile than the default: 1. Read the current profile from `GET /v1/customers/{customerId}/transaction-limits` (`data.limits.category` and `data.limits.limitProfile`). Use the application's `customerId`; while the application is in review it equals its `applicationId`. 2. Approve the application as today. 3. If compliance chose another profile, call `PUT /v1/customers/{customerId}/limit-settings`. The two calls are independent: nothing links them, and neither undoes the other. If the profile change fails after the approval, the customer is approved on the default profile, so retry the profile change alone, never the approval. Approving never resets the profile (the default is written only once, when the application is created), so it can also be changed during the review or at any time after. `limits: null` on the read means there is nothing to pick: the program doesn't measure this customer's transactions, or their role starts on no limits on purpose (a cardholder or an employee, for example). A `404` means the read found no limit settings for them, as above. ## Batch payments The same single-endpoint, action-driven flow as the customer API — `POST /v1/customers/{customerId}/batch-payments`: **Every action requires the full `payments` array** — including `initiate` and `submit`. Omitting it is a `400`; the challenge alone is not enough. 1. `action: "verify"` — validates items and runs the name check (CoP for UK, VoP for EU). Large batches verify **asynchronously**: poll `GET /v2/batch-payments/verify/{requestId}` until it completes. v2 returns every money figure as a decimal string; `/v1/…/verify/{requestId}` still works unchanged. 2. `action: "initiate"` — returns the `scaChallenge` (`hash`, `nonce`, `timestamp`). 3. `action: "submit"` — sends the batch with the challenge and `confirmation`. Reuse the same `idempotencyKey` **body field** across retries of this step; batch payments take the key in the body rather than the header. There is a fourth action, `passkey-challenge`, used to obtain a passkey step-up for `submit`. **While verification is still running, `GET /v2/batch-payments/verify/{requestId}` returns HTTP `202` with `success: false` and `error_code: "VERIFICATION_PROCESSING"`.** A client that throws on any `success: false` will abort the poll instead of continuing. Treat `202` / `VERIFICATION_PROCESSING` as "keep polling". On completion the results are at `data.payments.validPayments` and `data.payments.invalidPayments`. A verification is readable only in the program and environment it was made in: a guardian-bound role reads only its own custodian's batches, any other operator any batch in the program, and only in a program your token allows. Anyone else, and an unknown, withdrawn or expired `requestId`, gets `404` (`Verification not found`). A `verify` with an empty `payments` list is a `400`. Management callers acting across several of their customers use `POST /v1/batch-payments` with the same body. Track batches with `GET /v1/batch-payments` (query `limit`, `nextToken`, `lookbackDays`) and `GET /v1/batch-payments/{batchId}` — management roles see all items; customer sessions only their own. ## Idempotency Four endpoints on this page take an idempotency key — create payment, international payment, create beneficiary, and batch submit. (Opening an account does not.) The key must be a **UUID** in all cases, but there are two different mechanisms behind it. ### Payments, international payments, beneficiaries Send an **`Idempotency-Key` header** (preferred; an `idempotencyKey` body field is accepted as a fallback). The resource's id is derived from the key and scoped to the customer, so two customers reusing the same key never collide. | Situation | Result | | --- | --- | | Same key, same parameters | The **existing** resource is returned. Nothing is created or sent twice. | | Same key, different *hashed* parameters (see below) | `400 Idempotency-Key was already used with different parameters` | | Same key while a payment is still in flight | `409 IDEMPOTENT_REQUEST_IN_PROGRESS` (payments only — see below) | | No key sent | No protection — a retry creates a second resource. | Two limits worth knowing before you rely on this: - **The mismatch check hashes a subset of the request, not all of it.** Payments hash `amount`, `accountId`, `beneficiaryId`, `currency`, `paymentRef` and `purpose` (plus `scheduledDate` / `frequency` for scheduled payments); beneficiaries hash `name`, `accountNumber`, `iban`, `sortCode`, `bic` and `accountId`. Changing a field outside that set — `chargeBearer` or `debtorViban`, say — and reusing the key **silently replays the original** instead of returning `400`. Use a fresh key when you change the request. - **Only payments reserve the key up front.** Beneficiary create is an exists-then-compare with no reservation, so two concurrent creates with the same key both proceed. The replay check also runs *after* the step-up, so a keyed retry on a customer session still needs a fresh confirmation. A payment left in `FAILED` is re-run on retry rather than replayed. ### Batch submit Batch payments take `idempotencyKey` as a **body field**, and the mechanism is different: it is not a replay key, so a second submit never returns the first response. What sets the batch's ids depends on how you submit: - **Paying a draft** (`POST /v1/batch-payments/submit`, or any `submit` sent with `batchId`): the draft's `batchId` sets the batch and every `batchItemId`, not the key. A second submit of the same draft gets `409 IDEMPOTENT_REQUEST_IN_PROGRESS` while the first is still running and has not yet funded it, whether or not a key is sent, and `400` (`Batch is no longer a draft awaiting submission`) once it has. If a submit response is lost, don't resend: fetch the batch with `GET /v1/batch-payments/{batchId}`. - **The single endpoint called without `batchId`** (`POST /v1/batch-payments` with `action: "submit"`): the key derives the `batchId` and every `batchItemId`. A second submit with the same key gets `409 IDEMPOTENT_REQUEST_IN_PROGRESS` while the first is still running; after that it re-runs against the same batch, and an item an earlier attempt already ran is not run again. Parameters aren't compared, so a reused key with a different list of payments is not rejected: its rows are matched to the first batch's by position. Without a key the ids are random, and a retry creates a second batch. Card issuing takes a key too; see [Card operations](/cards-operations#idempotency), which also covers the one endpoint where a key does **not** make a retry safe. For oversight across customers — searches and exports — see [Search](/search). The batch endpoints have interactive **Try it** pages under [Batch payments](/api-reference/batch-payments/batch-action-verify-initiate-submit) in the API Reference. ================================================================================ # Card operations Source: https://api-management-docs.orenda-apps.com/cards-operations/ > Manage a customer's cards: issue, activate, control status, limits, and balance. Card endpoints live under `/v1/customers/{customerId}/accounts/{accountId}/cards…`. Every call needs the **`programId` query parameter** — `?programId=abc` — on top of the operator's bearer token. Your operator role bounds *which* programs you may act on; the program itself is chosen by the request. The environment comes from your token — an operator session picks it at sign-in (`x-sandbox: true` on login), a service user's credential is fixed to one — and a `sandbox` query parameter here is ignored. These are the **`/v1` routes**. An older, unprefixed surface (`/customers/{customerId}/accounts/{accountId}/cards…`, with `GET`-based status actions) still answers, but it is being retired — build against `/v1`. ## The lifecycle `POST …/cards`. The accepted body **depends on the program's card setup**, and the schemas are strict — an unrecognised field is a `400`, not a silent ignore. Two shapes exist: | Card setup | Body | | --- | --- | | Named products | `cardType` **or** `cardName` (exactly one), plus optional `nickName`. Some programs also accept `limitGroupId`, `prepaid` and `forCustomerId`; others reject them. | | Typed products | `cardType` **required** (no `cardName`), plus optional `nickName`, `limitGroupId`, `prepaid`, `forCustomerId` | `GET …/cards/options` lists the products the account can issue. If `limitGroupId`, `prepaid` or `forCustomerId` come back as a `400`, the program's card setup does not accept them — do not retry with them. `forCustomerId` has a second meaning on programs with [cardholders on a corporate](/invite-customer#cardholders-on-a-corporate): when the customer you name is a **cardholder** of the corporate in the path, the card becomes theirs — embossed with their name and visible only to them (see [Issue cards](/issue-cards#step-3--order-the-card)). For any other customer it keeps the cardholder meaning above; nothing changes for existing integrations. Send an [`Idempotency-Key`](#idempotency) header so a retry can't issue a second card — issuing is the one card operation you cannot cheaply undo. ```json { "cardType": "VIRTUAL", "nickName": "Marketing spend" } ``` Returns `{ id, customerId, accountId, cardType, status, provider, nickName }`. `POST …/cards/{cardId}/activate` — some providers want the last four digits as a `truncatedPan` query parameter. `POST /v2/…/balance` — see [Balance](#balance) below. ## Idempotency Two card endpoints accept an idempotency key, and they behave differently — the distinction matters, so don't assume the second one protects you the way the first does. Send it as the **`Idempotency-Key` header** (preferred) or as an `idempotencyKey` field in the body. Keys are scoped to the customer, so two customers reusing the same key never collide. ### `POST …/cards` — full replay protection The key must be a **UUID**; anything else is rejected with `400 Idempotency-Key must be a UUID`. The card's id is derived from the key, so: | Situation | Result | | --- | --- | | Same key, same parameters | The **existing card** is returned. No second card is issued. | | Same key, different `accountId` / `cardType` / `cardName` / `nickName` | `400 Idempotency-Key was already used with different parameters` | | Same key while the first request is still creating | `409 IDEMPOTENT_REQUEST_IN_PROGRESS` | | No key sent | No protection — a retry issues a second card. | **This does not apply to the prepaid card flows.** On the prepaid-master and prepaid child-card paths, creation returns before the idempotency record is written and the card is stored under a fresh random id, so a retry with the same key **issues a second card**. If your program is on either of those, do not rely on the key here — check whether the card exists before retrying. ### `POST …/balance` — replay-safe Load/unload claims the key **before** it calls the card provider, so a retry with the same key returns the original result rather than moving the funds a second time. The key must be a UUID (a non-UUID is a `400`), and it is scoped to the customer the account belongs to. Failures split on whether the money could possibly have moved: - **Rejected before the provider is called** — a validation error, an inactive account, not enough balance. Nothing happened, so the key is **released** and is immediately reusable: fix the request and retry with the same key. - **Failed in any way we can't prove happened before that** — a timeout, a dropped connection, a rejection from the provider itself, or any error we don't recognise. Only the pre-dispatch rejections above release the key; everything else fails closed. The outcome is genuinely unknown, so the claim is pinned and every retry under that key returns `409 IDEMPOTENT_REQUEST_IN_PROGRESS`. On this path that is **not transient**: it persists until the movement is reconciled, or until the key expires — expiry is best-effort and takes at least 48 hours. The two `409` cases look identical on the wire, so retry with backoff for ~30s and then treat the key as pinned. On the pinned path, **do not retry unboundedly and do not rotate to a fresh key.** A fresh key bypasses the protection and loads the card a second time. Check the card balance and transactions to establish what actually happened, and escalate if it's unclear. No other card endpoint reads an idempotency key. The status actions, PIN reset and limit changes are *state-setting* rather than resource-creating, so a retry converges on the same end state — but note it does re-issue the call to the card provider rather than short-circuiting. ## Read | Endpoint | Notes | | --- | --- | | `GET …/cards` | List the account's cards. | | `GET …/cards/{cardId}` | One card. | | `GET …/cards/options` | The card products/formats the program allows on this account. | | `GET …/cards/{cardId}/transactions` | The card's transactions. | **Management tokens get the card record verbatim on `GET …/cards` and `GET …/cards/{cardId}` — including `cardNumber`, `expiryDate` and `cvv` where the provider returned them.** Only customer sessions get the trimmed view (masked PAN, `cvv: "***"`). Treat these two responses as carrying full card data: don't log them, and don't forward them to a browser. The `…/secure` endpoints below exist so that revealing card details can be gated and stepped-up separately — but they are not the *only* way full data reaches a management caller. ### All of a program's card products `GET /v1/cards/options?programId=abc` lists **every** card product configured for the program, not just the ones a single account can issue. Use it to build a product picker or a configuration view, then filter on the client. ```json { "success": true, "data": { "programId": "abc", "sandbox": false, "options": [ { "name": "DESIGN_CONSUMER_1_VIRTUAL", "description": "Card Design Option 1 (virtual)", "type": "VIRTUAL", "cardCountry": "GBR", "provider": "provider-a", "region": "UK", "tier": "default", "accountType": "CONSUMER", "config": { … } } ], "filters": { "tiers": ["default"], "regions": ["UK"], "providers": ["provider-a"], "accountTypes": ["CONSUMER"], "types": ["VIRTUAL"], "cardCountries": ["GBR"] } } } ``` - `options` has one entry per product per tier, region, provider and account type, so the same `name` can appear more than once. - `filters` lists the distinct values of each of those fields, sorted, for building filter controls. - `provider` identifies the card provider that issues the product. Treat it as an opaque value: filter on it, do not hard-code the set. - `region` is the region the product applies to (today `UK` or `EU`). - `tier: "default"` is the fallback: an account whose tier has no products of its own is offered the `default` ones. - `description` is `null` when the product has none. - `config` is the card provider's configuration for the product: the identifiers a card is issued under when `POST …/cards` names this product as `cardName` (a `limitGroupId` on the request takes precedence). A card ordered by `cardType` alone uses the program's default configuration, which can differ. Its keys depend on `provider`. Every product from the same provider has the same keys, and a key the product doesn't set is `null`. Values may be strings, numbers or objects (an object maps names to ids), and a key's type can differ between providers. `config` itself can be `null` on any product, so handle that case. Use it for display and support. Don't build logic on its keys. - On programs with named products, `name` is what `POST …/cards` takes as `cardName`. - A program with no card products returns empty `options`. A program outside your operator role is a `404`. Custodian (guardian-bound) roles can't use this route. ### Secure details and PIN The dedicated reveal endpoints, each separately permissioned: - `GET …/secure-key` — the encryption key for the secure-details response. Note this hangs off the **account**, not a card. - `POST …/cards/{cardId}/secure/passkey-challenge` then `POST …/cards/{cardId}/secure` — the step-up + reveal pair for full card details. - `GET …/cards/{cardId}/pin` — the card PIN. ## Status actions All four are `POST` with no body. Each returns the card's new status. | Endpoint | Notes | | --- | --- | | `POST …/cards/{cardId}/block` | Reversible with `unblock`. | | `POST …/cards/{cardId}/unblock` | Returns the card to `ACTIVE`. | | `POST …/cards/{cardId}/activate` | Optional `?truncatedPan=` on some providers. | | `POST …/cards/{cardId}/cancel` | Permanent — cannot be undone. | On the retired unprefixed surface these were `GET` requests. On `/v1` they are `POST`. If you are porting an old integration, change the method as well as the path. ## PIN and limits - `POST …/cards/{cardId}/pin/reset` — body `{ "newPin": "1234" }`, 4 to 6 digits. - `POST …/cards/{cardId}/pin/unblock` — clears a PIN-retry block. - `PATCH …/cards/{cardId}/limits` — the fields depend on the program's card provider: send `limitGroupId` + `cardType` to move the card to an existing limit group, or `limit` + `type` (`DAY`, `WEEK`, `MONTH`, `YEAR`, `LIFETIME`) to set an amount directly. ```json { "limitGroupId": "lg_123", "cardType": "VIRTUAL" } ``` ## Balance Only on programs whose card provider holds a **separate card balance** (the managed / prepaid flow — see [Issuing cards for your users](/issue-cards)). Both operations are **account-scoped**: they act on the account's balance at the card provider, which exists from account provisioning and can hold funds with no cards issued. Load/unload has no card id in the path because there is nothing for one to identify. - `POST /v2/customers/{customerId}/accounts/{accountId}/balance` — body `{ "amount": "100.00", "action": "LOAD" }`; `UNLOAD` moves funds back to the account. `amount` must be exact in the account's currency: more decimals than it allows is a `400`, never rounded. Returns `success`, `availableBalance`, `transactionId`, `message`, with `availableBalance` as a decimal string (`"100.00"`) in the account's currency. - `POST /v2/customers/{customerId}/accounts/{accountId}/cards/{cardId}/balance/sync` — re-reads the balance from the provider and reconciles it. Returns `success`, `availableBalance`, `message`, with `availableBalance` as a decimal string. A balance that can't be stated exactly is left out rather than rounded. On sync that includes any currency without two decimal places. `/v1/…/balance` and `/v1/…/cards/{cardId}/balance/sync` still work and are unchanged. They take the same body and return the same fields, with `availableBalance` as a number. v1 load/unload doesn't check `amount` against the currency's decimals; it passes it to the card provider as sent. ## Shared cards and cardholders For programs that let a second person hold a card on the account: | Endpoint | What it does | | --- | --- | | `POST …/cardholders` | Create a cardholder on the account. | | `POST …/cards/{cardId}/invite` | Invite someone to an existing card. | | `GET …/cards/invites` | List outstanding invites. | | `DELETE …/cards/invites/{invitedCustomerId}` | Revoke an invite. | | `POST …/cards/auth/confirm` | Confirm a holder authentication. | ## 3DS - `GET /v2/customers/{customerId}/3ds` — recent 3DS challenges for the customer, with `amount` as a decimal string and an alpha-3 `currency`. `/v1/…/3ds` still works unchanged, with `amount` in the card provider's own unit. - `POST …/cards/3ds/confirm` — confirm a challenge. ================================================================================ # Batch payments Source: https://api-management-docs.orenda-apps.com/batch-payments/overview/ > Pay many customers in one batch, from the accounts you are responsible for. Batch payments let a management operator send many payments in one go, drawing on the accounts of any customers they are responsible for. It is a multi-step flow across two endpoints — you **verify** the items on one, then **initiate** and **submit** on the other. ``` POST /v1/batch-payments/verify ← check the items, create the batch POST /v1/batch-payments/submit ← initiate, then pay ``` The two are separate so that preparing a batch and paying one can be granted independently: an operator can be allowed to prepare and check a batch without being able to move the money. Items can be sent as JSON, or you can post a **CSV or pain.001 file** and let Orenda parse it — see [Sending a file](#sending-a-file). These are the **multi-customer** forms — no `customerId` in the path. Each item's payer account is resolved globally and authorised **per item** against you: an account you are not responsible for, including an unassigned one, is rejected with `401`. A management role that resolves to no customers is rejected the same way. Single-customer variants exist at `/v1/customers/{customerId}/batch-payments/…` and behave identically apart from being pinned to that one customer. ## Access Verifying a batch and paying one are gated separately, so an operator can be given the ability to prepare and check a batch without the ability to pay it. Orenda configures that when your role is set up. This is not a complete separation of duties today. The older unsuffixed batch routes remain available and accept every action, including `submit`, and the access that lets an operator read batches also reaches those routes — so an operator who can read batches can still pay through the older route. Closing that is follow-up work. If you need a strict prepare-but-cannot-pay role, talk to us before relying on it. ## The flow ```mermaid flowchart TD V["POST /v1/batch-payments/verify
→ requestId + batchId"] --> P["GET /v2/batch-payments/verify/{requestId}
poll until done"] P --> E{"rows to fix?"} E -- yes --> V2["re-verify with the same batchId"] --> P E -- no --> I["POST /v1/batch-payments/submit
action: initiate + batchId"] I --> S["POST /v1/batch-payments/submit
action: submit + batchId + confirmation"] S --> T["GET /v1/batch-payments/{batchId}
track each item"] ``` 1. **Verify** — send the items. Each is validated and the payee name is checked (Confirmation of Payee in the UK, Verification of Payee in the EU). You get a `requestId` **and a `batchId`**, and a **draft** batch is created. 2. **Check the result** — poll `GET /v2/batch-payments/verify/{requestId}` until it is no longer `PROCESSING`. Each row comes back valid or invalid, with fees, the payee name-check response, and the source account's live balance, every money figure as a decimal string. `GET /v1/…/verify/{requestId}` still works unchanged, with the figures as numbers. 3. **Fix and re-verify** *(optional, repeatable)* — send the corrected items back to `/verify` **with the same `batchId`**. The draft is updated in place; you do not accumulate one draft per edit. 4. **Initiate** — `POST /v1/batch-payments/submit` with `action: "initiate"` and the `batchId`. Returns the total, the currency, and an `scaChallenge`. 5. **Submit** — the same route with `action: "submit"`, the `batchId`, and a `confirmation` carrying the challenge. Returns the `batchId` you already hold. 6. **Track** — `GET /v1/batch-payments/{batchId}` to watch each item move through `QUEUED` → `SUCCESS` or `FAILED`. ## Sending a file If your system already produces a payment file, send it as-is instead of mapping it to `payments` yourself. `verify` accepts a `file` in place of the array: ```json POST /v1/batch-payments/verify { "action": "verify", "file": { "content": "", "format": "pain001", "filename": "Export-CLRBNL2A-11175.xml" } } ``` | Field | Required | Description | | :---- | :------- | :---------- | | `content` | **Yes** | The file as text, in a JSON string. Not base64 — CSV and XML are text, and escaping them into JSON costs a couple of percent where base64 costs a third. | | `format` | No | `pain001` or `csv`. Omitted, it is detected from the content; a value you send always wins. | | `filename` | No | Recorded against the request. It has no effect on parsing — the extension is never trusted. | Send **either** `payments` or `file`, never both: a request carrying two versions of what to pay is refused rather than resolved by precedence. The response is identical either way — a `requestId` and a `batchId` — and so is everything after it. A file is parsed into exactly the items you would have sent by hand, then verified, drafted, initiated and submitted through the same path. From step 2 onward there is no difference at all. There is no separate upload endpoint and no size negotiation. A batch is capped at **1000 payments**, which puts a full file at roughly a megabyte of text — comfortably inside the request limit. Send it inline. `content` is capped at **4,000,000 characters**; a file over that, or one holding more than 1000 payments, is rejected with `400` before it is parsed. A file is accepted on the **`/verify` route only**, and only for `verify`. The older unsuffixed batch routes do not take one — they are live and being retired, so they stay frozen. Sending items as `payments` still works everywhere it did before. ### What we accept **pain.001** — the ISO 20022 customer credit transfer initiation message. We do not read the namespace, so `.03` through `.09` all parse on the strength of their element names; treat anything outside that range as untested rather than supported. Namespace prefixes, `BIC` and `BICFI`, and all three `ReqdExctnDt` forms — bare, `Dt` and `DtTm` — are handled. One `PmtInf` block may carry many payments or exactly one; its payer and execution date apply to every payment inside it. We read `Cdtr/Nm`, the creditor `IBAN` (or `Othr/Id` for a domestic account number), `CdtrAgt` BIC and — for UK payments — the sort code from `CdtrAgt/FinInstnId/ClrSysMmbId/MmbId`. That member id is treated as a sort code **only** when `ClrSysId/Cd` says `GBDSC`, or when no scheme is named and the payee has no IBAN. `FinInstnId` is a sequence, so a SEPA file may legitimately carry a BIC, an IBAN and a national clearing id together — a German export names `DEBLZ` with an 8-digit Bankleitzahl, which is not a sort code and is not read as one. The reference comes from `RmtInf/Ustrd`, joined if it repeats, falling back to `RmtInf/Strd/CdtrRefInf/Ref`. `EndToEndId` is carried through, subject to the length and charset check below. Elements we do not need — `ChrgBr`, `PmtMtd`, `BtchBookg`, `CtrlSum` — are ignored, not rejected. **camt.053 is not a payment file.** It is a statement format: it reports what has already happened on an account and carries no instruction to pay anyone. Sending one is rejected. The file you want is pain.001. **CSV** — the published batch template. The header row is found by looking for the `Payee Name` column, so title rows above it are fine. Quoted fields are honoured, so a payee name containing a comma will not shift the rest of the row. `Amount` must be **dot-decimal** (`1234.56`) and must not contain an unquoted comma. A decimal comma (`92,34`) or a thousands separator splits the cell in two and shifts every later column — quote the field if it has to contain one. Columns are matched by name, so we cannot see a positional shift directly. Any row whose column count differs from the header raises a `warnings` entry naming the row — **read those before submitting**, because a shifted amount can otherwise verify clean at the wrong value. `Scheduled Date` must be `YYYY-MM-DD` or `YYYY/MM/DD`; a single-digit month or day is padded for you. Anything else — `01/09/2026`, `n/a`, a free-text note — is passed through untouched and comes back as an invalid row rather than being guessed at, because `01/09` is a different day in different countries and guessing moves money on the wrong one. An **empty** cell is fine and means "send it now". ### How rows are treated A file is **translated, not judged**. Every row in it becomes a payment, and validation happens where it always has — in the verification step you poll for. That matters most when a row is wrong. A payee with no account number does not disappear from the batch; it comes back in `invalidPayments` with the reason. You always get out as many rows as you put in, so a total you can reconcile against your own file. A few behaviours worth knowing before you send a file that was sitting on a queue for a while: - **A past `ReqdExctnDt` is kept, not corrected.** We will not quietly move the date to today and pay it — a date nobody chose is worse than a rejection you can see. But be precise about where you will see it: the draft's `expiresAt` is `min(now + 7 days, end of the earliest scheduled date)`, so a past date makes it **already elapsed on the verify response itself**. The draft is unusable from the moment it is created, and `initiate`/`submit` will then fail on draft expiry — an error that does not mention the date. If a `200` from verify comes back with an `expiresAt` in the past, a stale execution date is why. - **`InstdAmt/@Ccy` is not applied.** Payments settle in the currency of the payer account. The instructed currency is read only to warn you when one file mixes several. - **`EndToEndId` is checked against what the rails accept** — 2 to 35 characters, and a restricted character set. An id outside that is dropped, with a warning, rather than rewritten: it is your reconciliation handle, so a replacement we invented would be worse than none. Re-uploading the same export reuses its ids, which a provider may reject as duplicates — change them if you are re-sending a corrected file. ## Warnings When the parser could not carry something across, the verify response includes a `warnings` array alongside `requestId` and `batchId`: ```json { "requestId": "…", "batchId": "…", "expiresAt": "…", "warnings": [ "Row 12: ignored unrecognised Payee AccountType \"TRUST\" — expected CONSUMER or CORPORATE.", "Payment 4: dropped EndToEndId \"…\" — must be 2 to 35 characters." ] } ``` These are not row rejections — the payments are still queued for verification. They tell you what the file said that we could not use. The field is **absent** when there is nothing to report, so a clean file's response is exactly what a JSON one returns. ## Why the payload is sent more than once `verify`, `initiate` and `submit` each carry the full `payments` array. That is deliberate: the operator can edit rows between steps, so the batch is never assumed to be unchanged. The `batchId` is what ties the calls together — it identifies which batch you are working on, not what it contains. The draft is an **anchor, not a copy**: it records that a batch is prepared and awaiting submission, and points at the verification payload. The rows you finally submit are the ones that get paid. This is also why a **file is accepted at `verify` only**. `initiate` and `submit` take `payments`, and what you send them is the `validPayments` you polled for — the rows that came back checked, minus anything you chose to drop. Re-sending the file there would mean paying rows that never passed verification. ## Listing batches ``` GET /v1/batch-payments ``` Returns the batches you can see, newest first, paginated by `limit` and `nextToken`. Keep paging while `nextToken` is present — a short or empty page is not the end of the list, because abandoned `FUNDING_FAILED` batches are filtered out inside the query. ### Item counts and totals ``` GET /v1/batch-payments?includeItemSummary=true ``` Add `includeItemSummary=true` and every batch carries `itemsStatus` — how many of its payments are `completed`, `pending`, `processing` and `failed` — and `totalAmount`, the sum of the item amounts. Leave it off and both fields are absent. It is opt-in for **every** caller, management included, and open to customer callers on their own batches: the summary is a read of the batch's own data, not a privilege. It is opt-in because the counts are computed from the item rows: each batch on the page is read in full, so a large page of large batches is a lot of reading. Ask for the summary on the page sizes you actually display, and a list you only want the ids from pays nothing. Only the exact string `true` turns it on. `1`, `TRUE` and `yes` all leave the summary out, so a typo omits a field rather than silently changing the shape of the response. `customerName` and `custodianName` are a **separate** enrichment and remain management only. A customer asking for the summary gets their own batch totals, not the custodian names attached to them. ## Drafts and expiry A draft is created at verify and lives until it is paid or expires. `expiresAt` is **7 days**, or the end of the **earliest `scheduledDate`** in the batch, whichever comes first. That second bound matters: a batch containing a scheduled date that has passed is rejected at submit **as a whole**, not row by row, so such a draft is already unusable — expiring it makes that visible rather than a surprise at payment time. An expired draft still appears in the list, marked `EXPIRED`, because the record that a batch was prepared and never sent is worth keeping. It can no longer be submitted, and opening it returns the draft without its payload — the verified items are held on their own retention clock. To recover one, verify the items again; that creates a new draft with a fresh `batchId`. ## Finding drafts ``` GET /v1/batch-payments?drafts=true ``` Lists batches that have been verified but not yet paid, newest first, with the same pagination as the normal listing. Omit `drafts` and you get submitted batches exactly as before — a draft never appears in the default list. A draft appears here as soon as verification is **requested**, not when it finishes. Opening one before the check completes returns the draft with `payloadStatus: "PENDING"` and no `payments` — see below. Each entry gives the `batchId` to submit with, a `status` of `DRAFT` or `EXPIRED`, `paymentsCount`, `expiresAt` and `createdDateTime`. Drafts have no item rows until they are paid, so `itemsStatus` and `totalAmount` are **absent** — not zero, which would render a £50,000 draft as a £0.00 one, and they stay absent even with `includeItemSummary=true`. `paymentsCount` is what a draft has instead. Open one with `GET /v1/batch-payments/{batchId}` — for a draft the response carries a `draft` object holding the verified `payments`, split into `validPayments` and `invalidPayments`, so a reviewer can see exactly what was checked before deciding to pay. Alongside them, `payloadStatus` says why `payments` is or is not there: `AVAILABLE` when it was read, `PENDING` while verification is still running (or if it failed), and `UNAVAILABLE` once the draft has expired and the payload has aged out. Listing drafts is a read, so it is scoped more broadly than paying one: a program-wide management role sees every draft in the program. Otherwise you see the drafts **prepared through the management route by your own team** — not everything belonging to the customers you are responsible for. A draft a customer prepared for themselves through the customer route stays with that customer, and opening a draft you do not own is refused as if it did not exist. A draft entry carries the same `programId` as a submitted batch, so both map onto one client type. Note that the attribute is not stored on the draft row itself — writing it would place drafts in the ordinary batch index — so it is filled in on the way out. This is what makes the two-person flow work without passing ids around outside the API: one operator verifies, another finds the draft in this list and pays it. ## Withdrawing a draft ``` DELETE /v1/batch-payments/{batchId} ``` Takes back a batch that was prepared and then thought better of. The draft is **removed** — it stops being listable and openable at once — and the verified payload behind it, the payee names, accounts and amounts checked at verification, is deleted with it. **Drafts only.** A batch that has been submitted has money in flight behind it and is not deletable through this call; it returns `409` with `BATCH_NOT_A_DRAFT`. An **expired** draft *can* be deleted — that is how lapsed drafts are cleared out of the list. **Not idempotent.** Once the draft is gone there is nothing left to recognise, so a repeated delete returns `404`, not a second success. Treat the first `200` as the answer. The `409` comes in two flavours and they call for opposite reactions: `BATCH_NOT_A_DRAFT` means the batch was submitted — terminal, never retry — while `BATCH_DELETE_CONFLICT` means it was re-verified while your delete was in flight, so re-read it and try again. A withdrawn `batchId` is free to be used again: verifying with it creates a new draft under that id. A submit already in flight for the old one still fails — the draft it needs is gone. Deleting is scoped exactly like opening: you can withdraw a draft you can open, and no more. A program-wide management role can withdraw any draft in the program; otherwise you are limited to the drafts prepared through the management route by your own team. A draft you do not own is refused as if it did not exist — a `404`, never a `403`. The permission is its own — `accounts.payments.batchDelete`, not the `accounts.payments.batch` that every read in this surface sits behind — so a role can be given the whole batch view without the ability to take back someone's prepared work. ## Step-up authentication `submit` requires a `confirmation` — a passkey, a 2FA code, or a PIN on programs that support it. The challenge is issued against **your own** signed-in identity, never the customer being paid: an operator paying on behalf of a customer authenticates with their own passkey, and the assertion is bound to that identity. For management callers the credential is resolved against the shared management pool rather than the program in the URL — which means a management passkey ceremony always resolves to production, even for a sandbox batch. Send the `Origin` header on the challenge request; it is carried into the WebAuthn ceremony and a mismatch fails verification. ## Errors worth expecting | Status | When | | :----- | :--- | | `400` | A missing `batchId` on `initiate` or `submit`; a malformed item; a scheduled date in the past — which rejects the whole batch, not the row. Also a file that cannot yield payments at all: unreadable XML, no recognisable CSV header row, a camt.053 statement, or an empty result. Sending both `payments` and `file`, or neither, lands here too, as does a `verify` with an empty `payments` list (`body.payments: At least one payment is required`). | | `401` | A payer account you are not responsible for, or a role that resolves to no customers. | | `403` | An action the route does not serve — `verify` sent to `/submit`, or a pay action sent to `/verify`. Also a role without the permission the route needs: withdrawing a draft requires `accounts.payments.batchDelete`, which is separate from the `accounts.payments.batch` the reads use, so a role that can list and open drafts can still be refused here. | | `404` | Polling a verification you may not read: one made in another program or environment, one not verified under your custodian when your role is guardian-bound, or one in a program your token does not allow. An unknown, withdrawn or expired `requestId` looks the same (`Verification not found`). Also opening or deleting a draft you do not own. | | `409` | Deleting a batch that is no longer a draft — submitted or in flight (`BATCH_NOT_A_DRAFT`; terminal, do not retry) — or one that was re-verified while the delete was in flight (`BATCH_DELETE_CONFLICT`; re-read and retry). On `submit`, another submit of the same batch is still running (`IDEMPOTENT_REQUEST_IN_PROGRESS`): this one saved and dispatched nothing, so retry shortly. | | `422` | On `submit`: step-up missing or refused (`SCA_MISSING`, `SCA_INVALID_METHOD`, `SCA_FAILED`, `SCA_EXPIRED` or `SCA_ATTEMPTS_EXCEEDED`; these replace `INVALID_TOTP` and the passkey `UNAUTHORIZED`); a payer customer over their banking limits (`BATCH_LIMIT_EXCEEDED`, with `data.reviewable` `false` and `data.breaches` — the whole batch is refused); or a payer account that cannot cover its payments and fees (`INSUFFICIENT_FUNDS`, the message names the account). Any funds already reserved are released and nothing is dispatched; a reservation that cannot be released is alerted and held until an operator frees it. A funding failure for any other reason is a `400` (`Batch funding failed: `). | | `501` | The program does not have batch payments (`not_available`). | ================================================================================ # Fees Source: https://api-management-docs.orenda-apps.com/fees/ > Read the program's fee catalog and generate fee documents. Programs charge customers from a **fee catalog**. Catalog changes are made by the Orenda team ([contact us](mailto:client.support@orenda.finance)); operators can read the catalog and produce customer-facing fee documents. ## Reading the catalog | Endpoint | What it does | | --- | --- | | `GET /fees` | The program's fee catalog. Still on the unprefixed path — there is no `/v1` equivalent yet. | | `GET /v1/fees/csv` | The same catalog exported as CSV (data URI, Excel-friendly BOM). | Both need `programs.fees.catalog.view`. That is deliberately **not** the permission a customer holds to read their own fees — these two return the whole program catalogue, including the Orenda share of each fee. The CSV columns are fixed: `id`, `region`, `accountType`, `tier`, `currency`, `paymentType`, `paymentSubType`, `feeType`, `threshold`, `fixedFee`, `percentageFee`, `orendaFixedFee`, `orendaPercentageFee` — the same field set `POST /v1/fees/csv` reads back, so a download can be edited and re-uploaded. A cell whose value would start with `=`, `+`, `-` or `@` is written with a leading apostrophe, so spreadsheets treat it as text rather than a formula. Strip that apostrophe if you parse the file yourself. In practice only `id` and `tier` can carry one — every other column is an enum or digits-only. The export pages the whole catalog. It previously stopped at DynamoDB's 1 MB read limit, so a large program's export could be silently short. A fee row is keyed by where and what it applies to: | Field | Values | | --- | --- | | `region` | `UK`, `EU`, `GLOBAL` | | `accountType` | `CONSUMER`, `CORPORATE` | | `tier` | Program-defined tier name | | `currency` | `GBP`, `EUR`, `USD`, crypto currencies, or `MULTI` | | `paymentType` | `PAYIN`, `PAYOUT`, `CUSTOMER`, `ACCOUNT`, `SCHEDULE`, `CARD`, `FEE`, `CRYPTO` | | `paymentSubType` | The rail/action, e.g. `SEPA`, `BACS`, `CHAPS`, `SWIFT`, `ATM`, `PC_SETUP`, `VC_SETUP`, `TOKENISATION`, `MONTHLY` | | `feeType` | `TRANSACTION`, `MAINTENANCE`, `SETUP` | | `fixedFee` / `percentageFee` | The charge amounts | | `threshold` | Usage band: `"N"` or `"N-M"` | ## Card Tokenisation Fee A one-off card fee for adding a card to a device wallet, for example Apple Pay, Google Pay, Samsung Pay or Garmin Pay, or any other phone or watch wallet. It is a catalog row with `paymentType` `CARD`, `paymentSubType` `TOKENISATION` and `feeType` `SETUP`; the fee APIs reject a `TOKENISATION` row with any other `paymentType` or `feeType`. - It is charged once per wallet token, when the token first becomes active. Adding the card to a phone and a watch is two tokens, so two fees. Removing the card and adding it again is a new token. Suspending and resuming a token is not charged. - A card saved by a merchant (card on file) or for online checkout is not a wallet token and is not charged. - A program without a `TOKENISATION` row is not charged, and a token added to a wallet before the fee applied to the card may not be charged later. - On some programs a prepaid child card is never charged. On the others its fee is charged to the account that funds the card, as for the card's other fees. Ask Orenda which applies to your program. - The customer's fee schedule lists it under card costs as `card_tokenisation`. ## Customer-facing fee documents `GET /v1/customers/{customerId}/accounts/{accountId}/fee-reports?type=info|statement` — generates a PDF (returned as a base64 data URI): - `type=info` — the fee information sheet for the customer's region and account type. It is **not** narrowed to the account's tier: a program that prices more than one tier shows every tier's rows for that region. - `type=statement` — the fee statement for a given `year` (required with `statement`). Errors worth handling: `ACCOUNT_NOT_FOUND`, `APPLICATION_NOT_FOUND`, `NO_FEE_TRANSACTIONS` (statement for a year with no fees), `NO_FEES_FOR_SELECTION`. ================================================================================ # Invite a customer Source: https://api-management-docs.orenda-apps.com/invite-customer/ > How your integration or an operator brings a user into the program: a customer, a company, a sub-user, or a cardholder on a corporate's accounts. One call creates the user **and** their application: ```http POST https://api.next.orenda.finance/v1/access-management/customer-invites?programId= Authorization: Bearer Content-Type: application/json ``` This page is the guide. Every field and every error is listed in the API reference, [Invite a customer](/api-reference/invites/invite-a-customer). This page covers invites sent by your integration or by an operator. A signed-in customer inviting their own sub-users or a corporate manager uses the same route on the Customer API, with a different request. ## Who calls it | | **Service user** (your integration) | **Operator** (a person) | | --- | --- | --- | | Token | From the service-user credential ([Authentication](/authentication#service-users-machine-to-machine)) | From `POST /v2/auth/login` + 2FA | | `programId` query parameter | Required | Required | | Step-up `confirmation` | **Not needed.** Leave it out | **Required**: passkey or TOTP | | Permission | `accessManagement.invite.customer` | Same | Most integrations use a service user, so the examples on this page are written for one. An operator sends the same body and adds a `confirmation`; see [Step-up for operators](#step-up-for-operators). ## What you can invite `role` says what the user becomes. Leave it out to invite a customer. **You can only invite the roles your program has been given.** The table below lists every role this route understands, not the ones available to you. Many programs have only one of them, and some have none. Inviting a role your program does not have returns `400`. To find out which roles you have, or to have one added, speak to Orenda. | `role` | The user becomes | Also send | | --- | --- | --- | | *(left out)* | A customer with their own account | | | *(left out)*, with `isCompany: true` | A company | | | `PREPAID_CARD_CUSTOMER`, `CARD_ONLY`, `CHILD` | A [sub-user](#sub-users) | `accountId` | | `EMPLOYEE` | A [cardholder on a corporate](#cardholders-on-a-corporate): an employee | `corporateCustomerId`, `accountIds` | | A role set up for your program, for example `CONSUMER_CARDHOLDER` | A [cardholder on a corporate](#cardholders-on-a-corporate), with that role's permissions | `corporateCustomerId`, `accountIds` | Write `role` exactly as shown, in capitals with underscores. `consumer_cardholder` is refused. `CORPORATE_MANAGER` cannot be invited here. A corporate invites its own managers on the Customer API. ### Response Every successful invite returns: ```json { "success": true, "message": "Customer invitation processed successfully", "data": { "applicationId": "d6354344-a847-49cd-9e41-530d720e7a21" } } ``` `applicationId` identifies the user's application, and is also their `customerId`. Use it to: - follow their onboarding ([Search](/search) `GET /v1/applications`, or the [customer status webhook](/webhooks/customer-status-update)); - submit KYC for them (`POST /v1/applications/{applicationId}/kyc`); - order a card for a cardholder on a corporate, as `forCustomerId` ([Issue cards](/issue-cards#step-3--order-the-card)). When you read the application back, `onboardingRole` holds the role when it is one set up for your program, and `parent.relation` names the user's relation to the corporate (`EMPLOYEE`, `CONSUMER_CARDHOLDER`). ## Step-up for operators An invite creates an account, so an **operator** must confirm it with a second factor: a `confirmation` object carrying **either** a passkey **or** a TOTP code. **A service user never needs this.** Leave `confirmation` out. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $OPERATOR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "grace.hopper@example.com", "confirmation": { "method": "totp", "totp": "123456", "accessToken": "eyJraWQiOi…" } }' ``` Send the 6-digit code from the operator's authenticator app, with the operator's `accessToken`. This is the access token returned by the operator's sign-in, not the ID token you send as the bearer: ```json "confirmation": { "method": "totp", "totp": "123456", "accessToken": "eyJraWQiOi…" } ``` Start a challenge with `POST /v2/auth/passkey/challenge`, complete it on the device, then send: ```json "confirmation": { "method": "passkey", "passkeySession": "c14102b0-…", "assertion": "{\"credentialIdB64\":\"…\",\"userHandleB64\":\"…\",\"clientDataJSON_B64\":\"…\",\"authenticatorDataB64\":\"…\",\"signatureB64\":\"…\"}" } ``` | What went wrong | Response | | --- | --- | | No `confirmation` from an operator | `422 SCA_MISSING` | | Half a pair, for example `totp` without `accessToken` | `400 Invalid confirmation: accessToken: Required` | | Any other method, for example `pin` | `422 SCA_INVALID_METHOD` | | A wrong TOTP code or passkey, or a TOTP `accessToken` that is not the operator's | `422 SCA_FAILED` | | An expired or already-used passkey session or access token | `422 SCA_EXPIRED`: start the confirmation again | | Too many tries | `422 SCA_ATTEMPTS_EXCEEDED`: wait a few minutes | A refused confirmation is always a `422` with one of these codes, never a `401` or `403`. (A `400` here means the `confirmation` object itself is malformed, as in the row above.) Branch on `code`, not on `message`. Nothing is created when step-up fails. ## Customer ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "grace.hopper@example.com" }' ``` The user onboards as a customer with their own account. Which of their details you need to send depends on your program; see [The user's details](#the-users-details). ## Company Add `isCompany: true` to invite a company in place of an individual. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "founder@acme.example.com", "isCompany": true }' ``` The company goes through business verification (KYB). Its legal name, owners and documents are collected during onboarding, not in the invite. - Your program must support company onboarding, or the invite returns `400 This program does not support company (KYB) onboarding`. - `isCompany: true` cannot be sent with a `role`. Every role invites an individual. - A caller acting for a custodian cannot invite a company. ## Sub-users A **sub-user** is an individual funded from one of the parent customer's accounts. `PREPAID_CARD_CUSTOMER`, `CARD_ONLY` and `CHILD` are sub-user roles. They all take the same request; only `role` changes. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "katherine.johnson@example.com", "role": "PREPAID_CARD_CUSTOMER", "accountId": "8f1a2b3c-4d5e-4f6a-8b7c-9d0e1f2a3b4c" }' ``` ### The funding account `accountId` is the parent account the sub-user is funded from. It is checked before anything is created. The account must: - exist and be `ACTIVE`, - be a real account, not one that is itself funded from a parent, and - be in your program. For a caller acting for a custodian, it must also be under that custodian. | What went wrong | Response | | --- | --- | | `accountId` left out | `400`, message containing `accountId is required when inviting role "…"` | | Account not found, or not one you may use | `400 account not found or not eligible` | | Account found but not active | `400 account is not active` | | Account is itself funded from a parent | `400 account cannot be a pseudo account` | For security, the second message does not say whether the account exists. ## Cardholders on a corporate For programs where a **corporate** holds the account and other people hold cards on it. The cardholder is an individual with **no account of their own**. You say which corporate they belong to and which of its accounts they may use. There are two kinds of role: - `EMPLOYEE`, for the corporate's staff. - A role set up for your program, for cardholders who are not staff. For example `CONSUMER_CARDHOLDER`, for consumers who hold a card on a corporate's account. Both take the same request; only `role` changes. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "ada.lovelace@example.com", "firstName": "Ada", "lastName": "Lovelace", "role": "CONSUMER_CARDHOLDER", "corporateCustomerId": "f3e6f586-2f70-4741-993c-337fa717406e", "accountIds": ["c7e97733-5b05-458b-8a3d-90fafd067513"] }' ``` If your program [uses a client reference](#programs-that-use-a-client-reference), add `clientReference` as well. ### Rules | Rule | If broken | | --- | --- | | `corporateCustomerId` must be a company in your program that has finished onboarding | `400` | | `accountIds` must list at least one `ACTIVE` account of that corporate, and not one that is itself funded from a parent | `400 delegatedAccountIds must name active accounts of the corporate` | | Do not send a funding `accountId` or `isCompany: true` | `400` | | Send `corporateCustomerId` and `accountIds` only with these roles | `400` on any other invite | | The role must be one your program has | `400 This program does not support role "CONSUMER_CARDHOLDER"` | | The role must be fully set up | `400 role "CONSUMER_CARDHOLDER" is not configured for invites against a corporate` | If one account in `accountIds` is wrong, the whole invite is refused, and the message does not say which one. The last error in the table is a problem with your program's setup, not with your request: tell Orenda the role and the program. Send `firstName` and `lastName`: they are printed on the card. Your program may or may not insist on them at invite time, so do not rely on a `400` to catch a missing name. Only your integration or an operator can invite these roles. A signed-in customer cannot. ### What the cardholder sees Once onboarded: - **Their own cards only.** Another cardholder's card on the same account is refused (`422 CARD_ACCESS_NOT_PERMITTED`). What they may do with their own card depends on the permissions of their role. - **The accounts in `accountIds`** and no others. They see every transaction on those accounts, including other cardholders' card spending. ### What happens next After the invite, the next steps are yours: 1. Submit the cardholder's KYC (`POST /v1/applications/{applicationId}/kyc`). 2. Order their card on the **corporate's** account, with `forCustomerId: `. You can do this as soon as the invite returns. 3. Once KYC is approved, the cardholder signs in, accepts the legal agreements and uses the card. From then on, the cardholder's own requests report the **corporate's** `customerId`, and webhooks for their card carry the corporate's `customerId` and `clientReference`. So identify these users in your own system by the `applicationId` from the invite, and match card webhooks by `cardId`. ## The user's details `email` is always required. Whether you also need to send `firstName`, `lastName`, `dob`, `nationality`, `phone` and `address` depends on the role and on your program. **Send what you have.** If a required detail is missing, the API returns `400 is required for this invite`. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "katherine.johnson@example.com", "role": "CHILD", "accountId": "8f1a2b3c-4d5e-4f6a-8b7c-9d0e1f2a3b4c", "firstName": "Katherine", "lastName": "Johnson", "dob": "2012-08-26", "nationality": "US", "phone": "+17575550123", "address": { "addressLine1": "10 Mercury Way", "city": "Hampton", "state": "VA", "country": "USA", "postalCode": "23666" } }' ``` | Field | Format | | --- | --- | | `dob` | `YYYY-MM-DD` | | `nationality` | Two-letter country code, for example `GB` | | `address.country` | **Three-letter** country code, for example `GBR`. A two-letter code is refused | | `phone` | 7 to 15 digits, with an optional `+` in front | For some sub-user roles, `address` and `phone` are copied from the funding account's owner. In that case you can leave them out. ## Optional extras ### Additional accounts `additionalAccounts` opens extra accounts for the user, on top of the ones onboarding creates. List the names of the optional accounts your program offers. ```json { "email": "grace.hopper@example.com", "additionalAccounts": ["Leefgeldrekening"] } ``` A name your program does not offer returns `400`, and the message lists the names it does. ### Pay-in IBAN `payInIBAN` is assigned to the user. If the role has pay-in switched on, it is **required**, and leaving it out returns `400 payInIBAN is required when pay-in is enabled for this role`. Otherwise it is ignored. ```json { "email": "grace.hopper@example.com", "payInIBAN": "NL91ABNA0417164300" } ``` ### Holding back the invitation email Normally the user is emailed a temporary password as soon as you invite them. Send `sendInvite: false` to create the invite **without emailing them yet**. This is useful when you need to prepare or review the application first. ```json { "email": "not.yet@example.com", "sendInvite": false } ``` When you are ready, send the email with `POST /customers/{customerId}/reset`, using the `applicationId` from the invite as `customerId`. Until you make that call, the user has an account they do not know about and cannot sign in to. - The reset route is **not** under `/v1`, and it needs the `customers.triage.reset` permission as well as `accessManagement.invite.customer`. - A temporary password expires a fixed number of days after it is sent. Holding the email back until the application is ready means the user does not receive one that has already expired. - Leaving `sendInvite` out is the same as sending `true`. ## Programs that use a client reference Some programs sign their users in with their own identity provider, and Orenda does not create a sign-in for them. Ask Orenda whether yours is one. If it is: - **Send `clientReference` on every invite**, whatever the role. It is the user's id in your identity provider, at most 36 characters, and it becomes their identity with Orenda. - **It must be unique.** Using one twice returns `409 An application already exists for this clientReference`. - **No invitation email is sent.** `sendInvite: false` returns `400`. - **Only your integration or an operator can invite.** Customers cannot invite on these programs. ```bash curl -X POST "https://api.next.orenda.finance/v1/access-management/customer-invites?programId=acme" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "grace.hopper@example.com", "clientReference": "firebase-uid-of-grace" }' ``` Leaving `clientReference` out returns `400 clientReference is required for this program`. On every other program the field is ignored. ## Field names are case-sensitive `role`, `isCompany` and `sendInvite` must be written exactly. A mis-cased name is refused: `{ "Role": "CHILD" }` returns `400 Unknown field "Role" — did you mean "role"?`. ## Errors at a glance | Status | When | | --- | --- | | `400` | See the two lists below | | `401` | No bearer token (an expired or invalid one is a `403`) | | `403` | The caller's role lacks `accessManagement.invite.customer`, or the program is outside the caller's scope | | `404` | `programId` names a program that is not set up | | `409` | A user with that email already exists in the program, or that `clientReference` is already in use | | `422` | Step-up was refused (`SCA_MISSING`, `SCA_INVALID_METHOD`, `SCA_FAILED`, `SCA_EXPIRED` or `SCA_ATTEMPTS_EXCEEDED`); or a service the invite depends on refused it (`PROVIDER_ERROR`) | **`400` because of the request.** Fix the request and send it again: - a field is missing, mis-cased or in the wrong format - `role` is not written in capitals with underscores, or is one of the reserved names `PROGRAM_CUSTOMER`, `DEFAULT`, `GUARDIAN`, `CUSTODIAN` - `role` is `CORPORATE_MANAGER`: a manager reaches the whole corporate, so the corporate invites them itself - a retired role field was sent (`isPrepaidCardCustomer`, `isCardOnly`, `isSpouse`, `isChild`, `isCorporateManager`, `isEmployee`): the message names the `role` to send instead - a detail the role needs is missing - the funding account, the corporate, or an account in `accountIds` cannot be used - `isCompany: true` sent with a role, or by a caller acting for a custodian - `clientReference` missing, or `sendInvite: false`, on a program that uses a client reference - a name in `additionalAccounts` that your program does not offer - no `programId` in the query **`400` because of your program's setup.** Your request is fine; speak to Orenda: | Message | Meaning | | --- | --- | | `This program does not support role "…"` | Your program does not have that role | | `role "…" is not configured for invites against a corporate` | The role exists but is not fully set up | | `This program has no onboarding configuration for this invite; invitations are not supported` | Your program is not set up for invites | | `This program does not support company (KYB) onboarding` | Your program is not set up for companies | When a request breaks more than one rule, `message` lists them all, separated by `; `. A few messages use Orenda's internal names: a wrong account in `accountIds` is reported as `delegatedAccountIds`, and an account funded from a parent is called a `pseudo account`. Act on the status and the rest of the message. ================================================================================ # API reference ## POST /v1/access-management/customer-invites — Invite a customer Creates a user and their application. Called by your integration (a service user) or by an operator. `role` says what the user becomes. Leave it out to invite a customer. | `role` | The user becomes | Also send | | --- | --- | --- | | *(left out)* | A customer with their own account | | | *(left out)*, with `isCompany: true` | A company | | | `PREPAID_CARD_CUSTOMER`, `CARD_ONLY`, `CHILD` | A sub-user, funded from a parent account | `accountId` | | `EMPLOYEE` | A cardholder on a corporate's accounts: an employee | `corporateCustomerId`, `accountIds` | | A role set up for your program, for example `CONSUMER_CARDHOLDER` | A cardholder on a corporate's accounts, with that role's permissions | `corporateCustomerId`, `accountIds` | **You can only invite the roles your program has been given.** The table lists every role this route understands, not the ones available to you. Inviting a role your program does not have returns `400`. Speak to Orenda to find out which roles you have. **Step-up.** An operator must send a `confirmation` (passkey or TOTP). A service user never needs one. **Programs that use a client reference** must send `clientReference` on every invite. The guide, [Invite a customer](/invite-customer), explains each kind of invite, what happens next, and how to act on each error. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 422 ## GET /v1/applications — Search applications and customers Search onboarding applications and customers. Applications versus customers are distinguished by `workflowStage`: customers are `workflowStage=CUSTOMER` with `workflowStageExclude=false`, while in-flight applications are `workflowStage=CUSTOMER` with `workflowStageExclude=true`. Admin CSV exports (`resultType=file`) include onboarding columns (`Current Step`, `Required Actions`) and, when a compliance decision exists, **Risk Compliance Action** / **Risk Compliance Reason**. `Current Step` may be `RISK_COMPLIANCE_REVIEW_RFI` when compliance has requested information from the program. All filters accept comma-separated values for multi-select. Parameters: applicationId, isCompany, workflowStage, workflowStageExclude, isRisk, clientReference, skipCustomerType, skipKycLastEvent Responses: 200, 400, 401, 403 ## GET /v1/accounts — Search accounts Search customer accounts across providers. **Accounts in `PENDING` status are always excluded**, regardless of any `status` filter you pass — this endpoint returns provisioned accounts only. Stored statuses are upper case: `ACTIVE`, `BLOCKED`, `CLOSED`, `SUSPENDED`, and `status` matches them exactly. `programId` always sets the program scope here, so `allPrograms` has no effect on this endpoint. Some filters are named for the stored field rather than the one in the response: `accountName` filters what comes back as `name`, and `provider` filters the stored composite of account and card provider (`-`) while the response carries `accountProvider` and `cardProvider`. CSV exports (`resultType=file`) carry exactly the fields of the JSON results, with nested objects and arrays (`limits`, `balances`, `statusHistory`) expanded into their own columns. Fields that are not part of that contract — provider holder ids, the internal request and lock bookkeeping — are not exported. An export covers every match: `page` and `limit` are ignored, `total` and `limit` in the response are the number of exported rows, and `page` is `1`. A very large export can exceed the function's time limit; narrow the filters if that happens. `page`, `limit`, `sortBy`, `sortOrder`, `fromDate` and `toDate` reach the search engine without validation. A query it rejects — an unknown `sortBy`, a malformed date — fails with `422` and must be corrected rather than retried; the same `422` also covers a search-engine failure, which is worth a retry. This endpoint does **not** accept `keyword`; use the specific identifier filters below. All filters accept comma-separated values for multi-select. Parameters: accountId, accountProviderAccountId, accountName, accountType, iban, accountNumber, sortCode, provider, currency, created, reportType Responses: 200, 400, 401, 403, 422 ## GET /v2/accounts — Search accounts (v2) Search customer accounts across providers. **Accounts in `PENDING` status are always excluded**, regardless of any `status` filter you pass — this endpoint returns provisioned accounts only. Stored statuses are upper case: `ACTIVE`, `BLOCKED`, `CLOSED`, `SUSPENDED`, and `status` matches them exactly. `programId` always sets the program scope here, so `allPrograms` has no effect on this endpoint. Some filters are named for the stored field rather than the one in the response: `accountName` filters what comes back as `name`, and `provider` filters the stored composite of account and card provider (`-`) while the response carries `accountProvider` and `cardProvider`. CSV exports (`resultType=file`) carry exactly the fields of the JSON results, with nested objects and arrays (`limits`, `balances`, `statusHistory`) expanded into their own columns. Fields that are not part of that contract — provider holder ids, the internal request and lock bookkeeping — are not exported. An export covers every match: `page` and `limit` are ignored, `total` and `limit` in the response are the number of exported rows, and `page` is `1`. A very large export can exceed the function's time limit; narrow the filters if that happens. `page`, `limit`, `sortBy`, `sortOrder`, `fromDate` and `toDate` reach the search engine without validation. A query it rejects — an unknown `sortBy`, a malformed date — fails with `422` and must be corrected rather than retried; the same `422` also covers a search-engine failure, which is worth a retry. This endpoint does **not** accept `keyword`; use the specific identifier filters below. All filters accept comma-separated values for multi-select. The `limits` figures and `accountProviderBalance` / `cardProviderBalance` are decimal strings in major units. A figure that can't be stated exactly is left out. CSV exports keep their usual format. Parameters: accountId, accountProviderAccountId, accountName, accountType, iban, accountNumber, sortCode, provider, currency, created, reportType Responses: 200, 400, 401, 403, 422 ## GET /v1/transactions — Search transactions Search ledger transactions. Card spend and card fee rows carry `cardId` when the card is known: the card that made the transaction, the same `cardId` you receive on `NEW_CARD_ADDED`. `cardAuth.cardId` is the card provider's id, not ours. A card transaction booked at settlement has the settlement date as its `dateTime`, and `cardAuth.purchaseTime` (ISO 8601 UTC) when its card authorisation was recorded, absent when that time isn't known. Merges prepaid-master-account and crypto transactions where applicable. `accountId` accepts provider account IDs. Use `reportFormat` to select an alternate CSV column layout on export. All filters accept comma-separated values for multi-select. Parameters: transactionId, currency, paymentType, paymentSubType, provider, providerExclude, endToEndRef, reference, uniqueReference, internalReference, payeeName, payerName, dateTime, accountId, paymentId, direction, isFee, cardId, merchantId, merchantName, merchantCountry, reportFormat Responses: 200, 400, 401, 403 ## GET /v2/transactions — Search transactions (v2) Search ledger transactions. Card spend and card fee rows carry `cardId` when the card is known: the card that made the transaction, the same `cardId` you receive on `NEW_CARD_ADDED`. `cardAuth.cardId` is the card provider's id, not ours. A card transaction booked at settlement has the settlement date as its `dateTime`, and `cardAuth.purchaseTime` (ISO 8601 UTC) when its card authorisation was recorded, absent when that time isn't known. Merges prepaid-master-account and crypto transactions where applicable. `accountId` accepts provider account IDs. Use `reportFormat` to select an alternate CSV column layout on export. All filters accept comma-separated values for multi-select. Every money figure is a decimal string in major units: `amount`, `remainingBalance`, the fee split, `mutation.originalAmount` and the `cardAuth` amounts (each in its own currency), plus `cardAuth.fxRate` at full precision. A figure that can't be stated exactly is left out. CSV exports keep their usual format. Parameters: transactionId, currency, paymentType, paymentSubType, provider, providerExclude, endToEndRef, reference, uniqueReference, internalReference, payeeName, payerName, dateTime, accountId, paymentId, direction, isFee, cardId, merchantId, merchantName, merchantCountry, reportFormat Responses: 200, 400, 401, 403 ## GET /v1/payments/requests — Search payments Search payment requests, including pending and failed payments. Two defaults on this endpoint are easy to trip over: - **Omitting `status` is not the same as "all".** With no `status` the search returns only `PENDING`, `PENDING_TM`, `INITIATED` and `PENDING_CANCELLATION`. Pass an explicit `status` list to widen it. - **The date filters are `startDate` / `endDate`.** `fromDate` / `toDate` are ignored here, so a request carrying them searches an unbounded range. Other defaults: `limit=10`, `page=1`, `sortBy=createdDateTime`, `sortOrder=desc`. Pagination is ignored for `resultType=file` — the export always spans the whole result set. `keyword` is not supported. All filters accept comma-separated values for multi-select. Unlike the other search endpoints, items here follow a **defined shape** rather than returning the stored record as-is: the response carries the fields listed in the payments spec's `PaymentRequest`, plus `programId`, `transactionMonitoring`, `updatedAt`, the provider-side reconciliation keys `endToEndReference`, `originalEndToEndReference`, `providerStatus`, `entity`, `custodianId`, `debtorViban`, `batchId`, `unloadId` and `purpose`, and the SEPA direct-debit cancellation context `priorStatusBeforeCancellation`, `cancellationRequestedAt`, `cancellationReasonCode` and `cancellationSource`. Those extra fields are back-office only — the customer-facing payment-request endpoints return the `PaymentRequest` shape alone, which does include `subType`, `providerRequestId`, `batchItemId` and `childAccountId`, because those are query filters on both surfaces. `payee.currency` — the FX target currency on an international payout, distinct from the top-level source `currency` — is returned on both. Internal fields on the underlying record (card authorisation detail and transaction-monitoring history among them) are not returned on either surface. The `resultType=file` CSV export carries the same fields. Its `statusHistory` is flattened one column per entry (`statusHistory.0.status`, `statusHistory.1.status`, …), unchanged from before. Parameters: sortBy, status, startDate, endDate, id, paymentRequestId, providerRequestId, batchItemId, accountId, childAccountId, type, subType, transactionMonitoring, currency Responses: 200, 400, 401, 403 ## GET /v1/customers/{customerId}/application-meta — Get customer onboarding metadata Returns the onboarding / application metadata records held for a customer — the provider-specific keys captured during the customer's onboarding journey (for example the onboarding step answers `step-1`, `step-2`, `riskData` and provider customer IDs). **Back office only.** A non-back-office token is rejected with `422 FORBIDDEN` — the handler raises a generic domain error, so this does *not* surface as `403`. Responds `404` when the customer has no metadata records. Responses: 200, 400, 401, 404, 422 ## POST /v1/customers/{customerId}/accounts/{accountId}/block — Block an account Blocks the account from the back office: payments stop and linked cards are blocked too. The supplied `reason` is stored on the account's status history for audit. Reversible with [Unblock an account](#tag/accounts/post/v1/customers/{customerId}/accounts/{accountId}/unblock). The account must belong to the `customerId` in the path; any other account returns `404`. The new status is saved before the provider, fee and card steps run and stays saved if one of them fails (`500`). Some accounts outside the UK region have no account block at their provider, so blocking one returns `500` with the account already `BLOCKED`; `accounts[].operations.block` in `GET /v1/capabilities` does not flag that case. Request body: see schema Responses: 200, 400, 401, 403, 404, 415, 422, 500 ## POST /v1/customers/{customerId}/accounts/{accountId}/unblock — Unblock an account Reactivates a blocked account and its linked cards from the back office. The supplied `reason` is stored on the account's status history for audit. Only works on accounts that are currently blocked. The account must belong to the `customerId` in the path; any other account returns `404`. The new status is saved before the provider, fee and card steps run and stays saved if one of them fails (`500`). Some accounts outside the UK region have no account unblock at their provider, so unblocking one returns `500` with the account already `ACTIVE`; `accounts[].operations.unblock` in `GET /v1/capabilities` does not flag that case. Request body: see schema Responses: 200, 400, 401, 403, 404, 415, 422, 500 ## POST /v1/customers/{customerId}/accounts/{accountId}/close — Close an account Closes the account **permanently** from the back office and closes its linked cards. A blocked account can be closed. A closed account cannot be reopened — the customer would need a new account. The supplied `reason` is stored on the account's status history for audit. The account must belong to the `customerId` in the path; any other account returns `404`. Any status other than `CLOSED` can be closed, and the balance is not checked. The new status is saved before the provider, fee and card steps run and stays saved if one of them fails (`500`). Request body: see schema Responses: 200, 400, 401, 403, 404, 415, 422, 500 ## POST /v1/customers/{customerId}/accounts/{accountId}/confirmation/send — Send account confirmation letter Generates an account confirmation letter (proof of account) for the account and returns it inline as a base64 PDF data URI. Nothing is emailed, sent or stored, whatever the route name suggests, and the request body is ignored. The letter is in the program's configured language when that is `en`, `nl` or `es`, and in `en` when it is another language; a program with no configured language fails with `500`. The account must belong to the `customerId` in the path; any other account returns `404`. The body is ignored but still parsed, so send no body and no `Content-Type: application/json` — that header with an empty body is a `415`. Responses: 200, 400, 401, 403, 404, 415, 422, 500 ## POST /v1/customers/{customerId}/accounts/{accountId}/balance — Load or unload card balance Moves money between the account and its card balance: `LOAD` adds funds to the card, `UNLOAD` moves them back to the account. The back office uses this to fund managed (program-funded) cards and to make manual balance corrections. Only available on programs whose card provider holds a **separate card balance**. The operation is **account-scoped**: it moves the account's balance at the card provider, which exists from account provisioning and can hold funds with no cards issued. There is no card id in the path because there is nothing for one to identify. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 422 ## POST /v2/customers/{customerId}/accounts/{accountId}/balance — Load or unload card balance (v2) Moves money between the account and its card balance: `LOAD` adds funds to the card, `UNLOAD` moves them back to the account. The back office uses this to fund managed (program-funded) cards and to make manual balance corrections. Only available on programs whose card provider holds a **separate card balance**. The operation is **account-scoped**: it moves the account's balance at the card provider, which exists from account provisioning and can hold funds with no cards issued. There is no card id in the path because there is nothing for one to identify. **v2.** `amount` must be exact in the account's currency: more decimals than the currency allows is a `400`, never rounded. Send it as a decimal string. `availableBalance` comes back as a decimal string in the account's currency, and is left out when it can't be stated exactly. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 422 ## POST /v1/beneficiaries/verify — Verify a payee name (CoP / VoP) Verifies that a payee's name matches the name held by their bank before a payment is made. One endpoint covers both schemes — it picks the scheme from the `account` you send: - **Confirmation of Payee (CoP, UK):** send `accountNumber` as 14 digits (6-digit sort code + 8-digit account number), or the discriminated form `{ "type": "uk", "sortCode": "…", "accountNumber": "…" }`. - **Verification of Payee (VoP, SEPA):** send `iban` and `bic`, or `{ "type": "iban", "iban": "…", "bic": "…" }`. Send `bic` with every IBAN; it must belong to the IBAN's bank. Send exactly one of `iban` or `accountNumber`. For a UK business payee, send `beneficiary.isCorporate: true`. `outcome` says what the check means: `MATCH`, `CLOSE_MATCH` (warn, and show `suggestedName` when present), `NO_MATCH` or `UNAVAILABLE`. Request body: application/json Responses: 200, 400, 401, 403, 404, 422 ## POST /v1/customers/{customerId}/batch-payments — Batch action (verify / initiate / submit) The original single endpoint. It drives the whole flow and the `action` field selects the step: - `verify` submits the items for validation and a name check on the payee (Confirmation of Payee in the UK, Verification of Payee in the EU). Returns a `requestId` to poll with Get verify status, plus the draft's `batchId` and `expiresAt`. - `initiate` returns `totalAmount`, `currency`, and an `scaChallenge` for the verified set. - `passkey-challenge` returns a passkey challenge for confirming with a passkey. - `submit` pays the batch with a `confirmation` of `method: "passkey"`, `"totp"`, or `"pin"`, plus `idempotencyKey` in the body. Returns the `batchId`. The examples dropdown shows each action's request and response. Behaviour matches the split verify and submit routes with two differences: this route doesn't accept a `file`, and `batchId` is optional on `initiate` and `submit` (omitting it creates a new batch). It stays supported for existing integrations; new ones should use the split routes. **Items.** Each item is one payment. UK programs send `accountNumber` and `sortCode`; EU programs send `iban` and `bic`. A `reference` (6 to 64 characters) and `amount` are required. Add `scheduledDate` (`YYYY/MM/DD`) to send an item on a future date. `initiatorId` is ignored here; the path `customerId` is authoritative. Use `POST /v1/batch-payments` to target customers by `initiatorId`. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 415, 422, 500, 501 ## GET /v1/batch-payments/verify/{requestId} — Get verify status Poll this with the `requestId` from verify until `status` is no longer `PROCESSING`. While it's still running you get `error_code: "VERIFICATION_PROCESSING"`. When done, the items are split into `validPayments` and `invalidPayments` (each invalid item carries a `reason`). Fix or drop the invalid ones, then initiate with the set you want to send. Each item is also stamped with its source account's `accountId`, `currency`, and `availableBalance` (major units; present only for card-funded accounts) so you can flag insufficient-balance rows before submitting. Group items by `accountId`, sum each group's `amount` plus `fee`, and compare against that account's `availableBalance`; treat a missing balance as unknown. This is an early UI signal only. Sufficiency is re-checked at submit. A verification is readable only in the program and environment it was made in. A customer reads only batches verified for a customer on their token; a guardian-bound management caller only its own custodian's batches; any other management caller any batch in its program, and only a program its token allows. Anyone else gets the same `404` as an unknown, withdrawn or expired `requestId`, so the answer confirms nothing. A verification that is queued but whose result is not stored yet answers `202`: keep polling until you get a `200`. Responses: 200, 202, 400, 401, 403, 404, 500 ## GET /v2/batch-payments/verify/{requestId} — Poll a batch verification (v2) Poll this with the `requestId` from verify until `status` is no longer `PROCESSING`. While it's still running you get `error_code: "VERIFICATION_PROCESSING"`. When done, the items are split into `validPayments` and `invalidPayments` (each invalid item carries a `reason`). Fix or drop the invalid ones, then initiate with the set you want to send. Each item is also stamped with its source account's `accountId`, `currency`, and `availableBalance` (major units; present only for card-funded accounts) so you can flag insufficient-balance rows before submitting. Group items by `accountId`, sum each group's `amount` plus `fee`, and compare against that account's `availableBalance`; treat a missing balance as unknown. This is an early UI signal only. Sufficiency is re-checked at submit. A verification is readable only in the program and environment it was made in. A customer reads only batches verified for a customer on their token; a guardian-bound management caller only its own custodian's batches; any other management caller any batch in its program, and only a program its token allows. Anyone else gets the same `404` as an unknown, withdrawn or expired `requestId`, so the answer confirms nothing. A verification that is queued but whose result is not stored yet answers `202`: keep polling until you get a `200`. Every money figure is a decimal string in major units: a row's `amount`, `fee` and `availableBalance` in its `currency`, `availableBalances` in each account's currency, and the `AMOUNT` figures of `limitBreaches`. A figure that cannot be stated exactly is omitted. Responses: 200, 202, 400, 401, 403, 404, 500 ## GET /v1/batch-payments — List batches Lists the caller's batches, most recent first, paginated. Add `date=YYYY-MM-DD` to narrow to batches created on one UTC calendar day; where it applies it takes precedence over `lookbackDays`. **Item summary.** Add `includeItemSummary=true` (the exact string `true`) and each batch carries `itemsStatus` (its `completed`, `pending`, `processing`, and `failed` counts) and `totalAmount`, the sum of its item amounts. That's enough to show progress for a page of batches without opening each one. It's opt-in because each summarised batch costs one extra query, so ask for it on the page sizes you display rather than on a large `limit` you only want ids from. Open to every role. Name enrichment (`customerName`, `custodianName`) is separate and management only. **Drafts.** `drafts=true` lists batches verified but not yet paid, newest first, with the same pagination; a draft never appears in the default list. Each carries `id` (the `batchId` to submit with), `status` (`DRAFT`, or `EXPIRED` once `expiresAt` has passed; derived at read time, never stored, so a lapsed draft stays visible as a record that a batch was prepared and never sent), `paymentsCount`, `expiresAt`, and `createdDateTime`. A draft appears as soon as verification is requested, not when it finishes. Drafts have no item rows, so `itemsStatus` and `totalAmount` are absent even with `includeItemSummary=true`; `paymentsCount` is what a draft has instead. You only ever see your own drafts, including one a back-office operator prepared for you. Parameters: limit, nextToken, lookbackDays, date, drafts, includeItemSummary Responses: 200, 400, 401, 403, 500 ## POST /v1/batch-payments — Multi-customer batch payments The original single endpoint, multi-customer form. The `action` field selects the step (`verify`, `initiate`, `passkey-challenge`, `submit`) exactly as on `POST /v1/customers/{customerId}/batch-payments`, and the draft behaviour is the same: `verify` returns the draft's `batchId` and `expiresAt`, `submit` accepts a `batchId` to pay one. **Back office only, multi-customer.** No `customerId` in the path: each item's payer account is resolved globally and authorised per item against the caller, so one batch can pay from the accounts of any customers the caller is responsible for. An account the caller isn't responsible for, including an unassigned account, is rejected with `401`, as is a management role that resolves to no customers. A non-management caller can't use this route. **The passkey is always the operator's own.** The challenge is issued against the signed-in user, never the customer being paid. The ceremony is identical to the single-customer route; only the tenant the credential is looked up in differs: a customer's passkey is resolved against their own program (honouring the sandbox flag), a management operator's against the shared management pool, production only. So a management passkey ceremony always resolves to production, even for a sandbox batch. No file upload here. A CSV or pain.001 `file` is accepted only on `POST /v1/batch-payments/verify`; sending one to this route is a `400`. Send `payments` instead. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 415, 422, 500, 501 ## POST /v1/customers/{customerId}/batch-payments/verify — Verify a batch (single customer) Step 1. Submits the items for validation against your program's rules and a name check on the payee (Confirmation of Payee in the UK, Verification of Payee in the EU). Returns a `requestId`, a `batchId`, and `expiresAt`. Validation runs in the background; poll Get verify status with the `requestId`. Nothing is charged or reserved, so verify as often as the user edits. This route serves only `verify`. The `action` field is optional and defaults to `"verify"`; `initiate`, `passkey-challenge`, and `submit` are rejected with `403` and belong to the submit route. It's gated separately from paying a batch, so preparation can be granted without the ability to move money. **Items.** Each item is one payment. UK programs send `accountNumber` and `sortCode`; EU programs send `iban` and `bic`. A `reference` (6 to 64 characters) and `amount` are required. Add `scheduledDate` (`YYYY/MM/DD`) to send an item on a future date. **Drafts.** Verifying creates a draft and returns its `batchId` and `expiresAt`. The draft records that these items are prepared and awaiting submission, which is what lets one person prepare a batch and another pay it. Send the same `batchId` back to re-verify after edits and the draft is updated in place, keeping its original creation time. A draft expires after 7 days, or at the end of its earliest `scheduledDate`, whichever comes first. After that it can't be submitted; verify the items again for a new draft. **Sending a file.** Post a CSV or an ISO 20022 pain.001 file as `file: { content, format }` instead of `payments` (one or the other, not both) and we parse it. `format` is optional; omitted, it's detected from the content. Each row becomes an item and is validated the same way, so a bad row comes back in `invalidPayments` rather than being dropped. Only `verify` takes a file, and only on the split verify routes. pain.001 is accepted in any version from `.03` to `.09`. Namespace prefixes, `BIC` and `BICFI`, and all three `ReqdExctnDt` forms (bare, `Dt`, `DtTm`) are handled. UK sort codes are read from `CdtrAgt/FinInstnId/ClrSysMmbId/MmbId` only when `ClrSysId/Cd` is `GBDSC`, or when no scheme is named and the payee has no IBAN, so a German `DEBLZ` Bankleitzahl isn't mistaken for one. The reference comes from `RmtInf/Ustrd` (joined if it repeats), falling back to `RmtInf/Strd/CdtrRefInf/Ref`. A past `ReqdExctnDt` is kept, not corrected, so the draft's `expiresAt` is already elapsed and submit fails on expiry. `InstdAmt/@Ccy` is ignored; payments settle in the payer account's currency. camt.053 is a statement, not a payment file, and is rejected. CSV is the published batch template. The header row is found by looking for the `Payee Name` column, so a title row above it is fine, and quoted fields are honoured. `Amount` must be dot-decimal (`1234.56`); a decimal comma in an unquoted cell splits the row. Dates must be `YYYY-MM-DD` or `YYYY/MM/DD` (single-digit month or day is padded); anything else comes back as an invalid row rather than being guessed at. Anything the parser couldn't use (an unrecognised `Payee AccountType`, an `EndToEndId` outside 2 to 35 characters, a row whose column count differs from the header) is reported in a `warnings` array. The payments are still queued; the field is absent when there's nothing to report. `initiatorId` is ignored here; the path `customerId` is authoritative. Use `POST /v1/batch-payments/verify` to target customers by `initiatorId`. **Rollout.** The split verify and submit routes are enabled per program and return `403` until yours is. Until then, send the same action to the single endpoint `POST /v1/customers/{customerId}/batch-payments`; the request and response bodies are identical, except that the single endpoint doesn't accept a `file`. Request body: application/json Responses: 200, 400, 401, 403, 404, 415, 500, 501 ## POST /v1/batch-payments/verify — Verify a batch (multi-customer) Step 1, multi-customer form. Submits the items for validation against your program's rules and a name check on the payee (Confirmation of Payee in the UK, Verification of Payee in the EU). Returns a `requestId`, a `batchId`, and `expiresAt`. Validation runs in the background; poll Get verify status with the `requestId`. Nothing is charged or reserved. This route serves only `verify`. `initiate`, `passkey-challenge`, and `submit` are rejected with `403` and belong to the submit route. It's gated separately from paying a batch. **Back office only, multi-customer.** No `customerId` in the path: each item's payer account is resolved globally and authorised per item against the caller, so one batch can pay from the accounts of any customers the caller is responsible for. An account the caller isn't responsible for, including an unassigned account, is rejected with `401`, as is a management role that resolves to no customers. A non-management caller can't use this route. **Items.** Each item is one payment. UK programs send `accountNumber` and `sortCode`; EU programs send `iban` and `bic`. A `reference` (6 to 64 characters) and `amount` are required. Add `scheduledDate` (`YYYY/MM/DD`) to send an item on a future date. **Drafts.** Verifying creates a draft and returns its `batchId` and `expiresAt`. The draft records that these items are prepared and awaiting submission, which is what lets one person prepare a batch and another pay it. Send the same `batchId` back to re-verify after edits and the draft is updated in place, keeping its original creation time. A draft expires after 7 days, or at the end of its earliest `scheduledDate`, whichever comes first. After that it can't be submitted; verify the items again for a new draft. **Sending a file.** Post a CSV or an ISO 20022 pain.001 file as `file: { content, format }` instead of `payments` (one or the other, not both) and we parse it. `format` is optional; omitted, it's detected from the content. Each row becomes an item and is validated the same way, so a bad row comes back in `invalidPayments` rather than being dropped. Only `verify` takes a file, and only on the split verify routes. pain.001 is accepted in any version from `.03` to `.09`. Namespace prefixes, `BIC` and `BICFI`, and all three `ReqdExctnDt` forms (bare, `Dt`, `DtTm`) are handled. UK sort codes are read from `CdtrAgt/FinInstnId/ClrSysMmbId/MmbId` only when `ClrSysId/Cd` is `GBDSC`, or when no scheme is named and the payee has no IBAN, so a German `DEBLZ` Bankleitzahl isn't mistaken for one. The reference comes from `RmtInf/Ustrd` (joined if it repeats), falling back to `RmtInf/Strd/CdtrRefInf/Ref`. A past `ReqdExctnDt` is kept, not corrected, so the draft's `expiresAt` is already elapsed and submit fails on expiry. `InstdAmt/@Ccy` is ignored; payments settle in the payer account's currency. camt.053 is a statement, not a payment file, and is rejected. CSV is the published batch template. The header row is found by looking for the `Payee Name` column, so a title row above it is fine, and quoted fields are honoured. `Amount` must be dot-decimal (`1234.56`); a decimal comma in an unquoted cell splits the row. Dates must be `YYYY-MM-DD` or `YYYY/MM/DD` (single-digit month or day is padded); anything else comes back as an invalid row rather than being guessed at. Anything the parser couldn't use (an unrecognised `Payee AccountType`, an `EndToEndId` outside 2 to 35 characters, a row whose column count differs from the header) is reported in a `warnings` array. The payments are still queued; the field is absent when there's nothing to report. **Rollout.** The split verify and submit routes are enabled per program and return `403` until yours is. Until then, send the same action to the path-less single endpoint `POST /v1/batch-payments`; the request and response bodies are identical, except that the single endpoint doesn't accept a `file`. Request body: application/json Responses: 200, 400, 401, 403, 404, 415, 500, 501 ## POST /v1/customers/{customerId}/batch-payments/submit — Pay a batch (single customer) Steps 3 and 4. Pays a verified batch. The SCA challenge has to round-trip through the user, so this is a multi-step exchange against this one route and the `action` field says which step you're on: 1. `initiate` returns `totalAmount`, `currency`, and an `scaChallenge` for the items you send. 2. `passkey-challenge` (only if the user confirms with a passkey) returns a `passkeySession` and `fido2options` to complete on the device. Send the `Origin` header; it's carried into the WebAuthn ceremony and a mismatch fails verification. 3. `submit` sends the same items back with the `scaChallenge` and a `confirmation`: `{ "method": "passkey", "passkeySession", "assertion" }`, `{ "method": "totp", "totp", "accessToken" }` (the `access_token` from sign-in), or `{ "method": "pin", "pin" }` on programs with PIN step-up. Returns the `batchId`. Send exactly the items you sent to `initiate`. The challenge is bound to every row's payee account and amount, in order, so adding, removing, reordering, or re-pricing a row between the two calls invalidates it. `verify` is rejected with `403`; it belongs to the verify route. **A verified batch is required.** `batchId`, the id verify returned, is required on both `initiate` and `submit` here; omitting it is a `400`, not a new batch. The draft is checked for expiry and ownership and can be paid once: a second submit of the same draft is rejected before any money moves. `passkey-challenge` needs no `batchId`. The single endpoint keeps the older contract, where `batchId` is optional and omitting it creates a new batch. **Retries.** Pass `idempotencyKey` (a UUID) as a body field; this route doesn't read an `Idempotency-Key` header. Mint a fresh UUID for every batch. A batch key is not a replay key and isn't scoped to the customer. On this route the draft's `batchId` fixes the batch and its item ids, not the key: two drafts sent with the same key are two batches, and a second submit of the same draft gets `409 IDEMPOTENT_REQUEST_IN_PROGRESS` while the first is still running and has not yet funded it, whether or not a key is sent, and `400` (`Batch is no longer a draft awaiting submission`) once an earlier submit has funded it. Only the all-action route called without `batchId` takes the batch's identity from the key alone; there, two submissions that share a key run the same batch again and match its rows by position, not by content. If a `submit` response is lost, don't resend; fetch the batch, or list the customer's batches, to see whether it landed. Optional today, required in a future release. **Rollout.** The split verify and submit routes are enabled per program and return `403` until yours is. Until then, send the same action to the single endpoint `POST /v1/customers/{customerId}/batch-payments`; the request and response bodies are identical, except that the single endpoint doesn't accept a `file`. `initiatorId` is ignored here; the path `customerId` is authoritative. Use `POST /v1/batch-payments/submit` to target customers by `initiatorId`. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 415, 422, 500, 501 ## POST /v1/batch-payments/submit — Pay a batch (multi-customer) Steps 3 and 4, multi-customer form. Pays a verified batch. The SCA challenge has to round-trip through the user, so this is a multi-step exchange against this one route and the `action` field says which step you're on: 1. `initiate` returns `totalAmount`, `currency`, and an `scaChallenge` for the items you send. 2. `passkey-challenge` (only if the user confirms with a passkey) returns a `passkeySession` and `fido2options` to complete on the device. Send the `Origin` header; it's carried into the WebAuthn ceremony and a mismatch fails verification. 3. `submit` sends the same items back with the `scaChallenge` and a `confirmation`: `{ "method": "passkey", "passkeySession", "assertion" }`, `{ "method": "totp", "totp", "accessToken" }` (the `access_token` from sign-in), or `{ "method": "pin", "pin" }` on programs with PIN step-up. Returns the `batchId`. Send exactly the items you sent to `initiate`. The challenge is bound to every row's payee account and amount, in order, so adding, removing, reordering, or re-pricing a row between the two calls invalidates it. `verify` is rejected with `403`; it belongs to the verify route. **A verified batch is required.** `batchId`, the id verify returned, is required on both `initiate` and `submit` here; omitting it is a `400`, not a new batch. The draft is checked for expiry and ownership and can be paid once: a second submit of the same draft is rejected before any money moves. `passkey-challenge` needs no `batchId`. The single endpoint keeps the older contract, where `batchId` is optional and omitting it creates a new batch. **Retries.** Pass `idempotencyKey` (a UUID) as a body field; this route doesn't read an `Idempotency-Key` header. Mint a fresh UUID for every batch. A batch key is not a replay key and isn't scoped to the customer. On this route the draft's `batchId` fixes the batch and its item ids, not the key: two drafts sent with the same key are two batches, and a second submit of the same draft gets `409 IDEMPOTENT_REQUEST_IN_PROGRESS` while the first is still running and has not yet funded it, whether or not a key is sent, and `400` (`Batch is no longer a draft awaiting submission`) once an earlier submit has funded it. Only the all-action route called without `batchId` takes the batch's identity from the key alone; there, two submissions that share a key run the same batch again and match its rows by position, not by content. If a `submit` response is lost, don't resend; fetch the batch, or list the customer's batches, to see whether it landed. Optional today, required in a future release. **Rollout.** The split verify and submit routes are enabled per program and return `403` until yours is. Until then, send the same action to the path-less single endpoint `POST /v1/batch-payments`; the request and response bodies are identical, except that the single endpoint doesn't accept a `file`. **Back office only, multi-customer.** No `customerId` in the path: each item's payer account is resolved globally and authorised per item against the caller, so one batch can pay from the accounts of any customers the caller is responsible for. An account the caller isn't responsible for, including an unassigned account, is rejected with `401`, as is a management role that resolves to no customers. A non-management caller can't use this route. **The passkey is always the operator's own.** The challenge is issued against the signed-in user, never the customer being paid. The ceremony is identical to the single-customer route; only the tenant the credential is looked up in differs: a customer's passkey is resolved against their own program (honouring the sandbox flag), a management operator's against the shared management pool, production only. So a management passkey ceremony always resolves to production, even for a sandbox batch. Request body: application/json Responses: 200, 400, 401, 403, 404, 409, 415, 422, 500, 501 ## GET /v1/batch-payments/{batchId} — Get a batch Step 5. Returns a batch with its overall `status` and each item's status. A batch reports `CREATED`, `FUNDING_PENDING`, `FUNDED`, `PROCESSING`, `QUEUED`, or the failure states `FUNDING_FAILED` and `PARTIALLY_FAILED`. Items are `QUEUED`, then `SUCCESS` or `FAILED`. **Opening a draft.** If the id names a batch awaiting submission, the response carries a `draft` object instead of item rows: `status` (`DRAFT` or `EXPIRED`), `paymentsCount`, `expiresAt`, and the verified `payments` split into `validPayments` and `invalidPayments`, so a reviewer can see exactly what was checked before paying. Opened before verification completes, the draft has `payloadStatus: "PENDING"` and no `payments`. Once a draft has expired the payload is omitted (it's held on its own retention clock) but the draft record remains. A draft belonging to another customer, or a customer's own draft opened through the management route, is refused as if it didn't exist. Parameters: batchId Responses: 200, 400, 401, 403, 404, 500 ## DELETE /v1/batch-payments/{batchId} — Delete a draft Withdraws a batch that was prepared but never paid. The draft is removed and stops being listable and openable at once, and the verified payload behind it (the payee names, accounts, and amounts checked at verification) is deleted with it. Drafts only. A batch that has been paid has money in flight behind it and returns `409`. An expired draft can still be deleted; that's how lapsed drafts are cleared out. Not idempotent. Once the draft is gone there's nothing left to recognise, so a repeated delete returns `404` rather than a second success. To prepare the same payments again, verify them; that creates a new draft. You can only delete a draft you can open; someone else's is refused as if it didn't exist. Parameters: batchId Responses: 200, 400, 401, 403, 404, 409, 500 ## GET /v1/reports/mt940 — MT940 report (synchronous) Generates an MT940 (SWIFT) statement for the caller's custodian across the given date range and returns the rendered statement text synchronously as JSON. If the statement is too large for a synchronous response, returns `413` — use `POST /v1/reports/mt940` for asynchronous generation + email. Parameters: fromDate, toDate Responses: 200, 401, 413, 422 ## POST /v1/reports/mt940 — MT940 report (asynchronous email) Enqueues asynchronous generation of an MT940 (SWIFT) statement for the caller's custodian and returns `202` immediately; a download link is emailed to the caller when ready. Use this for large statements that exceed the synchronous GET size limit. Request body: application/json Responses: 202, 401, 422 ## GET /v1/applications/{applicationId}/documents/legal/acceptance — Get legal document acceptance Returns the application's stored legal acceptance record and whether it still covers the program's current required documents for the account type. An acceptance record with `schemaVersion: 2` is current when every required document matches by `fileId` and normalized hash; replacing a required document makes `accepted` false and `requiresAcceptance` true. An acceptance recorded before documents had their own identities reports `legacy: true` and is not compared with current files. If no legal documents are configured, an existing current-format acceptance reports `accepted: false` and `requiresAcceptance: true` because it cannot be checked against current documents. This is a read-only back-office endpoint: it does not accept documents, enqueue agreement processing, or advance onboarding. If the program's legal-document configuration is invalid, the API returns `500` instead of a partial result. **Auth:** bearer JWT with a back-office role and `applications.agreements.view` permission. Responses: 200, 400, 401, 403, 404, 500