Autenticación Hardware Cashier Companies Documents Entities Fiscal Products Shared Users

products resource

GET http://api.multinexo.com/v1/companies/{company_id}/products

Attributes

name
create, read, update string required
description
create, read, update text
sku
create, read, update string
internal_code
create, read, update string
supplier_code
create, read, update string
conduct
create, read, update common | compound | variant_common | variant_parent required
product_type
create, read, update service | product
duration
create, read, update int
stock_type
create, read, update disabled | negative | positive
replacement_cost
create, read, update float required
price
read float
price_with_tax
read float
price_subdist
read float
price_prevent
read flaot
cost_with_tax
create, read, update float Only saves cost calculated based on cost with tax
stock_type
create, read, update disabled | negative | positive required
stock
read float
stock_alert
create, read, update float
stock_alert_percent
read float
stock_desired
create, read, update float
high
create, read, update float
width
create, read, update float
length
create, read, update float
weight
create, read, update float
weight_element
create, read, update float
units_per_package
create, read, update int
units_per_box
create, read, update int
allow_fractions
create, read, update boolean

Relationships

author
has one of type: users
category
has one of type: categories
currency
has one of type: currencies
compound_children
has many of type: product_products
compound_parents
has many of type: product_products
futureprices
has many of type: futureprices
inventories
has many of type: inventories
measures
has many of type: measures
photos
has many of type: photos
pricelist_products
has many of type: pricelist_products
tax
has one of type: taxes
suppliers
has many of type: entities
variants_children
has many of type: products
variants_parents
has many of type: products

Filters

name
like no acepta varios valores
sku
equals no acepta varios valores
internal_code
equals no acepta varios valores
supplier_code
equals no acepta varios valores
product_type
equals no acepta varios valores
category_id
equals no acepta varios valores
deleted
bool no acepta varios valores

Sorts

stock_alert_percent
se puede ordenar por este atributo

JSON Resource Example

  {
    data: {
      type: products,
      id: 842,
      attributes: {
        name: string,
        description: someValue,
        sku: string,
        internal_code: string,
        supplier_code: string,
        conduct: someValue,
        product_type: someValue,
        duration: someValue,
        stock_type: someValue,
        replacement_cost: someValue,
        price: someValue,
        price_with_tax: someValue,
        price_subdist: someValue,
        price_prevent: someValue,
        cost_with_tax: someValue,
        stock_type: someValue,
        stock: someValue,
        stock_alert: someValue,
        stock_alert_percent: someValue,
        stock_desired: someValue,
        high: someValue,
        width: someValue,
        length: someValue,
        weight: someValue,
        weight_element: someValue,
        units_per_package: someValue,
        units_per_box: someValue,
        allow_fractions: true
        },
      relationships: { 
         author:{
          id: 683,
          type: users
        },
      
         category:{
          id: 315,
          type: categories
        },
      
         currency:{
          id: 342,
          type: currencies
        },
      
         compound_children:{
          id: 333,
          type: product_products
        },
      
         compound_parents:{
          id: 630,
          type: product_products
        },
      
        futureprices:{
          id: 650,
          type: futureprices
        },
      
        inventories:{
          id: 574,
          type: inventories
        },
      
        measures:{
          id: 561,
          type: measures
        },
      
        photos:{
          id: 165,
          type: photos
        },
      
        pricelist_products:{
          id: 401,
          type: pricelist_products
        },
      
         tax:{
          id: 503,
          type: taxes
        },
      
         suppliers:{
          id: 640,
          type: entities
        },
      
         variants_children:{
          id: 885,
          type: products
        },
      
         variants_parents:{
          id: 358,
          type: products
        }
      }
    }
  }

JSON-API Entry points

DELETE PATCH GET http://api.multinexo.com/v1/companies/{company_id}/products/{product_id}

GET http://api.multinexo.com/v1/companies/{company_id}/pricelists/{pricelists_id}/products

POST http://api.multinexo.com/v1/companies/{company_id}/products/

Special relationships

Si es un producto en particular, entonces.

pricelist_products hasMany

futureprices hasMany

Si el atributo conduct es variant_parent, entonces.

variants_children hasMany

Si el atributo conduct es variant_common, entonces.

variants_parents hasMany

compound_parents hasMany

Si el atributo conduct es compound, entonces.

compound_children hasMany

Si el atributo conduct es common, entonces.

compound_parents hasMany