API Guide
Upay Web API domain: https://vsi-api.shouqianba.com
Upay Web API accepts only JSON formatted HTTP requests. Please make sure to add Content-Type header and set its value to application/json for all requests.
All requests must be UTF-8 encoded; all responses are UTF-8 encoded as well.
All requests must be signed as instructed below:
Request Signature
- Upay Web API uses application layer signature mechanism. The
UTF-8encoded body (regardless of any formatting) byte stream is used for signature. - The client
snand signature value should be in theAuthorizationheader of HTTP requests. It will be validated by Upay Web API service. - Signature algorithm:
sign = MD5(CONCAT(body + key)) - HTTP header:
Authorization: sn + " " + sign
Upay different sn & key
- For activation (
/terminal/activate), please usevendor_snandvendor_keyfor signature.Verdor_sn and key will be provided offline. - For other requests (check-in, pay, refund, query, etc.), please use
terminal_snandterminal_key, which is returned in successful activation or check-in responses.