Missing info in the orders API (online orders)

I have a store where I sell tickets to events, I am trying to automate the sending of the email with the tickets, when an order is created and paid.

But I can’t find an API that returns all the data I need about the order (the online order identifier, buyer’s name, contact info (mobile, email)) :

ordersApi returns only the products and payment method.

How can i get all the info needed to create the ticket on my system ?

: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


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 your online store you can use the Payments API to get the payment information. In the payment object will be the customer_id. You’ll use that customer_id to call RetrieveCustomer to get the customers email they provided at checkout. :slightly_smiling_face: