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: Includeproduct_countfor each Product group. (optional)status=ACTIVEorstatus=INACTIVE: Count only products with that status. This affects counts only whenexpand=countsis 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
200on success.400for invalid query parameters.404if 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 }]
}