Preview YBM Connect Product groups

GET /connect/suppliers/:account/categories

Preview a YBM Connect Supplier's Product groups before connecting. Use the account ID from the Supplier directory, not your account's numeric Supplier id. Once connected, use GET /suppliers/:id/categories.

Query parameters

  • expand=counts: Include product_count for each Product group. (optional)
  • status=ACTIVE or status=INACTIVE: Count only products with that status. This affects counts only when expand=counts is set; it does not filter the Product groups. (optional)

Response

categories contains objects with id and name, plus product_count when requested. A Supplier without Product groups returns an empty array.

Status codes

  • 200 on success.
  • 400 for invalid query parameters.
  • 404 if the YBM Connect Supplier does not accept connection requests.

Example

GET /connect/suppliers/con_example_supplier/categories?expand=counts&status=ACTIVE
{
  "categories": [{ "id": "cat_example", "name": "Drinks", "product_count": 12 }]
}