Transaction data
Transaction data
ClearBank allows you to retrieve transactions against:
- your institution,
- real accounts,
- and virtual accounts.
This includes information about payments which have been settled, those that are currently being processed, and those which have been rejected.
Get all transactions (institution)
get/v2/Transactions
Gets a summary of all of the transactions from the institution.
Parameters
- pageNumber integer, query
The page number to control returned results into manageable sets. Default if not provided: 1.
- pageSize integer, query
The page size to control returned results into manageable sets. Default if not provided: 50.
- startDateTime string, query
Providing the startDateTime filters the result set to include transactions where the transaction time is either equal to or greater than the value specified.
- endDateTime string, query
Providing the endDateTime filters the result set to include transactions where the transaction time is either equal to or less than the value specified.
- paymentMethodType string, query
The payment method type filters the results to include that payment method type.
- endToEndIdentifier string, query
The scheme-specific end-to-end transaction identifier. When specified, only transactions with this ID are included.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank Portal.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 409 Conflict
OK
{"transactions": [{"amount": {"instructedAmount": 0,"currency": "GBP"},"counterpartAccount": {"identification": {"iban": "GB12CLBK01020312345678","accountName": "Current Account","sortCode": "010203","accountNumber": "12345678","reference": "string","other": {"identification": "GBR01020312345678","schemeName": {"code": "BBAN","proprietary": "PRTY_COUNTRY_SPECIFIC"},"issuer": "string"}}},"debitCreditCode": "DBIT","endToEndIdentifier": "string","transactionId": "string","transactionReference": "string","transactionTime": "2019-08-24T14:15:22Z","status": "ACCP","ultimateBeneficiaryAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"},"ultimateRemitterAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}}],"halLinks": [{"name": "string","href": "string","templated": true}]}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Get all transactions (real account)
get/v2/Accounts/{accountId}/Transactions
Gets a summary of all of the transactions from the specified account.
Parameters
- accountId string, path, Required
The unique identifier for the account. This can be retrieved from GET /v3/Accounts.
- pageNumber integer, query
The page number to control returned results into manageable sets. Default if not provided: 1.
- pageSize integer, query
The page size to control returned results into manageable sets. Default if not provided: 50.
- startDateTime string, query
Providing a startDateTime filters the result set to include transactions where the transaction time is either equal to or greater than the value specified.
- endDateTime string, query
Providing an endDateTime filters the result set to include transactions where the transaction time is either equal to or less than the value specified.
- paymentMethodType string, query
The payment method type filters the results to include that payment method type.
- endToEndIdentifier string, query
The scheme-specific end-to-end transaction identifier. When specified, only transactions with this ID are included.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank Portal.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 409 Conflict
OK
{"transactions": [{"amount": {"instructedAmount": 0,"currency": "GBP"},"counterpartAccount": {"identification": {"iban": "GB12CLBK01020312345678","accountName": "Current Account","sortCode": "010203","accountNumber": "12345678","reference": "string","other": {"identification": "GBR01020312345678","schemeName": {"code": "BBAN","proprietary": "PRTY_COUNTRY_SPECIFIC"},"issuer": "string"}}},"debitCreditCode": "DBIT","endToEndIdentifier": "string","transactionId": "string","transactionReference": "string","transactionTime": "2019-08-24T14:15:22Z","status": "ACCP","ultimateBeneficiaryAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"},"ultimateRemitterAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}}],"halLinks": [{"name": "string","href": "string","templated": true}]}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Get a transaction (real account)
get/v2/Accounts/{accountId}/Transactions/{transactionId}
Gets the details of a specific transaction from the specified account.
Parameters
- accountId string, path, Required
The unique identifier for the account. This can be retrieved from GET /v3/Accounts.
- transactionId string, path, Required
The unique identifier for the transaction. This can be retrieved from GET /v2/Transactions.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank Portal.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
OK
{"transaction": {"amount": {"instructedAmount": 0,"currency": "GBP"},"counterpartAccount": {"identification": {"iban": "GB12CLBK01020312345678","accountName": "Current Account","sortCode": "010203","accountNumber": "12345678","reference": "string","other": {"identification": "GBR01020312345678","schemeName": {"code": "BBAN","proprietary": "PRTY_COUNTRY_SPECIFIC"},"issuer": "string"}}},"debitCreditCode": "DBIT","endToEndIdentifier": "string","transactionId": "string","transactionReference": "string","transactionTime": "2019-08-24T14:15:22Z","status": "ACCP","ultimateBeneficiaryAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"},"ultimateRemitterAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}},"halLinks": [{"name": "string","href": "string","templated": true}]}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Not Found
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Get all transactions (virtual account)
get/v2/Accounts/{accountId}/Virtual/{virtualAccountId}/Transactions
Gets a summary of all of the transactions from the specified virtual account.
Parameters
- accountId string, path, Required
The unique identifier for the real account. This can be retrieved from GET /v3/Accounts.
- virtualAccountId string, path, Required
The unique identifier for the virtual account. This can be retrieved from GET /v2/Accounts/{accountId}/Virtual.
- pageNumber integer, query
The page number to control returned results into manageable sets. Default if not provided: 1.
- pageSize integer, query
The page size to control returned results into manageable sets. Default if not provided: 50.
- startDateTime string, query
When provided, the startDateTime filters the result set to include transactions where the transaction time is either equal to or greater than the value specified.
- endDateTime string, query
When provided, the endDateTime filters the result set to include transactions where the transaction time is either equal to or less than the value specified.
- paymentMethodType string, query
The payment method type filters the results to include that payment method type.
- endToEndIdentifier string, query
The scheme-specific end-to-end transaction identifier. When specified, only transactions with this ID are included.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank Portal.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 409 Conflict
OK
{"transactions": [{"amount": {"instructedAmount": 0,"currency": "GBP"},"counterpartAccount": {"identification": {"iban": "GB12CLBK01020312345678","accountName": "Current Account","sortCode": "010203","accountNumber": "12345678","reference": "string","other": {"identification": "GBR01020312345678","schemeName": {"code": "BBAN","proprietary": "PRTY_COUNTRY_SPECIFIC"},"issuer": "string"}}},"debitCreditCode": "DBIT","endToEndIdentifier": "string","transactionId": "string","transactionReference": "string","transactionTime": "2019-08-24T14:15:22Z","status": "ACCP","ultimateBeneficiaryAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"},"ultimateRemitterAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}}],"halLinks": [{"name": "string","href": "string","templated": true}]}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Get a transaction (virtual account)
get/v2/Accounts/{accountId}/Virtual/{virtualAccountId}/Transactions/{transactionId}
Gets the details of a specific transaction from the specified virtual account.
Parameters
- accountId string, path, Required
The unique identifier for the account. This can be retrieved from GET /v3/Accounts.
- virtualAccountId string, path, Required
The unique identifier for the virtual account. This can be retrieved from GET /v2/Accounts/{accountId}/Virtual.
- transactionId string, path, Required
The unique identifier for the transaction. This can be retrieved from GET /v2/Transactions.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank Portal.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
OK
{"transaction": {"amount": {"instructedAmount": 0,"currency": "GBP"},"counterpartAccount": {"identification": {"iban": "GB12CLBK01020312345678","accountName": "Current Account","sortCode": "010203","accountNumber": "12345678","reference": "string","other": {"identification": "GBR01020312345678","schemeName": {"code": "BBAN","proprietary": "PRTY_COUNTRY_SPECIFIC"},"issuer": "string"}}},"debitCreditCode": "DBIT","endToEndIdentifier": "string","transactionId": "string","transactionReference": "string","transactionTime": "2019-08-24T14:15:22Z","status": "ACCP","ultimateBeneficiaryAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"},"ultimateRemitterAccount": {"id": "string","iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}},"halLinks": [{"name": "string","href": "string","templated": true}]}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Not Found
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}