Hello, not sure if there is a better channel to as...
# general
v
Hello, not sure if there is a better channel to ask API related questions but I am trying to post a fulfillment using this endpoint https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_161425629582.html#subsect_161425663087 however when I try to fulfill orders that have lines belonging to multiple locations I get the following error
Copy code
%{
     "o:errorDetails" => [
       %{
         "detail" => "Error while accessing a resource. Fulfillments can be shipped from only one location when using Multi-Location Inventory.",
         "o:errorCode" => "USER_ERROR"
       }
     ],
     "status" => 400,
     "title" => "Bad Request",
     "type" => "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>"
   }
Note that I want to mark only 1 line as fulfilled (out of two), this is not a problem when both lines belong to the same location. example payload I am sending
Copy code
%{
  shipStatus: %{id: "C"},
  status: %{id: "C"},
  item: %{
    items: [
      %{
        line: 2,
        item: 1111,
        orderLine: 2,
        quantity: 2,
        location: 101
      }
    ]
  }
}
Any ideas why it’s happening?