username and password are provided when creating a webhook, Zid will include a Basic Authentication header when sending webhook requests.Base64 encoded and sent in the Authorization header.username = user
password = secretcurl --location 'https://api.zid.sa/v1/managers/webhooks' \
--header 'Authorization: {{Autherization}}' \
--header 'X-Manager-Token: {{Access-Token}}' \
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data '{
"event": "order.status.update",
"target_url": "https://webhook.site/b1590566-c28c-4c82-b948-8f8027e84335",
"original_id": 2404,
"conditions": {},
"username": "user",
"password": "secret"
}'{
"status": "object",
"data": {
"id": "e307483e-795b-4e9c-8f36-a06cb1cf54bf",
"event": "order.status.update",
"target_url": "https://webhook.site/b1590566-c28c-4c82-b948-8f8027e84335",
"store_id": "d297fb8b-c322-412e-a2f4-ffa96dc57022",
"store_name": "Ω
ΨͺΨ¬Ψ± Ψ£Ψ³Ψ§Ω
Ψ©.",
"store_url": "https://osama.zid.store/",
"conditions": [],
"original_id": "2404",
"subscriber": "8208974663db80265e9bfe7b222dcb18",
"active": true,
"health_status": null,
"consecutive_failures": null,
"last_failed_at": null,
"last_success_at": null,
"broken_at": null,
"doc": null
},
"message": {
"type": "object",
"code": null,
"name": null,
"description": null
}
}