Initiate MATM
Initiate MATM
Postman Collection
URL
POST : /v1/service/matm/initHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
macAddress (String) Required
MAC Address (Max Length: 30)
MAC Address (Max Length: 30)
clientRefId (String) Required
Client Reference ID (Max Length: 20)
Client Reference ID (Max Length: 20)
longitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
latitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
txnType (String) Required
Transaction Type (Max Length: 10)
Transaction Type (Max Length: 10)
routeType (String) Required
Route Type (Max Length: 5)
Route Type (Max Length: 5)
amount (String) Required
Amount (Max Length: 5)
Amount (Max Length: 5)
merchantCode (String) Required
Merchant Code (Max Length: 50)
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
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Record inserted.",
"status": "SUCCESS",
"data": {
"amount": "0",
"merchantcode": "AKSKSKS",
"routeType": "sdk",
"orderRefId": "MBE3****60141286****6F0",
"superMerchantLoginId": "iydapaymentd",
"superMerchantPassword": "1234d",
"superMerchantId": "1176"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "Error, MATM not initiate",
}
Response Code
Status Code | Status | Message |
---|---|---|
0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
0x0202 | FAILURE | FAILURE USER |
0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
0x0206 | PENDING | TRANSACTION PENDING |
0x0207 | REVERSED | TRANSACTION REVERSED |
0x0209 | REDIRECT | REDIRECT URL |