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.

Buyers

Buyers linked to your supplier account. List and retrieve them, set your customer number and ERP reference for each, and invite new buyers to Zestt.

The Supplier buyer object

Attributes

idstringRequired
namestringRequired
tax_idstringNullable
statusstringRequired
Possible valuesactiveinactive
customer_numberstringNullable
erp_refstringNullable
branchesarray of object
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
addressstring
delivery_daysarray of string
Possible valuessunmontuewedthufrisat
min_orderstring · moneyNullable

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

payment_termsstringNullable
price_list_idstringNullable
created_atstring · date-time
updated_atstring · date-timeRequired
The Supplier buyer object
{
  "id": "71148",
  "name": "שניצי קפה",
  "tax_id": "000000000",
  "status": "active",
  "customer_number": "777077070",
  "erp_ref": "PRI-C-10482",
  "branches": [
    {
      "id": "71148-1",
      "name": "שניצי קפה – ראשי",
      "tax_id": "000000000",
      "address": "הברזל 30, תל אביב",
      "delivery_days": [
        "sun",
        "mon",
        "tue",
        "wed",
        "thu",
        "fri"
      ]
    }
  ],
  "min_order": "250.00",
  "payment_terms": "שוטף + 30",
  "price_list_id": "pl_1",
  "created_at": "2025-06-18T11:20:00+03:00",
  "updated_at": "2026-09-13T10:12:44+03:00"
}

List linked buyers

GET/supplier/buyers
  • Scopesupplier.buyers:read

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.

Responses

200A page of linked buyers.
dataarray of SupplierBuyerRequired
Show 12 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
statusstringRequired
Possible valuesactiveinactive
customer_numberstringNullable
erp_refstringNullable
branchesarray of object
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
addressstring
delivery_daysarray of string
Possible valuessunmontuewedthufrisat
min_orderstring · moneyNullable

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

payment_termsstringNullable
price_list_idstringNullable
created_atstring · date-time
updated_atstring · date-timeRequired
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/buyers
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/buyers?updated_since=2026-09-01T00:00:00%2B03:00&limit=100" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "data": [
    {
      "id": "71202",
      "name": "ביסטרו הנמל",
      "tax_id": "000000000",
      "status": "active",
      "customer_number": "777080114",
      "erp_ref": "PRI-C-10517",
      "branches": [
        {
          "id": "71202-1",
          "name": "ביסטרו הנמל – ראשי",
          "tax_id": "000000000",
          "address": "רציף העלייה השנייה 5, חיפה",
          "delivery_days": [
            "mon",
            "wed",
            "fri"
          ]
        }
      ],
      "min_order": "300.00",
      "payment_terms": "שוטף + 60",
      "price_list_id": "pl_1",
      "created_at": "2025-10-05T09:05:00+03:00",
      "updated_at": "2026-09-06T15:31:09+03:00"
    },
    {
      "id": "71148",
      "name": "שניצי קפה",
      "tax_id": "000000000",
      "status": "active",
      "customer_number": "777077070",
      "erp_ref": "PRI-C-10482",
      "branches": [
        {
          "id": "71148-1",
          "name": "שניצי קפה – ראשי",
          "tax_id": "000000000",
          "address": "הברזל 30, תל אביב",
          "delivery_days": [
            "sun",
            "mon",
            "tue",
            "wed",
            "thu",
            "fri"
          ]
        }
      ],
      "min_order": "250.00",
      "payment_terms": "שוטף + 30",
      "price_list_id": "pl_1",
      "created_at": "2025-06-18T11:20:00+03:00",
      "updated_at": "2026-09-13T10:12:44+03:00"
    }
  ],
  "next_cursor": null,
  "has_more": false
}

Retrieve a linked buyer

GET/supplier/buyers/{buyer_id}
  • Scopesupplier.buyers:read

Path parameters

buyer_idstringRequired

Responses

200The linked buyer.
idstringRequired
namestringRequired
tax_idstringNullable
statusstringRequired
Possible valuesactiveinactive
customer_numberstringNullable
erp_refstringNullable
branchesarray of object
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
addressstring
delivery_daysarray of string
Possible valuessunmontuewedthufrisat
min_orderstring · moneyNullable

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

payment_termsstringNullable
price_list_idstringNullable
created_atstring · date-time
updated_atstring · date-timeRequired
404The resource does not exist or belongs to another account.
GET /supplier/buyers/{buyer_id}
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/buyers/71148" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"
Response
{
  "id": "71148",
  "name": "שניצי קפה",
  "tax_id": "000000000",
  "status": "active",
  "customer_number": "777077070",
  "erp_ref": "PRI-C-10482",
  "branches": [
    {
      "id": "71148-1",
      "name": "שניצי קפה – ראשי",
      "tax_id": "000000000",
      "address": "הברזל 30, תל אביב",
      "delivery_days": [
        "sun",
        "mon",
        "tue",
        "wed",
        "thu",
        "fri"
      ]
    }
  ],
  "min_order": "250.00",
  "payment_terms": "שוטף + 30",
  "price_list_id": "pl_1",
  "created_at": "2025-06-18T11:20:00+03:00",
  "updated_at": "2026-09-13T10:12:44+03:00"
}

Update a linked buyer

PATCH/supplier/buyers/{buyer_id}
  • Scopesupplier.buyers:write

Path parameters

buyer_idstringRequired

Headers

If-Matchstring

The ETag value from a previous GET of the resource. If it no longer matches the current ETag, the request fails with 412.

Request body application/json

customer_numberstring

The buyer's customer number in your ERP.

erp_refstring

A free-form reference of your choice, such as the ERP account key.

Responses

200The updated buyer.
idstringRequired
namestringRequired
tax_idstringNullable
statusstringRequired
Possible valuesactiveinactive
customer_numberstringNullable
erp_refstringNullable
branchesarray of object
Show 5 child attributesHide child attributes
idstringRequired
namestringRequired
tax_idstringNullable
addressstring
delivery_daysarray of string
Possible valuessunmontuewedthufrisat
min_orderstring · moneyNullable

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

payment_termsstringNullable
price_list_idstringNullable
created_atstring · date-time
updated_atstring · date-timeRequired
404The resource does not exist or belongs to another account.
412The If-Match value does not match the resource's current ETag.
422The request body or query parameters failed validation. See errors[] for each invalid field.
PATCH /supplier/buyers/{buyer_id}
curl -X PATCH "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/buyers/71148" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_number": "777077070",
    "erp_ref": "PRI-C-10482"
  }'
Response
{
  "id": "71148",
  "name": "שניצי קפה",
  "tax_id": "000000000",
  "status": "active",
  "customer_number": "777077070",
  "erp_ref": "PRI-C-10482",
  "branches": [
    {
      "id": "71148-1",
      "name": "שניצי קפה – ראשי",
      "tax_id": "000000000",
      "address": "הברזל 30, תל אביב",
      "delivery_days": [
        "sun",
        "mon",
        "tue",
        "wed",
        "thu",
        "fri"
      ]
    }
  ],
  "min_order": "250.00",
  "payment_terms": "שוטף + 30",
  "price_list_id": "pl_1",
  "created_at": "2025-06-18T11:20:00+03:00",
  "updated_at": "2026-09-13T10:12:44+03:00"
}

Invite a buyer

POST/supplier/buyer-invitations
  • Scopesupplier.buyers:write

Invite a new buyer to Zestt. This does not create a user. The response includes an onboarding link.

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

business_namestringRequired
tax_idstring
contact_namestring
contact_emailstring · emailRequired
contact_phonestring
customer_numberstring
price_list_idstring

Responses

201The created invitation.
idstring
statusstring
Possible valuessentacceptedexpired
onboarding_urlstring · uri
expires_atstring · date-time
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/buyer-invitations
curl -X POST "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/supplier/buyer-invitations" \
  -H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: invite-777081230" \
  -d '{
    "business_name": "קפה הגפן",
    "tax_id": "000000000",
    "contact_name": "מיכל לוי",
    "contact_email": "orders@cafe-hagefen.example",
    "contact_phone": "050-0000000",
    "customer_number": "777081230",
    "price_list_id": "pl_1"
  }'
Response
{
  "id": "inv_01J9MZ3F6A",
  "status": "sent",
  "onboarding_url": "https://app.zester.co.il/onboarding/inv_01J9MZ3F6A",
  "expires_at": "2026-09-27T10:30:00+03:00"
}