Domestic Scheduled Payments - v3.1.2

  1. Overview
  2. Endpoints
    1. POST /domestic-scheduled-payments
      1. Status
    2. GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}
      1. Status
    3. GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}/payment-details
      1. Status
    4. State Model
      1. Payment Order
        1. Multiple Authorisation
  3. Data Model
    1. Reused Classes
      1. OBDomesticScheduled2
    2. Domestic Scheduled Payment - Request
      1. UML Diagram
      2. Notes
      3. Data Dictionary
    3. Domestic Scheduled Payment - Response
      1. UML Diagram
      2. Notes
      3. Data Dictionary
    4. Domestic Schedule Payment Order - Payment Details - Response
      1. UML Diagram
      2. Data Dictionary
  4. Usage Examples
    1. Create a Domestic Scheduled Payment
      1. POST /domestic-scheduled-payments Request
      2. POST /domestic-scheduled-payments Response

Overview

The Domestic Scheduled Payments resource is used by a PISP to initiate a Domestic Scheduled Payment.

This resource description should be read in conjunction with a compatible Payment Initiation API Profile.

Endpoints

ResourceHTTP OperationEndpointMandatory ?ScopeGrant TypeMessage SigningIdempotency KeyRequest ObjectResponse Object
domestic-scheduled-paymentsPOSTPOST /domestic-scheduled-paymentsConditionalpaymentsAuthorization CodeSigned Request Signed ResponseYesOBWriteDomesticScheduled2OBWriteDomesticScheduledResponse3
domestic-scheduled-paymentsGETGET /domestic-scheduled-payments/{DomesticScheduledPaymentId}Mandatory (if resource POST implemented)paymentsClient CredentialsSigned ResponseNoNAOBWriteDomesticScheduledResponse3
payment-detailsGETGET /domestic-scheduled-payments/{DomesticScheduledPaymentId}/payment-detailsOptionalpaymentsClient CredentialsSigned ResponseNoNAOBWritePaymentDetailsResponse1

POST /domestic-scheduled-payments

Once the domestic-scheduled-payment-consent has been authorised by the PSU, the PISP can proceed to submitting the domestic-scheduled-payment for processing:

  • This is done by making a POST request to the domestic-scheduled-payments endpoint.
  • This request is an instruction to the ASPSP to begin the domestic scheduled payment journey. The PISP must submit the domestic scheduled payment immediately, however, there are some scenarios where the ASPSP may not warehouse the domestic scheduled payment immediately (e.g., busy periods at the ASPSP)
  • The PISP must ensure that the Initiation and Risk sections of the domestic-scheduled-payment match the corresponding Initiation and Risk sections of the domestic-scheduled-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-scheduled-payment resource will not result in a Status change for the domestic-scheduled-payment resource.

Status

A domestic-scheduled-payment can only be created if its corresponding domestic-scheduled-payment-consent resource has the status of “Authorised”.

The domestic-scheduled-payment resource that is created successfully must have one of the following Status codes:

Status
InitiationPending
InitiationFailed
InitiationCompleted

GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}

A PISP can retrieve the domestic-scheduled-payment to check its status.

Status

The domestic-scheduled-payment resource must have one of the following Status codes:

Status
InitiationPending
InitiationFailed
InitiationCompleted
Cancelled

GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}/payment-details

A PISP can retrieve the Details of the underlying payment transaction via this endpoint. This resource allows ASPSPs to return richer list of Payment Statuses, and if available payment scheme related statuses.

Status

The domestic-scheduled-payments - payment-details must have one of the following PaymentStatusCode code-set enumerations:

Status
Accepted
AcceptedCancellationRequest
AcceptedTechnicalValidation
AcceptedCustomerProfile
AcceptedFundsChecked
AcceptedWithChange
Pending
Rejected
AcceptedSettlementInProcess
AcceptedSettlementCompleted
AcceptedWithoutPosting
AcceptedCreditSettlementCompleted
Cancelled
NoCancellationProcess
PartiallyAcceptedCancellationRequest
PartiallyAcceptedTechnicalCorrect
PaymentCancelled
PendingCancellationRequest
Received
RejectedCancellationRequest

State Model

Payment Order

The state model for the domestic-scheduled-payment resource describes the initiation status only. I.e., not the subsequent execution of the domestic-scheduled-payment.

Payment Order

The definitions for the Status:

 StatusPayment Status Description
1InitiationPendingThe initiation of the payment order is pending.
2InitiationFailedThe initiation of the payment order has failed.
3InitiationCompletedThe initiation of the payment order is complete.
4CancelledPayment initiation has been successfully cancelled after having received a request for cancellation.
Multiple Authorisation

If the payment-order requires multiple authorisations, the Status of the multiple authorisations will be updated in the MultiAuthorisation object.

Multi Authorisation

The definitions for the Status:

 StatusStatus Description
1AwaitingFurtherAuthorisationThe payment-order resource is awaiting further authorisation.
2RejectedThe payment-order resource has been rejected by an authoriser.
3AuthorisedThe 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 Scheduled Payment API flows.

Reused Classes

OBDomesticScheduled2

The OBDomesticScheduled2 class is defined in the domestic-scheduled-payment-consents page.

Domestic Scheduled Payment - Request

The OBWriteDomesticScheduled2 object will be used for a call to:

  • POST /domestic-scheduled-payments

UML Diagram

Domestic Scheduled Payment - Request

Notes

The domestic-scheduled-payment request object contains the:

  • ConsentId.
  • The full Initiation and Risk objects from the domestic-scheduled-payment-consent request.

The Initiation and Risk sections of the domestic-scheduled-payment request must match the Initiation and Risk sections of the corresponding domestic-scheduled-payment-consent request.

Data Dictionary

NameOccurrenceXPathEnhancedDefinitionClassCodesPattern
OBWriteDomesticScheduled2 OBWriteDomesticScheduled2 OBWriteDomesticScheduled2  
Data1..1OBWriteDomesticScheduled2/Data OBWriteDataDomesticScheduled2  
ConsentId1..1OBWriteDomesticScheduled2/Data/ConsentIdOB: Unique identification as assigned by the ASPSP to uniquely identify the consent resource.Max128Text  
Initiation1..1OBWriteDomesticScheduled2/Data/InitiationThe 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 scheduled domestic payment.OBDomesticScheduled2  
Risk1..1OBWriteDomesticScheduled2/RiskThe Risk section is sent by the initiating party to the ASPSP. It is used to specify additional details for risk scoring for Payments.OBRisk1  

Domestic Scheduled Payment - Response

The OBWriteDomesticScheduledResponse3 object will be used for a response to a call to:

  • POST /domestic-scheduled-payments
  • GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}

UML Diagram

Domestic Scheduled Payment - Response

Notes

The domestic-scheduled-payment response object contains the:

  • DomesticScheduledPaymentId.
  • ConsentId.
  • CreationDateTime the domestic-scheduled-payment resource was created.
  • Status and StatusUpdateDateTime of the domestic-scheduled-payment resource.
  • ExpectedExecutionDateTime for the domestic-scheduled-payment resource.
  • ExpectedSettlementDateTime for the domestic-scheduled-payment resource.
  • Charges array - for the breakdown of applicable ASPSP charges.
  • The Initiation object from the domestic-scheduled-payment-consent.
  • The MultiAuthorisation object if the domestic-scheduled-payment resource requires multiple authorisations.

Data Dictionary

NameOccurrenceXPathEnhancedDefinitionClassCodesPattern
OBWriteDomesticScheduledResponse3 OBWriteDomesticScheduledResponse3 OBWriteDomesticScheduledResponse3  
Data1..1OBWriteDomesticScheduledResponse3/Data OBWriteDataDomesticScheduledResponse3  
DomesticScheduledPaymentId1..1OBWriteDomesticScheduledResponse3/Data/DomesticScheduledPaymentIdOB: Unique identification as assigned by the ASPSP to uniquely identify the domestic schedule payment resource.Max40Text  
ConsentId1..1OBWriteDomesticScheduledResponse3/Data/ConsentIdOB: Unique identification as assigned by the ASPSP to uniquely identify the consent resource.Max128Text  
CreationDateTime1..1OBWriteDomesticScheduledResponse3/Data/CreationDateTimeDate and time at which the message was created.ISODateTime  
Status1..1OBWriteDomesticScheduledResponse3/Data/StatusSpecifies the status of the payment order resource.OBExternalStatus3CodeInitiationCompleted InitiationFailed InitiationPending Cancelled 
StatusUpdateDateTime1..1OBWriteDomesticScheduledResponse3/Data/StatusUpdateDateTimeDate and time at which the resource status was updated.ISODateTime  
ExpectedExecutionDateTime0..1OBWriteDomesticScheduledResponse3/Data/ExpectedExecutionDateTimeExpected execution date and time for the payment resource.ISODateTime  
ExpectedSettlementDateTime0..1OBWriteDomesticScheduledResponse3/Data/ExpectedSettlementDateTimeExpected settlement date and time for the payment resource.ISODateTime  
Charges0..nOBWriteDomesticScheduledResponse3/Data/ChargesSet of elements used to provide details of a charge for the payment initiation.OBCharge2  
Initiation1..1OBWriteDomesticScheduledResponse3/Data/InitiationThe 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 scheduled domestic payment.OBDomesticScheduled2  
MultiAuthorisation0..1OBWriteDomesticScheduledResponse3/Data/MultiAuthorisationThe multiple authorisation flow response from the ASPSP.OBMultiAuthorisation1  

Domestic Schedule Payment Order - Payment Details - Response

The OBWritePaymentDetailsResponse1 object will be used for a response to a call to:

  • GET /domestic-scheduled-payments/{DomesticScheduledPaymentId}/payment-details

UML Diagram

Domestic Schedule Payment Order - Payment Details - Response

Data Dictionary

NameOccurrenceXPathEnhancedDefinitionClassCodesPattern
OBWritePaymentDetailsResponse1 OBWritePaymentDetailsResponse1 OBWritePaymentDetailsResponse1  
Data1..1OBWritePaymentDetailsResponse1/Data OBWriteDataPaymentOrderStatusResponse1  
PaymentStatus0..unboundedOBWritePaymentDetailsResponse1/Data/PaymentStatusPayment status details.OBWritePaymentDetails1  

Usage Examples

Create a Domestic Scheduled Payment

POST /domestic-scheduled-payments Request
POST /domestic-scheduled-payments HTTP/1.1
Authorization: Bearer 2YotnFZFEjr1zCsicMWpAA
x-idempotency-key: FRESNO.1317.GFX.22
x-jws-signature: TGlmZSdzIGEgam91cm5leSBub3QgYSBkZXN0aW5hdGlvbiA=..T2ggZ29vZCBldmVuaW5nIG1yIHR5bGVyIGdvaW5nIGRvd24gPw==
x-fapi-auth-date:  Sun, 10 Sep 2017 19:43:31 GMT
x-fapi-customer-ip-address: 104.25.212.99
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json
Accept: application/json
{
  "Data": {
    "ConsentId": "7290",
    "Initiation": {
      "InstructionIdentification": "89f0a53a91ee47f6a383536f851d6b5a",
      "RequestedExecutionDateTime": "2018-08-06T00:00:00+00:00",
      "InstructedAmount": {
        "Amount": "200.00",
        "Currency": "GBP"
      },
      "DebtorAccount": {
        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
        "Identification": "11280001234567",
        "Name": "Andrea Frost"
      },
      "CreditorAccount": {
        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
        "Identification": "08080021325698",
        "Name": "Tom Kirkman"
      },
      "RemittanceInformation": {
        "Reference": "DSR-037",
        "Unstructured": "Internal ops code 5120103"
      }
    }
  },
  "Risk": {
    "PaymentContextCode": "PartyToParty"
  }
}
POST /domestic-scheduled-payments Response
HTTP/1.1 201 Created
x-jws-signature: V2hhdCB3ZSBnb3QgaGVyZQ0K..aXMgZmFpbHVyZSB0byBjb21tdW5pY2F0ZQ0K
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json
{
  "Data": {
    "DomesticScheduledPaymentId": "7290-003",
    "ConsentId": "7290",
    "Status": "InitiationPending",
    "CreationDateTime": "2018-05-05T15:15:13+00:00",
    "StatusUpdateDateTime": "2018-05-05T15:15:13+00:00",
    "Initiation": {
      "InstructionIdentification": "89f0a53a91ee47f6a383536f851d6b5a",
      "RequestedExecutionDateTime": "2018-08-06T00:00:00+00:00",
      "InstructedAmount": {
        "Amount": "200.00",
        "Currency": "GBP"
      },
      "DebtorAccount": {
        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
        "Identification": "11280001234567",
        "Name": "Andrea Frost"
      },
      "CreditorAccount": {
        "SchemeName": "UK.OBIE.SortCodeAccountNumber",
        "Identification": "08080021325698",
        "Name": "Tom Kirkman"
      },
      "RemittanceInformation": {
        "Reference": "DSR-037",
        "Unstructured": "Internal ops code 5120103"
      }
    }
  },
  "Links": {
    "Self": "https://api.alphabank.com/open-banking/v3.1/pisp/domestic-scheduled-payments/7290-003"
  },
  "Meta": {}
}