Skip to main content

sgrDocumentoAE

Class of association of documents with the shipping authorization.

PARAMETERS

FieldTypeRequired?Description
nrDocString (max 20 characters)YesDocument number
tpDocintegerYesDocument type. This code is returned by the method sgrListDocumentType
valueDocdecimalYesTotal document value
tpOperacaointegerYesOperation Type Code, returned by the sgrListaTiposOperacao method
dtPrevistaDateTimeYesExpected delivery date
dtExpectedDepartureString (max 20 characters)NoExpected to leave the delivery location. Send in “YYYY-MM-DD” format
cdCidIBGEintYesIBGE code of the delivery city, returned by the sgrListaCidades method
dsRuaString (max 50 characters)YesDelivery address
nrStreetString (max 6 characters)YesDelivery address number
complementStreetString (max 40 characters)NoDelivery address complement
dsBairroString (max 50 characters)NoDelivery neighborhood
nrCepString (max 8 characters)NoDelivery zip code
nrFone1String (max 12 characters)NoDelivery address phone number
nrFone2String (max 12 characters)NoPhone number of delivery address
nrCnpjCPFEmbarcadorString (max 16 characters)No *CNPJ/CPF of the shipper. * Only inform if the “cdEmbarcadorCliente” field is not filled in. When not filled in, send “” (blank).
cdEmbarcadorClienteString (max 20 characters)No *Code of the shipper in the client. * Only inform if the “nrCnpjCPFEmbarcador” field is not filled in. The use of this field implies the registration of all codes (from-to) in Opentech. When not filled in, send “” (blank).
nrCnpjCPFEmitenteString (max 16 characters)NoCNPJ/CPF number of the Issuer of the document. When the data does not exist, send “” (blank).
nrCnpjCPFDestinatarioString (max 16 characters)NoDocument recipient's CNPJ/CPF number. Send “” (blank) when the information does not exist.
nrCnpjCpfDestinatarioSequenciaString (max 16 characters)NoReceiver's CNPJ/CPF sequence. Used to control different delivery addresses for the same CNPJ. This sequence is defined by the customer.
LatitudefloatYesLatitude of the delivery address. Send 0 (zero) when the information does not exist.
LongitudefloatYesLongitude of the delivery address. Send 0 (zero) when no information exists.
dsNameString (max 50 characters)YesDelivery recipient's name
qtVolumesintegerYesNumber of Volumes.
qtPartsintegerYesNumber of Parts.
nrCustomerControl1String (max 20 characters)NoField for free use. If not available, send “” (blank).
nrCustomerControl2String (max 20 characters)NoField for free use. When it doesn't exist, send “” (blank).
nrCustomerControl3String (max 20 characters)NoField for free use. When it doesn't exist, send “” (blank).
nrCustomerControl4String (max 20 characters)NoField for free use. When it doesn't exist, send “” (blank).
nrCustomerControl5String (max 20 characters)NoField for free use. When it doesn't exist, send “” (blank).
nrCustomerControl6String (max 20 characters)NoField for free use. When it doesn't exist, send “” (blank).
productsListYesList of products in the Document. To use this field, you must create an array of type sgrProduct.
vlCubageintegerNoTotal cubage value of the document.
vlWeightintegerNoTotal document weight.
cdTranspintegerNoCarrier code
flExchangeNoteintegerNoIndicates whether the document allows the invoice to be exchanged, i.e. whether the document can be replaced by another. Enter a value of 1 for Yes and 0 for No.
cdProgramacaoDestinatariointegerNoProgramming recipient code.