Skip to main content
Version: Next

addSupplier

This method allows associating and editing the supplier of the item.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\item\AddSupplierRequestType.java
Returnweb\wwwroot\ws\java\item\AddSupplierResponseType.java

Request:

ID #RequiredDescription
IDOBJECTXObject ID #
IDCOMMERCIALName of the object type
NMCOMPANYCompany name
IDCOMPANYCompany code
DSINPUTSUPPXDescription of the supply in the supplier
IDINPUTSUPPXSupply ID # in the supplier
VLQTMINREPLACMinimum reorder quantity
QTEXPECTARRIVEDSupply expected delivery
FGEXPECTARRIVEDExpected delivery measurement:
1 - Day
2 - Week
3 - Month
4 - Year
VLCOSTCost
FGDEFAULT1 - Defines that the supplier is preferential.
2 - Defines that the customer is NOT preferential.
When adding, for blank value or any other value different from 1, the record will be non-preferential.
When editing, if a blank value or any other value different from 1 and 2 is entered, the field will not be changed, it will keep the value previously set.
info
  • X¹ - Required if the “Company code” is not filled out.
  • X² - Required if the “Company ID” and/or the “Company name” fields are not filled out.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:item">
<soapenv:Header/>
<soapenv:Body>
<urn:addSupplier>
<!--You may enter the following 8 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:IDCOMMERCIAL>?</urn:IDCOMMERCIAL>
<urn:NMCOMPANY>?</urn:NMCOMPANY>
<urn:IDCOMPANY>?</urn:IDCOMPANY>
<urn:IDINPUTSUPP>?</urn:IDINPUTSUPP>
<urn:DSINPUTSUPP>?</urn:DSINPUTSUPP>
<urn:VLCOST>?</urn:VLCOST>
<urn:FGDEFAULT>?</urn:FGDEFAULT>
</urn:addSupplier>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 1.
FAILURE: Returns a message regarding the error that occurred