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.

Validate · Enforce · Trust

Bulk and Batch Payments — Requirements v2.2-rc26 min read

The Consent requirements and the User Journeys for this payment type also apply and must be adhered to.

The tables below list the validation rules that apply to Bulk and Batch Payments. The Validated by column indicates where each rule is enforced. All requests require an active Trust Framework application with the BSIP role, a valid transport certificate presented on every request via mTLS, and an active signing key for JWT signing.

02 Section

Authorization

#
Field
Rule
Validated by
1
BulkBatchPayment.Description
The LFI shows Description to the User as the reason for the Bulk/Batch Payment when the User authorizes the consent, together with the standard confirm-payment details.
LFI
2
consent.IsSingleAuthorization
If true, only accounts that the authenticated customer can solely authorize (no subsequent approvers required) may be offered and selected. If false or not provided (default), accounts where the customer is one of multiple required authorizers may also be offered; subsequent authorizers must then approve the consent before the consent reaches Authorized status and the Bulk/Batch Payment can be created. See Multi-Authorization.
LFI
3
Eligible payment accounts
If the authenticated customer does not hold any account eligible to initiate a payment under this consent, the consent will be set to Rejected with error: invalid_request and error_description: user_lacks_eligible_accounts. The eligible set is constrained by consent.IsSingleAuthorization as described above.
LFI
03 Endpoint

Payment Initiation

POST/bulk-payments

The payments are carried in the request body as Data.Instructions, one element per payment. Each element is self-contained: it carries its own amount, payment purpose code, encrypted Debtor Account and creditor, and references. The payments in one batch may be made from different accounts. ConsentId and the Risk block are set once, at batch level. The request is a signed JWT (application/jwt), exactly as for POST /payments.

#
Field
Rule
Validated by
1
Authorization
Must contain a valid Bearer access token issued with the payments openid scope. The consent bound to the token must be in Authorized status and the ExpirationDateTime of the Consent must be in the future.
API Hub
2
URL version
The version in the request URL path (e.g. v2.2 in /open-finance/payment/v2.2/bulk-payments) must match the version in the consent's authorization_details[0].type (urn:openfinanceuae:service-initiation-consent:v2.2).
API Hub
3
OpenAPI schema
The request must conform exactly to the POST /bulk-payments OpenAPI schema (AEFilePaymentRequestSigned). No additional or undocumented parameters are permitted.
API Hub
4
Data.ConsentId
Required. Must match the ConsentId bound to the access token. The Consent must be in Authorized status and the ExpirationDateTime of the Consent must be in the future.
API Hub
5
Data.PersonalIdentifiableInformation
The PII for the Bulk/Batch Payment as a whole, as a JWE that encapsulates a JWS. The decrypted payload is the File Payment Risk PII Schema Object (AEFilePaymentRiskPIIProperties): it carries only the Risk block, which applies to every payment in Instructions. No additional or undocumented properties are permitted (additionalProperties: false).
LFI
6
Data.PersonalIdentifiableInformation.Risk
The Bulk and Batch Risk block (AEBulkBatchPaymentRisk), the same block as on the consent. It must be fully populated — every field that is known or derivable from the TPP's system must be included. It is not carried per payment. See the Bulk and Batch Risk block.
Monitored by Nebras
7
Data.Instructions
Required. An array of at least one AEFilePaymentInstruction, one element per payment in the Bulk/Batch Payment.
API Hub
8
Data.Instructions (count)
The number of elements MUST equal consent.ControlParameters.ConsentSchedule.BulkBatchPayment.NumberOfTransactions — so, as NumberOfTransactions is at most 500, a request carries at most 500 payments. A request that fails this check is rejected.
API Hub
9
Data.Instructions[].Amount.Currency
Must be AED on every element, and MUST equal consent.ControlParameters.ConsentSchedule.BulkBatchPayment.TotalValueOfPayments.Currency. A request that fails this check is rejected.
API Hub
10
Data.Instructions[].Amount.Amount (total)
The sum of the Amount.Amount values across all elements MUST equal consent.ControlParameters.ConsentSchedule.BulkBatchPayment.TotalValueOfPayments.Amount. A request that fails this check is rejected.
API Hub
11
Data.Instructions[].Amount
Required on every element. Amount.Amount is a decimal string with exactly two decimal places (pattern ^\d{1,16}\.\d{2}$); Amount.Currency must be AED.
API Hub
12
Data.Instructions[].PaymentPurposeCode
Required on every element. The AANI purpose code of this payment. It is set per payment; there is no batch-level PaymentPurposeCode on POST /bulk-payments.
API Hub
13
Data.Instructions[].PersonalIdentifiableInformation
Required on every element. A JWE that encapsulates a JWS, built exactly as for POST /payments. The decrypted payload is the File Payment PII Schema Object (AEFilePaymentPIIProperties): Initiation is required and holds the Debtor Account and creditor of that payment only. It carries no Risk block, and no additional or undocumented properties are permitted (additionalProperties: false).
LFI
14
Data.Instructions[].PersonalIdentifiableInformation.Initiation.DebtorAccount
Required. The account from which this payment is made. SchemeName must be IBAN and Identification is required; Name (en and/or ar, each up to 70 characters) may be omitted if not held by the TPP. Each payment carries its own Debtor Account, as the payments in a Bulk/Batch Payment may be made from different accounts.
LFI
15
Data.Instructions[].PersonalIdentifiableInformation.Initiation.CreditorAccount
Required. The domestic Creditor Account of this payment. Creditor and CreditorAgent are optional. See Creditor.
LFI
16
Confirmation of Payee
Not carried for a Bulk/Batch Payment. The File Payment PII Schema Object has no Confirmation of Payee element.
N/A
17
Data.Instructions[].DebtorReference
Optional. The reference for this payment shown on the debtor's statement. Set per payment; there is no batch-level DebtorReference on POST /bulk-payments.
API Hub
18
Data.Instructions[].CreditorReference
Optional. The reference for this payment passed to the creditor. Set per payment.
API Hub
19
Data.PaymentPurposeCode, Data.OpenFinanceBilling
Must not be present. Data carries only ConsentId, PersonalIdentifiableInformation and Instructions: the purpose code is set on each payment, and a Bulk/Batch Payment carries no OpenFinanceBilling.
API Hub
20
x-idempotency-key
Must be included. Must be at most 40 characters and contain no whitespace (pattern ^(\S*)$).
API Hub
21
x-idempotency-key (new batch)
The TPP MUST generate a new key for each Bulk/Batch Payment — a UUID v4 is RECOMMENDED — and MUST store it with the request before sending it. The TPP MUST NOT change the request body while using the same key. See Payment Idempotency.
TPP
22
x-idempotency-key (retries)
If no response is received, the request times out, or an error is returned, the TPP MUST NOT send the same batch under a new key. It SHOULD first look the Bulk/Batch Payment up by key with GET /bulk-payments, and, if none is recorded, retry with the same key and the same request body.
TPP
23
Bulk/Batch Payment lookup by key
To find out whether a Bulk/Batch Payment was created, the TPP MAY call GET /bulk-payments with the same x-idempotency-key, using a client-credentials access token (scope openid payments). A 200 response points to the resource in Links.Self.
API Hub
24
x-fapi-interaction-id
Should be included. Should be a valid UUID (RFC 4122). An invalid value will not cause a failure but tracing will not be possible.
N/A
25
x-fapi-auth-date
Must be sent when the customer is authenticated at the time of the call. Must be a valid HTTP-date (RFC 7231), e.g. Tue, 11 Sep 2012 19:43:31 UTC.
TPP
26
x-fapi-customer-ip-address
Must be sent when the customer is present at the time of the call. Must be a valid IPv4 or IPv6 address.
TPP
27
x-customer-user-agent
Should be sent when the customer is present. Should reflect the user-agent of the customer's browser or device.
TPP
04 Endpoint

Payment Status

GET/bulk-payments/{BulkPaymentId}

A Bulk/Batch Payment carries no status of its own. Each payment within it has its own PaymentId and status, tracked and settled on its own. Read them all with GET /bulk-payments/{BulkPaymentId}, or one at a time with GET /bulk-payments/{BulkPaymentId}/payments/{PaymentId}.

#
Field
Rule
Validated by
1
Authorization
Must contain a client-credentials access token (scope openid payments). Applies to GET /bulk-payments/{BulkPaymentId}, GET /bulk-payments/{BulkPaymentId}/payments/{PaymentId} and GET /bulk-payments.
API Hub
2
BulkPaymentId
Must be the Data.BulkPaymentId returned in the 201 response to POST /bulk-payments. It identifies the Bulk/Batch Payment as a whole; each payment within it is identified by its own PaymentId.
API Hub
3
Data (response)
Carries BulkPaymentId, ConsentId, CreationDateTime and Instructions. There is no batch-level status, purpose code or billing.
N/A
4
Data.Instructions (response)
One element per element of Instructions on the request, in the same order. Each element carries that payment's PaymentId, Status, StatusUpdateDateTime, Amount and PaymentPurposeCode, and where available its PaymentTransactionId, PaymentRail, RejectReasonCode, DebtorReference and CreditorReference. These are the same status fields as a single payment on GET /payments/{PaymentId}, and the LFI updates them in the same way.
N/A
5
Data.Instructions[].Status (response)
A payment status — Pending, AcceptedSettlementCompleted, AcceptedCreditSettlementCompleted, AcceptedWithoutPosting or Rejected — read as for a single payment. See Payment Rails and Status. Each payment settles over its own rail, reported in its PaymentRail.
N/A
6
One payment rejected
Each payment in a Bulk/Batch Payment is validated, screened and settled on its own. If one payment fails — for example its PII cannot be decrypted or is invalid, its Debtor Account is not held by the User who authorized the consent or cannot make payments, its creditor is invalid, or its Debtor Account has insufficient funds — only that payment is Rejected, with its RejectReasonCode, and the rest of the batch proceeds. A failure of the batch as a whole (an unknown or revoked consent, an invalid batch-level PII, an x-idempotency-key conflict, or a failed check against the control parameters) rejects the whole POST /bulk-payments request with an error response, and no payment is made.
LFI
7
GET /bulk-payments/{BulkPaymentId}/payments/{PaymentId}
Reads one payment within the Bulk/Batch Payment, by the PaymentId returned for it on POST /bulk-payments. Data is that payment's element of Instructions, as on GET /bulk-payments/{BulkPaymentId}, with its current Status, StatusUpdateDateTime, PaymentRail, PaymentTransactionId and RejectReasonCode. A PaymentId that is not a payment within the Bulk/Batch Payment identified by BulkPaymentId returns 404. See the API Reference.
LFI
8
GET /payments/{PaymentId}
Each payment's PaymentId can also be read on its own with GET /payments/{PaymentId}, using a client-credentials access token. It is returned in the single-payment shape: Instruction.Amount, PaymentPurposeCode and DebtorReference are those of that payment, ConsentId is the Bulk/Batch Payment's consent, and OpenFinanceBilling is absent. See the API Guide.
N/A