Getting Started

Catalog Update

Order Management

Total Sales

Suppliers Details

Buyers Details

Order Management

New Order Created - Webhook

The New Order Created webhook notifies your system whenever a new order is created in Zestt.

Before activating the webhook, you must provide the following configuration.

Parameter Type Required Description
Webhook URL String Yes The HTTPS endpoint that will receive notifications for newly created orders.
API Key String No If provided, Zestt will include this API Key in the request header of every webhook call. The receiving system can validate the key to authenticate the request.

Statuses list

Field Name status number
Drafts 0
PendingForApproval 1
Approved 2
Rejected 3
Canceled 4
AcceptedPartial 7
CanceledAfterApproved 11
WaitSend 16

Trigger Conditions

The webhook is triggered only when an order is issued and enters the PendingForApproval status.

Only orders with Status = 1 (PendingForApproval) are sent through the webhook.

Orders in any other status are not sent.

Response Sample:

				
					{
    "status": "200",
    "order": [
        {
            "id": "1543695",//internal order id
            "status": 1,//status of order
            "date_sent": "2023-05-30",
            "customer_number": "159263487484",
            "date_delivery": "2023-05-31",
            "description": null,
            "totalNoVATAfterDiscount": 138.0000,
            "totalWithVATAfterDiscount": 161.4600,
            "items": [
                {
                    "cat_number": "45416541654165",//SKU
                    "name": "בטטה",
                    "unitQuantity": 1.00,//quantity in catalog
                    "unitQuantityType": 0,
                    "quantity": 2.00//quantity in order,
                    "price": 34.0000
                    //price per unit,
                    "totalQuantity": 2.0000,
                    //catalog quantity times quantity in order
                    "totalPrice": 68.000000,
                    //price per unit times quantity in order
                    "withoutVAT": false//is free of VAT
                    "orderId": null,
                    "expenseAccount": null,
                    "discount_percentage": null,
                    "clientCat": null,
                    "supplier_categories": [],
                    "buyer_categories": []
                },
                {
                    "cat_number": "4654567489798798",
                    "name": "בגט",
                    "unitQuantity": 1.00,
                    "unitQuantityType": 0,
                    "quantity": 2.00,
                    "price": 35.0000,
                    "totalQuantity": 2.0000,
                    "totalPrice": 70.000000,
                    "withoutVAT": false
                    "orderId": null,
                    "expenseAccount": null,
                    "discount_percentage": 8.00,
                    "clientCat": null,
                    "supplier_categories": [],
                    "buyer_categories": []
                }
            ]
        }
        ]
    }
				
			

Status: 200