cURL
Cross-Ramp
/api/partner/v2/cross-ramp/quotes
POST
cURL
Creates a locked cross-ramp quote with a guaranteed exchange rate. Pass the returnedDocumentation Index
Fetch the complete documentation index at: https://docs.capa.fi/llms.txt
Use this file to discover all available pages before exploring further.
quoteId when creating a cross-ramp transaction.
Field Relationships
- Provide either
sourceAmountortargetAmount, not both.
Important Notes
- Quotes expire — check the
expiresAtfield and create the transaction before it lapses. - Pass the returned
quoteIdto Create Cross-Ramp.
Error Codes
Common Errors
| HTTP Status | Code | Message |
|---|---|---|
| 401 | UNAUTHORIZED | ”API Key is missing” |
| 401 | UNAUTHORIZED | ”Invalid API Key format” |
| 401 | UNAUTHORIZED | ”Invalid API Key” |
| 403 | INVALID_PARTNER_FLOW | ”The partner has an invalid flow.” |
Endpoint-Specific Errors
| HTTP Status | Code | Message |
|---|---|---|
| 400 | INVALID_USER_INPUT_ERROR | ”Invalid User Input” |
| 400 | BAD_REQUEST | ”Requested fiat currency is invalid or inactive” |
| 500 | INTERNAL_SERVER_ERROR | ”Failed to create quote” |
Headers
Api key for the affiliated partner that is performing the request
Body
application/json
The source fiat currency symbol
Available options:
MXN, DOP, USD, EUR Example:
"MXN"
The target fiat currency symbol
Available options:
MXN, DOP, USD, EUR Example:
"USD"
The amount of source fiat currency to convert
The desired amount of target fiat currency to receive
Spread percentage to be applied to the exchange rate