The recommended way to create a Shipment from SO through the REST API is actually to send a request to Shipment endpoint instead of executing the CreateShipment action.
The recommended way to create a Shipment from SO through the REST API is actually to send a request to Shipment endpoint instead of executing the CreateShipment action.
"Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IEnumerable`1bNewtonsoft.Json.Linq.JObject]' because the type requires a JSON array (e.g. e1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. e1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'Details.OrderNbr', line 1, position 59."
Could you please help?
Thanks.
Hi @skater4,
your JSON is not formatted correctly, you don’t have square brackets t] for the details section.
See how you do it in ‘Allocations’, there you have the correct format.
Hi @skater4,
your JSON is not formatted correctly, you don’t have square brackets e] for the details section.
See how you do it in ‘Allocations’, there you have the correct format.
As for the errors you describe, those are Business Logic errors. E.g. you may not have Boxes configured in the system, or you may not have enough qty of the items on the warehouse, etc.
So, the recommendation here is to make sure you have everything configured properly and try to execute it again afterwards.
Also I’d recommend trying with ‘SalesDemo’ database first.