Skip to content

Submit trxId (/payin/trxId/submit) ​

Description ​

Merchants can call this endpoint to submit a customer-provided mobile wallet transaction ID (trxId) and associate it with a specific merchant order (merchantOrderNo).


Request Information ​

  • Endpoint: /payin/trxId/submit
  • Method: POST
  • Content-Type: application/json; charset=utf-8

HTTP Headers ​

HeaderRequiredTypeDescription
merchantNoYesStringMerchant ID
signYesStringBase64-encoded RSA digital signature of the request body

Request Body Parameters ​

ParameterRequiredTypeExampleDescription
timestampYesLong1772880250000Epoch timestamp in milliseconds
trxIdYesStringSDIIFKISDLtrxId (Unique transaction ID generated by the wallet)
merchantOrderNoYesString202603070001Merchant order number

Request Payload Example ​

json
{
  "timestamp": 1772880250000,
  "trxId": "SDIIFKISDL",
  "merchantOrderNo": "202603070001"
}

Response Parameters ​

1. Success Response Example ​

json
{
  "code": 1,
  "msg": "success",
  "data": {}
}

2. Order Already Finished Response Example ​

json
{
  "code": 0,
  "msg": "ORDER_FINISH",
  "data": {}
}

3. trxId Already Used Response Example ​

json
{
  "code": 0,
  "msg": "TRXID_IS_USED",
  "data": {}
}

4. trxId Not Found Response Example ​

json
{
  "code": 0,
  "msg": "TRXID_NOT_EXIST"
}

5. Other Error Response Example ​

json
{
  "code": 0,
  "msg": "ERROR_CODE"
}

Response Fields Description ​

FieldRequiredTypeDescription
codeYesString / IntegerStatus code: 1 for success, 0 for failure
msgYesStringMessage description (success, ORDER_FINISH, TRXID_IS_USED, TRXID_NOT_EXIST, or error code)
dataYesObjectResponse data payload (empty object {} when no payload)
data.merchantNoYesStringMerchant ID
data.merchantOrderNoYesStringMerchant order number
data.platOrderNoYesStringPlatform order number
data.amountYesStringTransaction amount
data.feeYesStringProcessing fee
data.expireTimeYesStringOrder expiration time
data.payUrlYesStringCheckout payment URL (payUrl)
data.statusYesStringStatus: 0 Created, 1 Expired, 2 Failed, 3 Succeeded
data.payAccountNoNoStringPayer wallet account number
data.trxIdNoStringUnique transaction ID generated by the e-wallet system to identify this transaction

Bangladesh Payment Gateway API Specifications