I’m trying to create a webhook for the delivery event on sandbox but i don’t think my webhook is used. Just in case i configured my webhook to send me all events but i don’t receive anything, can you tell me if the webhook is sent on your side ?
When i create the job in my code i get an iD in the response that i store to compare it later to the id that i receive in the above json (100395073 here). However it seems they are not the same thing. From what i understand the one i save is the job Id and this one might be the delivery Id. Do you know how i can make a connection between the two ? Is there a way for me to get the deliveryId at some point ?
Thank you for coming back to us with your findings.
Indeed, there are two different ID’s returned when you create a job with us, the Job ID and the Delivery ID. Note that one job can have more than one delivery.
In the job creation response example of our API documentation, you can find the delivery ID as seen below:
Depending on your other API endpoint usage, you may need to store both the job ID and the Delivery ID.
Nevertheless, we would actually recommend tracking your webhooks using your own unique 'client_reference' identifier to ensure you don’t loose track of your order. For more details please see “Manually_stacked”, what happened to my order?
Let us know if you have any questions or require further clarifications.