/waas/order/v1/query_orderQuery Order
Query the current status and full details of an order by cregis_id. Payment, bulk transfer, refund, and payment-exception details are included when applicable.
Error handling: Code 00000 indicates success; other return codes indicate an error. See WaaS Order Mode Error Codes.
Request
Request Body
required
application/jsonnoncestringrequired6-character random string.
timestampinteger<int64>required13-digit Unix timestamp (milliseconds).
signstringrequiredDigital signature for this request to prevent unauthorized requests. See the authentication guide.
pidinteger<int64>requiredProject ID — found under the project's settings.
cregis_idinteger<int64>requiredCregis order ID returned from Create Order.
Responses
200Successapplication/jsoncodestringrequiredReturn code. 00000 indicates success; other codes indicate an error. See WaaS Order Mode Error Codes.
msgstringrequiredResponse message.
datarequiredcregis_idinteger<int64>Unique Cregis order ID.
created_timeinteger<int64>Order creation time (13-digit Unix timestamp).
expire_timeinteger<int64>Order expiry time (13-digit Unix timestamp).
order_amountstringEcho of the submitted order amount.
order_currencystringEcho of the submitted order currency.
tokensarray<string>Echo of submitted tokens as an array; returns an empty array if not submitted.
callback_urlstring | nullEcho of the submitted callback URL; returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullvalid_timeintegerEcho of the submitted validity; returns the default value if not submitted.
stablecoin_realtime_rateintegerEcho of the submitted stablecoin rate flag; returns the default value if not submitted.
underpaid_tolerancestringEcho of the submitted underpayment tolerance; returns the default value if not submitted.
overpaid_tolerancestringEcho of the submitted overpayment tolerance; returns the default value if not submitted.
languagestringEcho of the submitted language; returns the default value if not submitted.
merchant_order_idstring | nullEcho of the submitted merchant order number; returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullremarkstring | nullEcho of the submitted remark; returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullcheckout_pageobject | nullReturns checkout settings and checkout_url when both success_url and cancel_url were provided; otherwise returns null.
Match one event payload shape
Option 1 ·
objectcheckout_urlstringCheckout page URL returned by Cregis.
success_urlstringURL to redirect the payer after successful payment.
cancel_urlstringRedirect URL when payment expires or an AML issue is triggered.
Option 2 ·
nullnullpayerobject | nullEcho of the submitted payer object; returns null if not submitted.
Match one event payload shape
Option 1 ·
objectpayer_idstring | nullPayer's unique identifier. Returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullpayer_namestring | nullPayer's name. Returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullpayer_emailstring | nullPayer's email address. Returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnull
Option 2 ·
nullnullsub_merchantobject | nullEcho of the submitted sub-merchant object; returns null if not submitted.
Match one event payload shape
Option 1 ·
objectsub_merchant_idstring | nullSub-merchant ID. Returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnullsub_merchant_namestring | nullSub-merchant name. Returns null if not submitted.
Match one event payload shape
Option 1 ·
stringstringOption 2 ·
nullnull
Option 2 ·
nullnullpayment_infoarrayPayment options for the intersection of configured transfer-wallet currencies and tokens; if tokens is empty, all configured currencies are returned.
Array items
payment_addressstringAddress where the payer should send funds.
token_symbolstringToken symbol.
blockchainstringBlockchain name.
token_namestringFull token name including chain.
logo_urlstringURL of the token logo.
token_decimalsintegerToken decimals.
order_amount_in_payment_currencystringOrder amount converted to the payment currency.
payment_currencystringPayment currency symbol.
exchange_ratestringExchange rate used for conversion.
consolidated_qrcodesarrayWallet-specific QR codes.
Array items
wallet_namestringWallet name.
qrcodestringQR code URI for the wallet.
wallet_iconstringURL of the wallet icon.
statusstringenum: "new", "additional_payment_required", "paid", "transferred", "cancelled", "expired"Order status.
- newNew order created.
- additional_payment_requiredPartial payment received; top-up needed.
- paidFully paid.
- transferredBulk-transferred to the merchant wallet.
- cancelledCancelled (full refund or AML).
- expiredTimed out without full payment.
bulk_transferobjectBulk transfer details, returned once transfer has started or completed.
statusstringenum: "transferring", "transferred", "transfer_partial_failed"transferring: not all transfers have succeeded and none have failed;transferred: all transfers succeeded;transfer_partial_failed: one or more transfers failed.idinteger<int64>Bulk transfer ID.
created_timeinteger<int64>Transfer creation time (13-digit Unix timestamp).
token_symbolstringToken symbol.
to_addressstringDestination address in the merchant wallet.
transfer_amount_for_this_orderstringAmount transferred for this order; for non-stablecoins, deduct the order service fee from the actual received amount.
payment_detailobjectPayment details, returned once payment exists. Additional-payment fields are present only for partial payment.
actual_received_amountstringActual received amount: total payment amount minus the refund amount.
payment_statusstringenum: "equal_to_order_amount", "more_than_order_amount", "less_than_order_amount", "additional_payment_required", "refund"Payment status.
- equal_to_order_amountThe actual received amount equals the order amount in the payment currency, and the order status is
paidortransferred. - more_than_order_amountThe actual received amount is greater than the order amount in the payment currency, and the order status is
paidortransferred. - less_than_order_amountThe actual received amount is less than the order amount in the payment currency, and the order status is
paidortransferred. - additional_payment_requiredThe order status is
additional_payment_required; an additional payment is required. - refundThe order requires a full refund.
- equal_to_order_amountThe actual received amount equals the order amount in the payment currency, and the order status is
token_symbolstringToken symbol.
blockchainstringBlockchain name.
token_namestringFull token name including chain.
order_amount_in_payment_currencystringOrder amount in payment currency.
payment_currencystringPayment currency symbol.
exchange_ratestringExchange rate used.
payment_historyarray<object>Payment records sorted by block_time in ascending order.
Array items ·
objectidinteger<int64>Payment record ID.
block_timeinteger<int64>Block timestamp (13-digit Unix timestamp).
from_addressstringSender address.
to_addressstringRecipient address.
amountstringPayment amount.
tx_idstringOn-chain transaction ID.
additional_amount_requiredstringAmount still required for a partial payment. Absent from paid callbacks.
additional_payment_expire_timeinteger<int64>Deadline for additional payment, as a 13-digit Unix timestamp in milliseconds. Present for partial payment; absent from paid callbacks.
additional_payment_addressstringAdditional-payment address, the same as the first payment address. Present for partial payment; absent from paid callbacks.
refund_dataobjectReturned when a partial or full refund is required: non-stablecoin partial payment, overpayment, additional-payment timeout, or maximum payment count reached.
idinteger<int64>Refund ID.
created_timeinteger<int64>Refund creation time (13-digit Unix timestamp).
token_symbolstringToken symbol.
blockchainstringBlockchain name.
token_namestringFull token name including chain.
initial_amountstringInitial refund amount.
refund_feestringRefund fee; absent while refund status is initiated.
typestringenum: "partial_refund", "full_refund"partial_refund: refund the overpaid difference;full_refund: refund the entire paid amount.statusstringenum: "initiated", "refunding", "refund_successful", "refund_failed"initiated: refund created, not yet executed;refunding: refund transfer is in progress;refund_successful: refund completed;refund_failed: refund failed.reasonstringenum: "nonstablecoin_partial_payment", "overpayment", "additional_payment_timeout", "maximum_payments_exceeded"nonstablecoin_partial_payment: partial payment in a non-stablecoin;overpayment: payer overpaid;additional_payment_timeout: additional payment was not completed in time;maximum_payments_exceeded: maximum payment count reached.refund_historyblock_timeinteger<int64>Block timestamp (13-digit Unix timestamp).
from_addressstringRefund sender address.
to_addressstringRefund recipient address.
amountstringActual refunded amount = refund amount minus refund fee.
tx_idstringOn-chain refund transaction ID.
payment_exception_dataobjectPayment exception information (e.g. AML flagged payments).
token_symbolstringToken symbol.
blockchainstringBlockchain name.
token_namestringFull token name including chain.
typestringenum: "aml", "other"aml: AML reason, linked to an order;other: other reasons, with no linked order.payment_historyarray<object>Array of payment-exception records sorted by block_time ascending, used by Query Order and AML-cancelled order callbacks.
Array items ·
objectidinteger<int64>Exception payment record ID.
block_timeinteger<int64>On-chain receive time (UTC), as a 13-digit Unix timestamp in milliseconds.
from_addressstringSender address.
to_addressstringRecipient address.
initial_amountstringInitial payment amount.
tx_idstringOn-chain transaction ID.
created_timeinteger<int64>Record creation time (13-digit Unix timestamp).
transfer_feestringPayment-exception transfer fee; absent from the initiated example.
statusstringenum: "initiated", "transferring", "transfer_successful", "transfer_failed"Payment exception record status.
- initiatedPayment exception received, not transferred yet.
- transferringTransfer in progress.
- transfer_successfulTransfer completed.
- transfer_failedTransfer failed.
transfer_historyblock_timeinteger<int64>On-chain transfer time (UTC), as a 13-digit Unix timestamp in milliseconds.
from_addressstringTransfer sender address.
to_addressstringTransfer recipient address.
amountstringTransfer amount.
tx_idstringOn-chain transfer transaction ID.
okbooleanWhether the request succeeded.