Finish an audit by setting each counted item's quantity to its count. Differences are measured against current stock and posted as shrinkage or overage.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Responses
Status
Description
Body
200
Returns the lines adjusted and skipped, and the total shrinkage and overage values posted.
object
422
The request failed validation. The response lists each invalid field and why.
HTTPValidationError
Example
curl -X POST http://localhost:8000/lists/:entity_id/adjust \
-H "Authorization: Bearer $TOKEN"
POST/lists/{entity_id}/change-type
Change Inventory List Type
Change a draft or finalized list's type. Earlier activity stays in the history.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
list_type
string
yes
Celerp inventory list type, such as audit, transfer, write-off, or shipping list when supported.
Responses
Status
Description
Body
200
Returns `ok: true` and the new list type.
object
422
The request failed validation. The response lists each invalid field and why.
The total a list an earlier version totalled holds and the one the document rule gives it,
as money text, or nulls when they agree: the list page offers Recalculate total on it.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Responses
Status
Description
Body
200
Successful Response
object
422
Validation Error
HTTPValidationError
Example
curl -X GET http://localhost:8000/lists/:entity_id/old-rule-total \
-H "Authorization: Bearer $TOKEN"
GET/lists/{entity_id}/page
Get Paged Inventory List
Return paged inventory list.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
offset
query
--
string
Number of matching records to skip before returning results.
limit
query
--
string
Maximum number of records to return.
Responses
Status
Description
Body
200
Returns the requested paged inventory list result.
object
422
The request failed validation. The response lists each invalid field and why.
HTTPValidationError
Example
curl -X GET http://localhost:8000/lists/:entity_id/page \
-H "Authorization: Bearer $TOKEN"
POST/lists/{entity_id}/recalculate-total
Recalculate List Total
Give a list an earlier version totalled the totals the document rule gives it, as a
recorded change the user can undo (restore-total). A list that already agrees is left as is.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Responses
Status
Description
Body
200
Successful Response
object
422
Validation Error
HTTPValidationError
Example
curl -X POST http://localhost:8000/lists/:entity_id/recalculate-total \
-H "Authorization: Bearer $TOKEN"
POST/lists/{entity_id}/reprice
Reprice List
Update the price of every catalog item line on a draft list from a price list, in one step. If any line cannot be repriced, nothing changes.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
price_list
string
yes
Price List
expected_version
integer
yes
Expected Version
Responses
Status
Description
Body
200
Returns the event ID, the new version, the lines repriced and skipped, and the price list used.
object
422
The request failed validation. The response lists each invalid field and why.
Reserve or release selected inventory list lines without posting an accounting entry.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
line_ids
array of string
--
The chosen lines, each by its line id.
line_entity_ids
array of string
--
Identifiers of the document or list lines included in the operation.
idempotency_key
string, optional
--
Names one submission: sending it again returns the first result.
dry_run
boolean
--
Answer what the action would do, as the action itself decides it, and change nothing: the lines it would act on, leave and take back, or the refusal it would give, with its binding.
binding
string, optional
--
The binding of the preview the user confirmed. The action is refused (409 lines.preview_differs), changing nothing, when it would now act on, leave or take back other lines than that preview said.
new_status
string
yes
Reservation state to assign to the selected document or list lines.
Responses
Status
Description
Body
200
Returns the updated reservation state of each selected line.
object
422
The request failed validation. The response lists each invalid field and why.
Scan a barcode or code into a list. What happens depends on the list type and status: in a draft it adds a line, in a finalized audit it counts the item.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
barcode
string
yes
Codes scanned, separated by commas.
price_list
string, optional
--
Price list to price the added lines from. Defaults to Retail.
run_key
string, optional
--
Client operation key identifying the scan run. A retry with the same key and codes returns the first answer.
Responses
Status
Description
Body
200
Returns the lines scanned, the result for each code, any codes that failed, and any duplicates.
object
422
The request failed validation. The response lists each invalid field and why.
Give back what chosen List lines hold. A List never ships, so a line whose goods are
sold or out on memo is refused: they are taken back on the document that shipped them.
Lines with no inventory item, service lines and lines holding nothing are left as they
are and listed in the answer's ``skipped`` (each line's number, name, kind and line id),
with ``skipped_notice`` saying why. A choice in which no line holds anything is refused
(422), naming the lines.
The answer: ``new_status``: the status the lines are set to; ``reserved``: the items it holds for this record; ``released``: the items whose hold it gives back; ``acted``: the line ids of the chosen lines it acts on; ``skipped``: the chosen lines it leaves as they are, each with its number (``line``), name, ``kind`` and ``line_id``; ``skipped_notice``: the messages saying why it leaves those lines; ``binding``: this answer as one digest; send it back with the action to have the action refused (409 ``lines.preview_differs``), changing nothing, if it would now do anything else.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
line_ids
array of string
--
The chosen lines, each by its line id.
line_entity_ids
array of string
--
Identifiers of the document or list lines included in the operation.
idempotency_key
string, optional
--
Names one submission: sending it again returns the first result.
dry_run
boolean
--
Answer what the action would do, as the action itself decides it, and change nothing: the lines it would act on, leave and take back, or the refusal it would give, with its binding.
binding
string, optional
--
The binding of the preview the user confirmed. The action is refused (409 lines.preview_differs), changing nothing, when it would now act on, leave or take back other lines than that preview said.
Write off the stock on a list in one step: each line's quantity leaves stock and one balanced journal entry is posted. If any line cannot be written off, nothing is.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Responses
Status
Description
Body
200
Returns the lines written off, the lines skipped, and the total value written off.
object
422
The request failed validation. The response lists each invalid field and why.
HTTPValidationError
Example
curl -X POST http://localhost:8000/lists/:entity_id/write-off \
-H "Authorization: Bearer $TOKEN"
POST/lists/{entity_id}/writeoff-line
Update Inventory Write-Off Line
Update inventory Write-Off line with the supplied fields.
Parameters
Name
In
Required
Type
Description
entity_id
path
yes
string
Identifier of the requested Celerp record.
Request body
Field
Type
Required
Description
line_id
string, optional
--
Identifier of the list or document line.
item_id
string, optional
--
Identifier of the inventory item.
qty_out
number, optional
--
Quantity to remove from inventory on the write-off line.
weight
number, optional
--
Weight
pieces
number, optional
--
Pieces
account
string, optional
--
Accounting account used for the write-off line.
comment
string, optional
--
Optional comment recorded with the line.
Responses
Status
Description
Body
200
Returns the updated inventory write-off line or update result.
object
422
The request failed validation. The response lists each invalid field and why.