barcode
GET /barcode
To get a specific item by barcode.
/barcode?token=XXXXX&barcode_365=5290001006599&request_password_365=yourpassword
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| barcode_365 |
Barcode as is in 365 |
| request_password_365 |
Request password as registered in 365 BASE64 encoded - optionally. The password is necessary if the user needs to have the item cost. Password is provided by Powersoft. |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"item": {
"item_code_365": "APIITEM1",
"item_name": "API ITEM 1",
"item_name_2": "API ITEM 1",
"active": true,
"vat_code_365": "019",
"vat_percent": 19,
"supplier_code_365": "10000001",
"supplier_name": "DEFAULT SUPPLIER",
"item_cost": 0,
"item_average_cost": 0,
"item_weighted_average_cost": 0,
"price_excl_1": 0.84,
"price_incl_1": 1,
"price_excl_2": 1.68,
"price_incl_2": 2,
"price_excl_3": 2.52,
"price_incl_3": 3,
"price_excl_4": 3.36,
"price_incl_4": 4,
"price_excl_5": 4.2,
"price_incl_5": 5,
"price_excl_6": 5.04,
"price_incl_6": 6,
"price_excl_7": 5.88,
"price_incl_7": 7,
"price_excl_8": 6.72,
"price_incl_8": 8,
"price_excl_9": 7.56,
"price_incl_9": 9,
"price_excl_10": 8.4,
"price_incl_10": 10,
"specifications": "",
"notes": "",
"category_code_365": "",
"category_name": "",
"dept_code_365": "",
"dept_name": "",
"brand_code_365": "",
"brand_name": "",
"season_code_365": "",
"season_name": "",
"color_code_365": "",
"color_name": "",
"color_html": "",
"size_code_365": "",
"size_name": "",
"size_name_invoice": "",
"model_code_365": "",
"model_name": "",
"size_group_code_365": "",
"size_group_name": "",
"attribute_1_code_365": "",
"attribute_1_name": "",
"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": "",
"item_length": 0,
"item_width": 0,
"item_height": 0,
"item_volume": 0,
"item_weight": 0,
"number_of_pieces": 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": null,
"text_field_2_value": null,
"text_field_3_value": null,
"text_field_4_value": null,
"text_field_5_value": null,
"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": null,
"date_field_2_value": null,
"date_field_3_value": null,
"date_field_4_value": null,
"date_field_5_value": null,
"list_item_barcodes": [
{
"barcode": "5290001006599",
"is_label_barcode": false,
"is_ean_13": true
},
{
"barcode": "APIITEM1",
"is_label_barcode": false,
"is_ean_13": false
},
{
"barcode": "APIITEM1_1",
"is_label_barcode": false,
"is_ean_13": false
},
{
"barcode": "76662336225",
"is_label_barcode": true,
"is_ean_13": false
},
{
"barcode": "76662336225_1",
"is_label_barcode": false,
"is_ean_13": false
},
{
"barcode": "76662336225_2",
"is_label_barcode": false,
"is_ean_13": false
}
]
}
}
POST /barcode
To create a new barcode.
{
"api_credentials": {
"token": "XXXX"
},
"barcode": {
"item_code_365": "APIITEM1",
"new_barcode": "76662336225",
"is_main_barcode": "Y"
}
}
| field |
type |
description |
|
api_credentials
|
| token |
string |
Credentials provided by Powersoft that allow access to the API |
|
barcode
|
| item_code_365 |
string |
The code of the item in 365 |
| new_barcode |
string |
The new barcode to be added in 365 |
| is_main_barcode |
string |
Specifies if the new barcode is the main one for the item (the one to be printed in the labels). 'Y'= the new barcode is the main one. 'N'= the new barcode is not the main one |
Returns
Returns the standard api_response object.