From cd317aa9a2effa6c8d401524a10de2baeb0d00c0 Mon Sep 17 00:00:00 2001 From: Sinh Date: Thu, 12 Oct 2023 11:04:46 +0700 Subject: [PATCH] update webhook payload --- partnerapi/kiotviet/model_req.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/partnerapi/kiotviet/model_req.go b/partnerapi/kiotviet/model_req.go index e933183..1520e89 100644 --- a/partnerapi/kiotviet/model_req.go +++ b/partnerapi/kiotviet/model_req.go @@ -38,9 +38,9 @@ type UnregisterWebhookReq struct { } type WebhookBody struct { - ID string `json:"Id"` - Attempt int `json:"Attempt"` - Notifications WebhookNotification `json:"Notifications"` + ID string `json:"Id"` + Attempt int `json:"Attempt"` + Notifications []WebhookNotification `json:"Notifications"` } type WebhookNotification struct {