Read Connected Products

GET /suppliers/:id/items

Read products from a YBM Connect Supplier connected to your account. Use the numeric Supplier id from GET /suppliers. This is the catalogue to use when importing selected products as Items. It does not work for Suppliers you added yourself or for pending or rejected connections.

Query parameters

  • offset: First product to return; defaults to 0. (optional)
  • limit: Number of products to return; defaults to 25. (optional)
  • category: Filter by Product group id from GET /suppliers/:id/categories. (optional)
  • search_term: Search product names. (optional)
  • ids: Comma-separated product IDs, up to 50. This retrieves those products directly and returns any unknown IDs in missing; do not combine it with pagination or filters. (optional)

The request schema also accepts status, but the connected-catalogue handler does not apply it. Do not rely on this parameter to filter the results.

Response

items contains Supplier products; total is the number of matching products. Each product has an id, name, status, and Product group category; other fields can describe packaging, pricing, and delivery details. Account-specific prices may be applied here. See YBM Connect Items for product details.

imported maps a Supplier product ID to your Item ID if you have already imported that product. With ids, missing lists requested product IDs that were not found. The product's category is the Supplier's Product group; when importing it as an Item, choose a Product group in your own account.

Status codes

  • 200 on success.
  • 202 while the catalogue index is being prepared; the response has empty items, total: 0, imported: {}, and cache_status. Retry later.
  • 400 for invalid query parameters, more than 50 IDs, or a Supplier without an accepted YBM Connect connection.
  • 404 if the Supplier record cannot be found.

Example request

GET /suppliers/1693919950079/items?limit=25

Example response

{
  "items": [
    {
      "id": "prd_example",
      "name": "Example product",
      "status": "ACTIVE",
      "category": "cat_example"
    }
  ],
  "total": 1,
  "imported": {
    "prd_example": "itm_example"
  }
}