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:
| 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 Parameter Example:
{
"success": true,
"returnCode": "0000",
"returnMsg": "SUCCESS",
"extend": "",
"data": null,
"traceId": "682ad34f414X22df786227edec4b876e9"
}
Updated 5 months ago