Receipts

Receips are specifications of recieving goods.

Schema

Schema: Reciept

PropertyTypeDescription
idObjectIdUnique identifier
nameStringOptional name of reciept
estimated_arraivalDateOptional estimated arrival of reciept
referenceStringReference number identifying the reciept
clientObjectIdClient identifier
articlesArrayArray of reciept_article schema
createdDateTime when the reciept was created
updatedDateTime when the reciept was last modified
recievedDateTime when the reciept was recieved
historyArrayArray of reciept_history
documentsArrayArray of URLs to documents
statusIntegerEnum {0: Draft, 1: Waiting, 2: Recieved, 3: Cancelled}
warehouse_siteWarehouse-siteLocation to recieve reciept

Schema: Reciept_article

PropertyTypeDescription
articleArticleArticle to be recieved
quantity.orderedIntegerAmount of the article to be recieved
quantity.recievedIntegerAmount of the article recieved

Schema: Reciept_history

PropertyTypeDescription
createdDateTime when the history record was created
bodyStringLog text
typeIntegerEnum {0: Information, 1: Warning, 2: Action}

Get a list of reciepts

If you want to retrieve a list of reciepts, use this GET request:

GET https://api.tirix.io/reciepts

Get a reciept

If you want to fetch an individual reciept, use this GET request:

GET https://api.tirix.io/reciepts/{reciept_id}

Create a new reciept

If you want to create a new reciept, use this POST request:

POST https://api.tirix.io/reciepts

Modify a reciept

If you want to modify a specific reciept, use this PUT request:

PUT https://api.tirix.io/reciepts/{reciept_id}

Delete a reciept

Reciepts are persistent and can not be irreversibly deleted.

TIP

You can suspend the reciept by setting its 'status' property to 3 (cancelled).

Last Updated: