Hs bank reference [API Documentation]
version : 1.0.1
/payment/validate/
Headers
'Content-Type': 'application/json'
'auth':'api_key'
'key':'key_signature'
Data
{"params":
{"reference":"14234567","status":"paid",
"amount":50000,"date":"12-03-2020 23:34:34"}
}
Date time format: dd-mm-yyyy H:M:S
Results (Status)
201 : Created Successfully
400 : Bad Request , Invalid Reference
404 : Not Found
500 : AccessDenied
505 : Internal Server Error
OBS: For more information when get 400 code, see the content of your request.
payment/reference/
Headers
'Content-Type': 'application/json'
'auth':'api_key'
'key':'key_signature'
Data
{"params":
{"reference":"14234567"}
}
Results (Status)
200 : OK
400 : Bad Request
404 : Not Found
500 : AccessDenied
505 : Internal Server Error
Result Content
{"jsonrpc": "2.0",
"result": [
{"date": "2020-03-12 23:34:34", "status": "paid", "amount": 50000.0,
"reference": "14234567"} ]
}