Variants


Sellhub Docs
Get Product Variants
Authorization
Authorization
<token>In: header
Query Parameters
id
stringGeneric ID filter (e.g., product, bundle, coupon, etc.)
productId
stringFilter by productId
createdAtFrom
stringEarliest creation date (ISO 8601 datetime)
Format:
"date-time"
createdAtTo
stringLatest creation date (ISO 8601 datetime)
Format:
"date-time"
curl -X GET "https://dash.sellhub.cx/api/sellhub/products/variants?id=%3Cstring%3E&productId=%3Cstring%3E&createdAtFrom=2019-08-24T14%3A15%3A22Z&createdAtTo=2019-08-24T14%3A15%3A22Z" \
-H "Authorization: <token>"
Successful response
{
"data": {
"variants": [
{
"hidden": false,
"enabled": true,
"disabledMessage": "",
"name": "Standard Licenses",
"price": 99.99,
"disabledPaymentMethods": [],
"paymentMethodPriceOverrides": {
"stripe": 1,
"square": 1,
"paypal": 1,
"cardToCrypto": 1,
"paypalIPN": 1,
"cashapp": 1,
"cryptoCurrency": 1,
"customerBalance": 1,
"sumup": 1,
"cryptomus": 1
},
"priceSlash": 79.99,
"description": "This is a standard license for premium software.",
"shortDescription": "Standard License",
"stockVisible": false,
"baseWarranty": false,
"baseWarrantyDuration": {
"unit": "days",
"duration": 30
},
"delivery": {
"method": "automatic",
"allowDuplicatedKeys": true,
"note": "Delivered automatically via email.",
"serialKeys": [
{
"key": "string"
}
],
"files": [
{
"name": "installer.exe",
"id": "fbed2096-f4f4-4073-aec1-fe6cc965be44",
"size": 2048,
"type": "application/exe",
"url": "https://example.com/installer.exe"
}
],
"serviceType": "activationKey",
"deliveryTime": "instant",
"unlimitedStock": false
},
"currency": "usd",
"itemCost": 99.99,
"minOrderQuantity": 1,
"maxOrderQuantity": 10,
"minOrderTotal": 0,
"maxOrderTotal": 999,
"bulkDiscounts": [
{
"order": 1,
"minQuantity": 5,
"discountPercent": 10
}
],
"allowBulkDiscountsWithCoupons": false,
"discordIntegration": "optional",
"tabs": {
"property1": {
"name": "Overview",
"content": "This is the overview of the standard license.",
"order": 0
},
"property2": {
"name": "Overview",
"content": "This is the overview of the standard license.",
"order": 0
}
},
"customFields": [
{
"name": "License Key",
"defaultValue": "N/A",
"type": "text",
"mandatory": true
}
],
"discordServers": [
{
"serverId": "876543210987654321",
"rolesToAddOnPurchase": [
"role1",
"role2"
]
}
],
"redirectToUrl": "https://example.com/thank-you"
}
]
}
}