Stock Adjustment Documents
Stock Adjustments API.
Stock Adjustments are used to adjust stock levels.
There are two types of stock adjustments:
- Single Adjustment to adjust the stock of a single product at a particular warehouse.
- Stock Adjustment Document to adjust the stock of multiple products at the same warehouse.
List Stock Adjustment Documents
Stock adjustment documents are used to adjust the stock levels in bulk. You can add
multiple product in the document and based on the adjustment_type the stock levels will be adjusted.
The mark complete action is async. You will get the task status using the field is_task_in_progress.
query Parameters
adjustment_typecreated_range_afterCreated at
created_range_beforeCreated at
is_completeis_task_in_progresslimitNumber of results to return per page.
notesnumberoOrdering
id- Id-id- Id (descending)updated- Updated-updated- Updated (descending)
offsetThe initial index from which to return the results.
orderingWhich field to use when ordering the results.
reasonupdated_range_afterUpdated at
updated_range_beforeUpdated at
warehouseList Stock Adjustment Documents › Responses
countnextpreviousCreate Stock Adjustment Document
API endpoint to create and list adjustment documents.
Create Stock Adjustment Document › Request Body
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typeCan be either one of: SET, ADD, SUB
SET- SETADD- ADDSUB- SUB
reasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notesCreate Stock Adjustment Document › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typeCan be either one of: SET, ADD, SUB
SET- SETADD- ADDSUB- SUB
reasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notesGet Stock Adjustment Document
Get the details of a single adjustment document.
path Parameters
idGet Stock Adjustment Document › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typereasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notesUpdate Stock Adjustment Document
Update the adjustment document.
path Parameters
idUpdate Stock Adjustment Document › Request Body
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typereasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notesUpdate Stock Adjustment Document › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typereasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notesMark Complete
Mark the stock adjustment document as complete.
This will adjust the stock levels of all the products in the document.
When you send the request to mark the document as complete, the field is_task_in_progress becomes true
which means the background task has started now. When the field becomes false it means the task has finished
and the document is now complete.
path Parameters
idMark Complete › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
adjustment_typeCan be either one of: SET, ADD, SUB
SET- SETADD- ADDSUB- SUB
reasonwarehouse_idis_completeThe status of the Adjust Stock Document. If false it means the document is still a draft and has no effect on the inventory.
notes