Delivery Note API

Manage outgoing delivery notes — retrieval, creation, modification, closing and document download

Base URL

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

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

GET /api/delivery_note_out/get

Retrieve a single outgoing delivery note by identifier, with full details.

Query parameters

ParameterTypeRequiredDescription
idintUnique identifier of the delivery note

Example request

GET /api/delivery_note_out/get?id=22
X-API-KEY: {az_api_kulcsod}
GET /api/delivery_note_out/list

Paginated retrieval of the list of outgoing 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 partner 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_out/list?list_offset=0&list_condition[status_id]=1
X-API-KEY: {az_api_kulcsod}
POST /api/delivery_note_out/save

Create or update an outgoing 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_idintResponsible employee ID
company_address_idintCompany site ID
currency_idintCurrency identifier
partner_idintPartner/customer identifier
partner_shipping_idintPartner shipping address ID
date_performdateDelivery date (YYYY-MM-DD)
comment_topstringComment visible to the customer
comment_bottomstringInternal comment
jobnumber_idintJob number identifier
itemarrayArray of items (see below)

Item fields — data[item][]

FieldTypeRequiredDescription
product_idintProduct identifier
quantityfloatQuantity
pricefloatNet unit price
tax_idintTax rate identifier
store_idintWarehouse identifier
removeint1 = remove the item when updating

Example request

POST /api/delivery_note_out/save
X-API-KEY: {az_api_kulcsod}
Content-Type: application/json

{
  "data": {
    "id": 0,
    "company_id": 1,
    "company_user_id": 3,
    "company_address_id": 1,
    "currency_id": 1,
    "partner_id": 12,
    "date_perform": "2024-06-20",
    "item": [
      { "product_id": 5, "quantity": 3, "price": 12000, "tax_id": 2 }
    ]
  }
}
POST /api/delivery_note_out/delete

Delete an outgoing 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_out/delete
X-API-KEY: {az_api_kulcsod}
Content-Type: application/json

{ "data": { "receipt_id": 22 } }
POST /api/delivery_note_out/close

Close an outgoing delivery note. 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_out/close
X-API-KEY: {az_api_kulcsod}
Content-Type: application/json

{ "data": { "receipt_id": 22 } }
GET /api/delivery_note_out/download

Download the outgoing delivery note document 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_out/download?receipt_id=22&file_type=pdf
X-API-KEY: {az_api_kulcsod}

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!