Update Order Status
Introduction
When you transferred cryptos to user, you need to use this API to notify AlchemyPay.
API Description
AlchemyPay Domain:
https://openapi-test.alchemypay.org --test
https://openapi.alchemypay.org --production
Path: POST {{AlchemyPay Domain}}/webhooks/treasure
Head Parameters:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
appId | Y | string | Partner unique ID |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes. |
sign | Y | string | SHA1(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:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
orderNo | Y | string | Alchemy Pay order ID |
crypto | Y | string | Crypto type |
cryptoAmount | Y | string | Amount of the transferred token |
cryptoPrice | Y | string | Price of the token |
txHash | Y | string | Crypto hash |
network | Y | string | Crypto network |
networkFee | Y | string | Crypto network fee |
address | Y | string | User's crypto address |
status | N | string | SUCCESS/FAIL |
Response Parameters:
{
"data": null,
"success": true,
"returnCode": "0000",
"returnMsg": "eygyjppg",
"traceId": "ypezrcpbszcigtinqnmmryxhpwmsmuryklusiofdleai"
}
Updated 4 months ago