Web Hook Usage

Besides the APIs we offer, we also build a web hook mechanism to notify partners some important event, like package creation and cancelation. The merchant should fill in a web hook url for each event notification on Ark platform (via Email currently) and develop an interface on their systems to receive requests from Ark server.

Sign Method

The method to generate sign is as same as the method used to generate API sign. The only difference is that the url address should be replaced by web hook address.

Web Hook Response Format

Please return responses in this format after receiving a web hook request.

{
   success:true,
   error_msg:""
}
Field Name Description
success True means the merchant's server has process the callback successfully. Otherwise, use False
error_msg The error message when success is False

Retry Mechanism

We will re-send a same web hook request if the success field in response is false, or last request times out. We will retry the first time after 10 seconds since last call and retry the second time after 30 seconds since last call.