/api/v1/sub_address_withdrawalCreate Sub-address Withdrawal
Initiate an on-chain withdrawal directly from a specified sub-address in the project. from_address must be a sub-address generated within the project.
If payout external verification is enabled for the project, Cregis first sends a Payout External Verification Notification to the external verification URL configured in the project, and then continues or stops processing based on the returned ok or deny response.
Rate limit: 1000 requests/minute
Request
Request Body
required
application/jsonnoncestringrequired6-character random string.
timestampinteger<int64>requiredTimestamp.
signstringrequiredSignature.
pidinteger<int64>requiredProject ID.
currencystringrequiredCurrency identifier.
from_addressstringrequiredSender address. This address must belong to the corresponding WaaS project.
to_addressstringrequiredRecipient address. We recommend validating the recipient address before payout.
amountstringrequiredPayout amount.
third_party_idstringrequiredCaller business ID.
callback_urlstringCallback URL. When this withdrawal is processed, Cregis sends a callback notification to the corresponding
callback_url. For callback details, see Withdrawal Notification.remarkstringRemark. Maximum 256 characters.
memostringOn-chain memo/tag information. Supported only by TON and XRP.
Responses
200Success. Returns the Cregis system transaction ID.application/jsoncodestringReturn status code. The only success code is
code:00000; all other return codes indicate an exception. See Error Codes.msgstringResponse message.