How can you set the landed cost on an inbound ship...
# ask-stanley-ai
k
How can you set the landed cost on an inbound shipment using the REST API? Provide an example HTTP request with full payload
c
AI generated answer (using internal Slack threads):
To set the landed cost on an inbound shipment using the REST API, you would need to make a POST request to the
/record/v1/inboundShipment
endpoint with the necessary payload. Here is an example of how you might structure your HTTP request:
Copy code
http
POST /record/v1/inboundShipment HTTP/1.1
Host: {YOUR_NETSUITE_INSTANCE}
Authorization: Bearer {YOUR_TOKEN}
Content-Type: application/json

{
  "tranId": "123",
  "customForm": {"id": "1"},
  "subsidiary": {"id": "1"},
  "currency": {"id": "1"},
  "exchangeRate": "1.0",
  "entity": {"id": "1"},
  "itemList": {
    "items": [
      {
        "item": {"id": "1"},
        "quantity": "1",
        "landedCostPerUnit": "10.0"
      }
    ]
  }
}
In this example,
tranId
is the transaction ID of the inbound shipment,
customForm
is the custom form used for the inbound shipment,
subsidiary
is the subsidiary associated with the inbound shipment,
currency
is the currency used for the inbound shipment,
exchangeRate
is the exchange rate used for the inbound shipment,
entity
is the entity associated with the inbound shipment, and
itemList
is the list of items in the inbound shipment. Each item in the
itemList
has an
item
(the item), a
quantity
(the quantity of the item), and a
landedCostPerUnit
(the landed cost per unit of the item). Please replace
{YOUR_NETSUITE_INSTANCE}
and
{YOUR_TOKEN}
with your actual NetSuite instance and token. ****** 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.840698242
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834777832
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833740234
Please provide your feedback on this answer.