getJournalList
The method allows you to download a list of order events from the last 3 days.
Input parameters
Output data:
A sample request in PHP:
last_log_id | int | Log ID number from which the logs are to be retrieved |
logs_types | array | Event ID List |
order_id | int | Order ID number |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
logs | array | List of events |
| - id | int | Event ID |
| - order_id | int | Order identifier |
| - log_type | int | Event type:
1 - Order creation 2 - DOF download (order confirmation) 3 - Payment of the order 4 - Removal of order/invoice/receipt 5 - Merging the orders 6 - Splitting the order 7 - Issuing an invoice 8 - Issuing a receipt 9 - Package creation 10 - Deleting a package 11 - Editing delivery data 12 - Adding a product to an order 13 - Editing the product in the order 14 - Removing the product from the order 15 - Adding a buyer to a blacklist 16 - Editing order data 17 - Copying an order 18 - Order status change 19 - Invoice deletion 20 - Receipt deletion |
| - object_id | int | Additional information, depending on the event type:
5 - ID of the merged order 6 - ID of the new order created by the order separation 7 - Invoice ID 9 - Created parcel ID 10 - Deleted parcel ID 14 - Deleted product ID 17 - Created order ID 18 - Order status ID |
| - date | int | Event date |
Sample
Input data:Output data:
A sample request in PHP: