Skip to main content

sgrCancelaProgramacao

Cancel a system schedule.

SoapAction

PARAMETERS:

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
cdProgramacaointegerYesCode of the schedule to be canceled
cdCancelReasonProgintegerYesCancellation reason code. This code is returned by the sgrListCancelReasonProg method.
dsCancelDetailstringYesDetails of the reason for canceling the schedule.
dsEmailstringNoSingle email or list of emails to which the schedule cancellation notification should be sent.

METHOD RETURN:

If the parameters are correct, the webservice will cancel the schedule and send the Schedule Cancellation Notice to the e-mail address entered in the dsEmail parameter.

Possible errors:

ErrorDescription
Cancellation reason does not exist for the client in the schedule.The code entered for the cancellation reason was not found. The list of reasons is returned by the sgrListCancelReason method.
Error when canceling schedule.The code entered in the cdprogramming parameter refers to a schedule that has already been canceled. You must check the code and try again.
Error when canceling schedule.The code entered in the cdprogramming parameter refers to a schedule that has already been canceled. You need to check the code and try again.
Error canceling programming. Try again.

Note: In the event of an error, the error message will be returned as a warning.