> For the complete documentation index, see [llms.txt](https://docs.alignlabs.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alignlabs.dev/align-api/onramp-transfers/create-quote.md).

# Create Quote

## POST /v0/customers/{customer\_id}/onramp-transfer/quote

> Create Onramp Transfer Quote

```json
{"openapi":"3.0.0","info":{"title":"Onramp API","version":"0"},"servers":[{"url":"https://api.alignlabs.dev","description":"Production server"},{"url":"https://api-sandbox.alignlabs.dev","description":"Sandbox server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Api-Key"}}},"paths":{"/v0/customers/{customer_id}/onramp-transfer/quote":{"post":{"summary":"Create Onramp Transfer Quote","parameters":[{"name":"customer_id","in":"path","description":"The unique identifier of the customer","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source_currency","source_payment_rails","destination_token","destination_network"],"oneOf":[{"title":"By Source Amount","properties":{"source_amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"The amount of fiat currency to onramp (required when calculating quote from source to destination)"},"source_payment_rails":{"type":"string","enum":["ach","wire","sepa","uaefts","swift"],"description":"The payment rails to use for fiat transfer"},"source_currency":{"type":"string","enum":["usd","eur","aed"],"description":"The fiat currency to onramp"},"destination_token":{"type":"string","enum":["usdc","usdt","eurc"],"description":"The token to receive"},"destination_network":{"type":"string","enum":["polygon","ethereum","solana","base","tron"],"description":"The blockchain network for the destination token"},"developer_fee_percent":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Custom developer fee percentage for the quote"}}},{"title":"By Destination Amount","properties":{"source_payment_rails":{"type":"string","enum":["ach","wire","sepa","uaefts","swift"],"description":"The payment rails to use for fiat transfer"},"source_currency":{"type":"string","enum":["usd","eur","aed"],"description":"The fiat currency to onramp"},"destination_amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"The amount of tokens to receive (required when calculating quote from destination to source)"},"destination_token":{"type":"string","enum":["usdc","usdt","eurc"],"description":"The token to receive"},"destination_network":{"type":"string","enum":["polygon","ethereum","solana","base","tron"],"description":"The blockchain network for the destination token"},"developer_fee_percent":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Custom developer fee percentage for the quote"}}}],"description":"Either source_amount OR destination_amount must be provided to calculate the quote in the desired direction"}}}},"responses":{"201":{"description":"Quote created successfully","content":{"application/json":{"schema":{"type":"object","required":["quote_id","source_amount","source_currency","source_payment_rails","destination_token","destination_network","destination_amount","exchange_rate","fee_amount","expire_at"],"properties":{"quote_id":{"type":"string","format":"uuid"},"source_amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$"},"source_currency":{"type":"string","enum":["usd","eur","aed"]},"source_payment_rails":{"type":"string","enum":["ach","wire","sepa","uaefts","swift"]},"destination_token":{"type":"string","enum":["usdc","usdt","eurc"]},"destination_network":{"type":"string","enum":["polygon","ethereum","solana","base","tron"]},"destination_amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$"},"fee_amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$"},"exchange_rate":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$"},"expire_at":{"type":"string","format":"date-time","description":"UTC timestamp after which the quote can no longer be used to create a transfer"}}}}}}}}}}}
```
