Skip to main content
Version: 2.2.2

INSUPP

This method enables to insert/edit the supply x supplier association.

POST /apigateway/se/generic/gn_webservice/gn_webservice_execute.php

Query parameters:

Query parametersTypeRequiredDescription
cdprodNumericYesProduct code
Constant value: 149
classnameStringYesClass name used in WADL
Constant value: supplierproviderimport
classpathStringYesPath to the class used in WADL
Constant value: sp_import

Example request:

Supported attributes:

Request body parameterTypeRequiredDescription
idobjectStringYesSupply ID #
idcommercialStringYes¹Customer company ID.
nmcompanyStringYes¹Supplier company name.
idcompanyStringYes²Supplier code.
idinputsuppStringYesSupply reference in the supplier.
dsinputsuppStringYesDescription of the supply in the supplier.
VlcostStringNoCost.
fgdefaultStringNo1 - Defines that the supplier is preferential.
2 - Defines that it is NOT preferential.

When inserting, for a blank value or any other value different from 1, the record will be defined as 2.
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

Yes¹ - Field required if "Supplier Code" is empty. Yes² - Field required if "Company ID" and/or "Company name" are empty.

{
"idobject": "string",
"idcommercial": "string",
"nmcompany": "string",
"idcompany": "string",
"idinputsupp": "string",
"dsinputsupp": "string",
"vlcost": "string",
"fgdefault": "string"
}

Example response:

200 OK

{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}