-
Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx
-
MPS Version: From 5.3.0
Description
This method forwards a requested delivery to the supplier with the status Processed.
Syntax
public string SendShipment(int supplierID, string supplierUserEmail, string supplierUserPassword, int shipmentID, string sendDate, string utc, string comments)
Parameters
-
supplierID: Supplier ID in the system;
-
supplierUserEmail: Supplier contact email;
-
supplierUserPassword: Encrypted password for the supplier contact;
-
shipmentID: ID of the shipment being forwarded;
-
sendDate: Date (Format: yyyy-MM-dd HH:mm:ss) when the actual shipment occurred; the date provided must be between the shipment creation date and the current date, otherwise the error ERR_SHIPMENT_INVALIDSENTDATE will be returned;
-
utc: UTC value for the location corresponding to the shipment date, which must be entered with decimal places separated by a period. Example: -3.0;
-
It is important to be aware of UTC variations if daylight saving time is in effect. Example: In Brazil, the standard UTC is -3.0, but during daylight saving time it is -2.0.
-
-
comments: Additional information about the shipment.
Return
Click here to learn more about the return format.
Getting UTC, example in .NET
-
TimeZone zone = TimeZone.CurrentTimeZone;
-
TimeSpan offset = zone.GetUtcOffset(DateTime.Now);
-
string utc = offset.Hours + “.” + offset.Minutes;
Possible errors returned
Click here to check the possible errors that may be returned and learn their reasons.
Restrictions
-
To forward, the delivery must have the status Processed.