curl --request POST \
--url 'https://gateway.amana.io/transactions/withdraw' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}'
import requests
url = "https://gateway.amana.io/transactions/withdraw"
headers = {"Authorization": "Bearer <token>", "Content-Type": "application/json"}
payload = {
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/transactions/withdraw', {
method: 'POST',
headers: {"Authorization": "Bearer <token>", "Content-Type": "application/json"},
body: JSON.stringify({"id": "<string>", "amount": 123.45, "bankAccountId": 123.45, "creditCardId": 123.45, "ewalletId": 123.45}),
});
console.log(await response.json());
{
"success": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Funding
Request a withdrawal
Withdraw funds to a saved bank account, card, or e-wallet.
POST
/
transactions
/
withdraw
curl --request POST \
--url 'https://gateway.amana.io/transactions/withdraw' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}'
import requests
url = "https://gateway.amana.io/transactions/withdraw"
headers = {"Authorization": "Bearer <token>", "Content-Type": "application/json"}
payload = {
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/transactions/withdraw', {
method: 'POST',
headers: {"Authorization": "Bearer <token>", "Content-Type": "application/json"},
body: JSON.stringify({"id": "<string>", "amount": 123.45, "bankAccountId": 123.45, "creditCardId": 123.45, "ewalletId": 123.45}),
});
console.log(await response.json());
{
"success": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Body
Content type:application/json
string
required
ID of the item to act on.
number
required
Amount of money for this request.
number
Bank account ID to withdraw to - pass this to withdraw to bank
number
Credit card ID to withdraw to - pass this to withdraw to credit card
number
E-wallet ID to withdraw to - pass this to withdraw to e-wallet
Response
200 Success.
boolean
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 400 | Invalid or missing field, amount outside limits | Check the request against the schema and the instrument’s size limits. |
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 404 | The requested item doesn’t exist | Check the ID or path parameter. |
| 409 / 422 | Market closed, insufficient balance or margin | Check trading hours and balance, then retry. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |
curl --request POST \
--url 'https://gateway.amana.io/transactions/withdraw' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}'
import requests
url = "https://gateway.amana.io/transactions/withdraw"
headers = {"Authorization": "Bearer <token>", "Content-Type": "application/json"}
payload = {
"id": "<string>",
"amount": 123.45,
"bankAccountId": 123.45,
"creditCardId": 123.45,
"ewalletId": 123.45
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/transactions/withdraw', {
method: 'POST',
headers: {"Authorization": "Bearer <token>", "Content-Type": "application/json"},
body: JSON.stringify({"id": "<string>", "amount": 123.45, "bankAccountId": 123.45, "creditCardId": 123.45, "ewalletId": 123.45}),
});
console.log(await response.json());
{
"success": true
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Last modified on October 8, 2026
