This endpoint allows you to create a withdrawal.
appliedThe bank transfer is confirmed. A top up has credited the Wallet Asset; a withdrawal has reached the Bank Account. A top up can no longer be aborted.createdThe Funds Transfer has been created and no bank transfer has started yet.doneThe Funds Transfer has settled. This is final.expiredThe bank didn't confirm the transfer in time. A top up never credits the Wallet Asset; a withdrawal is refunded to it, but can still becomeappliedif the bank confirms later.failedThe Funds Transfer was aborted, rejected or dishonored by the bank, or a withdrawal found the Wallet Asset balance too low. Any money already moved is reversed. This is final.requestedThe bank transfer has been submitted and is waiting for the bank to confirm it. A withdrawal debits the Wallet Asset at this point.
errorstringThe name of the HTTP status. AlwaysBad Request.messageenumThe error code, or for a 400 a description of what's wrong with the request.Bad RequestThe request is malformed or missing required fields. The message says what's wrong, egamount is required. See 400 Malformed Request.
statusCodeintegerThe HTTP status code. Always400.
errorstringThe name of the HTTP status. AlwaysUnauthorized.messageenumThe error code, or for a 400 a description of what's wrong with the request.Missing authenticationAPI key or JWT is missing, expired or invalid. See Auth.
statusCodeintegerThe HTTP status code. Always401.
errorstringThe name of the HTTP status. AlwaysForbidden.messageenumThe error code, or for a 400 a description of what's wrong with the request.BANK_ACCOUNT_TYPE_NOT_CONFIGURED_FOR_WITHDRAWALThe bank account type is not configured for withdrawals. Onlycentrapaytype bank accounts are configured.BANK_AUTHORITY_WALLET_MISMATCHThe wallet asset and the bank account for the withdrawal request do not belong to the same account.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.INSUFFICIENT_WALLET_BALANCEThe wallet asset balance is less than the required amount.INVALID_WALLET_TYPEThe wallet asset type does not support withdrawals. See settlement wallet assets.
statusCodeintegerThe HTTP status code. Always403.
errorstringThe name of the HTTP status. AlwaysNot Found.messageenumThe error code, or for a 400 a description of what's wrong with the request.Not FoundThe route doesn't exist. Check the URL and HTTP method against the examples. See 404 Route Not Found.
statusCodeintegerThe HTTP status code. Always404.
errorstringThe name of the HTTP status. AlwaysToo Many Requests.messageenumThe error code, or for a 400 a description of what's wrong with the request.RATE_LIMIT_EXCEEDEDCentrapay API rate limits have been exceeded. See Rate Limits.
statusCodeintegerThe HTTP status code. Always429.
errorstringThe name of the HTTP status. AlwaysInternal Server Error.messageenumThe error code, or for a 400 a description of what's wrong with the request.An internal server error occurredSomething went wrong on our end. Retrying should solve the issue. See 5xx Server Error.
statusCodeintegerThe HTTP status code. Always500.
curl -X POST https://service.centrapay.com/api/withdrawals \-H 'content-type: application/json' \-H 'x-api-key: <TOKEN>' \-d '{ "amount": "10000", "assetId": "Te2uDM7xhDLWGVJU3nzwnh", "bankAccountId": "FRhAzzWpTKb5U7pZygQjjY"}'{ "accountId": "aBc932S9182qwCDqwer", "amount": "10000", "assetId": "Te2uDM7xhDLWGVJU3nzwnh", "bankAccountId": "FRhAzzWpTKb5U7pZygQjjY", "createdAt": "2020-05-01T12:30:00.000Z", "id": "hg2RfYTQ635tPBZEPJdCre", "status": "created", "type": "withdrawal", "updatedAt": "2020-05-01T12:30:00.000Z"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "BANK_AUTHORITY_WALLET_MISMATCH", "statusCode": 403}{ "error": "Not Found", "message": "Not Found", "statusCode": 404}{ "error": "Too Many Requests", "message": "RATE_LIMIT_EXCEEDED", "statusCode": 429}{ "error": "Internal Server Error", "message": "An internal server error occurred", "statusCode": 500}