Skip to main content

Get offers

List of selling offers from Off-Ramp providers.

HTTP request

get
/v1/sell/offers

Request

Header parameters

Requires authentification.

Query parameters

NameTypeRequiredDescription
providerCodestringfalseThe Off-Ramp provider code. Possible values.
externalUserIDstringfalseUser ID provided by you.
currencyFromstringtrueTicker of the pay-in currency in uppercase.
currencyTostringtrueTicker of the payout currency in uppercase.
amountFromstringtrueAmount of currency the user is going to pay.
countrystringtrueCountry ISO 3166-1 code (Alpha-2).
statestringfalseState ISO 3166-2 code. Is required if provided country is US.
ipstringfalseUser's IP address.
paymentMethodCodestringfalseThe payment method code. Possible values.
Sample cURL
curl --location --request GET
'https://fiat-api.changelly.com/v1/sell/offers?currencyFrom=ETH&currencyTo=EUR&amountFrom=0.1&country=IT'
--header 'X-Api-Key: {{apiKey}}'
--header 'X-Api-Signature: {{signature}}'

Response

Response params

NameTypeDescription
offersarray of objectsArray of offers.

offers item schema

NameTypeRequiredDescription
providerCodestringtrueThe Off-Ramp provider code. Possible values.
ratestringtrueThe best rate of selling among all payment methods. The rate includes all the fees.
invertedRatestringtrueInverted rate of selling.
feestringtrueThe lowest value of the total fee of selling among all payment methods.
amountFromstringtrueAmount of currency the user is going to pay.
amountExpectedTostringtrueThe largest amount of funds among all payment methods that the user is expected to get after the selling.
paymentMethodOfferarray of objectstrueSelling details for each available payment type.

paymentMethodOffer item schema

NameTypeRequiredDescription
methodstringtrueThe payment method code. Possible values.
methodNamestringtrueThe payment method name. Possible values.
amountExpectedTostringtrueThe amount of funds that the user is expected to get after the selling.
ratestringtrueCurrent rate of selling, which includes all the fees.
invertedRatestringtrueInverted rate of selling.
feestringtrueTotal fee of selling.
Sample response
application/json
[
{
"providerCode": "moonpay",
"rate": "99490.2",
"invertedRate": "0.000010051241227779218",
"fee": "360.85",
"amountFrom": "0.1",
"amountExpectedTo": "9949.02",
"paymentMethodOffer": [
{
"method": "pay_pal",
"methodName": "PayPal",
"amountExpectedTo": "9742.82",
"rate": "97428.2",
"invertedRate": "0.000010263968748267956",
"fee": "360.85"
},
{
"method": "revolut",
"methodName": "Revolut",
"amountExpectedTo": "10309.87",
"rate": "103098.7",
"invertedRate": "0.000009699443348946204",
"fee": "0"
},
{
"method": "card",
"methodName": "Visa / Mastercard",
"amountExpectedTo": "9639.73",
"rate": "96397.29999999999",
"invertedRate": "0.000010373734534058527",
"fee": "463.94"
},
{
"method": "sepa_bank_transfer",
"methodName": "SEPA",
"amountExpectedTo": "10000.57",
"rate": "100005.7",
"invertedRate": "0.000009999430032488148",
"fee": "103.1"
},
{
"method": "apple_pay",
"methodName": "Apple Pay",
"amountExpectedTo": "9639.73",
"rate": "96397.29999999999",
"invertedRate": "0.000010373734534058527",
"fee": "463.94"
},
{
"method": "google_pay",
"methodName": "Google Pay",
"amountExpectedTo": "9639.73",
"rate": "96397.29999999999",
"invertedRate": "0.000010373734534058527",
"fee": "463.94"
}
]
}
]

Error response

Error response parameters

Check the error response schema.

Possible error types in the errorType item:

TypeDescription
validationValidation error.
timeoutRequest to the provider was not completed in the allotted time.
unavailableRequest failed at the provider's end.
limitsSpecified pay-in amount is less than the minimum or more than the maximum value for the fiat currency.
countrySpecified country is not supported by the provider.
stateOffer requested for the United States, but the state parameter is not provided.
currencySpecified currency pair is not supported by the provider.
paymentMethodSpecified payment method is not supported by the provider.
invalidOfferOff-Ramp provider returned an invalid offer.

The errorDetails item schema:

NameTypeRequiredDescription
causestringtrueError cause. For example, it can equal min or max for the limits error type.
valuestringtrueError value. For example, it can equal the min or max supported value for the limits error type.

Error codes

CodeMessage
400BadRequest
401Unauthorized
429TooManyRequests
500InternalServerError
BadRequest
{
"errorType": "validation",
"errorMessage": "Validation error",
"errorDetails": [
{
"cause": "providerCode",
"value": "Incorrect provider code"
}
]
}