Product
List Products

List product

Get all your product in paginate format.

POST/product/list

Parameters

items_for_page - intger required
Total of returned items.


page - intger required
Number of the page relatievly of the items_for_page.


Example
{
  "items_for_page": 5,
  "page": 1
}

Response

status 200

The response contains the pagination data and the opportunity objects are inside in the data property.

Response
{
  "total": 6,
  "per_page": 5,
  "current_page": 1,
  "last_page": 2,
  "from": 1,
  "to": 5,
  "data":
    [
      {
        "id": 1,
        "reference": "ProductAPI",
        "price": 15,
        "cost": 2,
        "max_discount": null,
        "stock": 1,
        "active": true,
        "product_category_id": 1,
        "services": null,
        "vat_id": 1,
        "taxes": null,
        "name": "Product API",
        "description": "Product API description",
        "category": {
            "id": 1,
            "name": "CategoryAPI",
            "reference": "C_API",
            "parent_id": 0,
            "childs": []
        },
        "vat": {
            "id": 1,
            "vat": "21.00",
            "erp_flag": ""
        },
        "rates": [
          {
            "id": 1,
            "sku": "ProductAPI_rate_1",
            "cost": 1.00,
            "price": 5.00,
            "services": 0.00,
            "primary": 1
          }
        ]
      },
      {"id" : 2 ...},
      {"id" : 3 ...}
      {"id" : 4 ...}
      {"id" : 5 ...}
    ]
}