Account Validation

Account Validation records hold the details of an Account Validation check.

Method Purpose
POST Create an Account Validation record
GET (Singular) Retrieve Account Validation details

POST

Action: Create an Account Validation record.
Method: POST
URL: https://api.smarterpaycloud.com/Service.svc/accountvalidation

Note: On sucessful validation a Bank Account record and a Mandate record are created.


Request Parameters

Property Mandatory Description
reference False If provided, is used for the Mandate Auddis reference, else a system generated Auddis refernce is used
client_bank_account_id True The ID of a client bank account
return_url False A custom return page. Payment review details will be sent to this URL
metadata False String for Custom metadata

Request Sample

{ 
    "account_validation": { 
        "reference": "test234", 
        "client_bank_account_id": "CA013MQ0KN8XY6POXZG7", 
        "return_url": "https://smarterpay.com", 
        "metadata": null 
    } 
} 

Response Parameters

Property Description
id Unique identifier of the record
metadata Record metadata
account_number Account number
sort_code Sort code
account_name Account name
mandate_id ID of that associated Mandate
report JSON formatted response, or null if not populated
reference Mandate AUDDIS reference, if provided
return_url Return URL, if provded
client_bank_account_id ID of the client bank account
account_validation_url Account validation url
message Account validation message, if populated
error_message Account validation error message, if provided
successful_validation “True” if succesfully validate, “False” if not attempted or failed validation

Response Sample

{
    "account_validation": {
        "id": "AV016MQ0KN6XY6POXZG6",
        "metadata": null,
        "sort_code": "902127",
        "account_number": "29823529",
        "account_name": "J Hetfield",
        "mandate_id": "M01LGRM6OPE06P064DV",
        "report": "{\"id\":\"7db089a07a2d4f458c596ece1d27ebaf\",\"created\":1678983186897,\"userDataByProvider\":[{\"providerName\":\"oauth2\",\"updated\":1678983186243,\"financialInstitutionName\":\"BANK OF IRELAND (UK) PLC\",\"identity\":{},\"accounts\":[{\"id\":\"792a73c468c844f7b29336694f96611e\",\"accountNumber\":\"90212729823529\",\"currencyCode\":\"GBP\",\"name\":\"J Hetfield\",\"holderName\":\"J Hetfield\",\"accountIdentifiers\":{\"bacs\":{\"sortCode\":\"902127\",\"accountNumber\":\"29823529\"}},\"parties\":[{\"role\":\"HOLDER\",\"identity\":{\"name\":\"J Hetfield\"}}]}]}]}",
        "reference": null,
        "return_url" null,
        "client_bank_account_id": "OB0166YQRDJZWJVL656M",
        "account_validation_url": "https://testaccountvalidation.smarterpaycloud.com/?ID=AV016MQ0KN6XY6POXZG6",
        "message": null,
        "error_message": null,
        "successful_validation": false
    }
}

Action: Retrieve Account Validation details.
Method: GET
URL: https://api.smarterpaycloud.com/Service.svc/accountvalidation/{ID}

{ID} denotes ID of record.

Response Parameters

Property Description
id Unique identifier of the record
metadata Record metadata
account_number Account number
sort_code Sort code
account_name Account name
mandate_id ID of that associated Mandate
report JSON formatted response, or null if not populated
reference Mandate AUDDIS reference, if provided
return_url Return URL, if provded
client_bank_account_id ID of the client bank account
account_validation_url Account validation url
message Account validation message, if populated
error_message Account validation error message, if provided
successful_validation “True” if succesfully validate, “False” if not attempted or failed validation

Response Sample

{
    "account_validation": {
        "id": "AV016MQ0KN6XY6POXZG6",
        "metadata": null,
        "sort_code": "902127",
        "account_number": "29823529",
        "account_name": "J Hetfield",
        "mandate_id": "M01LGRM6OPE06P064DV",
        "report": "{\"id\":\"7db089a07a2d4f458c596ece1d27ebaf\",\"created\":1678983186897,\"userDataByProvider\":[{\"providerName\":\"oauth2\",\"updated\":1678983186243,\"financialInstitutionName\":\"BANK OF IRELAND (UK) PLC\",\"identity\":{},\"accounts\":[{\"id\":\"792a73c468c844f7b29336694f96611e\",\"accountNumber\":\"90212729823529\",\"currencyCode\":\"GBP\",\"name\":\"J Hetfield\",\"holderName\":\"J Hetfield\",\"accountIdentifiers\":{\"bacs\":{\"sortCode\":\"902127\",\"accountNumber\":\"29823529\"}},\"parties\":[{\"role\":\"HOLDER\",\"identity\":{\"name\":\"J Hetfield\"}}]}]}]}",
        "reference": null,
        "return_url" null,
        "client_bank_account_id": "OB0166YQRDJZWJVL656M",
        "account_validation_url": "https://testaccountvalidation.smarterpaycloud.com/?ID=AV016MQ0KN6XY6POXZG6",
        "message": null,
        "error_message": null,
        "successful_validation": false
    }
}
  • Last modified: 2023/12/07 15:35