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.

Orders

Orders that buyers place with your supplier account. List and retrieve them, then confirm, reject, schedule or acknowledge each one.

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"
        }
      }
    }
  ]
}

List orders

GET/supplier/orders
  • Scopesupplier.orders:read

List the orders that buyers send to your supplier account. By default, orders in every status are returned. Set status to pending_approval to fetch only orders awaiting approval, or use updated_since for incremental polling.

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.

statusarray of string

Comma-separated list of order statuses to filter by.

Possible valuesdraftpending_approvalapprovedpartially_approvedrejectedcancelledcancelled_after_approvalwaiting_to_send
buyer_idstring
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
401The API key or token is missing, invalid, expired or revoked. The code is unauthorized, key_expired or key_revoked.

Headers: X-Request-Id

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.
429The rate limit was exceeded. Retry after the number of seconds given in Retry-After.

Headers: Retry-After RateLimit-Limit RateLimit-Remaining RateLimit-Reset

GET /supplier/orders
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders?status=pending_approval&updated_since=2026-09-11T08:00:00%2B03:00&limit=50" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "data": [
    {
      "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
    },
    {
      "id": "2335644",
      "number": "71202-213",
      "status": "pending_approval",
      "buyer": {
        "id": "71202",
        "name": "ביסטרו הנמל",
        "customer_number": "777080114"
      },
      "supplier": {
        "id": "72223",
        "name": "מאפייה אחת עשרה"
      },
      "branch": {
        "id": "71202-1",
        "name": "ביסטרו הנמל – ראשי",
        "tax_id": "000000000"
      },
      "purchase_type": null,
      "sent_at": "2026-09-11T08:24:00+03:00",
      "delivery_date": "2026-09-14",
      "delivery_window": {
        "from": "07:00",
        "to": "10:00"
      },
      "currency": "ILS",
      "totals": {
        "before_vat": "313.10",
        "vat": "56.36",
        "with_vat": "369.46"
      },
      "lines": [
        {
          "id": "l1",
          "sku": "604",
          "name": "לחם שיפון פרוס",
          "quantity": "6.500",
          "unit": "kg",
          "package_quantity": "1",
          "unit_price": "18.40",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "119.60",
          "quantity_confirmed": null,
          "substitute_sku": null
        },
        {
          "id": "l2",
          "sku": "518",
          "name": "קרואסון חמאה",
          "quantity": "30",
          "unit": "unit",
          "package_quantity": "1",
          "unit_price": "6.45",
          "discount_pct": null,
          "vat_exempt": false,
          "total": "193.50",
          "quantity_confirmed": null,
          "substitute_sku": null
        }
      ],
      "notes": null,
      "external_ref": null,
      "acknowledged_at": null,
      "related_document_ids": [],
      "files": [],
      "created_at": "2026-09-11T08:19:47+03:00",
      "updated_at": "2026-09-11T08:24:00+03:00",
      "deleted_at": null
    }
  ],
  "next_cursor": null,
  "has_more": false
}

Retrieve an order

GET/supplier/orders/{order_id}
  • Scopesupplier.orders:read

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.

Headers: ETag

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 /supplier/orders/{order_id}
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders/2335619?expand=history" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "partially_approved",
  "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:30",
    "to": "08: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": "1",
      "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": "10",
      "substitute_sku": null
    }
  ],
  "notes": "נא לפרוק ליד דלת השירות, הכניסה מהחניה האחורית.",
  "external_ref": "SO-88412",
  "acknowledged_at": "2026-09-11T09:41:05+03:00",
  "related_document_ids": [],
  "files": [],
  "created_at": "2026-09-11T08:02:31+03:00",
  "updated_at": "2026-09-11T09:41:05+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"
        }
      }
    },
    {
      "at": "2026-09-11T09:40:12+03:00",
      "action": "confirmed",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP פריוריטי"
      },
      "changes": {
        "status": {
          "from": "pending_approval",
          "to": "partially_approved"
        },
        "lines.l2.quantity_confirmed": {
          "from": null,
          "to": "10"
        },
        "reason": "חוסר במלאי, 2 הקרטונים הנותרים יסופקו ביום שלישי"
      }
    },
    {
      "at": "2026-09-11T09:40:31+03:00",
      "action": "scheduled",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP פריוריטי"
      },
      "changes": {
        "delivery_window": {
          "from": {
            "from": "06:00",
            "to": "09:00"
          },
          "to": {
            "from": "06:30",
            "to": "08:00"
          }
        }
      }
    },
    {
      "at": "2026-09-11T09:41:05+03:00",
      "action": "acknowledged",
      "actor": {
        "type": "api_client",
        "id": "cl_01J9KQ7X4M",
        "name": "ERP פריוריטי"
      },
      "changes": {
        "external_ref": {
          "from": null,
          "to": "SO-88412"
        }
      }
    }
  ]
}

Confirm an order

POST/supplier/orders/{order_id}/confirm
  • Scopesupplier.orders:write

Confirm an order in full or with line changes. An empty body confirms the whole order. Send lines to confirm part of the order, substitute items, or adjust prices if the buyer allows it.

Path parameters

order_idstringRequired

Headers

Idempotency-Keystring

Optional key for safely retrying the request. 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

Confirmation details for the order. An empty object confirms the whole order.

delivery_datestring · date
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring
notestring

Up to 500 characters

linesarray of object

Lines that differ from the order. You need to send only those lines.

Show 5 child attributesHide child attributes
idstringRequired
quantity_confirmedstring · quantity

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.

substitute_skustring
reasonstring

Up to 200 characters

Responses

200The order after confirmation.
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.
409The request conflicts with the current state. The code is conflict, or idempotency_conflict when an Idempotency-Key is reused with a different body.
422The request body or query parameters failed validation. See errors[] for each invalid field.
POST /supplier/orders/{order_id}/confirm
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders/2335619/confirm" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: confirm-2335619" \
  -d '{
    "note": "חסרים 2 קרטונים של לחמניית חיטה מלאה, יסופקו ביום שלישי.",
    "lines": [
      {
        "id": "l2",
        "quantity_confirmed": "10",
        "reason": "חוסר במלאי, 2 הקרטונים הנותרים יסופקו ביום שלישי"
      }
    ]
  }'
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "partially_approved",
  "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": "1",
      "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": "10",
      "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-11T09:40:12+03:00",
  "deleted_at": null
}

Reject an order

POST/supplier/orders/{order_id}/reject
  • Scopesupplier.orders:write

Path parameters

order_idstringRequired

Headers

Idempotency-Keystring

Optional key for safely retrying the request. 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

reasonstringRequired

Up to 500 characters

Responses

200The order after rejection.
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.
409The request conflicts with the current state. The code is conflict, or idempotency_conflict when an Idempotency-Key is reused with a different body.
POST /supplier/orders/{order_id}/reject
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders/2335619/reject" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: reject-2335619" \
  -d '{
    "reason": "תנור הלחמניות בתיקון ולא נוכל לספק את ההזמנה ליום שני 14/09. נא להזמין מחדש לאספקה ביום שלישי 15/09."
  }'
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "rejected",
  "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-11T09:22:48+03:00",
  "deleted_at": null
}

Schedule a delivery

POST/supplier/orders/{order_id}/schedule
  • Scopesupplier.orders:write

Path parameters

order_idstringRequired

Request body application/json

delivery_datestring · dateRequired
delivery_windowTimeWindow
Show 2 child attributesHide child attributes
fromstring
tostring

Responses

200The order with its new delivery date and window.
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.
422The request body or query parameters failed validation. See errors[] for each invalid field.
POST /supplier/orders/{order_id}/schedule
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders/2335619/schedule" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -d '{
    "delivery_date": "2026-09-14",
    "delivery_window": {
      "from": "06:30",
      "to": "08:00"
    }
  }'
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "partially_approved",
  "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:30",
    "to": "08: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": "1",
      "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": "10",
      "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-11T09:40:31+03:00",
  "deleted_at": null
}

Acknowledge an order

POST/supplier/orders/{order_id}/acknowledge
  • Scopesupplier.orders:write

Mark the order as received in your ERP. Send your ERP sales order number as external_ref to show it to the buyer.

Path parameters

order_idstringRequired

Request body application/json

external_refstring

Up to 64 characters

Responses

200The order after acknowledgment.
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.
POST /supplier/orders/{order_id}/acknowledge
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/orders/2335619/acknowledge" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -d '{
    "external_ref": "SO-88412"
  }'
Response
{
  "id": "2335619",
  "number": "71148-80",
  "status": "partially_approved",
  "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:30",
    "to": "08: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": "1",
      "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": "10",
      "substitute_sku": null
    }
  ],
  "notes": "נא לפרוק ליד דלת השירות, הכניסה מהחניה האחורית.",
  "external_ref": "SO-88412",
  "acknowledged_at": "2026-09-11T09:41:05+03:00",
  "related_document_ids": [],
  "files": [],
  "created_at": "2026-09-11T08:02:31+03:00",
  "updated_at": "2026-09-11T09:41:05+03:00",
  "deleted_at": null
}