SendShipment

  • Web Service URL: https://[SERVER_ADDRESS]/StockOrdersWS/StockOrdersData.asmx

  • MPS Version: From 5.3.0

Description

This method forwards a transfer shipment that has been requested from the Distribution Center.

Syntax

public string SendShipment(string dealerName, string dealerUserEmail, string dealerUserPassword, int shipmentID, string sendDate, string utc, string comments)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user's email address;

  • dealerUserPassword: Encrypted user password;

  • shipmentID: ID of the shipment being forwarded;

  • sendDate: Data (Format: yyyy-MM-dd HH:mm:ss) on which 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 time zone changes during daylight saving time. Example: In Brazil, the standard UTC time 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 execute this method, the specified user must have Restricted or Full responsibility assigned by the supplier (Distribution Center) and have full permission for Forward Orders;

  • When the billing stage is active at the supplier (Distribution Center), the delivery must be BilledB ; if it is disabled, the delivery status must be Processed.