SRD Validator API specification
This document describes the technical specification of the Secondary Reference Data (SRD) Account Validation API designed to help consumers determine whether an account is defined in the context of CoP as a so-called SRD Account or not. An SRD Account is an account for which the secondary reference identification field is mandatory because it represents a collection account of some sort. For those accounts the secondary reference identification field contains the data necessary to determine the actual beneficiary. The access token acquired and used for the Account Check API can also be used for the SRD validator.
Request Headers
AuthorizationBearerMandatoryX-fapi-interaction-IdstringMandatoryContent-Typeapplication/jsonMandatoryAcceptapplication/json
Response Headers
X-fapi-interaction-IdstringMandatoryContent-Typeapplication/jsonMandatory
Example of request headers:
| Header name | Values |
|---|---|
| Authorization | Bearer <your bearer token> |
| x-fapi-interaction-id | ca1449f0-140d-4e93-a268-33b8067ecf23 |
| Content-Type | application/json;charset=utf-8 |
Request body
SchemeNameenumMandatoryIdentificationstringMandatory
Response body
Successful response
Status code 200 is returned with fields and corresponding values as below
SRDAccountbooleanAlways returnedSRDAccountTypeenumSRDPatternstringBankCodestringBankNamestringObOrganisationIdstringObOrganisationNamestring
Request
{
"SchemeName": "SortCodeAccountNumber",
"Identification": "99999200000063"
}
Response
{
"SRDAccount": true,
"SRDAccountType": "HOCA",
"SRDPattern": "^[0-9]*$",
"BankCode": "9992",
"BankName": "Bank3",
"ObOrganisationId": "ob org id",
"ObOrganisationName": "Ob testing name"
}
Status and error codes
Errors respect standard HTTP status codes in the 4xx and 5xx range.
Error response
CodestringAlways returnedMessagestringAlways returnedErrorsArray
Technical Errors
| HTTP Status Code | Description |
|---|---|
| 400 - Bad request | Request has malformed missing or non-compliant JSON body or URL parameters |
| 401 - Unauthorised | Authorization header missing or invalid token |
| 405 - Method not allowed | The client tried to access the resource with a method that is not supported. |
| 415 - Unsupported Media Type | Client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format |
| 500 - Internal server error | Something went wrong on the API gateway or service. In this case the body might contain extra details. This error can also be returned if the upstream service returns an error. All CoP participants error messages, will be reported from the Gateway API perspective as “500 Internal server error” errors with detailed information provided within the Errors array in the error message body. |
Error response
{
"Code": "400 Bad Request",
"Message": "BAD_REQUEST",
"Errors": [
{
"ErrorCode": "UK.SRD.Field.Invalid",
"Message": "An invalid value is supplied in one of the fields.",
"Path": "Identification"
}
]
}