money_balance_usd immediately when the request is accepted. The actual PayPal transfer is processed asynchronously, and the withdrawal status progresses from pending to either paid or failed.
Endpoint
Request body
The USD amount to withdraw. Must be a positive number and must not exceed the player’s current
money_balance_usd. Check the minimum withdrawal amount in /v1/app-settings before submitting.A valid email address for the PayPal account that will receive the payment.
Example request
Response
201 Created
The unique identifier for this withdrawal request. Use this to track the status of the payout.
The initial status of the withdrawal. Always
"pending" when the request is first created.The USD amount requested in this withdrawal.
The player’s remaining USD balance after the withdrawal amount has been deducted.
Error responses
| HTTP status | Code | Message | Meaning |
|---|---|---|---|
401 UNAUTHORIZED | UNAUTHORIZED | — | The Authorization header is missing or the token is invalid or expired. |
400 BAD_REQUEST | BAD_REQUEST | invalid_payload | The request body failed validation — for example, amount_usd is not a positive number or paypal_email is not a valid email. Check details for field-level errors. |
422 UNPROCESSABLE | UNPROCESSABLE | insufficient_balance_or_user_not_found | The player’s current USD balance is less than the requested amount_usd, or no player was found for the authenticated token. |
