Order Cancellation API

Overview

Merchants can call this API to mark an unpaid order as canceled.

Request Endpoint

https://apis.5upay.com/onlinePay/cancelOrder

Name Type& Length Description Required
merchantId varchar(9) Merchant ID in the PayEase system, viewable in the merchant backend M
requestId varchar(50) Order ID passed in from the Order Submission API M
partnerId varchar(9) Service provider ID in the PayEase system, viewable in the merchant backend C
hmac varchar(500) HMAC signature generated by the merchant. Refer to the encryption process for how to generate the HMAC. M

Note: The above parameter values must not contain the following special characters ' " & < > ( ) [Space]

Sample

{ "merchantId": "89***93", "requestId": "152***8867", "hmac": ******* }

Request Synchronous Response Parameters

Name Description
merchantId Merchant ID — same as the request parameter
requestId Order Number — same as the request parameter
partnerId Partner ID — same as the request parameter
status API call status:
SUCCESS API call succeeded
FAILED API call failed
errorMessage Error Message
hmac Signature generated by PayEase. Please refer to the decryption process for signature verification.

Sample

{ "merchantId": "89***593", "requestId": "152***867", "status": "SUCCESS", "hmac": ****** }