Access order ticket number from square api.

It seems when we setup up pos in square we can select option in setup of point of sale > generate device code for order ticket to be automatically generated how do we access it through sqaure api ?

: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

Build on Mobile Web
Get Developer Credentials
In-Person Payment Solutions

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.

The Square API currently does not support direct access to order tickets generated in the Point of Sale system. The API allows you to create and manage orders, but the specific ticketing functionality within the Point of Sale system is not exposed via the API. You can, however, retrieve order details using the Orders API, which includes information about the items purchased, taxes, discounts, and other relevant data.

This answer was reviewed by @Bryan-Square.