How can I get an order's shipping tracking number ...
# ask-stanley-ai
j
How can I get an order's shipping tracking number from the REST API?
c
AI generated answer (using internal Slack threads):
To get an order's shipping tracking number from the REST API, you would need to fetch the Item Fulfillment record associated with the order. The tracking number is stored in the
tranShipMethod
field of the Item Fulfillment record. Here is a sample API call to fetch an Item Fulfillment record:
Copy code
javascript
GET /record/v1/itemFulfillment/{recordId}
In the response, you would look for the
tranShipMethod
field to get the tracking number. Please note that this will only give you the tracking number. If you need to fetch the actual tracking information (like the current status, location, etc.), you would need to use the tracking number to make a separate API call to the shipping carrier's API (like FedEx, UPS, etc.). ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808864594
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808580101
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808090806
Please provide your feedback on this answer.