# Quote a payment

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

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

When to use it: Before every payment, to show the fee and arrival time for each rail. Pick `policy` cheapest or fastest, or a specific `rail`.

Requires: permission payments:create

## Request body

- `account_id` (string (uuid), required): 
- `external_account_id` (string (uuid), required): The recipient's bank account or wallet
- `amount` (string, required): 
- `asset` (enum): Stablecoin to deliver to a wallet (default USDC) 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): 
- `invoice_number` (string): The invoice or bill this payment settles

```json
{
  "account_id": "{{account_id}}",
  "external_account_id": "{{external_account_id}}",
  "amount": "250.00",
  "policy": "cheapest"
}
```

Errors: insufficient_funds, no_route, invalid_amount, single_payout_limit, daily_payout_limit

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/orgs/$ORG_ID/payments/quote" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "account_id": "{{account_id}}",
  "external_account_id": "{{external_account_id}}",
  "amount": "250.00",
  "policy": "cheapest"
}'
```
