Update Order Status

Introduction

When you transferred cryptos to user, you need to use this API to notify AlchemyPay.

API Description

Request Method: POST

Request Path: /webhooks/treasure

Header Parameters:

ElementMandatoryData TypeRemarks
appIdYstringPartner unique ID
timestampYstringUTC time with 13 digit to represent time in milliseconds,
expiration period is 5 minutes.
signYstringSHA1(appId + appSecret + timestamp), perform SHA1 hash
calculation on the concatenated string of the three parameters
to generate hexadecimal characters,the sign method can refer here

Body Parameters:

ElementMandatoryData TypeRemarks
orderNoYstringAlchemy Pay order ID
cryptoYstringCrypto type
cryptoAmountYstringAmount of the transferred token
cryptoPriceYstringPrice of the token
txHashYstringCrypto hash
networkYstringCrypto network
networkFeeYstringCrypto network fee
addressYstringUser's crypto address
statusNstringSUCCESS/FAIL

Response Parameter Example:

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": null,
    "traceId": "682ad34f414X22df786227edec4b876e9"
}