Get products import status - celdotro/marketplace GitHub Wiki

About

  • Get import status for specified products

Class

celmarket\Products\ProductsStatus

Method

getProductImportStatus

API

  • method: import
  • action: productImportStatus

Parameters

  • products = list of products to check -> JSON type object
    • model = product's model (required)
    • vendor_ext_id = product's internal ID (optional)

Response

An array of objects with the following attributes

  • model = product's model
  • vendor_ext_id = product's internal ID
  • status = product's import status (see list of possible statuses below)
  • message = extra info

Import statuses

  • IMPORT_PENDING - Product is in import queue waiting for approval
  • IMPORT_REFUSED - Product has been rejected (message attribute offers reason)
  • ON_SITE - Product / Offer is published
  • ON_SITE_PENDING_UPDATE - Product / Offer is published but has modifications pending
  • NOT_FOUND - Product not found

Example - JSON

{
  "request": {
   "products": [
    {
      "model": "XXXX",
      "vendor_ext_id": "YYYYYY"
    },
    {
      "model": "X2X2X2",
      "vendor_ext_id": "Y2Y2Y2Y2"
    },
    {
      "model": "X3X3X3X3"
    }
   ] 
  },
  
  "response": [
    {
      "model": "XXXX",
      "vendor_ext_id": "YYYYYY",
      "status": "ON_SITE",
      "message": ""
    },
    {
      "model": "X2X2X2",
      "vendor_ext_id": "Y2Y2Y2Y2",
      "status": "IMPORT_REFUSED",
      "message": "Descriere invalida"
    },
    {
      "model": "X3X3X3X3",
      "status": "NOT_FOUND",
    }
  ]
}