Skip to content

Products

Product management is handled through the Dashboard. Admins have full CRUD; Sellers have limited update access.

List Products

GET/products🔒 Session — can viewAny

Paginated list of products with filtering.

Returns different data sets depending on role:

  • Admin: Full product data via IndexProductCollection
  • Seller: Client-scoped data via ClientIndexProductCollection

Supports filtering via ProductQueryFilterService.

Create Product

POST/products/store🔒 Session — can create

Create a new product.

FieldTypeRequiredDescription
namestringYesProduct name (1–60 chars)
descriptionstringYesDescription (1–10,000 chars)
skustringYesUnique SKU (1–100 chars)
statusstringYesProduct status (enum value)
pricenumberYesSelling price (1–99,999)
purchase_pricenumberYesPurchase/cost price (1–99,999)
category_idstringNoCategory ID
variantsarrayNoProduct variants
variants.typestringNocolors or sizes
variants.namestringNoVariant name (1–100 chars)
weightnumberNoWeight in grams (1–9,999)
widthnumberNoWidth in cm (1–9,999)
heightnumberNoHeight in cm (1–9,999)
lengthnumberNoLength in cm (1–9,999)
has_discountbooleanYesWhether product has a discount
discountnumberConditionalDiscount amount (required if has_discount is true, must be less than price)
imagefileNoProduct image (max 1 MB)
free_shippingbooleanYesWhether shipping is free
paid_by_sellerbooleanYesWhether paid by seller

INFO

Super Admin users must also provide account_id to assign the product to a specific account.

Show Product

GET/products/{product}/show🔒 Session — can view

View product details. Purchase price is hidden for unauthorized users.

Update Product

PATCH/products/{product}/update🔒 Session — can update

Update product details. Different fields are available based on role.

Admin/Manager fields: name, description, sku, status, purchase_price, price, category_id, paid_by_seller, variants, weight, width, height, length, free_shipping

Seller fields only:

FieldTypeRequiredDescription
statusstringYesProduct status
free_shippingbooleanYesFree shipping flag
landing_page_urlstringYesLanding page URL (must be active, max 300 chars)
scriptstringYesTracking/pixel script (10–536,870,912 chars)

Update Product Image

PATCH/products/{item}/update-image🔒 Session

Replace the product image.

FieldTypeRequiredDescription
imagefileYesImage file (max 1 MB)

Delete Products (Bulk)

DELETE/products/delete🔒 Session — can delete

Bulk delete products. Also deletes associated stock records.

FieldTypeRequiredDescription
idsarrayYesArray of product IDs

Assign Products

Assign to Sellers

POST/products/assign-to-sellers🔒 Session

Reassign products to a different seller account.

FieldTypeRequiredDescription
idsarrayYesProduct IDs
account_idstringYesTarget account ID

Assign to Agents

POST/products/assign-to-agents🔒 Session

Assign products to agents for confirmation workflows.

FieldTypeRequiredDescription
product_idsarrayYesProduct IDs
agent_idsarrayYesAgent user IDs

Search Products

GET/search/products🔒 Session

Search active products for autocomplete.

Returns [{id, text, sku}].

WedoCOD Documentation