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

Name
Value

Content-Type

multipart/form-data

Authorization

Bearer <token>

Path Parameters

Name
Description

merchantId

Merchant Id for transaction batch file upload

Body

Name
Type
Required
Description

transactionsFile

File

True

A file that contains transactions

NOTE: The JSON file data structure inside will be the same as Upload Transaction Batch

Upload Transaction Batch File

post

Upload a file containing a batch of merchant transactions

Authorizations
Path parameters
merchantIdstringRequired

Merchant Id for transaction batch file upload

Body
transactionsFilestring · binaryOptional
Responses
200
Successful Response
application/json
post
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