# Quote fees

`POST https://morzepay.com/v1/quotes`

POST`/v1/quotes`

Shows what a collection, payout or transfer will cost before you make it, and whether the wallet can cover it. Nothing is created.

Permission`wallets:read`

### Body

JSON, with `Content-Type: application/json`.

`type`stringrequired

`deposit`, `payout` or `transfer`.

`wallet_id`stringrequired

The wallet that would receive the collection, or send the payout or transfer.

`amount`integerrequired

Whole UGX.

`msisdn`string

Payouts: the recipient’s number, for the exact fee on their network.

`fee_bearer`string

Collections: `wallet` or `customer`. Defaults to the wallet’s setting.

`fee`integer

Transfers: your own fee, to see the total.

### Returns

The numbers for that kind of payment:

| type | Fields |
| deposit | customer_charged, fee_percent, fees, estimated_net |
| payout | estimated_fees, amount_held, wallet_balance, sufficient_funds, weekly_limit_remaining (live only) |
| transfer | transfer_fee, merchant_fee, total_debited, wallet_balance, sufficient_funds |



## Example request

```bash
curl -X POST "https://morzepay.com/v1/quotes" \
  -H "Authorization: Bearer $MORZEPAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "payout",
  "wallet_id": "wal_Zq4Hn8YtV2kPm6RbX3cLw9",
  "amount": 20000,
  "msisdn": "+256771234567"
}'
```

## Example response (200)

```json
{
  "success": true,
  "data": {
    "type": "payout",
    "amount": "20000.00",
    "estimated_fees": "1100.00",
    "amount_held": "21100.00",
    "wallet_balance": "48500.00",
    "sufficient_funds": true,
    "weekly_limit_remaining": "1850000.00"
  }
}
```
