Skip to main content

Initiate MATM

Initiate MATM

Postman Collection

URL

POST : /v1/service/matm/init

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

macAddress  (String)   Required
MAC Address (Max Length: 30)
clientRefId  (String)   Required
Client Reference ID (Max Length: 20)
longitude  (String)   Required
Current location latitude (Max Length: 20)
latitude  (String)   Required
Current location latitude (Max Length: 20)
txnType  (String)   Required
Transaction Type (Max Length: 10)
routeType  (String)   Required
Route Type (Max Length: 5)
amount  (String)   Required
Amount (Max Length: 5)
merchantCode  (String)   Required
Merchant Code (Max Length: 50)

Request

Example Request
    curl --location '/v1/service/matm/init' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"macAddress": "00:1b:63:84:45:e6",
"clientRefId": "CRF494****4949",
"longitude": "80.946167",
"latitude": "26.846695",
"txnType": "sdkenquiry",
"routeType" : "sdk",
"amount": "0",
"merchantCode": "AKSKSKS"
}'

Response Samples

    {
"code": "0x0200",
"message": "Record inserted.",
"status": "SUCCESS",
"data": {
"amount": "0",
"merchantcode": "AKSKSKS",
"routeType": "sdk",
"orderRefId": "MBE3****60141286****6F0",
"superMerchantLoginId": "iydapaymentd",
"superMerchantPassword": "1234d",
"superMerchantId": "1176"
}
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING
0x0207REVERSEDTRANSACTION REVERSED
0x0209REDIRECTREDIRECT URL