Release candidate

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.

LFI · Banking · Service Initiation · Bulk and Batch Payments

Bulk and Batch Payments — API Guide 9 min read

Optional for LFIs in v2.2

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.

01 Prerequisites

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.
02 API Sequence Flow

End-to-end Bulk and Batch Payment

Sequence diagramBulk and Batch Payment API FlowClick to expand
05 POST /bulk-payments

Validate the batch and every payment in it, return 201

POST/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.

Reject one payment, not the batch

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)

FieldTypeRequiredDescription
ConsentIdstringYesThe Bulk and Batch consent the batch is executed under. MUST equal the o3-consent-id header
PersonalIdentifiableInformationstring (JWE)NoThe batch-level PII: the Bulk and Batch Risk block, once for the whole batch
Instructionsarray (1–500)YesThe payments in the batch, one element per payment, at most 500. Described below.

request.Data.Instructions[] (AEFilePaymentInstruction)

FieldTypeRequiredDescription
Amount.AmountstringYesDecimal amount with two fraction digits
Amount.CurrencystringYesAED — the API Hub has checked it against TotalValueOfPayments.Currency
PaymentPurposeCodestringYes3-letter AANI purpose code of this payment
PersonalIdentifiableInformationstring (JWE)YesThis payment's Debtor Account and creditor, encrypted on its own
DebtorReferencestringNoReference shown on the debtor's statement for this payment
CreditorReferencestringNoReference passed to the creditor for this payment

Request example

POST /bulk-payments request bodyjson
{
  "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:

PIISchemaCarries
Data.PersonalIdentifiableInformationAEBankServiceInitiation.AEFilePaymentRiskPIIPropertiesThe Bulk and Batch Risk block only, for the whole batch
Data.Instructions[].PersonalIdentifiableInformationAEBankServiceInitiation.AEFilePaymentPIIPropertiesThat 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:

decrypted instruction PIIjson
{
  "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:

typescript
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
}
CheckLevelOn failure
Consent referenced by o3-consent-id is a known, unrevoked Bulk and Batch consentBatch400 Consent.Invalid
Batch PII decrypts and conforms to AEFilePaymentRiskPIIPropertiesBatch400 JWE.DecryptionError or Body.InvalidFormat
Instruction PII decrypts and conforms to AEFilePaymentPIIPropertiesPaymentThat payment Rejected
DebtorAccount is a UAE IBAN at your LFI, held by the User identified by o3-psu-identifier, eligible under IsSingleAuthorization, and activePaymentThat payment Rejected
Creditor is a valid UAE domestic creditor — see CreditorPaymentThat payment Rejected
Debtor Account has sufficient funds for that paymentPaymentThat 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

FieldTypeRequiredDescription
idstringYesThe LFI-assigned identifier of the Bulk/Batch Payment — the TPP's BulkPaymentId. MUST be unique and MUST NOT be reassigned
consentIdstringNoThe Bulk and Batch consent the batch was executed under
creationDateTimestringYesISO 8601 timestamp the Bulk/Batch Payment was created
instructionsarrayYesOne element per request instruction, in the same order. Described below.

data.instructions[] (AEFilePaymentInstructionResponse)

FieldTypeRequiredDescription
paymentIdstringYesThe 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}
statusstringYesThis payment's status, as for a single payment: Pending, AcceptedSettlementCompleted, AcceptedCreditSettlementCompleted, AcceptedWithoutPosting or Rejected
statusUpdateDateTimestringYesISO 8601 timestamp of this payment's last status update
amountobjectYesThis payment's amount and currency
paymentPurposeCodestringYesThis payment's purpose code, from the request
paymentTransactionIdstringNoEnd-to-end identifier of this payment on its rail. Omit until set — do not return an empty string
paymentRailstringNoThe rail this payment settles over. It also sets the namespace of its rejectReasonCode
rejectReasonCodearrayNoWhy this payment was Rejected. The message MUST be sanitised for onward relay to the TPP
debtorReferencestringNoThis payment's debtor reference, from the request
creditorReferencestringNoThis payment's creditor reference, from the request

Example — a batch of three

201 Createdjson
{
  "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.

06 GET /bulk-payments/:bulkPaymentId

Serve the status of every payment in the batch

GET/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

200 OKjson
{
  "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.

07 GET /bulk-payments/:bulkPaymentId/payments/:paymentId

Serve one payment from a batch

GET/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.

08 GET /payments/:paymentId

Serve one payment from a batch in the single-payment shape

GET/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):

FieldFor a payment within a batch
data.idThat payment's paymentId
data.consentIdThe Bulk and Batch consent
data.instruction, data.paymentPurposeCode, data.debtorReferenceThose of that payment
data.status, data.statusUpdateDateTime, data.paymentTransactionIdThe same as on that payment's element of GET /bulk-payments/{bulkPaymentId}
data.openFinanceBilling, data.currencyRequest, data.exchangeRateAbsent — a Bulk/Batch Payment carries none