Skip to main content
POST
/
user
/
withdrawal
Create Withdrawal
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({tokenAddress: '<string>', amount: '<string>'})
};

fetch('https://gp-auth-module.prod.gnosispay.com/user/withdrawal', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "withdrawalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Body

application/json
tokenAddress
string
required
amount
string
required
Pattern: ^\d+$

Response

Withdrawal created successfully

withdrawalId
string<uuid>
required