Aditya Viki
11/14/2024, 1:32 PMCeligo AI
11/14/2024, 1:32 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that creating a sales order with multiple line items, each with a different shipping address, is not directly possible using REST or SOAP web services. Instead, a SuiteScript-based solution, such as a RESTlet, is recommended. Here is a simplified example of how you might structure your JSON for a POST request to create a sales order with multiple line items:
json
{
  "entity": {
    "id": "123"
  },
  "itemList": {
    "item": [
      {
        "item": {
          "internalId": "1"
        },
        "quantity": "2"
      },
      {
        "item": {
          "internalId": "2"
        },
        "quantity": "3"
      }
    ]
  },
  "billingAddress": {
    "country": "US",
    "state": "CA",
    "city": "San Francisco",
    "zip": "94111",
    "addr1": "123 Main St",
    "addr2": "Apt 4B"
  },
  "shippingAddress": {
    "country": "US",
    "state": "CA",
    "city": "San Francisco",
    "zip": "94111",
    "addr1": "123 Main St",
    "addr2": "Apt 4B"
  },
  "currency": {
    "internalId": "1"
  }
}entityitemListbillingAddressshippingAddresscurrencyCeligo AI
11/14/2024, 1:32 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824987531
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823425055
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820769668
Celigo AI
11/14/2024, 1:32 PM