model


GET /model

To get a specific model.

/model?token=XXXXX&model_code_365=ARTICLE01

Returns

        {
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "model": {
                "model_code_365": "ARTICLE01",
                "model_name": "ARTICLE 01",
                "model_name_2": "ARTICLE 01",
                "active": true,
                "vat_code_365": "019",
                "vat_percent": 19,
                "price_excl": 168.07,
                "price_incl": 200,
                "specifications": "",
                "notes": "",
                "category_code_365": "CAT3",
                "category_name": "CAT3",
                "dept_code_365": "",
                "dept_name": "",
                "brand_code_365": "LEVINTZA",
                "brand_name": "LEVINTZA",
                "season_code_365": "2013S",
                "season_name": "2013 SUMMER",
                "fabric_code_365": "",
                "fabric_name": "",
                "size_group_code_365": "24-40",
                "size_group_name": "24 - 40",
                "attribute_1_code_365": "ATTR1",
                "attribute_1_name": "ATTRIBUTE 1",
                "attribute_2_code_365": "",
                "attribute_2_name": "",
                "attribute_3_code_365": "",
                "attribute_3_name": "",
                "attribute_4_code_365": "",
                "attribute_4_name": "",
                "attribute_5_code_365": "",
                "attribute_5_name": "",
                "attribute_6_code_365": "",
                "attribute_6_name": "",
                "um_code_365": "",
                "um_name": "",
                "model_length": 15,
                "model_width": 0,
                "model_height": 0,
                "model_volume": 0,
                "model_weight": 0,
                "boolean_field_1_value": false,
                "boolean_field_2_value": false,
                "boolean_field_3_value": false,
                "boolean_field_4_value": false,
                "boolean_field_5_value": false,
                "text_field_1_value": "",
                "text_field_2_value": "",
                "text_field_3_value": "",
                "text_field_4_value": "",
                "text_field_5_value": "",
                "number_field_1_value": 0,
                "number_field_2_value": 0,
                "number_field_3_value": 0,
                "number_field_4_value": 0,
                "number_field_5_value": 0,
                "date_field_1_value": "",
                "date_field_2_value": "",
                "date_field_3_value": "",
                "date_field_4_value": "",
                "date_field_5_value": ""
            }
        }
       


POST /model

To create a model.

        {
            "api_credentials": {
                "token": "XXXXX"
            },
            "model": {
                "model_code_365": "MODELTEST5",
                "model_name": "MODEL TEST 5",
                "model_name_2": "MODEL TEST 5",
                "vat_code_365": "019",
                "size_group_code_365": "SML",
                "model_cost": 10.00,
                "price_excl_1":12.61,
                "price_incl_1":15.00,
                "price_excl_2":12.61,
                "price_incl_2":15.00,
                "price_excl_3":16.81,
                "price_incl_3":20.00,
                "price_excl_4":21.01,
                "price_incl_4":25.00,
                "price_excl_5":12.61,
                "price_incl_5":15.00,
                "price_excl_6":12.61,
                "price_incl_6":15.00,
                "price_excl_7":16.81,
                "price_incl_7":20.00,
                "price_excl_8":21.01,
                "price_incl_8":25.00,
                "price_excl_9":12.61,
                "price_incl_9":15.00,
                "price_excl_10":12.61,
                "price_incl_10":15.00,
                "specifications": "some specifications here",
                "notes": "some notes here",
                "web_site": "somethinghere.com",
                "category_code_365": "00012",
                "dept_code_365": "OTH",
                "brand_code_365":"OTHER",
                "season_code_365":"2016W",
                "fabric_code_365":"1113",
                "attribute_1_code_365":"001",
                "attribute_2_code_365":"PROP1",
                "attribute_3_code_365":"PROP3",
                "attribute_4_code_365":"PROP1",
                "attribute_5_code_365":"PROP3",
                "attribute_6_code_365":"123",
                "um_code_365":"PCS",
                "model_length": 12.00,
                "model_width": 15.00,
                "model_height": 20.00,
                "model_volume":3600.00,
                "model_weight":0.00,
                "ecommerce": true,
                "boolean_field_1_value":true,
                "boolean_field_2_value":true,
                "boolean_field_3_value":false,
                "boolean_field_4_value":true,
                "boolean_field_5_value":true,
                "text_field_1_value": "text field 1 value",
                "text_field_2_value": "text field 2 value",
                "text_field_3_value": "text field 3 value",
                "text_field_4_value": "text field 4 value",
                "text_field_5_value": "text field 5 value",
                "number_field_1_value": 0.00,
                "number_field_2_value": 0.00,
                "number_field_3_value": 0.00,
                "number_field_4_value": 0.00,
                "number_field_5_value": 0.00,
                "date_field_1_value":"2016-01-01",
                "date_field_2_value":"2018-12-01",
                "date_field_3_value":"2010-08-15",
                "date_field_4_value":"2016-09-01",
                "date_field_5_value":"2017-01-01"  
                }
        }
       


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
model
model_code_365 string The unique code of the model as will be registered in 365. Required.
model_name string The name of the model. Required.
model_name_2 string The other name of the model.
vat_code_365 string The 365 vat code. Required.
supplier_code_365 string The 365 supplier code.In case that supplier code is not provided and in 365 it is defined the default supplier then the model will be assigned to the default supplier, otherwise it is a must to provide the supplier code.
model_cost decimal The cost, purchased value, of the model.
price_excl_1 decimal The first price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_1 decimal The first price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_2 decimal The second price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_2 decimal The second price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_3 decimal The third price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_3 decimal The third price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_4 decimal The fourth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_4 decimal The fourth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_5 decimal The fifth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_5 decimal The fifth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_6 decimal The sixth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_6 decimal The sixth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_7 decimal The seventh price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_7 decimal The seventh price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_8 decimal The eighth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_8 decimal The eighth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_9 decimal The nineth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_9 decimal The nineth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
price_excl_10 decimal The tenth price excluding VAT of the model. In case that system works with price INCLUDING vat round(price_excl,2) = round(price_incl_vat/(1+vat_value),2)
price_incl_10 decimal The tenth price including VAT of the model. In case that system works with price EXCLUDING vat round(price_incl,2) =round(price_excl_vat*(1+vat_value),2)
specifications string The specifications of the model.
notes string The notes of the model.
web_site string Any information to be displayed eventually only on the e-shop side for the model.
category_code_365 string The 365 model's category code.
dept_code_365 string The 365 model's department code.
brand_code_365 string The 365 model's brand code.
season_code_365 string The 365 model's season code.
fabric_code_365 string The 365 model's material code.
size_group_code_365 string The 365 model's size group code. Required.
attribute_1_code_365 string The 365 model's first attribute code.
attribute_2_code_365 string The 365 model's second attribute code.
attribute_3_code_365 string The 365 model's third attribute code.
attribute_4_code_365 string The 365 model's fourth attribute code.
attribute_5_code_365 string The 365 model's fifth attribute code.
attribute_6_code_365 string The 365 model's sixth attribute code.
um_code_365 string The 365 model's unit of measure code.
model_length decimal The length of the model.
model_width decimal The width of the model.
model_height decimal The height of the model.
model_volume decimal The volume of the model.
model_weight decimal The weight of the model.
ecommerce boolean If the model will be displayed on the e-shop site.
boolean_field_1_value boolean First custom boolean field.
boolean_field_2_value boolean Second custom boolean field.
boolean_field_3_value boolean Third custom boolean field.
boolean_field_4_value boolean Fourth custom boolean field.
boolean_field_5_value boolean Fifth custom boolean field.
text_field_1_value string First custom text field.
text_field_2_value string Second custom text field.
text_field_3_value string Third custom text field.
text_field_4_value string Fourth custom text field.
text_field_5_value string Fifth custom text field.
number_field_1_value decimal First custom decimal field.
number_field_2_value decimal Second custom decimal field.
number_field_3_value decimal Third custom decimal field.
number_field_4_value decimal Fourth custom decimal field.
number_field_5_value decimal Fifth custom decimal field.
date_field_1_value string First custom date field. The date format is yyyy-MM-dd.
date_field_2_value string Second custom date field. The date format is yyyy-MM-dd.
date_field_3_value string Third custom date field. The date format is yyyy-MM-dd.
date_field_4_value string Fourth custom date field. The date format is yyyy-MM-dd.
date_field_5_value string Fifth custom date field. The date format is yyyy-MM-dd.

Returns

The standard api_response object. When the model is created, the provided model code is returned in the response_id field.