list_stock_control_transactions_per_item


GET /list_stock_control_transactions_per_item

To get the last n (no more than 100) stock control transactions per item and transaction type.

/list_stock_control_transactions_per_item?token=XXXXX&item_code_365=100NEWITEM&transaction_type_365=SI&request_password_365=YourPassword&records=100

field type description
token string Credentials provided by Powersoft that allow access to the API
item_code_365 string 365 item code or barcode.
transaction_type_365 string The 365 transaction type, Possible values: 'SI' = invoice, 'SC'=credit note, 'SP'=purchase invoice, 'SE'=purchase return
request_password_365 string Request password as registered in 365 BASE64 encoded - optionally. The password is a must only for the transactions type 'SP' and 'SE'. Password is provided by Powersoft.
records integer The number of records to retrieve. The maximum is 100 per request.

Returns

        {
			"api_response": {
				"response_code": "1",
				"response_msg": "OK",
				"response_id": ""
			},
			"list_stock_control_transactions": [
				{
					"stock_control_transaction_number": "IN10000570",
					"accounting_transaction_number": "10001989",
					"entity_code": "10000363",
					"entity_name": "ALFA MEGA SUPERMARKET CENTRAL",
					"transaction_date": "2017-05-02",
					"session_date_utc": "2017-05-02 05:22:52",
					"store_code_365": "100",
					"store_name": "POWERSOFT365",
					"store_short_name": "PS365",
					"is_closed": false,
					"user_code_365": "",
					"payment_type_code_365": "CREDIT",
					"payment_type_description": "CREDIT",
					"line_qty": 1,
					"price_exclude_vat": 30.25,
					"price_include_vat": 36,
					"subtotal_value": 30.25,
					"line_discount_percentage": 0,
					"line_discount_value": 0,
					"extra_discount_value": 0,
					"vat_percentage": 19,
					"line_vat_value": 5.75,
					"total_vat_value": 5.75,
					"total_before_additional_discount": 36,
					"total_value": 36
				}
			]
		}