Checkouts
The BTPay Checkout page provides your customers with different cryptocurrency payment options. Start accepting crypto payments with a hosted or embedded checkout page.
Once you’ve created a checkout, then you can either share the hosted link or embed the checkout directly on your website. It will also determine the amount required in customer selected cryptocurrency.
Once paid, the payment is captured, the cryptocurrency will then be converted and credited into the balance of the merchant account and can be withdrawn anytime.
The Checkout Object
id
Number
Unique identifier for the object
uuid
UUID
A UUID (Universal Unique Identifier) is a 128-bit value used to uniquely identify an object or entity
currency
String
The Checkout default currency: alphabetic currency code
trackingId
String
Client-provided identifier of the payment in the external system
walletId
Number
Wallet id to accept payment in
logoUrl
String
Client-provided logo url for the checkout page
expectedQuoteAmount
String
Expected quote currency amount to be paid
includedCurrencyIds
Array
Array of currencies available for the current checkout page
ExcludedCurrencyIds
Array
Array of currencies to exclude from the checkout page
createdAt
Date
Time at which the object was created
checkoutUrl
String
A checkout URL to use it as iframe or separated page to deposit crypto
Create a Checkout
POST
/api/v2/checkouts/create
Creates new checkout page
Headers
Accept*
application/json
Request Body
currency*
String
Default Checkout currency
trackingId*
String
Client-provided identifier of the payment in the external system
expectedQuoteAmount
String
Expected amount denominated in USD
webhookUrl*
String
Notification URL
includedCurrencies
Array
Array of currencies to include
excludedCurrencies
Array
Array of currencies to exclude
Update Checkout
PUT
/api/v2/checkouts/update/{uuid}
Updates existing checkout
Headers
Accept*
applicaiton/json
Request Body
currency*
String
Default Checkout currency
walletId*
Number
Wallet id to receive funds in
expectedQuoteAmount
String
Expected amount denominated in USD
webhookUrl
String
Notification URL
Lists all Checkouts
GET
/api/v2/checkouts
Returns a list of previously created Checkouts. The Checkouts are returned in sorted order, with the most recent checkout 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 Checkout by Uuid
GET
/api/v2/checkouts/{uuid}
Retrieves the details of a Checkout that has previously been created. Supply the universally unique identifier that was returned from your previous request, and the API will return the corresponding checkout information.
Path Parameters
uuid*
String
Universally unique identifier, which is a 128 bit value and used to identify the records
Last updated