v2.2-rc2 is not ratified and MUST NOT be used for production. Current: v2.1. Changelog
This is v2.2-rc2 — a release candidate for the v2.2 standards, published for review and not yet ratified. It MUST NOT be used as the basis for a production implementation. For the current standards, switch to v2.1 using the version selector. See the v2.1 → v2.2-rc2 changelog for every change in this version.
Bulk and Batch Payments — API Guide 9 min read
In v2.2, delivering Bulk and Batch Payments is optional for LFIs. An LFI that offers them implements the requirements in this section.
Bulk and Batch Payments let a TPP make many domestic payments from a customer's accounts at your LFI under a single consent and a single authorization. This guide covers what your LFI implements for them: validating the consent, authorizing the batch, and executing every payment in the batch on Ozone Connect POST /bulk-payments.
The behavioural rules for each step — validation conditions, error mappings, and how each payment in a batch is treated — are in the Bulk and Batch Payments Requirements.
What you need before implementing Bulk and Batch Payments
Before implementing Bulk and Batch Payments, ensure the following are in place:
- API Hub onboarded — Your API Hub instance is provisioned and your environment-specific configuration is complete.
- Enc1 key pair generated and registered — The TPP encrypts PII to your LFI's Enc1 public key: once for the consent, once for the batch, and once for each payment. Your LFI MUST hold the corresponding private key and be able to look it up by
kid. - Consent Journey implemented — The Consent Journey API Guide MUST be implemented first. A batch cannot be executed without an authorized consent.
- Ozone Connect connectivity verified — Bidirectional mTLS connectivity is confirmed between the API Hub and your Ozone Connect base URL. See Connectivity & Certificates.
- Domestic payments implemented — Each payment in a batch is screened and settled as a domestic payment. The Single Instant Payment API Guide covers the creditor checks, screening and rail routing that each payment reuses.
End-to-end Bulk and Batch Payment
Validate the consent before it is created
When a TPP creates a Bulk and Batch consent, the API Hub calls your POST/consent/action/validate endpoint before the consent is created. Your LFI MUST validate the consent and respond with data.status: "valid" or data.status: "invalid".
A Bulk and Batch consent is identified by its ControlParameters.ConsentSchedule carrying BulkBatchPayment, with the reason for the batch (Description), the number of payments (NumberOfTransactions) and their total (TotalValueOfPayments). It names no Debtor Account and no Creditor — each payment carries its own, on POST /bulk-payments — so there is far less to validate than for a single payment. The full rule set is in Requirements — Consent Validation.
Decrypting and validating the PII
consent.PersonalIdentifiableInformation arrives as a JWE compact string encrypted by the TPP to your LFI's Enc1 public key. Decrypt it as for any payment consent, then validate the payload against the Bulk and Batch Payment PII — AEBankServiceInitiationRichAuthorizationRequests.AEBulkBatchPaymentPII in uae-api-hub-consent-manager-openapi.yaml. It carries only the Bulk and Batch Risk block (AEBulkBatchPaymentRisk): UserIndicators for the User who submits the batch and BatchIndicators for the batch itself. See How to Decrypt PII for the decrypt helper.
The decrypted consent-time PII for a Bulk/Batch Payment looks like:
{
"Risk": {
"UserIndicators": {
"UserName": { "en": "Fatima Al Mansoori" },
"Authentication": {
"AuthenticationChannel": "Web",
"ChallengeOutcome": "Pass",
"AuthenticationFlow": "MFA"
},
"DeviceInformation": { "DeviceType": "Desktop" }
},
"BatchIndicators": {
"Channel": "Web",
"BatchSource": "FileUpload",
"NumberOfNewCreditorAccounts": 1
}
}
}
If decryption fails or the payload fails schema validation, respond with invalid. See Consent Events & Actions — API Guide for the full validate request and response schema.
Authenticate the customer and authorize the batch
After consent creation passes validation, the TPP redirects the customer to your LFI's authorization endpoint and your LFI runs the standard consent journey: authenticate the customer, retrieve the consent, show the batch on the Authorization Page, patch the customer identifier onto the consent, and redirect back to the Hub. There is no account selection — the consent names no Debtor Account. See User Experience for what the page shows, and Requirements — Authorization for the eligibility rules.
The endpoints your LFI implements against the API Hub for this flow are:
| Endpoint | Direction | Purpose |
|---|---|---|
GET/auth | LFI → API Hub | Initiate the authorization interaction |
GET/consents/{consentId} | LFI → API Hub | Retrieve the full consent details, including BulkBatchPayment |
PATCH/consents/{consentId} | LFI → API Hub | Update the consent status and customer identifiers |
POST/auth/{interactionId}/doConfirm | LFI → API Hub | Complete the interaction and redirect back to the TPP successfully |
POST/auth/{interactionId}/doFail | LFI → API Hub | Complete the interaction and redirect back to the TPP with a failure |
The customer identifier you patch onto the consent is returned on every POST /bulk-payments as the o3-psu-identifier header. With no account pinned on the consent, it is what you use to check that each payment's Debtor Account is held by the User who authorized the batch.
Full details are in the Consent Journey API Guide.
Validate the batch and every payment in it, return 201
/bulk-payments When the TPP submits the batch, the API Hub validates the access token, the consent status and the OpenAPI schema, and validates the Instructions array against the consent — the count against NumberOfTransactions, every currency against TotalValueOfPayments.Currency (AED) and the total against TotalValueOfPayments.Amount. It then calls your Ozone Connect POST/bulk-payments with every payment in one request. POST /bulk-payments is the Bulk and Batch counterpart of POST /payments: the same o3-* headers, the same security and the same error responses.
A failure in the batch as a whole — the consent, the idempotency key or the batch-level PII — rejects the whole request with an error response, and no payment is made. A failure in one payment — its PII, Debtor Account, Creditor, funds or any other error — rejects that payment only, with its rejectReasonCode, and you MUST carry on processing the rest of the batch. See Requirements — Payment Execution.
Request body
Content-Type: application/json
The body is BulkPaymentPostRequest, which mirrors the single-payment PaymentPostRequest: requestUrl, request (the TPP's AEFilePaymentRequest as received), requestHeaders, tpp and supplementaryInformation. It carries no paymentType, as the operation identifies the payment as a Bulk/Batch Payment. The request headers and the requestHeaders, tpp and supplementaryInformation blocks are the same as for a single payment — see the Single Instant Payment API Guide. The TPP's FAPI headers, including x-idempotency-key, are inside requestHeaders, not on the HTTP request.
request.Data (AEFilePaymentRequest)
| Field | Type | Required | Description |
|---|---|---|---|
ConsentId | string | Yes | The Bulk and Batch consent the batch is executed under. MUST equal the o3-consent-id header |
PersonalIdentifiableInformation | string (JWE) | No | The batch-level PII: the Bulk and Batch Risk block, once for the whole batch |
Instructions | array (1–500) | Yes | The payments in the batch, one element per payment, at most 500. Described below. |
request.Data.Instructions[] (AEFilePaymentInstruction)
| Field | Type | Required | Description |
|---|---|---|---|
Amount.Amount | string | Yes | Decimal amount with two fraction digits |
Amount.Currency | string | Yes | AED — the API Hub has checked it against TotalValueOfPayments.Currency |
PaymentPurposeCode | string | Yes | 3-letter AANI purpose code of this payment |
PersonalIdentifiableInformation | string (JWE) | Yes | This payment's Debtor Account and creditor, encrypted on its own |
DebtorReference | string | No | Reference shown on the debtor's statement for this payment |
CreditorReference | string | No | Reference passed to the creditor for this payment |
Request example
{
"requestUrl": "https://rs1.[LFICode].apihub.openfinance.ae/open-finance/payment/v2.2/bulk-payments",
"request": {
"Data": {
"ConsentId": "cac2381a-7111-4c5f-bc2f-4319a93da7c5",
"PersonalIdentifiableInformation": "eyJhbGciOiJSU0EtT0FFUC0yNTYi...",
"Instructions": [
{
"Amount": { "Amount": "1500.00", "Currency": "AED" },
"PaymentPurposeCode": "SAL",
"PersonalIdentifiableInformation": "eyJhbGciOiJSU0EtT0FFUC0yNTYi...",
"DebtorReference": "Payroll Jun26",
"CreditorReference": "EMP-001"
},
{
"Amount": { "Amount": "1500.00", "Currency": "AED" },
"PaymentPurposeCode": "SAL",
"PersonalIdentifiableInformation": "eyJhbGciOiJSU0EtT0FFUC0yNTYi...",
"DebtorReference": "Payroll Jun26",
"CreditorReference": "EMP-002"
},
{
"Amount": { "Amount": "1250.00", "Currency": "AED" },
"PaymentPurposeCode": "SAL",
"PersonalIdentifiableInformation": "eyJhbGciOiJSU0EtT0FFUC0yNTYi...",
"DebtorReference": "Payroll Jun26",
"CreditorReference": "EMP-003"
}
]
}
},
"requestHeaders": {
"o3-provider-id": "lfi-123",
"o3-caller-org-id": "tpp-456",
"o3-caller-client-id": "client-789",
"o3-api-uri": "/open-finance/payment/v2.2/bulk-payments",
"o3-api-operation": "POST",
"o3-ozone-interaction-id": "ozone-xyz",
"o3-consent-id": "cac2381a-7111-4c5f-bc2f-4319a93da7c5",
"o3-psu-identifier": "eyJwczoi...",
"x-fapi-interaction-id": "0f4d3a16-9e27-4f8d-9a5a-3a2f7e9c1b22",
"x-idempotency-key": "idem-2026-06-24-payroll"
},
"tpp": {
"clientId": "1675793e-d6e3-4954-96c8-acb9aaa83c53",
"orgId": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"tppId": "fdd6e0ac-ba7a-4bc4-a986-c45c5daaaf00",
"tppName": "Example TPP",
"softwareStatementId": "XvAjPeeYZAdWwrFF..",
"decodedSsa": {
"client_id": "1675793e-d6e3-4954-96c8-acb9aaa83c53",
"client_name": "Example TPP",
"roles": ["BSIP"]
}
},
"supplementaryInformation": {}
}
Reading the PII
A batch carries PII at two levels, each encrypted to your Enc1 public key:
| PII | Schema | Carries |
|---|---|---|
Data.PersonalIdentifiableInformation | AEBankServiceInitiation.AEFilePaymentRiskPIIProperties | The Bulk and Batch Risk block only, for the whole batch |
Data.Instructions[].PersonalIdentifiableInformation | AEBankServiceInitiation.AEFilePaymentPIIProperties | That payment's Initiation.DebtorAccount and Initiation.CreditorAccount (both required), and optional Initiation.Creditor and Initiation.CreditorAgent. No Risk and no Confirmation of Payee |
A decrypted instruction PII looks like:
{
"Initiation": {
"DebtorAccount": {
"SchemeName": "IBAN",
"Identification": "AE070331234567890123456"
},
"Creditor": { "Name": "Ivan England" },
"CreditorAccount": {
"SchemeName": "IBAN",
"Identification": "AE460090000000123456789",
"Name": { "en": "Ivan David England" }
}
}
}
Both schemas are in uae-ozone-connect-bank-service-initiation-openapi.yaml. Decrypt each with the same helper as at consent time — see How to Decrypt PII.
Processing the batch
Check the batch as a whole first, then each payment on its own. Each payment gets its own PaymentId, and a payment that fails a check is rejected without stopping the others:
async function processBatch(body: PaymentPostRequest, psuIdentifier: string) {
const { ConsentId, PersonalIdentifiableInformation, Instructions } = body.request.Data
// Batch level — a failure here rejects the whole request; no payment is created.
const consent = await consentStore.getBulkBatchConsent(ConsentId)
if (!consent) throw httpError(400, 'Consent.Invalid', `No Bulk and Batch consent ${ConsentId}.`)
const batchPii = await decryptPii(PersonalIdentifiableInformation) // shared decrypt helper
validateSchema('AEBankServiceInitiation.AEFilePaymentRiskPIIProperties', batchPii) // 400 Body.InvalidFormat
// Payment level — each instruction is checked on its own. A failure rejects
// that payment only; the rest of the batch carries on.
const payments = []
for (const instruction of Instructions) {
const payment = createPaymentRecord(consent, instruction) // own, unique PaymentId
try {
const pii = await decryptPii(instruction.PersonalIdentifiableInformation)
validateSchema('AEBankServiceInitiation.AEFilePaymentPIIProperties', pii)
await checkDebtorAccount(pii.Initiation.DebtorAccount, psuIdentifier, consent) // held by the User, eligible, active
await checkCreditor(pii.Initiation) // valid UAE domestic creditor
await checkFunds(pii.Initiation.DebtorAccount, instruction.Amount)
payment.accept(pii, batchPii.Risk) // goes on to screening and its rail
} catch (err) {
payment.reject(rejectReasonFor(err)) // Rejected, with a RejectReasonCode
}
payments.push(payment)
}
return payments
}
| Check | Level | On failure |
|---|---|---|
Consent referenced by o3-consent-id is a known, unrevoked Bulk and Batch consent | Batch | 400 Consent.Invalid |
Batch PII decrypts and conforms to AEFilePaymentRiskPIIProperties | Batch | 400 JWE.DecryptionError or Body.InvalidFormat |
Instruction PII decrypts and conforms to AEFilePaymentPIIProperties | Payment | That payment Rejected |
DebtorAccount is a UAE IBAN at your LFI, held by the User identified by o3-psu-identifier, eligible under IsSingleAuthorization, and active | Payment | That payment Rejected |
| Creditor is a valid UAE domestic creditor — see Creditor | Payment | That payment Rejected |
| Debtor Account has sufficient funds for that payment | Payment | That payment Rejected |
Repeated idempotency keys
The x-idempotency-key in requestHeaders identifies the whole batch. Check it before anything else. Record each batch you accept against the key, the tpp.clientId and the o3-consent-id header, for at least 24 hours. A repeat of the same batch MUST NOT execute any payment again: return 201 with the original data.id and paymentIds and each payment's current status. A repeat with a different request.Data MUST be rejected with 409 GenericRecoverableError — compare every PersonalIdentifiableInformation after decryption, as the encrypted values change when the TPP re-signs a retry. See Requirements — Payment Execution rule 1.
Screening and settling each payment
Each payment that passes its checks goes on, on its own, to your fraud screening, transaction monitoring and AML controls, and then to its rail — AANI, UAEFTS, or your own ledger where the debtor and creditor accounts are both held at your LFI. A payment that fails screening is Rejected; the others are not affected. The domestic rail and status rules apply to each payment as for a single payment — see Payment Rails and Status and Requirements — Screening and Settlement.
Response
Content-Type: application/json
If the batch as a whole passes, return 201 with AEFilePaymentIdResponse, the camelCase mirror of the TPP-facing Bulk/Batch response, as AEPaymentIdResponse is for a single payment. Include every payment, in the order of request.Data.Instructions, including any you rejected. The batch has no status of its own.
data
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The LFI-assigned identifier of the Bulk/Batch Payment — the TPP's BulkPaymentId. MUST be unique and MUST NOT be reassigned |
consentId | string | No | The Bulk and Batch consent the batch was executed under |
creationDateTime | string | Yes | ISO 8601 timestamp the Bulk/Batch Payment was created |
instructions | array | Yes | One element per request instruction, in the same order. Described below. |
data.instructions[] (AEFilePaymentInstructionResponse)
| Field | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | The LFI-assigned PaymentId of this payment. MUST be unique; it can also be used with GET /bulk-payments/{bulkPaymentId}/payments/{paymentId} and GET /payments/{paymentId} |
status | string | Yes | This payment's status, as for a single payment: Pending, AcceptedSettlementCompleted, AcceptedCreditSettlementCompleted, AcceptedWithoutPosting or Rejected |
statusUpdateDateTime | string | Yes | ISO 8601 timestamp of this payment's last status update |
amount | object | Yes | This payment's amount and currency |
paymentPurposeCode | string | Yes | This payment's purpose code, from the request |
paymentTransactionId | string | No | End-to-end identifier of this payment on its rail. Omit until set — do not return an empty string |
paymentRail | string | No | The rail this payment settles over. It also sets the namespace of its rejectReasonCode |
rejectReasonCode | array | No | Why this payment was Rejected. The message MUST be sanitised for onward relay to the TPP |
debtorReference | string | No | This payment's debtor reference, from the request |
creditorReference | string | No | This payment's creditor reference, from the request |
Example — a batch of three
{
"data": {
"id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f0b7a8e13",
"consentId": "cac2381a-7111-4c5f-bc2f-4319a93da7c5",
"creationDateTime": "2026-06-24T15:47:02+00:00",
"instructions": [
{
"paymentId": "83b47199-90c2-4c05-9ef1-aeae68b0fc7c",
"status": "Pending",
"statusUpdateDateTime": "2026-06-24T15:47:02+00:00",
"amount": { "amount": "1500.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-001"
},
{
"paymentId": "1d2e9a40-5c7b-4f18-8e36-0b9a2c4d7e51",
"status": "Pending",
"statusUpdateDateTime": "2026-06-24T15:47:02+00:00",
"amount": { "amount": "1500.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-002"
},
{
"paymentId": "a7c3f5e2-9b14-4d6a-b08e-3e5f1c2d9a74",
"status": "Pending",
"statusUpdateDateTime": "2026-06-24T15:47:02+00:00",
"amount": { "amount": "1250.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-003"
}
]
}
}
Error responses are the same as for POST /payments — see the Single Instant Payment API Guide and the POST /bulk-payments API Reference. Return one only for a failure of the batch as a whole.
Serve the status of every payment in the batch
/bulk-payments/{bulkPaymentId}GET/bulk-payments/{bulkPaymentId} is the Bulk and Batch counterpart of GET /payments/{paymentId}. The API Hub calls it when the TPP reads the batch, with the same o3-* headers and the bulkPaymentId you returned as data.id. Return the same body as the 201 to POST /bulk-payments, with the currentstatus of each payment, in the original request order. Once a payment is routed, report its paymentRail; its rejectReasonCode, if any, carries that rail's namespace.
Example — two settled, one rejected by AANI
{
"data": {
"id": "4f1c2a9e-7b3d-4e8a-9c61-2d5f0b7a8e13",
"consentId": "cac2381a-7111-4c5f-bc2f-4319a93da7c5",
"creationDateTime": "2026-06-24T15:47:02+00:00",
"instructions": [
{
"paymentId": "83b47199-90c2-4c05-9ef1-aeae68b0fc7c",
"paymentTransactionId": "OFP20260624154703000001",
"paymentRail": "AANI",
"status": "AcceptedWithoutPosting",
"statusUpdateDateTime": "2026-06-24T15:47:06+00:00",
"amount": { "amount": "1500.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-001"
},
{
"paymentId": "1d2e9a40-5c7b-4f18-8e36-0b9a2c4d7e51",
"paymentTransactionId": "OFP20260624154703000002",
"paymentRail": "AANI",
"status": "AcceptedWithoutPosting",
"statusUpdateDateTime": "2026-06-24T15:47:06+00:00",
"amount": { "amount": "1500.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-002"
},
{
"paymentId": "a7c3f5e2-9b14-4d6a-b08e-3e5f1c2d9a74",
"paymentTransactionId": "OFP20260624154703000003",
"paymentRail": "AANI",
"status": "Rejected",
"statusUpdateDateTime": "2026-06-24T15:47:05+00:00",
"rejectReasonCode": [
{ "code": "AANI.AM04", "message": "Payment request cannot be executed as insufficient funds at debtor account." }
],
"amount": { "amount": "1250.00", "currency": "AED" },
"paymentPurposeCode": "SAL",
"debtorReference": "Payroll Jun26",
"creditorReference": "EMP-003"
}
]
}
}
The TPP's lookup by idempotency key (GET /bulk-payments) has no Ozone Connect counterpart: the API Hub answers it itself, as for single payments. See Requirements — Payment Status Retrieval.
Serve one payment from a batch
/bulk-payments/{bulkPaymentId}/payments/{paymentId} The TPP can read a single payment from a batch, by its BulkPaymentId and PaymentId. The API Hub then calls your GET/bulk-payments/{bulkPaymentId}/payments/{paymentId} with the same o3-* headers, the bulkPaymentId you returned as data.id, and the paymentId you assigned to that payment.
Return AEFilePaymentInstructionIdResponse: its data is that payment's element of data.instructions, exactly as GET /bulk-payments/{bulkPaymentId} returns it, with the payment's current status. If paymentId is not a payment within the Bulk/Batch Payment identified by bulkPaymentId, return an error response — the TPP receives 404. See Requirements — Payment Status Retrieval.
Serve one payment from a batch in the single-payment shape
/payments/{paymentId} The TPP can also read a single payment from a batch by its PaymentId alone. The API Hub then calls your GET/payments/{paymentId} — the same endpoint as for a single payment — with the paymentId you assigned to that payment in the POST /bulk-payments response. Return it in the single-payment shape (AEPaymentIdResponse):
| Field | For a payment within a batch |
|---|---|
data.id | That payment's paymentId |
data.consentId | The Bulk and Batch consent |
data.instruction, data.paymentPurposeCode, data.debtorReference | Those of that payment |
data.status, data.statusUpdateDateTime, data.paymentTransactionId | The same as on that payment's element of GET /bulk-payments/{bulkPaymentId} |
data.openFinanceBilling, data.currencyRequest, data.exchangeRate | Absent — a Bulk/Batch Payment carries none |
