Upload Transaction Batch File
POST
https://{base_url}/v2/merchant/{merchantId}/transactionBatch
The Request Body must include a file namedtransactionsFile
, which contains a batch of transaction details. The file should be in JSON format, with each entry representing a single transaction.
This endpoint is used to upload and validate a batch of transactions for a specified merchant. It performs general validation and mandatory field checks on the transaction data. If all validations pass, a success message is returned. Otherwise, detailed error messages are provided for any validation failures.
Headers
Content-Type
multipart/form-data
Authorization
Bearer <token>
Path Parameters
merchantId
Merchant Id for transaction batch file upload
Body
transactionsFile
File
True
A file that contains transactions
NOTE: The JSON file data structure inside will be the same as Upload Transaction Batch
Upload a file containing a batch of merchant transactions
Merchant Id for transaction batch file upload
POST /api/v2/merchant/{merchantId}/transactionBatch HTTP/1.1
Host: {baseurl}
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 29
{
"transactionsFile": "binary"
}
{
"msg": "Transactions processed",
"results": [
{
"status": "success",
"msg": "text"
}
]
}
Last updated