list_stock_control_transactions
GET /list_stock_control_transactions
To get the last n (no more than 100) stock control transactions per item, entity code (customer/supplier) and transaction type.
/list_stock_control_transactions?token=XXXXX&item_code_365=100NEWITEM&entity_code_365=10000363&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. |
| entity_code_365 |
string |
The 365 customer or supplier code based on transaction type |
| 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",
"item_code_365": "100NEWITEM",
"item_name": "100 NEW ITEM",
"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
}
]
}