GenerateSupplierOrder

  • Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx

  • MPS Version: From 5.3.0

Description

This method generates a purchase order with the status Sold-to-order for the demands specified by the supplier.

Syntax

public string GenerateSupplierOrder(int supplierID, string supplierUserEmail, string supplierUserPassword, string suppliesDemandsList)

Parameters

  • supplierID: Supplier identifier in the system;

  • supplierUserEmail: Supplier contact email;

  • supplierUserPassword: Encrypted password for the supplier contact;

  • suppliesDemandsList: List of identifiers (SupplyDemandID) for the demands to be fulfilled, separated by “;”. Example: 55;56;57;

    • When the provider is configured to operate in basic mode, only one demand should be specified in the suppliesDemandsList parameter. Otherwise, the following error will be generated: ERR_BASICMODE_MANYITEMSINFORMED.

Return fields

Field name

Description

ShipmentID

Number for the generated shipment. When multiple demands are fulfilled at the same time, a list of identifiers for the generated shipments will be returned

Click here to learn more about the response format.

Possible error codes

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

Restrictions

  • Demands must be fulfillable by the specified supplier;

  • Demands must be pending (Planning); they cannot have been canceled or already fulfilled.