LinnSystems / LinnworksNetSDK

Linnworks.net Developers
26 stars 41 forks source link

SetExtendedProperties does not work - API Endpoint is expecting an array #25

Closed PixelDevelopers closed 3 years ago

PixelDevelopers commented 3 years ago

Add this method to the OrderMethod Class:

public static List SetExtendedProperties(Guid orderId, ExtendedProperty[] extendedProperties, String ApiToken, String ApiServer) { return Newtonsoft.Json.JsonConvert.DeserializeObject<List>(Factory.GetResponse("Orders/SetExtendedProperties", "orderId=" + orderId + "&extendedProperties=" + Newtonsoft.Json.JsonConvert.SerializeObject(extendedProperties) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); }

PixelDevelopers commented 3 years ago

Self Solved.