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

products resource

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

Attributes

name
create, read, update
description
create, read, update
sku
create, read, update
internal_code
create, read, update
supplier_code
create, read, update
conduct
create, read, update common | compound | variant_common | variant_parent
product_type
create, read, update
duration
create, read, update
stock_type
create, read, update disabled | negative | positive
replacement_cost
create, read, update
author_id
create, read, update
company_id
create, read, update
category_id
create, read, update
currency_id
create, read, update
price
read
price_with_tax
read
price_subdist
read
price_prevent
read
cost_with_tax
create, read, update Only saves cost calculated based on cost with tax
measure_id
create, read, update
stock
create, read, update
stock_alert
create, read, update
stock_desired
create, read, update
tax_id
create, read, update
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
units_per_package
create, read, update int
units_per_box
create, read, update int
allow_fractions
create, read, update boolean

Relationships

pricelist_products
has many
parentproducts
has one
products
has one
suppliers
has many
categories
has one
taxes
has one
measures
has one
currencies
has one
photos
has many
futureprices
has many
variant_parent
has many
variant_children
has many
compound_parent
has many
compound_children
has many

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
trashed
equals no acepta varios valores

JSON Resource Example

  {
    data: {
      type: products,
      id: 431,
      attributes: {
        name: someValue,
        description: someValue,
        sku: someValue,
        internal_code: someValue,
        supplier_code: someValue,
        conduct: someValue,
        product_type: someValue,
        duration: someValue,
        stock_type: someValue,
        replacement_cost: someValue,
        author_id: someValue,
        company_id: someValue,
        category_id: someValue,
        currency_id: someValue,
        price: someValue,
        price_with_tax: someValue,
        price_subdist: someValue,
        price_prevent: someValue,
        cost_with_tax: someValue,
        measure_id: someValue,
        stock: someValue,
        stock_alert: someValue,
        stock_desired: someValue,
        tax_id: someValue,
        high: someValue,
        width: someValue,
        length: someValue,
        weight: someValue,
        weight_element: someValue,
        units_per_package: someValue,
        units_per_box: someValue,
        allow_fractions: true
        },
      relationships: { 
        pricelist_products:{
          id: 162,
          type: pricelist_products
        },
      
        parentproducts:{
          id: 184,
          type: parentproducts
        },
      
        products:{
          id: 818,
          type: products
        },
      
         suppliers:{
          id: 343,
          type: entities
        },
      
        categories:{
          id: 151,
          type: categories
        },
      
        taxes:{
          id: 980,
          type: taxes
        },
      
        measures:{
          id: 273,
          type: measures
        },
      
        currencies:{
          id: 389,
          type: currencies
        },
      
        photos:{
          id: 223,
          type: photos
        },
      
        futureprices:{
          id: 476,
          type: futureprices
        },
      
        variant_parent:{
          id: 499,
          type: variant_parent
        },
      
        variant_children:{
          id: 784,
          type: variant_children
        },
      
        compound_parent:{
          id: 505,
          type: compound_parent
        },
      
        compound_children:{
          id: 752,
          type: compound_children
        }
      }
    }
  }

JSON-API Entry points

DELETE PATCH GET http://api.multinexo.com/v1/company/{company_id}/products/{products_id}

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

POST http://api.multinexo.com/v1/company/{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.

variant_children hasMany

Si el atributo conduct es variant_common, entonces.

variants_parent hasMany

compound_parent hasMany

Si el atributo conduct es compound, entonces.

compound_children hasMany

Si el atributo conduct es common, entonces.

compound_parent hasMany