Skip to main content

Change in order status

A webhook is pushed when an order's status changes. The data structure is as follows:

Data parameters

ParameterTypeMandatoryDescription
merchantOrderIdStringYMerchant's Order Id
orderIdStringYOrder ID
userIdStringYUser ID
fiatCurrencyStringYFiat currency
cryptoCurrencyStringYCryptocurrency
fiatAmountStringYFiat amount
cryptoAmountStringYCryptocurrency amount
orderFeeStringYTransaction fee
priceStringYPrice
payWayCodeStringYPayment method
stateStringYOrder status:
CREATEED: Order created successfully (only push to bottom warehouse merchants)
PROCESSING: 3DS Payment Link Generated
FAILED: Payment failed
SUCCESSED: Payment successful, awaiting coin transfer (Pushed after payment by underlying merchants)
CHAIN_WITHDRAW_WAIT: Coin transfer in progress (Pushed after payment by on-chain merchants)
COMPLETED: The order is completed, and the coin transfer is successful or failed.
CONVERSION_FAILED: Hedging failed
errorCodeStringNError code for payment failure.
errorMessageStringNError information
completedTimeStringNOrder execution time
createTimeStringYCreation time
updateTimeStringYLast update time
networkStringYNetwork
addressStringYWithdrawal address
tagStringNtag address
merchantUserStringNUser's unique tag on the merchant side
txIdStringNOn-chain transfer transaction ID
networkFeeStringNOn-chain gas fee
chainArrivalTimeStringNOn-chain crediting time
actualReceivedAmountStringYActual amount received
threeDsRedirectUrlStringN3DS link
orderCallBackUrlStringYWebhook callback address
privateSecretStringNApp private secret
appidStringNappId

Output parameters

When a merchant receives a webhook push, it needs to return the following parameters. The data format is not required.

ParameterTypeMandatoryDescription
codeStringYStatus code. Success: 00000
dataObjectNBusiness parameters
msgStringYNote
requestTimeLongYInterface response timestamp

How was your Reading Experience with us?

footer_logoCopyright
Quadrum Verslo Centra, Konstitucijos pr 21, Vilnius 08130 , Lithuania