Create Payin Quote
ashar_create_payin_quoteGenerates a PIX or TED deposit quote converting BRL to USDC/USDT with platform fee markup, letting you review the receive amount and expiry before executing the pay-in.
Instructions
Create a deposit (PIX -> USDC/USDT) quote for the tenant, including the Ashar platform fee markup.
Args:
payment_method (string): 'pix' or 'ted'
token (string): 'USDC' or 'USDT' (what the client receives)
request_amount (number, cents, >= 500 i.e. R$ 5.00): amount in BRL cents
wallet_id (string, optional): destination BlindPay wallet id
blockchain_wallet_id (string, optional): destination blockchain wallet id
idempotency_key (string, optional): to safely retry
Returns: The marked-up quote: quote_id, request_amount, estimated_receive, fx_rate, expires_at, and the platform_fee breakdown.
Use before ashar_execute_payin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Stablecoin received by the client (USDC or USDT) | |
| wallet_id | No | Destination BlindPay wallet id | |
| payment_method | Yes | PIX or TED payment method | |
| request_amount | Yes | Amount in BRL cents (e.g. 10000 = R$ 100.00) | |
| idempotency_key | No | Optional idempotency key | |
| blockchain_wallet_id | No | Destination blockchain wallet id |