sgrAdicionarDestinatarioProgramacao
Add a recipient to an existing schedule in the system.
PARAMETERS:
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
cdprogramacao | integer | Yes | Code of the schedule where the recipient will be included. |
recipient | list | Yes | Object 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:
Field | Type | Description |
---|---|---|
cdDestinatarioProgramacao | List | List with the codes of the posted recipients. |
ReturnDescription: If there is an error in the execution of the method, the property will be displayed:
Error | Description |
---|---|
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. |