Documentation
Checkout API
Create a checkout

Create a checkout

Creates a new cryptocurrency checkout page. This endpoint only allows JSON data.

Endpoint

POST https://api.sellgate.io/v1/checkout

Run In Postman (opens in a new tab)

Request body

ParameterTypeRequiredDescription
titlestringNoThe title of the checkout page max 60 chars.
descriptionstringNoA brief description of the product or service max 300 chars.
currencystringNoThe fiat currency code (e.g., USD, EUR, GBP) default is USD.
pricenumberYesThe price in the specified fiat currency.
cryptoarrayYesThe cryptocurrency to accept (e.g., BTC, ETH, USDT).
webhookstringNoURL to receive payment notifications on your server.
returnstringNoURL to redirect the user after successful payment.
thresholdnumberNoSpecify an allowed deviation from the price in percentages (1-50%).
skip_errorbooleanNoSkip any errors related to the minimum value required for a cryptocurrency. Useful for dynamic pricing and accepting all possible cryptocurrencies.

Example request

{
  "title": "Premium Subscription",
  "description": "1-year access to all premium features",
  "currency": "USD",
  "price": "99.99",
  "crypto": [
    {
        "network": "ETH",
        "coin": "ETH",
        "address": "0xB1DA646D1cD015d205a99198e809724D5C78109d"
    }
  ],
  "webhook": "https://example.com/webhook",
  "return": "https://example.com/thank-you",
  "threshold": 10,
  "skip_error": true
}

Example response

{
  "url": "https://sellgate.io/pay/h6msaw9om7mkqus6h1h0h1e9",
  "success": true,
  "message": "Checkout created successfully."
}

Example code

curl -X POST 'https://api.sellgate.io/v1/checkout' \
-H 'Content-Type: application/json' \
-d '{
    "title": "Premium Subscription",
    "description": "1-year access to all premium features",
    "currency": "USD",
    "price": "99.99",
    "crypto": [
        {
            "network": "ETH",
            "coin": "ETH",
            "address": "0xB1DA646D1cD015d205a99198e809724D5C78109d"
        }
    ]
}'