Is the "updated" webhook always thrown when "created" is thrown?

EelcoEelco Member Posts: 4
edited July 24 in Development

Hi,

Currently, we have webhooks for both created and modified/updated. This, of course, because we do not want to miss any created/altered entities.

Now we've made some improvements on our webhook handling, and I found that whenever I created an order or invoice, I received both the created and modified webhook.

My question: is my assumption correct when I say that whenever ANY entity is created, the modified webhook is ALWAYS triggered as well?

Kind regards,

Eelco

1 comment

  • LeahLeah Moderator, Lightspeed Staff Posts: 113 moderator

    Hi @Eelco , great question. When an Order is created, identical 'created' and 'updated' webhooks are sent, so you needn't monitor both. This is also true of most other types, namely: Shipment, Invoice, Product, and Quote. However, Customer, Ticket, Subscriber, and Contact do not send additional 'updated' requests upon creation.

    Hope this helps!

    API Support
    Lightspeed HQ
Sign In or Register to comment.