Import YBM Connect Items

POST /items/import

Import up to 50 products maintained by a YBM Connect Supplier into your account. Find product IDs in the connected Supplier catalogue. The Supplier manages the shared product data; you select a Product group in your own account and other account-specific details when importing. This can differ from the Supplier's Product group. Products that have already been imported cannot be imported again. This requires Items:IMPORT_CONNECT_PRODUCT permission.

Request properties

  • supplier: Numeric ID of the YBM Connect supplier record in your account. A supplier you added yourself cannot be used here.
  • products: Array of products to import. Each product contains:
    • id: Product ID from the connected supplier.
    • category: Product group ID in your account.
    • name: Item name in your account.
    • bundles: Selected bundles from the supplier product; each must match an available supplier bundle. See Vessel and bundle types for the format.
    • price: Price override in cents. (optional)
    • count_fractions: Fraction counting unit. See GET /items/:id for possible values. This value is ignored when the supplier product is ordered by weight (order_by="kg"). (optional)

The imported Item copies the supplier's vessel and ordering unit. If the supplier product has a vessel, the new Item's master data is locked immediately. Providing an account-specific price that differs from the supplier's price can turn off linked price updates.

Status codes

  • 200 on success
  • 400 on invalid request or if a product has already been imported
  • 404 if the supplier or a selected supplier product does not exist

Response properties

  • items: Array of the imported Item objects. See GET /items/:id for their properties.

Example request

{
  "supplier": 1693919950079,
  "products": [
    {
      "id": "prd_oh0IyIjqvd",
      "category": "cat_KaNDv51Gh0",
      "name": "Vodka",
      "bundles": [{ "type": "CT", "size": 6 }]
    }
  ]
}