Quote a direct payment
preview_paymentLow-level alternative to invoices: quotes a payment of an exact amount in one coin and how much USDT you will be credited. Returns credit_lock_id for create_payment (valid until expires_at). Most agents should use create_invoice instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount the payer sends, in coin units. | |
| asset_id | Yes | Coin the payer sends. Public asset code from list_assets (its asset_id field), e.g. "usdt" (USDT TRC20), "btc", "eth", "xmr", "usdc_eth". | |
| amount_atomic | No | Amount in the smallest units of the asset (alternative to amount). Give exactly one of amount and amount_atomic. | |
| idempotency_key | No | Optional. The same key returns the same result instead of a duplicate (safe retries); generated when omitted. |