Skip to main content

sgrAdicionarProdutoPedido

Method for adding products to customer orders.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdproductintegerYesProduct code, returned by the sgrListProducts method.
cdunitmeasureintegerYesUnit of measure code, returned by the sgrListUnitMeasure method.
vlproductmoneyYesproduct unit value
vlqtdet_valueYesproduct quantity
vlweightt_valueYesproduct unit weight in kg
vlcubaget_valueYesindividual product cubage
vlvolumet_valueYesindividual product volume

METHOD RETURN

If the parameters are valid, the record will be added and will return ReturnDescription = OK.

ReturnDescription: If there is an error when executing the method (if the product is not found, does not belong to the customer or if the product already exists in the order), the property will show the reason for the error.