Skip to main content

sgrCancelarPedido

Method for canceling customer orders

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasUuario method.
nrpedidovarchar[20]YesOrder number, customer control
cdmotivocancelaintegerYesCancellation reason code, returned by the sgrListOrderCancelaMotiv

METHOD RETURN

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

ReturnDescription: If there is an error when executing the method, if the order is not found, does not belong to the customer or if a mandatory field is not filled in, the property will indicate the error.