Standing Orders v3.0

Standing Orders v3.0

Version Control

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

Updated data dictionary to:

  • Include CASS definition of ENGLISH, SCOTTISH or RECEIVED
  • Updated class from OBReadStandingOrder2 to OBReadStandingOrder3
3.0-draft4 OB R/W API TeamClarified use of Idempotency Key in endpoint table.
3.0-draft5 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.
  • Errata - updated relevant references to OBReadStandingOrder2 to OBReadStandingOrder3 (for changes in v3.0-draft3).
  • 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-draft7 OB R/W API Team

Draft 7 Changes:

  • Corrected Usage Examples heading style
  • Added Frequency Examples
3.0-RC2 OB R/W API Team

Errata:

  • Typo - "Account and Creditor" in Data Model section changed to "CreditorAccount and CreditorAgent

RC2 Changes:

  • Additional guidance on inactive standing orders that "For Inactive Standing Orders, ASPSPs must populate the NextPaymentDateTime with last executed PaymentDateTime, and NextPaymentAmount with the last executed PaymentAmount."
3.0-RC3 OB R/W API Team

RC3 Changes:

  • Updated NextPaymentDateTime and NextPaymentAmount to 0..1 in the payload, and added guidance that: "For "Active" Standing Orders, an ASPSP must populate the NextPaymentDateTime and NextPaymentAmount"
3.0 OB R/W API Team

This is the baseline version. No change from RC3.

Endpoints

Endpoints for the resource - and available methods.


ResourceHTTP OperationEndpointMandatory?ScopeGrant TypeIdempotency KeyParametersRequest ObjectResponse Object
1standing-ordersGETGET /accounts/{AccountId}/standing-ordersConditionalaccountsAuthorization CodeNo

OBReadStandingOrder3
2standing-ordersGETGET /standing-ordersOptionalaccountsAuthorization CodeNoPagination
OBReadStandingOrder3

GET /accounts/{AccountId}/standing-orders

An AISP may retrieve the standing-order resource for a specific AccountId (which is retrieved in the call to GET /accounts).

GET /standing-orders

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

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

Data Model

The OBReadStandingOrder3 object will be used for the call to: 

  • GET /accounts/{AccountId}/standing-orders
  • GET /standing-orders

Resource Definition

A resource that contains a set of elements that describes the list of standing-orders that have been set up on a specific account (AccountId).

An account (AccountId) may have no standing orders set up, or may have multiple standing orders 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}/standing-orders 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).
  • For "Active" Standing Orders, an ASPSP must populate the NextPaymentDateTime and NextPaymentAmount
  • 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
Frequency Examples
FrequencyExampleDetails

EvryDay

EvryDay

Every day

EvryWorkgDay

EvryWorkgDay

Every working day

IntrvlWkDay

IntrvlWkDay:1:3

Every week, on the 3rd day of the week

IntrvlWkDay

IntrvlWkDay:2:3

Every 2nd week, on the 3rd day of the week

WkInMnthDay

WkInMnthDay:2:3

Every month, on the 2nd week of the month, and on the third day of the week

IntrvlMnthDayIntrvlMnthDay:1:-1Every month, on the last day of the month

IntrvlMnthDay

IntrvlMnthDay:6:15

Every 6th month, on the 15th day of the month

QtrDay

QtrDay:ENGLISH

Paid on the 25th March, 24th June, 29th September and 25th December

Permission Codes

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

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

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

Data Dictionary

NameOccurrenceXPathEnhancedDefinitionClassCodesPattern
OBReadStandingOrder3
OBReadStandingOrder3
OBReadStandingOrder3

Data1..1OBReadStandingOrder3/Data
OBReadDataStandingOrder3

StandingOrder0..nOBReadStandingOrder3/Data/StandingOrder
OBStandingOrder3

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

StandingOrderId0..1OBReadStandingOrder3/Data/StandingOrder/StandingOrderIdA unique and immutable identifier used to identify the standing order resource. This identifier has no meaning to the account owner.Max40Text

Frequency1..1OBReadStandingOrder3/Data/StandingOrder/FrequencyIndividual Definitions:
EvryDay - Every day
EvryWorkgDay - Every working day
IntrvlWkDay - An interval specified in weeks (01 to 09), and the day within the week (01 to 07)
WkInMnthDay - A monthly interval, specifying the week of the month (01 to 05) and day within the week (01 to 07)
IntrvlMnthDay - An interval specified in months (between 01 to 06, 12, 24), specifying the day within the month (-5 to -1, 1 to 31)
QtrDay - Quarterly (either ENGLISH, SCOTTISH, or RECEIVED)
ENGLISH = Paid on the 25th March, 24th June, 29th September and 25th December.
SCOTTISH = Paid on the 2nd February, 15th May, 1st August and 11th November.
RECEIVED = Paid on the 20th March, 19th June, 24th September and 20th December.

Individual Patterns:
EvryDay (ScheduleCode)
EvryWorkgDay (ScheduleCode)
IntrvlWkDay:IntervalInWeeks:DayInWeek (ScheduleCode + IntervalInWeeks + DayInWeek)
WkInMnthDay:WeekInMonth:DayInWeek (ScheduleCode + WeekInMonth + DayInWeek)
IntrvlMnthDay:IntervalInMonths:DayInMonth (ScheduleCode + IntervalInMonths + DayInMonth)
QtrDay: + either (ENGLISH, SCOTTISH or RECEIVED) ScheduleCode + QuarterDay

The regular expression for this element combines five smaller versions for each permitted pattern. To aid legibility - the components are presented individually here:
EvryDay
EvryWorkgDay
IntrvlWkDay:0[1-9]:0[1-7]
WkInMnthDay:0[1-5]:0[1-7]
IntrvlMnthDay:(0[1-6]|12|24):(-0[1-5]|0[1-9]|[12][0-9]|3[01])
QtrDay:(ENGLISH|SCOTTISH|RECEIVED)

Full Regular Expression:
^(EvryDay)$|^(EvryWorkgDay)$|^(IntrvlWkDay:0[1-9]:0[1-7])$|^(WkInMnthDay:0[1-5]:0[1-7])$|^(IntrvlMnthDay:(0[1-6]|12|24):(-0[1-5]|0[1-9]|[12][0-9]|3[01]))$|^(QtrDay:(ENGLISH|SCOTTISH|RECEIVED))$
Max35Text
^(EvryDay)$|^(EvryWorkgDay)$|^(IntrvlWkDay:0[1-9]:0[1-7])$|^(WkInMnthDay:0[1-5]:0[1-7])$|^(IntrvlMnthDay:(0[1-6]|12|24):(-0[1-5]|0[1-9]|[12][0-9]|3[01]))$|^(QtrDay:(ENGLISH|SCOTTISH|RECEIVED))$
Reference0..1OBReadStandingOrder3/Data/StandingOrder/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

FirstPaymentDateTime0..1OBReadStandingOrder3/Data/StandingOrder/FirstPaymentDateTimeThe date on which the first payment for a Standing Order schedule will be made.ISODateTime

NextPaymentDateTime0..1OBReadStandingOrder3/Data/StandingOrder/NextPaymentDateTimeThe date on which the next payment for a Standing Order schedule will be made.  This field is mandatory for Active Standing Orders.ISODateTime

FinalPaymentDateTime0..1OBReadStandingOrder3/Data/StandingOrder/FinalPaymentDateTimeThe date on which the final payment for a Standing Order schedule will be made.ISODateTime

StandingOrderStatusCode0..1OBReadStandingOrder3/Data/StandingOrder/StandingOrderStatusCodeSpecifies the status of the standing order in code form.OBExternalStandingOrderStatus1CodeActive
Inactive

FirstPaymentAmount0..1OBReadStandingOrder3/Data/StandingOrder/FirstPaymentAmountThe amount of the first Standing OrderOBActiveOrHistoricCurrencyAndAmount

Amount1..1OBReadStandingOrder3/Data/StandingOrder/FirstPaymentAmount/AmountA 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}$
Currency1..1OBReadStandingOrder3/Data/StandingOrder/FirstPaymentAmount/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}$
NextPaymentAmount0..1OBReadStandingOrder3/Data/StandingOrder/NextPaymentAmountThe amount of the next Standing Order. This field is mandatory for Active Standing Orders.OBActiveOrHistoricCurrencyAndAmount

Amount1..1OBReadStandingOrder3/Data/StandingOrder/NextPaymentAmount/AmountA 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}$
Currency1..1OBReadStandingOrder3/Data/StandingOrder/NextPaymentAmount/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}$
FinalPaymentAmount0..1OBReadStandingOrder3/Data/StandingOrder/FinalPaymentAmountThe amount of the final Standing OrderOBActiveOrHistoricCurrencyAndAmount

Amount1..1OBReadStandingOrder3/Data/StandingOrder/FinalPaymentAmount/AmountA 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}$
Currency1..1OBReadStandingOrder3/Data/StandingOrder/FinalPaymentAmount/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..1OBReadStandingOrder3/Data/StandingOrder/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..1OBReadStandingOrder3/Data/StandingOrder/CreditorAgent/SchemeNameName of the identification scheme, in a coded form as published in an external list.Max40Text

Identification1..1OBReadStandingOrder3/Data/StandingOrder/CreditorAgent/IdentificationUnique and unambiguous identification of the servicing institution.Max35Text

CreditorAccount0..1OBReadStandingOrder3/Data/StandingOrder/CreditorAccountProvides the details to identify the beneficiary account.OBCashAccount3

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

Identification1..1OBReadStandingOrder3/Data/StandingOrder/CreditorAccount/IdentificationBeneficiary account identification.Max256Text

Name0..1OBReadStandingOrder3/Data/StandingOrder/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..1OBReadStandingOrder3/Data/StandingOrder/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 Accounts Standing Orders Request
GET /accounts/22289/standing-orders 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 Standing Orders Response
HTTP/1.1 200 OK
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json

{
  "Data": {
    "StandingOrder": [
      {
        "AccountId": "22289",
        "StandingOrderId": "Ben3",
        "Frequency": "EvryWorkgDay",
        "Reference": "Towbar Club 2 - We Love Towbars",
        "FirstPaymentDateTime": "2017-08-12T00:00:00+00:00",
        "FirstPaymentAmount": {
          "Amount": "0.57",
          "Currency": "GBP"
        },
        "NextPaymentDateTime": "2017-08-13T00:00:00+00:00",
        "NextPaymentAmount": {
          "Amount": "0.56",
          "Currency": "GBP"
        },
        "FinalPaymentDateTime": "2027-08-12T00:00:00+00:00",
        "FinalPaymentAmount": {
          "Amount": "0.56",
          "Currency": "GBP"
        },
        "StandingOrderStatusCode": "Active",
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "80200112345678",
          "Name": "Mrs Juniper"
        }
      }
    ]
  },
  "Links": {
    "Self": "https://api.alphabank.com/open-banking/v2.0/accounts/22289/standing-orders/"
  },
  "Meta": {
    "TotalPages": 1
  }
}


Bulk

Request

Get Standing Orders Request
GET /standing-orders 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 Standing Orders Response
HTTP/1.1 200 OK
x-fapi-interaction-id: 93bac548-d2de-4546-b106-880a5018460d
Content-Type: application/json

{
  "Data": {
    "StandingOrder": [
      {
        "AccountId": "22289",
        "StandingOrderId": "Ben3",
        "Frequency": "EvryWorkgDay",
        "Reference": "Towbar Club 2 - We Love Towbars",
        "FirstPaymentDateTime": "2017-08-12T00:00:00+00:00",
        "FirstPaymentAmount": {
          "Amount": "0.57",
          "Currency": "GBP"
        },
        "NextPaymentDateTime": "2017-08-13T00:00:00+00:00",
        "NextPaymentAmount": {
          "Amount": "0.56",
          "Currency": "GBP"
        },
        "FinalPaymentDateTime": "2027-08-12T00:00:00+00:00",
        "FinalPaymentAmount": {
          "Amount": "0.56",
          "Currency": "GBP"
        },
        "StandingOrderStatusCode": "Active",
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "80200112345678",
          "Name": "Mrs Juniper"
        }
      },
      {
        "AccountId": "22289",
        "StandingOrderId": "Ben5",
        "Frequency": "WkinMnthDay(2)",
        "Reference": "Golf - We Love Golf",
        "FirstPaymentDateTime": "2017-06-12T00:00:00+00:00",
        "FirstPaymentAmount": {
          "Amount": "23.00",
          "Currency": "GBP"
        },
        "NextPaymentDateTime": "2017-07-12T00:00:00+00:00",
        "NextPaymentAmount": {
          "Amount": "23.00",
          "Currency": "GBP"
        },
        "FinalPaymentDateTime": "2018-06-12T00:00:00+00:00",
        "FinalPaymentAmount": {
          "Amount": "23.00",
          "Currency": "GBP"
        },
        "StandingOrderStatusCode": "Active",
        "CreditorAccount": {
          "SchemeName": "UK.OBIE.SortCodeAccountNumber",
          "Identification": "23605490179017",
          "Name": "Mr Tee"
        }
      }
    ]
  },
  "Links": {
    "Self": "https://api.alphabank.com/open-banking/v2.0/standing-orders/"
  },
  "Meta": {
    "TotalPages": 1
  }
}