GetActiveShipmentsForStock

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

  • MPS Version: From 5.3.0

Description

This method returns a list of Transfer deliveries that are active for a Distribution Center.

Syntax

public string GetActiveShipmentsForStock(string dealerName, string dealerUserEmail, string dealerUserPassword, int stockID, string fieldsList)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user's email address;

  • dealerUserPassword: Encrypted user password;

  • stockID: Identifier of the Distribution Center to which the delivery was requested;

  • fieldsList: List of fields that will be returned by the method. They must be specified by separating them with a semicolon (;). Example: ShipmentID;OrderID;StockID.

    • When no fields are specified, the response will contain the fields shown in bold in the table below.

Return fields recognized in fieldsList

Field name

Description

ShipmentID

Delivery ID, which is a unit of an order

ExpectedDate

Expected delivery date

ShipmentStatusID

Delivery status, which can be:

5 - Reserved (Processed)

6 - Billed (Invoiced)

7 - Sent (Forwarded)

8 - Receiving (In Receiving)

OrderID

Order ID

OrderShipmentNumber

Order number combined with the delivery number (e.g., IN/000160-P000001)

StockID

ID of the requesting warehouse, which can be a Customer Warehouse or Distribution Center

StockName

Name of the requesting warehouse

OrderField1Name

Name of the first customized field in the order

OrderField1Value

Value of the first customized field in the order

OrderField2Name

Name of the second customized field of the order

OrderField2Value

Value of the second customized field of the order

OrderField3Name

Name of the third customized field of the order

OrderField3Value

Value of the third customized field of the order

ShipmentField1Name

Name of the first customized field of the delivery

ShipmentField1Value

Value of the first customized field of the delivery

ShipmentField2Name

Name of the second customized field of the delivery

ShipmentField2Value

Value of the second customized field of the delivery

ShipmentField3Name

Name of the third customized field of the delivery

ShipmentField3Value

Value of the third customized field of the delivery

InvoiceNumber

Delivery invoice number

Click here to learn more about the error formats.

Possible errors returned

Click here to see the possible errors that may be returned and learn the reasons behind them.

Restrictions

  • To execute this method, the specified user must have Basic, Limited, or Full access to the stock in question.