Skip to main content
Version: 3.2.0

API Integration

Two APIs are available for merchants to retrieve the settlement information.

Settlement Header API: The merchant can specify the settlement Id or give a date range

Transaction API: a page/subset of transactions in a settlement will be return based on the offset and limit parameter passed in

All Production API access is via

This is our primary environment.

You may also be given access to our Staging environment. If this is the case, the access URL will be different.

Settlement Header Details API

Request

Merchants can submit requests with parameters such as Date Range (startDate, endDate), and authentication credentials.

If startDate and endDate are specified, then the settlements with settlement date between the date range will be returned. e.g. if settlements on 3/Mar/2024, 4/Mar/2024 and 5/Mar/2024 will be returned if the value of startDate and endDate is “2024-03-03” and “2024-03-05” respectively.

POST /v1/merchant/settlement

note

Required Scopes: read:merchant, read:merchant:settlement

Parameters

Field IDDescription
settlementId
Optional
String
This is to retrieve a specific Settlement.
Format UUID/String
cid
Optional
Int
Company ID as optional for filtering.
chid
Optional
Int
Chain ID as optional for filtering.
mid
Optional
String
The Merchant ID.
Format UUID/String
startDate
Optional
String
The from_date denote the starting date for which multiple settlement data is to be included in the report.
Format YYYY-MM-DD
endDate
Optional
String
The End Date of the date range filter to determine the oldest date a settlement has been created.
Format YYYY-MM-DD
limit
Optional
Number
Number of settlements to show per query, default is 50
offset
Optional
Number
The number of records to offset by, default is 0

Sample request

{
"settlementId": "xxxx",
"cid": 1,
"chid": 2,
"mid": "xxxx",
"startDate": "2023-09-02",
"endDate": "2024-12-03",
"limit": 1,
"offset": 1
}

Response

200 - OK

Settlement header details are returned.

Status

KeyDescription
codeString
the result code of the request
responseString
Status can be either Success, Fail, or other information

Data

KeyDescription
settlementIdString
Settlement ID
paymentServiceString
The payment service used to obtain this data.
merchantIdString
DMG’s merchant ID.
accountingTokenString
DMG’s account token, also known as an entity ID.
settlementStatusString
Status of the settlement, this can be settled, pending_settlement or settled_out_of_balance.
settlementDateString
Date and time of the settlement report was provided for this record, in ISO 8601 format.
amountGrossNumber
Gross settlement amount exclusive of tax in the smallest unit of the currency.
feesNumber
Fees associated to the settlement in the smallest unit of the currency.
taxNumber
Tax associated to the settlement in the smallest unit of the currency.
currencyCodeString
The currency code used in Settlement in ISO 4217 format.
amountPayInNumber
Amount to be paid into the settlement account in the smallest unit of the currency.
decimalPlacesNumber
decimal places used in order to bring to more common unit, e.g. 2 would equal 100 sub-units (e.g. cents, pence etc).
paymentEndToEndIdsString[]
Array of EndtoEndIDs value from the PAIN001 file provided at settlement processing.
paymentReferencesString[]
Array of PmtInfIDs value from the PAIN001 file provided at settlement processing.
totalTransactionsNumber
Total number of transactions for this settlement report.

200 - Error

Settlement header details are returned.

Status

KeyDescription
codeString
The result code of the request
responseString
Status should be the error type.
messageString
The error message provided back from the API

Transaction Details API

Request

Merchants can submit requests with parameters such as settlementId, offset and limit (optional) to retrieve a subset of transactions in a settlement.

POST /v1/merchant/settlement/transactions

note

Required Scopes: read:merchant, read:merchant:settlement

Parameters

Field IDDescription
settlementIdString
The Unique Identifier of a Settlement. When this settlementIdpassed in the request, the transactions linked to this settlement will be returned.
limit
Optional
Number
The limit parameter controls the maximum number of items that may be returned for a single request. If no limit is specified, the system defaults to a limit of a default value. The maximum valid limit value is 100 which could vary depending on the solution capacity.
Default value is 50
offset
Optional
Number
The offset parameter controls the starting point within the collection of resource results. Note that the first item in the collection is retrieved by setting to 0.
Default value is 0

Sample request

{
"settlementId": "8f33a85b-bc5e-4ca8-ac66-caa1a6202c3b",
"limit": 10,
"offset": 1
}

Response

200 - OK

The response format includes structured settlement data and contain information including transaction details, settlement amounts, and timestamps.

Status

KeyDescription
codeString
the result code of the request
responseString
Status can be either Success, Fail, or other information

Data

Below transaction details are listed in the response.

note

Transaction 1 is the example of EIPP and Virtual Account extra fields.

Transaction 2 is the example of MarketPlace (2 sellers) and Virtual Account extra fields.

Transaction 3 is the example of Hosted Payment Page (HPP).

KeyDescription
merchantIdString
Merchant ID in UUID format.
chargeIdString
Charge ID in UUID format.
transactionIdString
Transaction ID in UUID format.
timestampString
ISO 8601 format
transactionTypeString
paymentTypeNumber
amountNumber
Transaction amount in the smallest unit of the currency.
Example: 2300000
feesNumber
Fees associated to the settlement in the smallest unit of the currency.
taxNumber
Tax associated to the settlement in the smallest unit of the currency.
decimalPlacesNumber
decimal places used in order to bring to more common unit, e.g. 2 would equal 100 sub-units (e.g. cents, pence etc).
currencyCodeNumber
The currency code used in Settlement in ISO 4217 format.
stateString
The state of the order
Example: Approved
orderIdString
Order ID in UUID format.
notesArray
Extra data from HPP (old version) - TBC.. VA, EIPP, HPP in new version

200 - Error

Settlement header details are returned.

Status

KeyDescription
codeString
the result code of the request
responseString
Status should be the error type.
messageString
The error message provided back from the API