Quotes
Price a payout from your own balance
Changed onPrices a conversion from your own stablecoin balance to local currency. Pass the returned id as quoteId on POST /v1/payouts/fiat before expiresAt.
Send fromAmount or toAmount, never both.
- toAmount is the exact amount the recipient receives. Alfred calculates the USDC owed and returns it in fromAmount, rounded up. toAmount takes at most two decimals and applies to payouts only, from USDC to local currency.
- fromAmount fixes the USDC you spend, and toAmount comes back as what the recipient receives.
A quote lasts about two minutes and can be used once.
post/v1/quotes
Request
- Base URLhttps://api.sandbox.alfredpay.io
- URLhttps://api.sandbox.alfredpay.io/v1/quotes
- Auth
- HTTP bearer
- or API key in header api-key and API key in header api-secret
Headers
Idempotency-Keystring uuid required
Required on every state-changing POST, simulators included; the only exempt POST is …/verifications/preflight. Replay (same key, same body) returns the original response with Idempotent-Replayed: true; same key with a different body → 409 idempotency_conflict. Keys are UUIDs, scoped to the API key, retained for 24 hours.
Request body
Response
Created
Changes
- info
endpoint added
- info