stock_taking_pending


POST /stock_taking_pending

To create a new stock taking as pending.

        {
        "api_credentials": {
        "token": "XXXXX"
        },
            "stock_taking": {
            "stock_taking_header": {
            "stock_taking_id":"STK0001",
            "stock_taking_date_time_utc0":"2018-03-09 11:30:00",
            "store_code_365" : "100",
            "user_code_365": "usercode",
            "device_id" : "here is the device id",
            "partial_stock_taking": false,
            "active_tpe":"all",
            "ecommerce_type":"all",
            "categories_selection":"",
            "departments_selection":"",
            "items_supplier_selection":"",
            "brands_selection":"",
            "seasons_selection":"",
            "models_selection":"",
            "colours_selection":"",
            "sizes_selection":"",
            "sizes_group_selection":"",
            "material_selection":"",
            "attributes_1_selection:":"",
            "attributes_2_selection:":"",
            "attributes_3_selection:":"", 
            "attributes_4_selection:":"",
            "attributes_5_selection:":"",
            "attributes_6_selection:":""
        },
        "list_stock_taking_details": [
        {
	        "item_code_365": "WATERMELON",
	        "stock_counted": 10
        },
        {
	        "item_code_365": "WATER",
	        "stock_counted": 25
        },
        {
	        "item_code_365": "TOMATO",
	        "stock_counted": 100
        },
        ]
        }
       }
       


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
stock_taking
stock_taking_header
stock_taking_id string This is your unique stock taking id. Required.
stock_taking_date_time_utc0 datetime This is the Coordinated Universal Time (UTC) of the stock taking. ie at time zone +0. Required.
store_code_365 string The 365 store code. Required.
user_code_365 string The 365 user code. Required.
device_id string The id of the mobile device used. Required.
partial_stock_taking boolean If partial_stock_taking is false then all the items will be initialized with zero stock and make the adjustment of the stock only for those items provided in the details, otherwise the stock taking will be applied ONLY for those items provided in the details.
active_type string 'active' = Only the active items. 'inactive' = Only the inactive items. 'all' = All the items(active and inactive). Required.
ecommerce_type string 'eCommerceOnly' = Only items flagged as eCommerce. 'NoteCommerce' = Only the items which are not flagged as eCommerce. 'all' = All the items(flagged or not as eCommerce). Required.
categories_selection string A comma separated list of 365 items categories codes (eg 'DRINK,FOOD,CLOTHES,...') used to filter the items for stock counting. If not categories selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
departments_selection string A comma separated list of 365 items departments codes (eg 'MEN,WOMEN,CHILDREN,...') used to filter the items for stock counting. If not departments selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
items_supplier_selection string A comma separated list of 365 items suppliers codes (eg '10000001,10000004,10000009,...') used to filter the items for stock counting. If not items suppliers selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
brands_selection string A comma separated list of 365 brands codes (eg 'GUCCI,LEVINTZA,...') used to filter the items for stock counting. If not brands selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
seasons_selection string A comma separated list of 365 seasons codes (eg '2015S,2016W,...') used to filter the items for stock counting. If not seasons selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
models_selection string A comma separated list of 365 models codes (eg 'ARTICLE01,DRESS,...') used to filter the items for stock counting. If not models selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
colours_selection string A comma separated list of 365 colours codes (eg 'RED,BLACK,...') used to filter the items for stock counting. If not colours selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
sizes_selection string A comma separated list of 365 sizes codes (eg 'XL,XXL,L,...') used to filter the items for stock counting. If not sizes selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
sizes_group_selection string A comma separated list of 365 sizes groups codes (eg 'SML,10-20,...') used to filter the items for stock counting. If not group size selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_1_selection string A comma separated list of 365 attributes 1 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 1 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_2_selection string A comma separated list of 365 attributes 2 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 2 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_3_selection string A comma separated list of 365 attributes 3 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 3 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_4_selection string A comma separated list of 365 attributes 4 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 4 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_5_selection string A comma separated list of 365 attributes 5 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 5 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
attributes_6_selection string A comma separated list of 365 attributes 6 codes (eg 'A,B,C,...') used to filter the items for stock counting. If not attributes 6 selection was used then empty value will be passed. Required for full stock taking in order to initialize all the items that match the user defined criteria.
list_stock_taking_details
item_code_365 string The code or barcode of the item in 365
stock_counted decimal The stock counted of the item

Returns

			{
			"api_response": {
				"response_code": "1",
				"response_msg": "OK",
				"response_id": "365 stock taking id"
			},
			"result": [
				{
					"barcode": "024000001669",
					"item_code_365": "",
					"result_code": "1",
					"result_message": "OK"
				},
				{
					"barcode": "XXXXXXXXXXXXXXXX",
					"item_code_365": "",
					"result_code": "0",
					"result_message": "barcode not found"
				}
			]
        }