Skip to main content

Mock API Reference

Since BigSeller/Shopee don't have official APIs, this mock API provides a simulation for integration.

Base URL

https://api.corebox.dev/v1

Authentication

GET /products
Authorization: Bearer {api_key}

Endpoints

Get All Products

GET /products

Response:

{
"products": [
{
"id": "SKU-001",
"name": "Sample Product",
"price": 100000,
"stock": 50,
"category": "Electronics",
"sku": "SKU-001"
}
],
"total": 1,
"page": 1,
"limit": 20
}

Get Single Product

GET /products/{sku}

Update Stock

PATCH /products/{sku}/stock
Content-Type: application/json

{
"quantity": -5,
"reason": "sale"
}

Search Products

GET /products/search?q={query}&category={category}

Webhook Events

When products are updated in BigSeller/Shopee, webhooks are sent:

{
"event": "product.updated",
"data": {
"sku": "SKU-001",
"name": "Updated Product Name",
"price": 95000,
"stock": 45,
"timestamp": "2026-04-08T10:30:00Z"
}
}

Rate Limits

  • 100 requests per hour
  • 1000 requests per day

Implementation Notes

This is a mock API. For real integration, you'll need to:

  1. Extract data from BigSeller/Shopee UI
  2. Transform to structured format
  3. Store in database
  4. Expose via real API