Scheduled Payments v3.0

Scheduled Payments v3.0

Version Control

VersionDateAuthorComments
3.0-draft118-Apr-2018OB R/W API TeamInitial draft for Version 3.0
3.0-draft4 OB R/W API Team

UML diagram update for Amount field, and data dictionary update to reflect UML diagram update.

Clarified use of Idempotency Key in endpoint table.

3.0-draf5 OB R/W API Team

Draft5 Changes:

  • Updated examples to change UTC to GMT to be in line with https://tools.ietf.org/html/rfc7231#page-66 
  • P21 changes:
    • Internationalisation for the CreditorAgent object.
      • SchemeName updated to Max40Text - so that additional schemes can be agreed and specified outside of the OB standard.
    • Internationalisation for the CreditorAccount object.
      • SchemeName updated to Max40Text - so that additional schemes can be agreed and specified outside of the OB standard.
      • Identification updated to Max256Text - so that schemes that require an email address can be accommodated.
3.0-draft6/rc1 OB R/W API Team

Draft6 Changes:

  • Clarified how the ReadPAN permission affects the resource.
  • Updated definition of Name field in the CreditorAccount object for clarity. Have specified usage that it is "The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account."
  • Updated Usage Examples to reflect namespacing for the SchemeName
3.0-draf7 OB R/W API TeamNo Change
3.0-RC2 OB R/W API Team

Errata:

  • Typo - "Account and Creditor" in Data Model section changed to "CreditorAccount and CreditorAgent
3.0-RC3 OB R/W API TeamNo Change
3.0 OB R/W API TeamThis is the baseline version. No change from RC3.

Endpoints

Endpoints for the resource - and available methods.


ResourceHTTP OperationEndpointMandatory?ScopeGrant TypeIdempotency KeyParametersRequest ObjectResponse Object
1scheduled-paymentsGETGET /accounts/{AccountId}/scheduled-paymentsConditionalaccountsAuthorization CodeNo



OBReadScheduledPayment1
2scheduled-paymentsGETGET /scheduled-paymentsOptionalaccountsAuthorization CodeNo

Pagination


OBReadScheduledPayment1

GET /accounts/{AccountId}/scheduled-payments

An ASPSP may provide this endpoint for AISPs to retrieve the scheduled-payments for a specific AccountId (which is retrieved in the call to GET /accounts).

GET /scheduled-payments

If an ASPSP has implemented the bulk retrieval endpoints - an AISP may optionally retrieve the scheduled-payments resources in bulk.

This will retrieve the scheduled-payments resources for all authorised accounts linked to the account-request.

Data Model

Resource Definition

A resource that contains a set of elements that describes the scheduled payments that have been set up on a specific account (AccountId). A scheduled payment is a single one-off payment scheduled for a future date.

An account (AccountId) may have no scheduled payments set up, or may have multiple scheduled payments set up.

UML Diagram

Notes:

  • The CreditorAccount and CreditorAgent blocks replicate what is used consistently throughout the Account Information APIs to identify an account. 
  • For the /accounts/{AccountId}/scheduled-payments endpoint - the CreditorAccount and CreditorAgent blocks represent the account that is receiving funds (so has been named the CreditorAccount - for consistency with the PISP use case).
  • A DateTime element has been used - so that there is consistency across all API endpoints using dates. Where time elements do not exist in ASPSP systems - the time portion of the DateTime element will be defaulted to 00:00:00+00:00
  • The Amount elements all have embedded Currency elements - for consistency is ISO 20022, and across the other API endpoints

Permission Codes

The resource differs depending on the permissions (ReadScheduledPaymentsBasic and ReadScheduledPaymentsDetail) used to access resource. In the event the resource is accessed with both ReadScheduledPaymentsBasic and ReadScheduledPaymentsDetail, the most detailed level (ReadScheduledPaymentsDetail) must be used.

  • These objects must not be returned without the ReadScheduledPaymentsDetail permission:
    • OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAgent
    • OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount
  • If the ReadScheduledPaymentsDetail is granted by the PSU:
    • OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAgent may be returned if applicable to the account and ASPSP (0..1)
    • OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount must be returned (1..1)

If the ReadPAN permission is granted by the PSU - the ASPSP may choose to populate the OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount/Identification with the unmasked PAN (if the PAN is being populated in the response).

Data Dictionary

NameOccurrenceXPathEnhancedDefinitionClassCodesPattern
OBReadScheduledPayment1
OBReadScheduledPayment1
OBReadScheduledPayment1

Data1..1OBReadScheduledPayment1/Data
OBReadDataScheduledPayment1

ScheduledPayment0..nOBReadScheduledPayment1/Data/ScheduledPayment
OBScheduledPayment1

AccountId1..1OBReadScheduledPayment1/Data/ScheduledPayment/AccountIdA unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner.Max40Text

ScheduledPaymentId0..1OBReadScheduledPayment1/Data/ScheduledPayment/ScheduledPaymentIdA unique and immutable identifier used to identify the scheduled payment resource. This identifier has no meaning to the account owner.Max40Text

ScheduledPaymentDateTime1..1OBReadScheduledPayment1/Data/ScheduledPayment/ScheduledPaymentDateTimeThe date on which the scheduled payment will be made.ISODateTime

ScheduledType1..1OBReadScheduledPayment1/Data/ScheduledPayment/ScheduledTypeSpecifies the scheduled payment date type requestedOBExternalScheduleType1CodeArrival
Execution

Reference0..1OBReadScheduledPayment1/Data/ScheduledPayment/ReferenceUnique reference, as assigned by the creditor, to unambiguously refer to the payment transaction.

Usage: If available, the initiating party should provide this reference in the structured remittance information, to enable reconciliation by the creditor upon receipt of the amount of money.

If the business context requires the use of a creditor reference or a payment remit identification, and only one identifier can be passed through the end-to-end chain, the creditor's reference or payment remittance identification should be quoted in the end-to-end transaction identification.
Max35Text

InstructedAmount1..1OBReadScheduledPayment1/Data/ScheduledPayment/InstructedAmountAmount 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

Amount1..1OBReadScheduledPayment1/Data/ScheduledPayment/InstructedAmount/AmountA number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217.ActiveCurrencyAndAmount_SimpleType

Currency1..1OBReadScheduledPayment1/Data/ScheduledPayment/InstructedAmount/CurrencyA 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}$
CreditorAgent0..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAgentParty that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account.
This is the servicer of the beneficiary account.
OBBranchAndFinancialInstitutionIdentification4

SchemeName1..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAgent/SchemeNameName of the identification scheme, in a coded form as published in an external list.Max40Text

Identification1..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAgent/IdentificationUnique and unambiguous identification of the servicing institution.Max35Text

CreditorAccount0..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccountProvides the details to identify the beneficiary account.OBCashAccount3

SchemeName1..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount/SchemeNameName of the identification scheme, in a coded form as published in an external list.Max40Text

Identification1..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount/IdentificationBeneficiary account identification.Max256Text

Name0..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount/NameName of the account, as assigned by the account servicing institution.

Usage: The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account.
Max70Text

SecondaryIdentification0..1OBReadScheduledPayment1/Data/ScheduledPayment/CreditorAccount/SecondaryIdentificationThis is secondary identification of the account, as assigned by the account servicing institution.
This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination).
Max34Text

Usage Examples

Specific Account

Request 

Get Account Specific Scheduled Payments Request
GET /accounts/22289/scheduled-payments HTTP/1.1
Authorization: Bearer Az90SAOJklae
x-fapi-financial-id: OB/2017/001
x-fapi-customer-last-logged-time:  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
Accept: application/json

Response

Get Accounts Specific Scheduled Payments Response
HTTP/1.1 200 OK
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json

{
  "Data": {
    "ScheduledPayment": [
      {
        "AccountId": "22289",
        "ScheduledPaymentId": "SP03",
        "ScheduledPaymentDateTime": "2017-05-05T00:00:00+00:00",
        "ScheduledType": "Execution",
        "InstructedAmount": {
          "Amount": "10.00",
          "Currency": "GBP"
        },
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "23605490179017",
          "Name": "Mr Tee"
        }
      }
    ]
  },
  "Links": {
    "Self": "https://api.alphabank.com/open-banking/v2.0/accounts/22289/scheduled-payments/"
  },
  "Meta": {
    "TotalPages": 1
  }
}

Bulk

Request

Get Bulk Scheduled Payments Request
GET /scheduled-payments HTTP/1.1
Authorization: Bearer Az90SAOJklae
x-fapi-financial-id: OB/2017/001
x-fapi-customer-last-logged-time:  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
Accept: application/json

Response

Get Bulk Scheduled Payments Response
HTTP/1.1 200 OK
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json

{
  "Data": {
    "ScheduledPayment": [
      { 
		"AccountId": "22289",
        "ScheduledPaymentId": "SP03",
        "ScheduledPaymentDateTime": "2017-05-05T00:00:00+00:00",
        "ScheduledType": "Execution",
        "InstructedAmount": {
          "Amount": "10.00",
          "Currency": "GBP"
        },
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "23605490179017",
          "Name": "Mr Tee"
        }
      },
      {
        "AccountId": "39570",
        "ScheduledPaymentId": "SP77",
        "ScheduledPaymentDateTime": "2017-04-05T00:00:00+00:00",
        "ScheduledType": "Execution",
        "InstructedAmount": {
          "Amount": "12.00",
          "Currency": "GBP"
        },
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "23605490179017",
          "Name": "Mr Tee"
        }
      }
    ]
  },
  "Links": {
    "Self": "https://api.alphabank.com/open-banking/v2.0/scheduled-payments/"
  },
  "Meta": {
    "TotalPages": 1
  }
}


Related content