Create Payout Quote
ashar_create_payout_quoteGenerate a withdrawal quote converting USDC or USDT to PIX before executing a payout, returning the FX rate, platform fee, estimated BRL received, and quote expiry.
Instructions
Create a withdrawal (USDC/USDT -> PIX) quote for the tenant, including the Ashar platform fee markup.
Args:
request_amount (number, cents, >= 500): amount in stablecoin cents
bank_account_id (string): destination PIX bank account id
token (string): stablecoin being sent ('USDC' or 'USDT')
network (string, optional, default 'polygon'): sending network
idempotency_key (string, optional)
Returns the marked-up quote: quote_id, request_amount, estimated_receive_brl, fx_rate, expires_at, and platform_fee.
Use before ashar_execute_payout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Stablecoin being sent (USDC or USDT) | |
| network | No | Sending network (default: polygon) | |
| request_amount | Yes | Amount in stablecoin cents (e.g. 1000 = 10.00) | |
| bank_account_id | Yes | Destination PIX bank account id | |
| idempotency_key | No | Optional idempotency key |