API Workflow & Setup

This document outlines the standard (Happy-path) flow for the BTD API. It explains how to retrieve the transaction details of a batch, and how to retrieve the other Id's (account en batch) that you need to be able to do this.

To test error scenarios, see Try it Out (Sandbox).

Before you begin

Before you request batch transaction details, you should to meet the following requirements.

Sandbox Requirements
Production Requirements

Required Headers

You are required to sign the payload for GET (Batch transactions for a specific consented payment account) requests.

📘

Read our Validate Signing Requests documentation for a detailed description of our signing method.

Required headers to include in your requests are:

NameDescriptionFormat
DateThe date in a RFC-compliant date/time format.String
DigestThe digest is a base64 encoded hash of the body.String
X-Request-IDThe X-Request-ID is a UUID generated by you.UUID
SignatureThe signature is the signing string signed with your private key.String
Signature-CertificateThe signature certificate is the public part of your EV SSL signing certificate.String
X-IBM-Client-IDThe X-IBM-Client-ID is a UUID generated by your application.UUID
AuthorizationThe Authorization header should include your access token.String

To retrieve the transaction details of a specific batch for a payment account, your request must include both an account-id and a batch-entry-reference.

Step 1 - Retrieve account-id

Endpoint:

Read Account List
GET /payments/insight/accounts

Purpose: Before making a request to batch transactions endpoint, you must obtain the account-id by using the Read Account List endpoint of the Business Account Insight - Accounts API.

Step 2 - Retrieve batch-entry-reference

Endpoint:

Read Transactions
GET /payments/insight/accounts/{account-id}/transactions

Purpose: You can obtain the batch-entry-reference by using the Read Transactions endpoint of the Business Account Insight - Transactions API using the account-id.

Step 3 - Retrieve transaction details of a specific batch

Endpoint:

Batch transactions for a specific consented payment account
GET /payments/insight/accounts/{account-id}/batch-details/{batch-entry-reference}

Purpose: Retrieves all transactions including details for a specific batch using the account-id and batch-entry-reference.

In the response, you receive a list of transactions for a specific batch.

Each response is paginated with a maximum of 500 transactions per page. You can use the pageNumber parameter to retrieve a next page of transactions for that batch.

The total number of transactions and the corresponding amount for the batch should match the booking returned by the Business Account Insight - Transactions API. Any rejections are booked as separate return bookings and are not be visible in this response.

Download API Specification

Batch Transaction Details