Domestic Payments v3.1
- 1 Version Control
- 2 Endpoints
- 2.1 POST /domestic-payment-consents
- 2.1.1 Status
- 2.2 GET /domestic-payment-consents/{ConsentId}
- 2.2.1 Status
- 2.3 GET /domestic-payment-consents/{ConsentId}/funds-confirmation
- 2.4 POST /domestic-payments
- 2.4.1 Status
- 2.5 GET /domestic-payments/{DomesticPaymentId}
- 2.5.1 Status
- 2.6 State Model
- 2.6.1 Payment Order Consent
- 2.6.2 Payment Order
- 2.6.2.1 Multiple Authorisation
- 2.1 POST /domestic-payment-consents
- 3 Data Model
- 3.1 Reused Classes
- 3.1.1 OBDomestic2
- 3.1.1.1 UML Diagram
- 3.1.1.2 Notes
- 3.1.1.3 Data Dictionary
- 3.1.1 OBDomestic2
- 3.2 Domestic Payment Consent - Request
- 3.2.1 UML Diagram
- 3.2.2 Notes
- 3.2.3 Data Dictionary
- 3.3 Domestic Payment Consent - Response
- 3.3.1 UML Diagram
- 3.3.2 Notes
- 3.3.3 Data Dictionary
- 3.4 Domestic Payment Consent Confirmation of Funds - Response
- 3.4.1 UML Diagram
- 3.4.2 Notes
- 3.4.3 Data Dictionary
- 3.5 Domestic Payment - Request
- 3.5.1 UML Diagram
- 3.5.2 Notes
- 3.5.3 Data Dictionary
- 3.6 Domestic Payment - Response
- 3.6.1 UML Diagram
- 3.6.2 Notes
- 3.6.3 Data Dictionary
- 3.1 Reused Classes
- 4 Usage Examples
- 4.1 Merchant Initiation via PISP
- 4.1.1 Sequence Diagram
- 4.1.2 Illustrative Interactions
- 4.1.2.1 Create Domestic Payment Order Consent
- 4.1.2.1.1 Payment Order Consent Request Payload
- 4.1.2.1.2 Payment Order Consent Response Payload
- 4.1.2.2 Confirm Funds on Domestic Payment Order Consent
- 4.1.2.2.1 Payment Order Consent Request Payload
- 4.1.2.2.2 Payment Order Consent Response Payload
- 4.1.2.3 Create Domestic Payment Order
- 4.1.2.3.1 Payment Order Request Payload
- 4.1.2.3.2 Payment Order Response Payload
- 4.1.2.4 Get Domestic Payment Order Consent
- 4.1.2.4.1 Get Payment Order Consent Request
- 4.1.2.4.2 Get Payment Order Consent Response Payload
- 4.1.2.5 Get Domestic Payment Order
- 4.1.2.5.1 GET Payment Order Request
- 4.1.2.5.2 Get Payment Order Response Payload
- 4.1.2.1 Create Domestic Payment Order Consent
- 4.2 Person To Person Initiation via PISP
- 4.2.1 Sequence Diagram
- 4.2.2 Illustrative Interactions
- 4.2.2.1 Create Domestic Payment Order Consent
- 4.2.2.1.1 Payment Order Consent Request Payload
- 4.2.2.1.2 Payment Order Consent Response Payload
- 4.2.2.2 Create Domestic Payment Order
- 4.2.2.2.1 Payment Order Request Payload
- 4.2.2.2.2 Payment Order Response Payload
- 4.2.2.3 Get Domestic Payment Order Consent
- 4.2.2.3.1 Get Payment Order Consent Request
- 4.2.2.3.2 Get Payment Order Consent Response Payload
- 4.2.2.4 Get Domestic Payment Order
- 4.2.2.4.1 Get Payment Order Request
- 4.2.2.4.2 Get Payment Order Response Payload
- 4.2.2.1 Create Domestic Payment Order Consent
- 4.3 BACS Payment Order Consent
- 4.4 CHAPS Payment Order Consent
- 4.5 Balance Transfer
- 4.6 Money Transfer
- 4.1 Merchant Initiation via PISP
Version Control
Version | Date | Author | Comments |
|---|---|---|---|
3.0 | Sep 7, 2018 | OB R/W API Team | This is the baseline version. No change from RC3. |
3.1-draft1 | Sep 12, 2018 | OB R/W API Team | This is the initial draft version for 3.1. Draft 1 Changes
Errata
|
3.1-draft2 | Oct 1, 2018 | OB R/W API Team | Draft2 Changes:
|
3.1-draft3 | Oct 11, 2018 | OB R/W API Team | Draft3 Changes:
|
3.1 RC1 | Nov 14, 2018 | OB R/W API Team | RC1 Changes:
|
3.1 | Nov 30, 2018 | OB R/W API Team | Version 3.1 final release. No changes from Version 3.1 RC1. |
Endpoints
Resource | HTTP Operation | Endpoint | Mandatory ? | Scope | Grant Type | Message Signing | Idempotency Key | Request Object | Response Object |
|---|---|---|---|---|---|---|---|---|---|
domestic-payment-consents | POST | POST /domestic-payment-consents | Mandatory | payments | Client Credentials | Signed Request Signed Response | Yes | OBWriteDomesticConsent2 | OBWriteDomesticConsentResponse2 |
domestic-payment-consents | GET | GET /domestic-payment-consents/{ConsentId} | Mandatory | payments | Client Credentials | Signed Response | No | NA | OBWriteDomesticConsentResponse2 |
domestic-payment-consents | GET | GET /domestic-payment-consents/{ConsentId}/funds-confirmation | Mandatory | payments | Authorization Code | Signed Response | No | NA | OBWriteFundsConfirmationResponse1 |
domestic-payments | POST | POST /domestic-payments | Mandatory | payments | Authorization Code | Signed Request Signed Response | Yes | OBWriteDomestic2 | OBWriteDomesticResponse2 |
domestic-payments | GET | GET /domestic-payments/{DomesticPaymentId} | Mandatory | payments | Client Credentials | Signed Response | No | NA | OBWriteDomesticResponse2 |
POST /domestic-payment-consents
POST /domestic-payment-consentsThe API endpoint allows the PISP to ask an ASPSP to create a new domestic-payment-consent resource.
The POST action indicates to the ASPSP that a domestic payment consent has been staged. At this point, the PSU may not have been identified by the ASPSP, and the request payload may not contain any information of the account that should be debited.
The endpoint allows the PISP to send a copy of the consent (between PSU and PISP) to the ASPSP for the PSU to authorise.
The ASPSP creates the domestic-payment-consent resource and responds with a unique ConsentId to refer to the resource.
Status
The default Status is "AwaitingAuthorisation" immediately after the domestic-payment-consent has been created.
Status |
|---|
AwaitingAuthorisation |
GET /domestic-payment-consents/{ConsentId}
GET /domestic-payment-consents/{ConsentId}A PISP can optionally retrieve a payment consent resource that they have created to check its status.
Status
Once the PSU authorises the payment-consent resource - the Status of the payment-consent resource will be updated with "Authorised".
If the PSU rejects the consent or the domestic-payment-consent has failed some other ASPSP validation, the Status will be set to "Rejected".
Once a domestic-payment has been successfully created using the domestic-payment-consent, the Status of the domestic-payment-consent will be set to "Consumed".
The available status codes for the domestic-payment-consent resource are:
Status |
|---|
AwaitingAuthorisation |
Rejected |
Authorised |
Consumed |
GET /domestic-payment-consents/{ConsentId}/funds-confirmation
GET /domestic-payment-consents/{ConsentId}/funds-confirmationThe API endpoint allows the PISP to ask an ASPSP to confirm funds on a domestic-payment-consent resource.
An ASPSP can only respond to a funds confirmation request if the domestic-payment-consent resource has an
Authorisedstatus. If the status is notAuthorised, an ASPSP must respond with a 400 (Bad Request) and aUK.OBIE.Resource.InvalidConsentStatuserror code.Confirmation of funds requests do not affect the status of the domestic-payment-consent resource.
POST /domestic-payments
POST /domestic-paymentsOnce the domestic-payment-consent has been authorised by the PSU, the PISP can proceed to submitting the domestic-payment for processing:
This is done by making a POST request to the domestic-payments endpoint.
This request is an instruction to the ASPSP to begin the domestic single immediate payment journey. The domestic payment must be submitted immediately, however, there are some scenarios where the domestic payment may not be executed immediately (e.g., busy periods at the ASPSP).
The PISP must ensure that the Initiation and Risk sections of the domestic-payment match the corresponding Initiation and Risk sections of the domestic-payment-consent resource. If the two do not match, the ASPSP must not process the request and must respond with a 400 (Bad Request).
Any operations on the domestic-payment resource will not result in a status change for the domestic-payment resource.
Status
A domestic-payment can only be created if its corresponding domestic-payment-consent resource has the status of "Authorised".
The domestic-payment resource that is created successfully must have one of the following PaymentStatusCode code-set enumerations:
Status |
|---|
Pending |
Rejected |
AcceptedSettlementInProcess |
GET /domestic-payments/{DomesticPaymentId}
GET /domestic-payments/{DomesticPaymentId}A PISP can retrieve the domestic-payment to check its status.
Status
The domestic-payment resource must have one of the following PaymentStatusCode code-set enumerations:
Status |
|---|
Pending |
Rejected |
AcceptedSettlementInProcess |
AcceptedSettlementCompleted |
State Model
Payment Order Consent
The state model for the domestic-payment-consent resource follows the generic consent state model. However, does not use the "Revoked" status, as the consent for a domestic-payment is not a long-lived consent.
The definitions for the Status:
Status | Status Description | |
|---|---|---|
| 1 | AwaitingAuthorisation | The consent resource is awaiting PSU authorisation. |
| 2 | Rejected | The consent resource has been rejected. |
| 3 | Authorised | The consent resource has been successfully authorised. |
| 4 | Consumed | The consented action has been successfully completed. This does not reflect the status of the consented action. |
Payment Order
The state model for the domestic-payment resource follows the behaviour and definitions for the ISO 20022 PaymentStatusCode code-set.
The definitions for the status:
Status | Payment Status Description | |
|---|---|---|
| 1 | Pending | Payment initiation or individual transaction included in the payment initiation is pending. Further checks and status update will be performed. |
| 2 | Rejected | Payment initiation or individual transaction included in the payment initiation has been rejected. |
| 3 | AcceptedSettlementInProcess | All preceding checks such as technical validation and customer profile were successful and therefore the payment initiation has been accepted for execution. |
| 4 | AcceptedSettlementCompleted | Settlement on the debtor's account has been completed. |
Multiple Authorisation
If the payment-order requires multiple authorisations - the Status of the multiple authorisations will be updated in the MultiAuthorisation object.
The definitions for the status:
Status | Status Description | |
|---|---|---|
| 1 | AwaitingFurtherAuthorisation | The payment-order resource is awaiting further authorisation. |
| 2 | Rejected | The payment-order resource has been rejected by an authoriser. |
| 3 | Authorised | The payment-order resource has been successfully authorised by all required authorisers. |
Data Model
The data dictionary section gives the detail on the payload content for the Domestic Payment API flows.
Reused Classes
OBDomestic2
This section describes the OBDomestic2 class which is reused as the Initiation object in the domestic-payment-consent and domestic-payment resources.
UML Diagram
Notes
For the OBDomestic2 Initiation object:
All elements in the Initiation payload that are specified by the PISP must not be changed via the ASPSP as this is part of formal consent from the PSU.
If the ASPSP is able to establish a problem with payload or any contextual error during the API call, the ASPSP must reject the domestic-payment-consent request immediately.
If the ASPSP establishes a problem with the domestic-payment-consent after the API call, the ASPSP must set the status of the domestic-payment-consent resource to Rejected.
DebtorAccount is optional as the PISP may not know the account identification details for the PSU.
If the DebtorAccount is specified by the PISP and is invalid for the PSU, then the domestic-payment-consent will be set to Rejected after PSU authentication.
Account Identification field usage:
Where "UK.OBIE.SortCodeAccountNumber" is specified as the SchemeName in the Account identification section (either DebtorAccount or CreditorAccount), the Identification field must be populated with the 6 digit Sort Code and 8 digit Account Number (a 14 digit field).
Where the "UK.OBIE.IBAN" is specified as the SchemeName in the Account identification section (either DebtorAccount or CreditorAccount), the Identification field must be populated with the full IBAN.
The element Reference has been renamed from CreditorReferenceInformation as this is the unique ISO 20022 element used in pain.001, rather than an ISO 20022 message component.
As a merchant may be initiating a payment via a PISP two identifiers are included in the payload:
InstructionIdentification is uniquely generated by the PISP. The expectation is that this is unique indefinitely across all time periods. The PISP can ensure that this is indefinitely unique by including a date or date-time element to the field, or by inserting a unique Id.
EndToEndIdentification is uniquely generated by the merchant.
Neither the InstructionIdentification nor EndToEndIdentification will be used as the domestic-payment-consent resource identifier (ConsentId) as the ConsentId must be uniquely generated by the ASPSP.
LocalInstrument is the requested payment scheme for execution. This is a free-text field.
Design decisions for the Initiation section of the payload and how this maps to the ISO 20022 messaging standard are articulated in the Mapping to Schemes and Standards section.
Data Dictionary
Name | Occurrence | XPath | EnhancedDefinition | Class | Codes | Pattern |
|---|---|---|---|---|---|---|
OBDomestic2 |
| OBDomestic2 | The Initiation payload is sent by the initiating party to the ASPSP. It is used to request movement of funds from the debtor account to a creditor for a single domestic payment. | OBDomestic2 |
|
|
InstructionIdentification | 1..1 | OBDomestic2/InstructionIdentification | Unique identification as assigned by an instructing party for an instructed party to unambiguously identify the instruction.
Usage: the instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction. | Max35Text |
|
|
EndToEndIdentification | 1..1 | OBDomestic2/EndToEndIdentification | Unique identification assigned by the initiating party to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain.
Usage: The end-to-end identification can be used for reconciliation or to link tasks relating to the transaction. It can be included in several messages related to the transaction. OB: The Faster Payments Scheme can only access 31 characters for the EndToEndIdentification field. | Max35Text |
|
|
LocalInstrument | 0..1 | OBDomestic2/LocalInstrument | User community specific instrument.
Usage: This element is used to specify a local instrument, local clearing option and/or further qualify the service or service level. | OBExternalLocalInstrument1Code |
|
|
InstructedAmount | 1..1 | OBDomestic2/InstructedAmount | Amount of money to be moved between the debtor and creditor, before deduction of charges, expressed in the currency as ordered by the initiating party.
Usage: This amount has to be transported unchanged through the transaction chain. | OBActiveOrHistoricCurrencyAndAmount |
|
|
Amount | 1..1 | OBDomestic2/InstructedAmount/Amount | A number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217. | OBActiveCurrencyAndAmount_SimpleType |
| ^\d{1,13}\.\d{1,5}$ |
Currency | 1..1 | OBDomestic2/InstructedAmount/Currency | A code allocated to a currency by a Maintenance Agency under an international identification scheme, as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds". | ActiveOrHistoricCurrencyCode |
| ^[A-Z]{3,3}$ |