Dynamic Webhook for Cart Purchases
complete
s
snekROmonoro
I have a few products (serial keys) that are handled through Dynamic Webhooks. The issue I am facing is that when customers use the "Shopping Cart", Sellix sends the
same
webhook (with only one difference, used text-compare.com to see what the difference is, read further), and the API is unable to detect which product Sellix is sending a webhook to get serials for.Difference:
From: "webhooks": []
To:
"webhooks": [
{
"uniqid": "the ID",
"url": "https://myapi/webhooks",
"event": "product:dynamic",
"retries": 1,
"response_code": 200,
"created_at": 1706736428
}
],
Suggestion/Request: Have a more clear documentation about the payload Sellix is sending, and a straight field which specifies the product it's getting serials for, and the quantity, would be good.
Daniele
complete
We have added a new header "X-Sellix-Product-Id" along with the product dynamic call, which contains the uniqid of the product that we're sending a request for.
We'll be updating the documentation asap.
Daniele
in progress