SellGate API

Products API

Create, retrieve, update, and delete products in your store

Products API

Manage your product catalog with the Products API. Create new products, update existing ones, and manage stock.

Endpoints Overview

MethodEndpointDescription
GET/v1/productsList all products
POST/v1/productsCreate a new product
GET/v1/products/:idGet a single product
PATCH/v1/products/:idUpdate a product
DELETE/v1/products/:idDelete a product
GET/v1/products/:id/stockList stock items
POST/v1/products/:id/stockAdd stock items
DELETE/v1/products/:id/stockRemove stock items
GET/v1/products/:id/stock/:stockIdGet a stock item
PATCH/v1/products/:id/stock/:stockIdUpdate a stock item
DELETE/v1/products/:id/stock/:stockIdDelete a stock item
GET/v1/products/:id/variantsList product variants
POST/v1/products/:id/variantsCreate a variant
GET/v1/products/:id/variants/:variantIdGet a variant
PATCH/v1/products/:id/variants/:variantIdUpdate a variant
DELETE/v1/products/:id/variants/:variantIdDelete a variant

List Products

Retrieve a paginated list of all products in your store.

GET /v1/products

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 25, max: 100)
group_idstringFilter by product group ID

Example Request

curl -X GET "https://api.sellgate.cc/v1/products?limit=10" \
  -H "Authorization: Bearer sg_live_your_api_key"
const response = await fetch('https://api.sellgate.cc/v1/products?limit=10', {
  headers: { 'Authorization': 'Bearer sg_live_your_api_key' }
});
const data = await response.json();
import requests

response = requests.get(
    'https://api.sellgate.cc/v1/products',
    params={'limit': 10},
    headers={'Authorization': 'Bearer sg_live_your_api_key'}
)
data = response.json()

Response

{
  "data": [
    {
      "id": "prod_abc123",
      "name": "Premium License",
      "description": "Lifetime access to premium features",
      "price": 29.99,
      "currency": "USD",
      "delivery_type": "serials",
      "is_on_hold": false,
      "payment_methods": ["crypto_btc", "crypto_ltc", "crypto_eth", "crypto_sol"],
      "images": [],
      "stock": 150,
      "views_count": 1234,
      "sales_count": 89,
      "stripe_enabled": false,
      "paypal_enabled": false,
      "bulk_discounts_enabled": false,
      "created_at": "2025-12-29T10:30:00Z",
      "updated_at": "2025-12-29T10:30:00Z"
    }
  ],
  "meta": {
    "total": 45,
    "limit": 25,
    "offset": 0
  }
}

Create Product

Create a new product in your store.

POST /v1/products

Request Body

FieldTypeRequiredDescription
namestringYesProduct name
descriptionstringNoProduct description
pricenumberYesProduct price (must be >= 0)
currencystringNoCurrency code (default: "USD")
delivery_typestringNoserials, file, dynamic, service (default: "serials")
delivery_notestringNoNote shown after purchase
delivery_contentstringNoStatic delivery content
webhook_urlstringNoURL for order webhooks
manual_stockintegerNoManual stock count (-1 for unlimited)
imagesarrayNoArray of image URLs
payment_methodsarrayNoPayment methods (default: crypto_btc, crypto_ltc, crypto_eth, crypto_sol)
is_on_holdbooleanNoWhether product is on hold
stripe_enabledbooleanNoEnable Stripe payments
paypal_enabledbooleanNoEnable PayPal payments

Example Request

curl -X POST "https://api.sellgate.cc/v1/products" \
  -H "Authorization: Bearer sg_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Premium License",
    "description": "Lifetime access to premium features",
    "price": 29.99,
    "delivery_type": "serials"
  }'
const response = await fetch('https://api.sellgate.cc/v1/products', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer sg_live_your_api_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Premium License',
    description: 'Lifetime access to premium features',
    price: 29.99,
    delivery_type: 'serials'
  })
});
const data = await response.json();

Response (201 Created)

{
  "data": {
    "id": "prod_abc123",
    "name": "Premium License",
    "description": "Lifetime access to premium features",
    "price": 29.99,
    "currency": "USD",
    "delivery_type": "serials",
    "is_on_hold": false,
    "payment_methods": ["crypto_btc", "crypto_ltc", "crypto_eth", "crypto_sol"],
    "images": [],
    "created_at": "2025-12-29T10:30:00Z",
    "updated_at": "2025-12-29T10:30:00Z"
  }
}

Get Product

Retrieve a single product by ID.

GET /v1/products/:id

Update Product

Update an existing product. All fields are optional.

PATCH /v1/products/:id

Example

curl -X PATCH "https://api.sellgate.cc/v1/products/prod_abc123" \
  -H "Authorization: Bearer sg_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "price": 39.99 }'

Delete Product

Permanently delete a product.

DELETE /v1/products/:id

This action cannot be undone. All associated stock items will also be deleted.


Product Stock


Product Variants

Manage product variants (e.g., different tiers, sizes, or options).


Delivery Types

TypeDescription
serialsStock-based delivery (license keys, codes, etc.)
fileFile download
dynamicWebhook-based delivery
serviceManual service delivery

On this page