Incoming Delivery Note API

Managing incoming delivery notes — retrieval, creation, modification, closing and document download

Base URL

https://{tenant}.logzi.com/api/delivery_note_in/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0.

GET /api/delivery_note_in/get

Retrieves a single incoming delivery note by identifier, with full details.

Query parameters

ParameterTypeRequiredDescription
idintUnique identifier of the delivery note

Example request

GET /api/delivery_note_in/get?id=30
X-API-KEY: {your_api_key}
GET /api/delivery_note_in/list

Retrieves a paginated list of incoming delivery notes with filtering options.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_countintNumber of records per page
list_condition[identify]stringFilter by identifier (LIKE)
list_condition[company_name]stringFilter by supplier name (LIKE)
list_condition[status_id]intFilter by status
list_condition[date_create_from]dateCreation date — from (YYYY-MM-DD)
list_condition[date_create_to]dateCreation date — to (YYYY-MM-DD)

Example request

GET /api/delivery_note_in/list?list_offset=0&list_condition[status_id]=1
X-API-KEY: {your_api_key}
POST /api/delivery_note_in/save

Creates or updates an incoming delivery note. For a new record use data[id] = 0.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new delivery note, >0 = update
company_idintCompany identifier
company_user_idintID of the responsible employee
company_address_idintCompany site ID
currency_idintCurrency identifier
partner_idintSupplier partner identifier
date_performdateDelivery date (YYYY-MM-DD)
comment_topstringComment
comment_bottomstringInternal comment
itemarrayArray of line items (see below)

Line item fields — data[item][]

FieldTypeRequiredDescription
product_idintProduct identifier
quantityfloatQuantity
pricefloatNet unit price
tax_idintVAT rate identifier
store_idintDestination warehouse identifier
removeint1 = remove item during update

Example request

POST /api/delivery_note_in/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{
  "data": {
    "id": 0,
    "company_id": 1,
    "company_user_id": 3,
    "company_address_id": 1,
    "currency_id": 1,
    "partner_id": 8,
    "date_perform": "2024-06-18",
    "item": [
      { "product_id": 2, "quantity": 50, "price": 500, "tax_id": 2, "store_id": 1 }
    ]
  }
}
POST /api/delivery_note_in/delete

Deletes an incoming delivery note. Only a delivery note with open status can be deleted.

POST fields — data object

FieldTypeRequiredDescription
receipt_idintIdentifier of the delivery note to delete

Example request

POST /api/delivery_note_in/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "receipt_id": 30 } }
POST /api/delivery_note_in/close

Closes an incoming delivery note. Upon closing, the line items are added to stock. Only a delivery note with open status (status_id=1) can be closed.

POST fields — data object

FieldTypeRequiredDescription
receipt_idintIdentifier of the delivery note to close

Example request

POST /api/delivery_note_in/close
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "receipt_id": 30 } }
GET /api/delivery_note_in/download

Downloads the document of an incoming delivery note in various formats.

Query parameters

ParameterTypeRequiredDescription
receipt_idintIdentifier of the delivery note
file_typestringpdf, pdf-string, pdf-string-sample, stream
languagestringName of the template language folder
template_idintCustom print template ID

Example request

GET /api/delivery_note_in/download?receipt_id=30&file_type=pdf
X-API-KEY: {your_api_key}

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!