REST API
Lists API
Inventory list API for stock audits, transfers, write-offs, manifests, scans, reservations, notes, exports, and list lifecycle operations.
Generated from the Celerp 2.5.0 OpenAPI schema, 21 September 2026.
GET /lists
List Inventory Lists
Return inventory lists matching the documented filters and pagination options.
Parameters
| Name | In | Required | Type | Description |
|---|
limit | query | -- | integer, optional | Maximum number of records to return. |
offset | query | -- | integer | Number of matching records to skip before returning results. |
list_type | query | -- | string, optional | Inventory list type used to filter list records. |
status | query | -- | string, optional | Record or workflow status used to filter results or select the requested lifecycle state. |
exclude_status | query | -- | string, optional | Status value to exclude from the result. |
date_from | query | -- | string, optional | Start date for the requested reporting or search period. |
date_to | query | -- | string, optional | End date for the requested reporting or search period. |
q | query | -- | string, optional | Search text used to filter matching records. |
all_issued | query | -- | boolean | Whether to include all issued documents regardless of other open-state filters. |
converted_to_type | query | -- | string, optional | Document type used to filter records that were converted to the specified target type. |
Responses
| Status | Description | Body |
|---|
200 | Returns the requested inventory lists. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X GET http://localhost:8000/lists \
-H "Authorization: Bearer $TOKEN"
POST /lists
Create Inventory List
Create an inventory list from the supplied request data.
Request body
| Field | Type | Required | Description |
|---|
list_type | string, optional | -- | Celerp inventory list type, such as audit, transfer, write-off, or shipping list when supported. |
ref_id | string, optional | -- | Human-readable document or list reference number. |
contact_id | string, optional | -- | Identifier of the customer, supplier, or CRM contact associated with the record. |
contact_name | string, optional | -- | Display name of the customer, supplier, or CRM contact. |
line_items | array of object | -- | Line items included in the document or inventory list. |
subtotal | number | -- | Subtotal before tax, discounts, and other document adjustments as applicable. |
discount | number | -- | Discount amount or value applied to the document or list. |
discount_type | string | -- | Method used to interpret the list discount. |
tax | number | -- | Tax amount for the document or list. |
total | number | -- | Final total amount for the document or list. |
currency | string, optional | -- | Currency code used for amounts in this record. |
notes | string, optional | -- | Optional notes associated with the record or operation. |
status | string | -- | Always draft. Lists are created as drafts and advance through their own lifecycle actions. |
share_token | string, optional | -- | Public share reference associated with the list when sharing is enabled. |
contact_shipping_address | string, optional | -- | Shipping address copied from the associated contact. |
shipping_attn | string, optional | -- | Attention or recipient line for shipping. |
carrier | string, optional | -- | Shipping carrier name. |
tracking | string, optional | -- | Shipment tracking number or reference. |
incoterms | string, optional | -- | Incoterms trade term recorded for the shipment. |
package_count | integer, optional | -- | Number of packages in the shipment. |
gross_weight | string, optional | -- | Gross shipment weight. |
reason_for_export | string, optional | -- | Reason for export shown on shipping or customs documentation. |
country_of_export | string, optional | -- | Country from which the goods are exported. |
country_of_destination | string, optional | -- | Destination country for the shipment. |
importer | string, optional | -- | Importer or importer-of-record information shown on shipping documentation. |
source_docs | array of string, optional | -- | Identifiers or references of source documents represented by the list. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the created inventory list or creation result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/audit
Create Inventory Audit
Create an inventory audit from the supplied request data.
Request body
| Field | Type | Required | Description |
|---|
location_id | string | yes | Identifier of the inventory or business location. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the created inventory audit or creation result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/audit \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
GET /lists/export/csv
Export Inventory Lists to CSV
Export inventory lists to CSV.
Parameters
| Name | In | Required | Type | Description |
|---|
cols | query | -- | string, optional | Comma-separated column names to export, in the order they should appear. Omit for the default columns. |
list_type | query | -- | string, optional | Inventory list type used to filter list records. |
status | query | -- | string, optional | Record or workflow status used to filter results or select the requested lifecycle state. |
exclude_status | query | -- | string, optional | Status value to exclude from the result. |
date_from | query | -- | string, optional | Start date for the requested reporting or search period. |
date_to | query | -- | string, optional | End date for the requested reporting or search period. |
q | query | -- | string, optional | Search text used to filter matching records. |
all_issued | query | -- | boolean | Whether to include all issued documents regardless of other open-state filters. |
converted_to_type | query | -- | string, optional | Document type used to filter records that were converted to the specified target type. |
Responses
| Status | Description | Body |
|---|
200 | Returns the generated file or download response. | -- |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X GET http://localhost:8000/lists/export/csv \
-H "Authorization: Bearer $TOKEN"
POST /lists/import
Import Inventory List
Import one list from a Celerp interchange record. Re-sending the same record does not create a duplicate.
Request body
| Field | Type | Required | Description |
|---|
entity_id | string | yes | Identifier of the business record. |
event_type | string | yes | Business event type represented by the imported record. |
data | object | yes | Business data contained in the imported record. |
source | string | yes | Origin or source system recorded for the imported data. |
idempotency_key | string | yes | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
source_ts | string, optional | -- | Timestamp from the source system for the imported record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the list ID and event ID. `idempotency_hit` is true when the same record was already imported. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/import \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/import/batch
Batch Import Inventory Lists
Import multiple inventory lists in one request.
Request body
| Field | Type | Required | Description |
|---|
records | array of DocImportRecord | yes | List of records included in the batch request. |
upsert | boolean | -- | Whether matching imported records may update existing records. |
Responses
| Status | Description | Body |
|---|
200 | Returns how many records were created, skipped or failed, with the reason for each failure. | celerp_docs__routes__BatchImportResult |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/import/batch \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
GET /lists/numbered
Lists Numbered
The ids of the lists numbered exactly ``number``.
Parameters
| Name | In | Required | Type | Description |
|---|
number | query | yes | string | -- |
Responses
| Status | Description | Body |
|---|
200 | Successful Response | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/lists/numbered \
-H "Authorization: Bearer $TOKEN"
GET /lists/summary
Get Inventory List Summary
Return inventory list summary.
Parameters
| Name | In | Required | Type | Description |
|---|
list_type | query | -- | string, optional | Inventory list type used to filter list records. |
status | query | -- | string, optional | Record or workflow status used to filter results or select the requested lifecycle state. |
exclude_status | query | -- | string, optional | Status value to exclude from the result. |
date_from | query | -- | string, optional | Start date for the requested reporting or search period. |
date_to | query | -- | string, optional | End date for the requested reporting or search period. |
q | query | -- | string, optional | Search text used to filter matching records. |
all_issued | query | -- | boolean | Whether to include all issued documents regardless of other open-state filters. |
converted_to_type | query | -- | string, optional | Document type used to filter records that were converted to the specified target type. |
Responses
| Status | Description | Body |
|---|
200 | Returns the requested inventory list summary result. | object |
422 | Validation Error | HTTPValidationError |
Example
curl -X GET http://localhost:8000/lists/summary \
-H "Authorization: Bearer $TOKEN"
POST /lists/writeoff
Create Inventory Write-Off
Create an inventory Write-Off from the supplied request data.
Request body
| Field | Type | Required | Description |
|---|
entity_ids | array of string | -- | Identifiers of the business records included in the operation. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the created inventory write-off or creation result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/writeoff \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
GET /lists/{entity_id}
Get Inventory List
Return inventory list.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the requested 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 \
-H "Authorization: Bearer $TOKEN"
PATCH /lists/{entity_id}
Update Inventory List
Update inventory list 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 |
|---|
fields_changed | object | -- | Fields and replacement values to apply to the existing record. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
expected_version | integer, optional | -- | Version of the record the caller last read. When given, the update is rejected with 409 if the record has changed since. |
Responses
| Status | Description | Body |
|---|
200 | Returns the updated inventory list or update result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X PATCH http://localhost:8000/lists/:entity_id \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
DELETE /lists/{entity_id}
Delete Inventory List
Delete a draft list.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns `deleted: true` once the list is removed. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X DELETE http://localhost:8000/lists/:entity_id \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/adjust
Apply Inventory Audit Adjustment
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. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/:entity_id/change-type \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/convert
Convert Inventory List
Create a document from a list, such as an invoice from a quotation list.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
target_type | string | yes | Target inventory list type for the conversion. |
Responses
| Status | Description | Body |
|---|
200 | Returns the event ID and the ID of the new document. | 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/convert \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/duplicate
Duplicate Inventory List
Copy a list into a new draft.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the event ID and the ID of the new list. | 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/duplicate \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/finalize
Finalize Inventory List
Finalize a draft list. For an audit, each line's on-hand quantity is recorded at this point.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the event ID and the list's new status. | 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/finalize \
-H "Authorization: Bearer $TOKEN"
PATCH /lists/{entity_id}/line-page
Update Inventory List Page
Update inventory list page 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_items | array of object | -- | Line items included in the document or inventory list. |
offset | integer | -- | Starting line offset for the paged list update. |
original_count | integer, optional | -- | Original number of list lines used to validate the paged update. |
expected_version | integer, optional | -- | Record version the caller expects when applying the update. |
Responses
| Status | Description | Body |
|---|
200 | Returns the updated inventory list page or update result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X PATCH http://localhost:8000/lists/:entity_id/line-page \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
PATCH /lists/{entity_id}/line/{item_id}
Set Inventory Audit Count
Set the physical count for an inventory audit line while the audit is in its counting stage.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
item_id | path | yes | string | Identifier of the inventory item. |
Request body
| Field | Type | Required | Description |
|---|
counted_qty | number, optional | -- | Physical quantity counted during an inventory audit. |
Responses
| Status | Description | Body |
|---|
200 | Returns the updated inventory audit count or update result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X PATCH http://localhost:8000/lists/:entity_id/line/:item_id \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/move
Execute Inventory Transfer
Move every item on a finalized transfer list to one location. It can be run again, since the list stays finalized.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
to_location_id | string | yes | Identifier of the destination inventory location. |
Responses
| Status | Description | Body |
|---|
200 | Returns the number of items moved and the destination location ID. | 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/move \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
GET /lists/{entity_id}/notes
List Inventory List Notes
Return inventory list notes matching the documented filters and pagination options.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the requested inventory list notes. | array of 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/notes \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/notes
Add Inventory List Note
Add a note to a list.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
note | string | yes | Note text to add or update. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the event ID and the new note ID. | 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/notes \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
PATCH /lists/{entity_id}/notes/{note_id}
Update Inventory List Note
Update inventory list note with the supplied fields.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
note_id | path | yes | string | Identifier of the note. |
Request body
| Field | Type | Required | Description |
|---|
note | string | yes | Note text to add or update. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the updated inventory list note or update result. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X PATCH http://localhost:8000/lists/:entity_id/notes/:note_id \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
DELETE /lists/{entity_id}/notes/{note_id}
Delete Inventory List Note
Delete a note from a list.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
note_id | path | yes | string | Identifier of the note. |
Responses
| Status | Description | Body |
|---|
200 | Returns the ID of the recorded event. | object |
422 | The request failed validation. The response lists each invalid field and why. | HTTPValidationError |
Example
curl -X DELETE http://localhost:8000/lists/:entity_id/notes/:note_id \
-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}/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. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/:entity_id/reprice \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/reserve-lines
Reserve Inventory List Lines
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_entity_ids | array of string | yes | Identifiers of the document or list lines included in the operation. |
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. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/:entity_id/reserve-lines \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/revert-to-draft
Revert Inventory List to Draft
Return a finalized list to draft. Not possible once a final action, such as an audit adjustment, has run.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
reason | string, optional | -- | Human-readable reason for the lifecycle change, cancellation, void, or other operation. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the ID of the recorded event. | 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/revert-to-draft \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/scan
Scan Item into Inventory List
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 | Barcode value assigned to or scanned for the inventory item. |
price_list | string, optional | -- | Price list to apply while scanning or pricing list items. |
run_key | string, optional | -- | Client operation key identifying the scan run. |
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. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/:entity_id/scan \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/send
Send Inventory List
Mark a finalized list as sent, and email it when a recipient is given.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
sent_via | string, optional | -- | Delivery channel used to send the document or list. |
sent_to | string, optional | -- | Primary recipient address or destination. |
cc | string, optional | -- | Carbon-copy recipients for the outbound message. |
bcc | string, optional | -- | Blind-carbon-copy recipients for the outbound message. |
subject | string, optional | -- | Subject line for the outbound message. |
message | string, optional | -- | Message body sent with the document or list. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns `ok: true` when the change is saved. | 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/send \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/set-scanned
Mark Inventory List Lines Scanned
Mark audit lines as scanned or clear the mark. Pass item IDs to target specific lines, or none for all lines.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
item_ids | array of string | -- | Identifiers of the inventory items included in the operation. |
scanned | boolean | -- | Whether the selected audit lines should be marked scanned or accounted for. |
Responses
| Status | Description | Body |
|---|
200 | Returns the number of lines changed. | 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/set-scanned \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/undo-adjust
Undo Inventory Audit Adjustment
Reverse the most recent inventory audit adjustment, restore the prior stock quantities, and reopen the audit for further counting or adjustment.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns `ok: true` when the change is saved. | 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/undo-adjust \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/undo-write-off
Undo Inventory Write-Off
Reverse a write-off. Its journal entry is voided and each written-off lot is available again.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns the result of the undo inventory write-off operation. | 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/undo-write-off \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/unmark-sent
Clear Inventory List Sent Status
Clear the sent milestone (the list stays finalized).
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Responses
| Status | Description | Body |
|---|
200 | Returns `ok: true` when the change is saved. | 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/unmark-sent \
-H "Authorization: Bearer $TOKEN"
POST /lists/{entity_id}/void
Void Inventory List
Void a list. It stays on record.
Parameters
| Name | In | Required | Type | Description |
|---|
entity_id | path | yes | string | Identifier of the requested Celerp record. |
Request body
| Field | Type | Required | Description |
|---|
reason | string, optional | -- | Human-readable reason for the lifecycle change, cancellation, void, or other operation. |
idempotency_key | string, optional | -- | Client-supplied idempotency key identifying this operation so the same request can be retried safely. |
Responses
| Status | Description | Body |
|---|
200 | Returns the ID of the recorded event. | 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/void \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'
POST /lists/{entity_id}/write-off
Write Off Inventory Stock
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. |
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. | HTTPValidationError |
Example
curl -X POST http://localhost:8000/lists/:entity_id/writeoff-line \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'