Get rejected products - celdotro/marketplace GitHub Wiki

About

  • Get rejected products list

Class

celmarket\Products\ProductsList

Method

getRejectedProducts

API

  • method: Products
  • action: ListRejectedProducts

Parameters

  • start = start value

Response

An object with the following attributes

  • limit = maximum number of values
  • start = start position
  • moreavailable = if there are any more products in the list
  • data = products -> array
    • (array element) = product
      • _id = product's ID
      • categories_id = category's ID
      • charact = characteristics -> object
        • (object attribute) = characteristic
          • (attribute's name) = characteristic's ID
          • (attribute's value) = characteristic's value -> array
            • (array element) = value
      • family_id = family's ID
      • fid = affiliate's ID
      • garantie = personal warranty
      • garantie_pj = company warranty
      • image = images -> array
        • (array element) = image
      • live = live
      • manufacturers_id = manufacturer's ID
      • moneda = currency's ID
      • motiv = reason
      • pret_vechi = previous price
      • pret_vechi_fara_tva = previous price without VAT
      • pretf = affiliate's price
      • pretlei = price in lei
      • procesare_in = processing time
      • products_date_added = product's addition timestamp
      • products_date_updated = product's update timestamp
      • products_description = base64 encoded product's description
      • products_image = product's image
      • products_model = product's model
      • products_name = product's name
      • products_price = product's price
      • products_weight = product's weight
      • refused = refused
      • status = product's status
      • stoc = product's stock
      • vendor_ext_id = external vendor's ID
      • vizualizat = whether it was changed to manual approval

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Products/25.getRejectedProducts.php

Example - JSON

{
  "request": {
    "start": 0
  },
  
  "response": {
    "limit": 1,
    "start": 0,
    "moreavailable": 0,
    "data": [
      {
        "_id": "X",
        "categories_id": 1,
        "charact": {
          "charact_id": [
            "charact_value"
          ]
        },
        "family_id": 1,
        "fid": 1,
        "garantie": 1,
        "garantie_pj": 1,
        "image": [],
        "live": 1,
        "manufacturers_id": 1,
        "manufacturers_name": "X",
        "moneda": 1,
        "motiv": 1,
        "pret_vechi": 1,
        "pret_vechi_fara_tva": 1,
        "pretf": 1,
        "pretlei": 1,
        "procesare_in": 1,
        "products_date_added": 1,
        "products_date_updated": 1,
        "products_description": "X",
        "products_image": "X",
        "products_model": "X",
        "products_name": "X",
        "products_price": 1,
        "products_weight": 0,
        "refused": 0,
        "status" : 0,
        "stoc": 1,
        "vendor_ext_id": 1,
        "vizualizat": 1
      }
    ]
  }
}
⚠️ **GitHub.com Fallback** ⚠️