Skip to content

Products

As an Admin, you can view products via the API.

List Products

GET/products Bearer Token

Retrieve a paginated list of products.

ParameterTypeRequiredDescription
per_pagenumberNoResults per page
searchstringNoSearch by name or SKU

Response

Success (200):

json
{
  "data": [
    {
      "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "name": "T-Shirt Red M",
      "sku": "TSHIRT-RED-M",
      "price": 120,
      "status": "active",
      "created_at": "2025-01-10T08:00:00Z"
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "limit": 50,
      "total": 85,
      "pages": 2
    }
  }
}

Show Product

GET/products/{id}/show Bearer Token

Retrieve a single product by ID.

Response

Success (200):

json
{
  "data": {
    "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
    "name": "T-Shirt Red M",
    "description": "Comfortable red t-shirt, size M",
    "sku": "TSHIRT-RED-M",
    "price": 120,
    "status": "active",
    "has_discount": false,
    "free_shipping": true,
    "weight": 200,
    "created_at": "2025-01-10T08:00:00Z",
    "updated_at": "2025-01-10T08:00:00Z"
  },
  "meta": {}
}

Not found (404):

json
{
  "error": {
    "code": "HTTP_ERROR",
    "message": "Resource not found."
  }
}

WedoCOD API Documentation