# Quote a withdrawal

`POST /v1/orgs/{orgId}/withdrawals/quote`

Prices each way to send a withdrawal (rail, fee, arrival) without moving money.

Requires: permission withdrawals:create

## Request body

- `account_id` (string (uuid), required): 
- `external_account_id` (string (uuid), required): One of the organization's own accounts
- `amount` (string, required): 
- `asset` (enum):  One of USDC, SBC.
- `rail` (enum):  One of ach_credit, same_day_ach_credit, wire, fednow_credit, onchain.
- `policy` (enum):  One of cheapest, fastest.
- `memo` (string): 

```json
{
  "account_id": "a4d2f7b9-1c3e-4a58-8f20-6b9e3d1c7a05",
  "external_account_id": "e93b1d60-2f8a-4c7e-91d4-3a6b5c0f2e18",
  "amount": "1250.00",
  "asset": "USDC",
  "rail": "ach_credit",
  "policy": "cheapest",
  "memo": "Invoice 1042"
}
```

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/orgs/$ORG_ID/withdrawals/quote" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "account_id": "a4d2f7b9-1c3e-4a58-8f20-6b9e3d1c7a05",
  "external_account_id": "e93b1d60-2f8a-4c7e-91d4-3a6b5c0f2e18",
  "amount": "1250.00",
  "asset": "USDC",
  "rail": "ach_credit",
  "policy": "cheapest",
  "memo": "Invoice 1042"
}'
```
