Does rest api sales orders accept addresses
# ask-stanley-ai
r
Does rest api sales orders accept addresses
c
AI generated answer (using internal Slack threads):
Yes, the REST API does accept addresses for sales orders. However, it's important to note that the addresses are represented as an internal id reference. This means that you can either choose an existing address from the customer record or add a new one specific to the sales order. If you want to set custom addresses for each line item in a sales order, you might need to use a SuiteScript based solution, such as a Restlet. This is because each line item can have a different destination, and when you load the order, you would want to load the order with the correct shipping addresses/method per line. If the addresses are not already in the customer's address book, you can map them to the Shipping Address fields on the Sales Order, so that the default from the Customer record will be overridden. ****** 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.848271072
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845671892
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838194668
Please provide your feedback on this answer.