Rest API payload to add tracking number
# ask-stanley-ai
r
Rest API payload to add tracking number
c
AI generated answer (using internal Slack threads):
To add a tracking number to a record using the REST API, you would need to include the tracking number in the payload of your API request. However, the exact field name for the tracking number may vary depending on the specific record type you are working with. For instance, if you are working with a Sales Order (SO) or an Item Fulfillment (IF) record, the tracking number is typically stored in a field named
trackingnumbers
or
trackingnumber
. Here is a sample payload for updating a Sales Order with a tracking number:
Copy code
json
{
   "recordType": "salesOrder",
   "id": "12345",
   "fields": {
      "trackingnumbers": "123456789"
   }
}
Please note that this is a simplified example and the actual payload may need to include additional fields depending on your specific requirements. For including the tracking number and shipping carrier in an email template based on a transaction (SO), you can use the
{applyingtransaction.trackingnumbers}
and
{applyingtransaction.carrier}
placeholders in your email template. These placeholders will be replaced with the actual tracking number and carrier when the email is sent. ****** 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.825195372
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813354552
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8125
Please provide your feedback on this answer.