/waas/order/v1/create_orderCreate Order
Creates a crypto payment order and returns a unique cregis_id and payment addresses. Cregis pushes notifications to callback_url if configured; query the order by cregis_id to track its progress.
Error handling: 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.
order_amountstringrequiredOrder amount, up to 10,000,000 and greater than the order currency's minimum service fee (non-crypto: US$1 equivalent). Maximum 32 characters; decimal precision follows order_currency. See supported currencies and precision.
order_currencystringrequiredOrder currency: fiat (such as USD or HKD) or crypto (such as USDT or ETH). Maximum 32 characters. See supported currencies and precision.
tokensstring<json>Restrict accepted crypto tokens using a JSON string, such as
"[\"USDT-TRC20\",\"USDT-BEP20\"]". Serialize to a JSON string before signing. If omitted or empty, all configured currencies are returned; otherwise, only the intersection with configured transfer-wallet currencies is offered. See supported currencies and precision.JSON fieldsapplication/jsonArray items ·
stringstringcallback_urlstringCallback URL for order and refund notifications. Must start with http:// or https:// and contain no more than 256 characters. If provided, order and refund status notifications are sent to this URL; if omitted, order and refund callbacks are not sent. Payment-exception notifications are sent to the payment-exception callback URL configured in the Cregis client.
valid_timeintegerdefault: 60Order validity in minutes. Range: 10–1440; default: 60.
stablecoin_realtime_rateintegerdefault: 0 · enum: 0, 1Stablecoin rate mode: 0 = use a 1:1 stablecoin-to-USD rate; 1 = use the real-time rate. Default: 0.
underpaid_tolerancestringdefault: "0"Underpayment tolerance amount, in the same format as order_amount and with order_currency decimal precision. Range: 0–10,000,000; default: 0; maximum 32 characters. This is an amount in the order currency, not a percentage. See supported currencies and precision.
Note: To accept all payments less than the order amount, set this value to
10000000(10,000,000).overpaid_tolerancestringdefault: "0"Overpayment tolerance amount, in the same format as order_amount and with order_currency decimal precision. Range: 0–10,000,000; default: 0; maximum 32 characters. This is an amount in the order currency, not a percentage. See supported currencies and precision.
Note: To accept all payments greater than the order amount, set this value to
10000000(10,000,000).languagestringdefault: "en" · enum: "en", "sc", "tc"Checkout and email language: en = English, tc = Traditional Chinese, sc = Simplified Chinese. Default: en.
merchant_order_idstringMerchant order number; uniqueness is not required. Maximum 128 characters.
remarkstringMerchant remark, up to 256 characters.
checkout_pagestring<json>Checkout settings object, serialized to a JSON string before submission and signing. Expand to view its fields.
JSON fieldsapplication/jsonsuccess_urlstringRedirect URL after successful payment. Must start with http:// or https://; maximum 256 characters. Provide it together with cancel_url to generate a checkout page and receive checkout_url.
cancel_urlstringRedirect URL when payment expires or an AML issue is triggered. Must start with http:// or https://; maximum 256 characters. Provide it together with success_url.
payerstring<json>Payer information object, serialized to a JSON string before submission and signing. Expand to view its fields.
JSON fieldsapplication/jsonpayer_idstringPayer ID, up to 128 characters.
payer_namestringPayer name, up to 128 characters.
payer_emailstringPayer email, up to 256 characters. Refund and additional-payment notifications are sent here if provided; otherwise, no notification emails are sent.
sub_merchantstring<json>Sub-merchant information object, serialized to a JSON string before submission and signing. Expand to view its fields.
JSON fieldsapplication/jsonsub_merchant_idstringSub-merchant unique ID, up to 128 characters.
sub_merchant_namestringSub-merchant name, up to 128 characters.
Responses
200Successapplication/jsoncodestringrequiredReturn code. 00000 indicates success; other codes indicate an error. See WaaS Order Mode Error Codes.
msgstringrequiredResponse message.
okbooleanWhether the request succeeded.