sgrIncluirDocumentoAE
Includes new documents in the Boarding Authorization.
PARAMETERS
| Field | Type | Required? | Description |
|---|---|---|---|
| chaveacesso | string | Yes | Key returned by the sgrLogin method. |
| cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
| cdclienteopentech | integer | Yes | Client code, returned by the sgrListaEmpresasPASUsuario method. |
| cdviagem | integer | Yes | Boarding authorization number. |
| documentos | list | Yes | List of Boarding Authorization documents. To use this parameter, you must create an array of the sgrDocumentoAE type |
METHOD RETURN:
If the parameters are filled in correctly, the ReturnDataset property will display:
| Field | Description |
|---|---|
| CDVIAG integer | AE number in which the document was included |
ReturnDescription: If there is an error when executing the method, the property will display:
| Error | Description |
|---|---|
| It was not possible to include the Document in the Shipping Authorization. | For this error, the method may contain the details listed in Table 4 |