Webhook events for Doordash Orders

Hi,
We’re integrating Doordash with Square. When an order is placed on Doordash and it’s pushed to Square POS, what webhook events will be triggered ? Do I receive order.created, payment.created events? If so, which key will indicate it’s a doordash order?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Payment APIs
Use Webhooks to Integrate with a Payroll System
Square Developer Documentation

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

When an order is placed on Doordash and pushed to Square POS, the Payments API will trigger a payment.created webhook event and the Orders API will trigger an order.created webhook event.

To identify that it’s a Doordash order, you can check the source.name field in the payment.created event data. If the order was created through Doordash, this field should have a value of “Doordash”.

Similarly, in the order.created event data, you can check the source.name field in the Order object to identify if it’s a Doordash order.

Please note that this is based on the assumption that Doordash is properly integrated with Square and is setting the source name correctly when creating orders and payments.

This answer was reviewed by @Bryan-Square.

1 Like