Handle Nilo Webhooks
Nilo sends events to your configured webhook URL. You must implement endpoints to handle these payloads.
// Order Created (POST)
{ "id": 10, "buyer": { "storeCode": "ST001" }, "products": [...], "status": "PENDING" }
// Order Cancelled (PUT)
{ "id": 10, "status": "CANCELLED", "reason": "...", "code": "NEW_ORDER" }
// Store User Created/Deleted (POST)
{ "subject": "user-created", "store": { "internalCode": "ST001" }, "user": { "username": "..." } }
// Support Ticket Created (POST)
{ "ticket_id": "1122", "client_internal_code": "ST001", "description": "..." }