Conversions
BTPay allows you to accept crypto payments and exchange them into one currency of your choice: FIAT Currency, Coin, StableCoin or Token.
The Conversion Object
id
Number
Unique identifier for the object
baseAmount
Number
Base amount
baseCurrency
String
Three-letter currency code
quoteAmount
Number
Quote amount
quoteCurrency
String
Three-letter currency code
rate
Number
Exchange rate
clientOrderId
String
Exchange order id
conversionStatus
String
The status of the conversion
createdAt
Date
Time at which the conversion was created.
Lists all Conversions
GET
/api/v2/conversions
Returns a list of previously created Conversions. The Conversions are returned in sorted order, with the most recent conversion appearing first. You can optionally provide parameters to filter out the results by time created.
Query Parameters
from
Date
Filter by created time. We use basic ISO 8601 format for mixed date-time: YYYY-MM-DDThh:mm:ss
to
Date
Filter by created time. We use basic ISO 8601 format for mixed date-time: YYYY-MM-DDThh:mm:ss
page
Number
Current page
Get Conversion by id
GET
/api/v2/conversions/{id}
Retrieves the details of a Conversion that has previously been created. Supply the id and the API will return the corresponding Conversion information.
Path Parameters
id*
Number
Unique identifier for the object
Last updated