Skip to main content

sgrAdicionarDestinatarioProgramacao

Add a recipient to an existing schedule in the system.

SoapAction

PARAMETERS:

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
cdprogramacaointegerYesCode of the schedule where the recipient will be included.
recipientlistYesObject containing the recipient's data. The fields that must be entered can be consulted in the item RecipientProgramming.

RETURN METHOD:

ReturnDataset: If the parameters are correct, the dataset will display:

FieldTypeDescription
cdDestinatarioProgramacaoListList with the codes of the posted recipients.

ReturnDescription: If there is an error in the execution of the method, the property will be displayed:

ErrorDescription
The recipient informed in the “programming” parameter was not found in the system.You must check that it is registered, or register it using the sgrAddDestinatarioProgramacao method. Note: This field will only be validated if the [Require CNPJ of delivery locations] parameter is checked.