Try it · Sandbox

Use a sandbox key. It is kept only for this browser tab and sent only to https://sandbox-api.zester.co.il/v2.

Response
Send the request to see the response.

Purchases

Orders and purchase documents, such as delivery notes, invoices and credit notes, across all of the account's suppliers. Documents include their lines and export status.

The endpoints in this group are not yet available. This page documents the contract as currently defined.

The Order object

Attributes

idstringRequired
numberstringRequired

Human-readable order number.

statusstringRequired
Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
buyerobjectRequired
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
customer_numberstringNullable

Customer number this supplier uses for the buyer, or null when none is set.

supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable

Business line of the order, such as FC, MK, EV or OC. Set only when the buyer uses purchase types.

sent_atstring · date-time
delivery_datestring · dateRequired
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

linesarray of OrderLine

Line items of the order. Included by default. Pass expand=-lines to leave them out.

Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring

Unit of quantity, such as unit, kg, l or carton.

package_quantitystring · quantity

Decimal quantity as a string, with up to 3 fraction digits.

unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

quantity_confirmedstring · quantityNullable

Decimal quantity as a string, with up to 3 fraction digits.

substitute_skustringNullable
product_groupstringNullable

Product group in the buyer's catalog. Returned only to buyers.

expense_accountstringNullable

Expense account resolved for this line. Returned only to buyers.

notesstringNullable
external_refstringNullable

The supplier's ERP sales order number. Set by the supplier when it acknowledges the order.

acknowledged_atstring · date-timeNullable
related_document_idsarray of string
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

historyarray of HistoryEntry

Change history of the order. Present only when the request includes expand=history.

Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
The Order object
{
  "id": "2335619",
  "number": "71148-80",
  "status": "pending_approval",
  "buyer": {
    "id": "71148",
    "name": "שניצי קפה",
    "customer_number": "777077070"
  },
  "supplier": {
    "id": "72223",
    "name": "מאפייה אחת עשרה"
  },
  "branch": {
    "id": "71148-1",
    "name": "שניצי קפה – ראשי",
    "tax_id": "000000000"
  },
  "purchase_type": null,
  "sent_at": "2026-09-11T08:15:00+03:00",
  "delivery_date": "2026-09-14",
  "delivery_window": {
    "from": "06:00",
    "to": "09:00"
  },
  "currency": "ILS",
  "totals": {
    "before_vat": "496.40",
    "vat": "89.35",
    "with_vat": "585.75"
  },
  "lines": [
    {
      "id": "l1",
      "sku": "300",
      "name": "בייבי ג׳בטה לבן",
      "quantity": "1",
      "unit": "carton",
      "package_quantity": "24",
      "unit_price": "80.00",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "80.00",
      "quantity_confirmed": null,
      "substitute_sku": null
    },
    {
      "id": "l2",
      "sku": "412",
      "name": "לחמניית חיטה מלאה",
      "quantity": "12",
      "unit": "carton",
      "package_quantity": "40",
      "unit_price": "34.70",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "416.40",
      "quantity_confirmed": null,
      "substitute_sku": null
    }
  ],
  "notes": "נא לפרוק ליד דלת השירות, הכניסה מהחניה האחורית.",
  "external_ref": null,
  "acknowledged_at": null,
  "related_document_ids": [],
  "files": [],
  "created_at": "2026-09-11T08:02:31+03:00",
  "updated_at": "2026-09-11T08:15:00+03:00",
  "deleted_at": null,
  "history": [
    {
      "at": "2026-09-11T08:02:31+03:00",
      "action": "created",
      "actor": {
        "type": "user",
        "id": "usr_58213",
        "name": "דנה כהן"
      },
      "changes": {
        "status": {
          "from": null,
          "to": "draft"
        }
      }
    },
    {
      "at": "2026-09-11T08:15:00+03:00",
      "action": "sent",
      "actor": {
        "type": "user",
        "id": "usr_58213",
        "name": "דנה כהן"
      },
      "changes": {
        "status": {
          "from": "draft",
          "to": "pending_approval"
        }
      }
    }
  ]
}
GET/orders
  • Scopebuyer.purchases:read
  • Pro plan or higher
  • Not yet available

Query parameters

cursorstring

Opaque cursor returned as next_cursor in a previous response. Pass it to fetch the next page.

limitinteger

Default 50 · Min 1 · Max 200

updated_sincestring · date-time

Return only items whose updated_at is strictly after this timestamp. Use it for incremental sync.

fromstring · date

Start of the date range, inclusive, matched against the document date or the order date.

tostring · date

End of the date range, inclusive.

branch_idstring
supplier_idstring
statusarray of string

Comma-separated list of order statuses to filter by.

Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
expandarray of string

Comma-separated list of related objects to embed in the response, for example lines,supplier,files,history. By default, responses are kept compact.

Responses

200A page of orders.
dataarray of OrderRequired
Show 22 child attributesHide child attributes
idstringRequired
numberstringRequired

Human-readable order number.

statusstringRequired
Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
buyerobjectRequired
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
customer_numberstringNullable

Customer number this supplier uses for the buyer, or null when none is set.

supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable

Business line of the order, such as FC, MK, EV or OC. Set only when the buyer uses purchase types.

sent_atstring · date-time
delivery_datestring · dateRequired
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

linesarray of OrderLine

Line items of the order. Included by default. Pass expand=-lines to leave them out.

Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring

Unit of quantity, such as unit, kg, l or carton.

package_quantitystring · quantity

Decimal quantity as a string, with up to 3 fraction digits.

unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

quantity_confirmedstring · quantityNullable

Decimal quantity as a string, with up to 3 fraction digits.

substitute_skustringNullable
product_groupstringNullable

Product group in the buyer's catalog. Returned only to buyers.

expense_accountstringNullable

Expense account resolved for this line. Returned only to buyers.

notesstringNullable
external_refstringNullable

The supplier's ERP sales order number. Set by the supplier when it acknowledges the order.

acknowledged_atstring · date-timeNullable
related_document_idsarray of string
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

historyarray of HistoryEntry

Change history of the order. Present only when the request includes expand=history.

Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
next_cursorstringNullable
has_morebooleanRequired
403The credential is valid but is not allowed to make this request. The code is scope_missing, plan_required, ip_not_allowed or client_suspended.
GET /orders
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/orders?updated_since=2026-09-13T00:00:00%2B03:00&limit=200" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "data": [
    {
      "id": "2335731",
      "number": "71148-82",
      "status": "pending_approval",
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה",
        "customer_number": "777077070"
      },
      "supplier": {
        "id": "72223",
        "name": "מאפייה אחת עשרה"
      },
      "branch": {
        "id": "71148-2",
        "name": "שניצי קפה – חיפה",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "delivery_date": "2026-09-15",
      "currency": "ILS",
      "totals": {
        "before_vat": "194.70",
        "vat": "35.05",
        "with_vat": "229.75"
      },
      "lines": [
        {
          "id": "l1",
          "sku": "300",
          "name": "בייבי ג׳בטה לבן",
          "quantity": "2",
          "unit": "carton",
          "unit_price": "80.00",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "160.00",
          "quantity_confirmed": null,
          "substitute_sku": null,
          "product_group": "לחמים",
          "expense_account": "5100"
        },
        {
          "id": "l2",
          "sku": "412",
          "name": "לחמניית חיטה מלאה",
          "quantity": "1",
          "unit": "carton",
          "unit_price": "34.70",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "34.70",
          "quantity_confirmed": null,
          "substitute_sku": null,
          "product_group": "לחמים",
          "expense_account": "5100"
        }
      ],
      "notes": "הזמנה מה-ERP של הרשת",
      "external_ref": "PO-2026-0917",
      "acknowledged_at": null,
      "related_document_ids": [],
      "created_at": "2026-09-13T08:05:00+03:00",
      "updated_at": "2026-09-13T08:05:00+03:00",
      "deleted_at": null
    },
    {
      "id": "2335702",
      "number": "71148-81",
      "status": "approved",
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה",
        "customer_number": "SH-1148"
      },
      "supplier": {
        "id": "72310",
        "name": "הירקן של השכונה"
      },
      "branch": {
        "id": "71148-1",
        "name": "שניצי קפה – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "sent_at": "2026-09-11T08:25:00+03:00",
      "delivery_date": "2026-09-14",
      "delivery_window": {
        "from": "06:00",
        "to": "08:00"
      },
      "currency": "ILS",
      "totals": {
        "before_vat": "107.70",
        "vat": "0.00",
        "with_vat": "107.70"
      },
      "lines": [
        {
          "id": "l1",
          "sku": "1045",
          "name": "עגבניות שרי",
          "quantity": "5.000",
          "unit": "kg",
          "package_quantity": "1",
          "unit_price": "12.90",
          "discount_pct": null,
          "vat_exempt": true,
          "total": "64.50",
          "quantity_confirmed": "5.000",
          "substitute_sku": null,
          "product_group": "ירקות",
          "expense_account": "5100"
        },
        {
          "id": "l2",
          "sku": "1012",
          "name": "מלפפונים",
          "quantity": "8.000",
          "unit": "kg",
          "package_quantity": "1",
          "unit_price": "5.40",
          "discount_pct": null,
          "vat_exempt": true,
          "total": "43.20",
          "quantity_confirmed": "8.000",
          "substitute_sku": null,
          "product_group": "ירקות",
          "expense_account": "5100"
        }
      ],
      "notes": null,
      "external_ref": null,
      "acknowledged_at": null,
      "related_document_ids": [
        "5521004"
      ],
      "created_at": "2026-09-11T08:20:00+03:00",
      "updated_at": "2026-09-14T08:15:00+03:00",
      "deleted_at": null
    },
    {
      "id": "2335619",
      "number": "71148-80",
      "status": "approved",
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה",
        "customer_number": "777077070"
      },
      "supplier": {
        "id": "72223",
        "name": "מאפייה אחת עשרה"
      },
      "branch": {
        "id": "71148-1",
        "name": "שניצי קפה – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "sent_at": "2026-09-11T08:15:00+03:00",
      "delivery_date": "2026-09-14",
      "currency": "ILS",
      "totals": {
        "before_vat": "496.40",
        "vat": "89.35",
        "with_vat": "585.75"
      },
      "lines": [
        {
          "id": "l1",
          "sku": "300",
          "name": "בייבי ג׳בטה לבן",
          "quantity": "1",
          "unit": "carton",
          "unit_price": "80.00",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "80.00",
          "quantity_confirmed": "1",
          "substitute_sku": null,
          "product_group": "לחמים",
          "expense_account": "5100"
        },
        {
          "id": "l2",
          "sku": "412",
          "name": "לחמניית חיטה מלאה",
          "quantity": "12",
          "unit": "carton",
          "unit_price": "34.70",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "416.40",
          "quantity_confirmed": "12",
          "substitute_sku": null,
          "product_group": "לחמים",
          "expense_account": "5100"
        }
      ],
      "notes": null,
      "external_ref": "SO-88412",
      "acknowledged_at": "2026-09-11T09:05:00+03:00",
      "related_document_ids": [
        "5520931",
        "5520987"
      ],
      "created_at": "2026-09-11T07:50:00+03:00",
      "updated_at": "2026-09-14T11:10:00+03:00",
      "deleted_at": null
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0wOS0xNFQxMToxMDowMCswMzowMCIsImlkIjoiMjMzNTYxOSJ9",
  "has_more": true
}

Create an order

POST/orders
  • Scopebuyer.orders:write
  • Pro plan or higher
  • Not yet available

Headers

Idempotency-KeystringRequired

Required key for safely retrying the request. Use a stable business key, such as the document number. Sending the same key with the same body within 24 hours returns the original response. Reusing the key with a different body returns 409 with code idempotency_conflict.

Up to 128 characters

Request body application/json

supplier_idstringRequired
branch_idstringRequired
purchase_typestring
delivery_datestring · dateRequired
notesstring
external_refstring
linesarray of objectRequired
Show 3 child attributesHide child attributes
skustringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unit_pricestring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

Responses

201The created order. Its status follows the buyer's approval rules.
idstringRequired
numberstringRequired

Human-readable order number.

statusstringRequired
Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
buyerobjectRequired
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
customer_numberstringNullable

Customer number this supplier uses for the buyer, or null when none is set.

supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable

Business line of the order, such as FC, MK, EV or OC. Set only when the buyer uses purchase types.

sent_atstring · date-time
delivery_datestring · dateRequired
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

linesarray of OrderLine

Line items of the order. Included by default. Pass expand=-lines to leave them out.

Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring

Unit of quantity, such as unit, kg, l or carton.

package_quantitystring · quantity

Decimal quantity as a string, with up to 3 fraction digits.

unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

quantity_confirmedstring · quantityNullable

Decimal quantity as a string, with up to 3 fraction digits.

substitute_skustringNullable
product_groupstringNullable

Product group in the buyer's catalog. Returned only to buyers.

expense_accountstringNullable

Expense account resolved for this line. Returned only to buyers.

notesstringNullable
external_refstringNullable

The supplier's ERP sales order number. Set by the supplier when it acknowledges the order.

acknowledged_atstring · date-timeNullable
related_document_idsarray of string
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

historyarray of HistoryEntry

Change history of the order. Present only when the request includes expand=history.

Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
422The request body or query parameters failed validation. See errors[] for each invalid field.
POST /orders
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/orders" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: PO-2026-0917" \
  -d '{
    "supplier_id": "72223",
    "branch_id": "71148-2",
    "purchase_type": "FC",
    "delivery_date": "2026-09-15",
    "notes": "הזמנה מה-ERP של הרשת",
    "external_ref": "PO-2026-0917",
    "lines": [
      {
        "sku": "300",
        "quantity": "2"
      },
      {
        "sku": "412",
        "quantity": "1"
      }
    ]
  }'
Response
{
  "id": "2335731",
  "number": "71148-82",
  "status": "pending_approval",
  "buyer": {
    "id": "71148",
    "name": "שניצי קפה",
    "customer_number": "777077070"
  },
  "supplier": {
    "id": "72223",
    "name": "מאפייה אחת עשרה"
  },
  "branch": {
    "id": "71148-2",
    "name": "שניצי קפה – חיפה",
    "tax_id": "000000000"
  },
  "purchase_type": "FC",
  "delivery_date": "2026-09-15",
  "currency": "ILS",
  "totals": {
    "before_vat": "194.70",
    "vat": "35.05",
    "with_vat": "229.75"
  },
  "lines": [
    {
      "id": "l1",
      "sku": "300",
      "name": "בייבי ג׳בטה לבן",
      "quantity": "2",
      "unit": "carton",
      "unit_price": "80.00",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "160.00",
      "quantity_confirmed": null,
      "substitute_sku": null,
      "product_group": "לחמים",
      "expense_account": "5100"
    },
    {
      "id": "l2",
      "sku": "412",
      "name": "לחמניית חיטה מלאה",
      "quantity": "1",
      "unit": "carton",
      "unit_price": "34.70",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "34.70",
      "quantity_confirmed": null,
      "substitute_sku": null,
      "product_group": "לחמים",
      "expense_account": "5100"
    }
  ],
  "notes": "הזמנה מה-ERP של הרשת",
  "external_ref": "PO-2026-0917",
  "acknowledged_at": null,
  "related_document_ids": [],
  "created_at": "2026-09-13T08:05:00+03:00",
  "updated_at": "2026-09-13T08:05:00+03:00",
  "deleted_at": null
}

Retrieve an order

GET/orders/{order_id}
  • Scopebuyer.purchases:read
  • Pro plan or higher
  • Not yet available

Path parameters

order_idstringRequired

Query parameters

expandarray of string

Comma-separated list of related objects to embed in the response, for example lines,supplier,files,history. By default, responses are kept compact.

Responses

200The order.
idstringRequired
numberstringRequired

Human-readable order number.

statusstringRequired
Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
buyerobjectRequired
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
customer_numberstringNullable

Customer number this supplier uses for the buyer, or null when none is set.

supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable

Business line of the order, such as FC, MK, EV or OC. Set only when the buyer uses purchase types.

sent_atstring · date-time
delivery_datestring · dateRequired
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

linesarray of OrderLine

Line items of the order. Included by default. Pass expand=-lines to leave them out.

Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring

Unit of quantity, such as unit, kg, l or carton.

package_quantitystring · quantity

Decimal quantity as a string, with up to 3 fraction digits.

unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

quantity_confirmedstring · quantityNullable

Decimal quantity as a string, with up to 3 fraction digits.

substitute_skustringNullable
product_groupstringNullable

Product group in the buyer's catalog. Returned only to buyers.

expense_accountstringNullable

Expense account resolved for this line. Returned only to buyers.

notesstringNullable
external_refstringNullable

The supplier's ERP sales order number. Set by the supplier when it acknowledges the order.

acknowledged_atstring · date-timeNullable
related_document_idsarray of string
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

historyarray of HistoryEntry

Change history of the order. Present only when the request includes expand=history.

Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
404The resource does not exist or belongs to another account.
GET /orders/{order_id}
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/orders/2335619?expand=history" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "approved",
  "buyer": {
    "id": "71148",
    "name": "שניצי קפה",
    "customer_number": "777077070"
  },
  "supplier": {
    "id": "72223",
    "name": "מאפייה אחת עשרה"
  },
  "branch": {
    "id": "71148-1",
    "name": "שניצי קפה – ראשי",
    "tax_id": "000000000"
  },
  "purchase_type": "FC",
  "sent_at": "2026-09-11T08:15:00+03:00",
  "delivery_date": "2026-09-14",
  "currency": "ILS",
  "totals": {
    "before_vat": "496.40",
    "vat": "89.35",
    "with_vat": "585.75"
  },
  "lines": [
    {
      "id": "l1",
      "sku": "300",
      "name": "בייבי ג׳בטה לבן",
      "quantity": "1",
      "unit": "carton",
      "unit_price": "80.00",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "80.00",
      "quantity_confirmed": "1",
      "substitute_sku": null,
      "product_group": "לחמים",
      "expense_account": "5100"
    },
    {
      "id": "l2",
      "sku": "412",
      "name": "לחמניית חיטה מלאה",
      "quantity": "12",
      "unit": "carton",
      "unit_price": "34.70",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "416.40",
      "quantity_confirmed": "12",
      "substitute_sku": null,
      "product_group": "לחמים",
      "expense_account": "5100"
    }
  ],
  "notes": null,
  "external_ref": "SO-88412",
  "acknowledged_at": "2026-09-11T09:05:00+03:00",
  "related_document_ids": [
    "5520931",
    "5520987"
  ],
  "created_at": "2026-09-11T07:50:00+03:00",
  "updated_at": "2026-09-14T11:10:00+03:00",
  "deleted_at": null,
  "history": [
    {
      "at": "2026-09-11T07:50:00+03:00",
      "action": "created",
      "actor": {
        "type": "user",
        "id": "usr_5531",
        "name": "דנה לוי"
      },
      "changes": {
        "status": {
          "from": null,
          "to": "pending_approval"
        }
      }
    },
    {
      "at": "2026-09-11T08:10:00+03:00",
      "action": "approved",
      "actor": {
        "type": "user",
        "id": "usr_5502",
        "name": "יוסי כהן"
      },
      "changes": {
        "status": {
          "from": "pending_approval",
          "to": "approved"
        }
      }
    },
    {
      "at": "2026-09-11T08:15:00+03:00",
      "action": "sent",
      "actor": {
        "type": "system",
        "id": "system",
        "name": "Zestt"
      },
      "changes": {
        "sent_at": {
          "from": null,
          "to": "2026-09-11T08:15:00+03:00"
        }
      }
    },
    {
      "at": "2026-09-11T09:02:00+03:00",
      "action": "confirmed",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP מאפייה אחת עשרה"
      },
      "changes": {
        "lines[0].quantity_confirmed": {
          "from": null,
          "to": "1"
        },
        "lines[1].quantity_confirmed": {
          "from": null,
          "to": "12"
        }
      }
    },
    {
      "at": "2026-09-11T09:05:00+03:00",
      "action": "acknowledged",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP מאפייה אחת עשרה"
      },
      "changes": {
        "external_ref": {
          "from": null,
          "to": "SO-88412"
        }
      }
    },
    {
      "at": "2026-09-14T07:42:00+03:00",
      "action": "document_linked",
      "actor": {
        "type": "user",
        "id": "usr_5531",
        "name": "דנה לוי"
      },
      "changes": {
        "related_document_ids": {
          "added": [
            "5520931"
          ]
        }
      }
    },
    {
      "at": "2026-09-14T11:10:00+03:00",
      "action": "document_linked",
      "actor": {
        "type": "system",
        "id": "system",
        "name": "Zestt"
      },
      "changes": {
        "related_document_ids": {
          "added": [
            "5520987"
          ]
        }
      }
    }
  ]
}

List purchase documents

GET/documents
  • Scopebuyer.purchases:read
  • Pro plan or higher
  • Not yet available

Query parameters

cursorstring

Opaque cursor returned as next_cursor in a previous response. Pass it to fetch the next page.

limitinteger

Default 50 · Min 1 · Max 200

updated_sincestring · date-time

Return only items whose updated_at is strictly after this timestamp. Use it for incremental sync.

fromstring · date

Start of the date range, inclusive, matched against the document date or the order date.

tostring · date

End of the date range, inclusive.

branch_idstring
supplier_idstring
typearray of string

Comma-separated list of document types to filter by.

Possible valuesdelivery_noteinvoicecredit_noteconsolidated_invoice
sourcestring
Possible valuespurchaseexpensecardmigration
export_statusstring
Possible valuesnot_readyapproved_for_exportexported
expandarray of string

Comma-separated list of related objects to embed in the response, for example lines,supplier,files,history. By default, responses are kept compact.

Responses

200A page of documents.
dataarray of DocumentRequired
Show 28 child attributesHide child attributes
idstringRequired
typestringRequired
Possible valuesdelivery_noteinvoicecredit_noteconsolidated_invoice
numberstringRequired

Document number, as printed by the issuer.

datestring · dateRequired
accounting_periodstring

Accounting period in YYYY-MM format. Defaults to the month of date.

due_datestring · dateNullable
supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
buyerPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable
sourcestring
Possible valuespurchaseexpensecardmigration
order_idsarray of string
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

allocation_numberstringNullable

Israeli invoice allocation number. Mandatory for amounts above 5,000 ILS.

linesarray of DocumentLine
Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring
unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

order_idstringNullable
order_line_idstringNullable
quantity_receivedstring · quantityNullable

Quantity the buyer recorded as received.

purchase_typestringNullable
expense_accountstringNullable
buyer_statusstringRequired

What the buyer has done with the document, such as receiving, disputing or exporting it.

Possible valuespendingreceivedreceived_with_differencesdisputedapproved_for_exportexported
differencesarray of Difference
Show 6 child attributesHide child attributes
line_idstring
skustring
fieldstring
Possible valuesquantityunit_pricemissing_lineextra_line
issuedstring
receivedstring
notestring
payment_statusstring
Possible valuesunpaidpartially_paidpaid
paid_atstring · date-timeNullable
export_statusstring
Possible valuesnot_readyapproved_for_exportexported
exported_atstring · date-timeNullable
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

external_refstringNullable
historyarray of HistoryEntry
Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
next_cursorstringNullable
has_morebooleanRequired
GET /documents
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/documents?updated_since=2026-09-14T00:00:00%2B03:00&limit=200&type=delivery_note,invoice&expand=lines" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "data": [
    {
      "id": "5520931",
      "type": "delivery_note",
      "number": "4471",
      "date": "2026-09-14",
      "accounting_period": "2026-09",
      "due_date": null,
      "supplier": {
        "id": "72223",
        "name": "מאפייה אחת עשרה"
      },
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה"
      },
      "branch": {
        "id": "71148-1",
        "name": "שניצי קפה – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "source": "purchase",
      "order_ids": [
        "2335619"
      ],
      "currency": "ILS",
      "totals": {
        "before_vat": "496.40",
        "vat": "89.35",
        "with_vat": "585.75"
      },
      "allocation_number": null,
      "lines": [
        {
          "id": "dl1",
          "sku": "300",
          "name": "בייבי ג׳בטה לבן",
          "quantity": "1",
          "unit": "carton",
          "unit_price": "80.00",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "80.00",
          "order_id": "2335619",
          "order_line_id": "l1",
          "quantity_received": "1",
          "purchase_type": "FC",
          "expense_account": "5100"
        },
        {
          "id": "dl2",
          "sku": "412",
          "name": "לחמניית חיטה מלאה",
          "quantity": "12",
          "unit": "carton",
          "unit_price": "34.70",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "416.40",
          "order_id": "2335619",
          "order_line_id": "l2",
          "quantity_received": "10",
          "purchase_type": "FC",
          "expense_account": "5100"
        }
      ],
      "buyer_status": "received_with_differences",
      "differences": [
        {
          "line_id": "dl2",
          "sku": "412",
          "field": "quantity",
          "issued": "12",
          "received": "10",
          "note": "התקבלו 10 קרטונים מתוך 12"
        }
      ],
      "export_status": "not_ready",
      "exported_at": null,
      "files": [
        {
          "id": "file_01J9KR0A6T",
          "name": "tm-2026-4471.pdf",
          "content_type": "application/pdf",
          "size_bytes": 184320
        }
      ],
      "external_ref": "SO-88412",
      "created_at": "2026-09-14T06:06:00+03:00",
      "updated_at": "2026-09-14T07:42:00+03:00",
      "deleted_at": null
    },
    {
      "id": "5521004",
      "type": "delivery_note",
      "number": "18830",
      "date": "2026-09-14",
      "accounting_period": "2026-09",
      "due_date": null,
      "supplier": {
        "id": "72310",
        "name": "הירקן של השכונה"
      },
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה"
      },
      "branch": {
        "id": "71148-1",
        "name": "שניצי קפה – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "source": "purchase",
      "order_ids": [
        "2335702"
      ],
      "currency": "ILS",
      "totals": {
        "before_vat": "107.70",
        "vat": "0.00",
        "with_vat": "107.70"
      },
      "allocation_number": null,
      "lines": [
        {
          "id": "dl1",
          "sku": "1045",
          "name": "עגבניות שרי",
          "quantity": "5.000",
          "unit": "kg",
          "unit_price": "12.90",
          "discount_pct": null,
          "vat_exempt": true,
          "total": "64.50",
          "order_id": "2335702",
          "order_line_id": "l1",
          "quantity_received": "4.500",
          "purchase_type": "FC",
          "expense_account": "5100"
        },
        {
          "id": "dl2",
          "sku": "1012",
          "name": "מלפפונים",
          "quantity": "8.000",
          "unit": "kg",
          "unit_price": "5.40",
          "discount_pct": null,
          "vat_exempt": true,
          "total": "43.20",
          "order_id": "2335702",
          "order_line_id": "l2",
          "quantity_received": "8.000",
          "purchase_type": "FC",
          "expense_account": "5100"
        }
      ],
      "buyer_status": "received_with_differences",
      "differences": [
        {
          "line_id": "dl1",
          "sku": "1045",
          "field": "quantity",
          "issued": "5.000",
          "received": "4.500",
          "note": "חסרה סלסלה אחת של חצי קילו"
        }
      ],
      "export_status": "not_ready",
      "exported_at": null,
      "files": [
        {
          "id": "file_01J9MA7C2V",
          "name": "teuda-18830.jpg",
          "content_type": "image/jpeg",
          "size_bytes": 412904
        }
      ],
      "external_ref": null,
      "created_at": "2026-09-14T05:50:00+03:00",
      "updated_at": "2026-09-14T08:15:00+03:00",
      "deleted_at": null
    },
    {
      "id": "5520987",
      "type": "invoice",
      "number": "INV-2026-1188",
      "date": "2026-09-14",
      "accounting_period": "2026-09",
      "due_date": "2026-10-30",
      "supplier": {
        "id": "72223",
        "name": "מאפייה אחת עשרה"
      },
      "buyer": {
        "id": "71148",
        "name": "שניצי קפה"
      },
      "branch": {
        "id": "71148-1",
        "name": "שניצי קפה – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": "FC",
      "source": "purchase",
      "order_ids": [
        "2335619"
      ],
      "currency": "ILS",
      "totals": {
        "before_vat": "427.00",
        "vat": "76.86",
        "with_vat": "503.86"
      },
      "allocation_number": null,
      "lines": [
        {
          "id": "il1",
          "sku": "300",
          "name": "בייבי ג׳בטה לבן",
          "quantity": "1",
          "unit": "carton",
          "unit_price": "80.00",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "80.00",
          "order_id": "2335619",
          "order_line_id": "l1",
          "quantity_received": null,
          "purchase_type": "FC",
          "expense_account": "5100"
        },
        {
          "id": "il2",
          "sku": "412",
          "name": "לחמניית חיטה מלאה",
          "quantity": "10",
          "unit": "carton",
          "unit_price": "34.70",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "347.00",
          "order_id": "2335619",
          "order_line_id": "l2",
          "quantity_received": null,
          "purchase_type": "FC",
          "expense_account": "5100"
        }
      ],
      "buyer_status": "approved_for_export",
      "differences": [],
      "payment_status": "unpaid",
      "paid_at": null,
      "export_status": "approved_for_export",
      "exported_at": null,
      "files": [
        {
          "id": "file_01J9MB3Q8H",
          "name": "inv-2026-1188.pdf",
          "content_type": "application/pdf",
          "size_bytes": 201472
        }
      ],
      "external_ref": "SO-88412",
      "created_at": "2026-09-14T11:10:00+03:00",
      "updated_at": "2026-09-14T12:25:00+03:00",
      "deleted_at": null
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0wOS0xNFQxMjoyNTowMCswMzowMCIsImlkIjoiNTUyMDk4NyJ9",
  "has_more": true
}
GET/documents/{document_id}
  • Scopebuyer.purchases:read
  • Pro plan or higher
  • Not yet available

Path parameters

document_idstringRequired

Query parameters

expandarray of string

Comma-separated list of related objects to embed in the response, for example lines,supplier,files,history. By default, responses are kept compact.

Responses

200The document.
idstringRequired
typestringRequired
Possible valuesdelivery_noteinvoicecredit_noteconsolidated_invoice
numberstringRequired

Document number, as printed by the issuer.

datestring · dateRequired
accounting_periodstring

Accounting period in YYYY-MM format. Defaults to the month of date.

due_datestring · dateNullable
supplierPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
buyerPartyRefRequired
Show 2 child attributesHide child attributes
idstringRequired
namestringRequired
branchBranchRef
Show 3 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
purchase_typestringNullable
sourcestring
Possible valuespurchaseexpensecardmigration
order_idsarray of string
currencystringRequired

ISO 4217 currency code. Only ILS is currently supported.

Possible valuesILS
totalsTotalsRequired
Show 4 child attributesHide child attributes
before_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

with_vatstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discountstring · money

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

allocation_numberstringNullable

Israeli invoice allocation number. Mandatory for amounts above 5,000 ILS.

linesarray of DocumentLine
Show 14 child attributesHide child attributes
idstringRequired
skustringRequired
namestringRequired
quantitystring · quantityRequired

Decimal quantity as a string, with up to 3 fraction digits.

unitstring
unit_pricestring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

discount_pctstringNullable
vat_exemptboolean
totalstring · moneyRequired

Decimal amount as a string, with exactly 2 fraction digits. The currency is set by currency on the parent object.

order_idstringNullable
order_line_idstringNullable
quantity_receivedstring · quantityNullable

Quantity the buyer recorded as received.

purchase_typestringNullable
expense_accountstringNullable
buyer_statusstringRequired

What the buyer has done with the document, such as receiving, disputing or exporting it.

Possible valuespendingreceivedreceived_with_differencesdisputedapproved_for_exportexported
differencesarray of Difference
Show 6 child attributesHide child attributes
line_idstring
skustring
fieldstring
Possible valuesquantityunit_pricemissing_lineextra_line
issuedstring
receivedstring
notestring
payment_statusstring
Possible valuesunpaidpartially_paidpaid
paid_atstring · date-timeNullable
export_statusstring
Possible valuesnot_readyapproved_for_exportexported
exported_atstring · date-timeNullable
filesarray of FileRef
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
content_typestring
size_bytesinteger
download_urlstring · uri

Signed URL for downloading the file, valid for about 1 hour. Present only when the request includes expand=files.

external_refstringNullable
historyarray of HistoryEntry
Show 4 child attributesHide child attributes
atstring · date-time
actionstring
actorobject
Show 3 child attributesHide child attributes
typestring
Possible valuesuserapi_clientsystem
idstring
namestring
changesobject
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
deleted_atstring · date-timeNullable
404The resource does not exist or belongs to another account.
GET /documents/{document_id}
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/documents/5520931?expand=lines,files,history" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "id": "5520931",
  "type": "delivery_note",
  "number": "4471",
  "date": "2026-09-14",
  "accounting_period": "2026-09",
  "due_date": null,
  "supplier": {
    "id": "72223",
    "name": "מאפייה אחת עשרה"
  },
  "buyer": {
    "id": "71148",
    "name": "שניצי קפה"
  },
  "branch": {
    "id": "71148-1",
    "name": "שניצי קפה – ראשי",
    "tax_id": "000000000"
  },
  "purchase_type": "FC",
  "source": "purchase",
  "order_ids": [
    "2335619"
  ],
  "currency": "ILS",
  "totals": {
    "before_vat": "496.40",
    "vat": "89.35",
    "with_vat": "585.75"
  },
  "allocation_number": null,
  "lines": [
    {
      "id": "dl1",
      "sku": "300",
      "name": "בייבי ג׳בטה לבן",
      "quantity": "1",
      "unit": "carton",
      "unit_price": "80.00",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "80.00",
      "order_id": "2335619",
      "order_line_id": "l1",
      "quantity_received": "1",
      "purchase_type": "FC",
      "expense_account": "5100"
    },
    {
      "id": "dl2",
      "sku": "412",
      "name": "לחמניית חיטה מלאה",
      "quantity": "12",
      "unit": "carton",
      "unit_price": "34.70",
      "discount_pct": null,
      "vat_exempt": false,
      "total": "416.40",
      "order_id": "2335619",
      "order_line_id": "l2",
      "quantity_received": "10",
      "purchase_type": "FC",
      "expense_account": "5100"
    }
  ],
  "buyer_status": "received_with_differences",
  "differences": [
    {
      "line_id": "dl2",
      "sku": "412",
      "field": "quantity",
      "issued": "12",
      "received": "10",
      "note": "התקבלו 10 קרטונים מתוך 12"
    }
  ],
  "export_status": "not_ready",
  "exported_at": null,
  "files": [
    {
      "id": "file_01J9KR0A6T",
      "name": "tm-2026-4471.pdf",
      "content_type": "application/pdf",
      "size_bytes": 184320,
      "download_url": "https://files.zester.co.il/d/file_01J9KR0A6T?expires=1789369200&sig=demo"
    }
  ],
  "external_ref": "SO-88412",
  "created_at": "2026-09-14T06:06:00+03:00",
  "updated_at": "2026-09-14T07:42:00+03:00",
  "deleted_at": null,
  "history": [
    {
      "at": "2026-09-14T06:06:00+03:00",
      "action": "created",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP מאפייה אחת עשרה"
      },
      "changes": {
        "buyer_status": {
          "from": null,
          "to": "pending"
        }
      }
    },
    {
      "at": "2026-09-14T07:42:00+03:00",
      "action": "received",
      "actor": {
        "type": "user",
        "id": "usr_5531",
        "name": "דנה לוי"
      },
      "changes": {
        "buyer_status": {
          "from": "pending",
          "to": "received_with_differences"
        },
        "lines[1].quantity_received": {
          "from": null,
          "to": "10"
        }
      }
    }
  ]
}