Skip to main content

sgrDocumentoProdutosSeqV2

Class of association of documents with the shipping authorization.

PARAMETERS

FieldTypeRequired?Description
nrDocStringYesDocument number (up to 20 characters)
tpDocintegerYesDocument type. This code is returned by the sgrListDocumentType method.
valueDocdecimalYesTotal document value
tpOperacaointegerYesOperation Type Code, returned by the sgrListaTiposOperacao method
dtPrevistadatetimeYesExpected delivery date. Send in “YYYY-MM-DD” format
dtExpectedDepartureStringNoExpected to leave the delivery location. Send in “YYYY-MM-DD” format
cdCidintegerYesDelivery city code, returned by the sgrListCities method.
dsStreetStringYesDelivery address (up to 50 characters)
nrStreetstringYesDelivery address number (up to 6 characters)
complementStreetstringNoDelivery address complement (up to 40 characters)
dsBairroStringNoDelivery neighborhood (up to 50 characters)
nrCepStringNoDelivery zip code (up to 8 characters)
nrFone1stringNoDelivery address phone number (up to 12 characters)
nrFone2StringNoDelivery address phone number (up to 12 characters)
cdShipperintegerYesShipper code. This code is returned by the sgrListShippers method. If it doesn't exist, send the customer's own code in this field.
cdPaisOrigemEmitenteintegerYesIssuer's country of origin code. This code is returned by the sgrListaPais method. You must send -1 when the issuer's data does not exist.
nrCnpjCPFEmitentestringNoCNPJ/CPF number of the Issuer of the document. Send “” (blank) when there is no information. (up to 16 characters)
cdPaisOrigemDestinatariointegerYesReceiver's country of origin code. This code is returned by the sgrListaPais method. You must send -1 when the Recipient's data does not exist.
nrCnpjCPFDestinatariostringNoDocument recipient's CNPJ/CPF number. Send “” (blank) when the information does not exist. (up to 16 characters)
nrCnpjCpfDestinatarioSequenciaStringNoReceiver's CNPJ/CPF sequence. Used to control different delivery addresses for the same CNPJ. This sequence is defined by the customer. (up to 50 characters)
LatitudefloatYesLatitude of the delivery address. Send 0 (zero) when the information does not exist.
LongitudefloatYesLongitude of the delivery address. Send 0 (zero) when the information does not exist.
dsNameStringYesDelivery recipient's name (up to 50 characters)
qtVolumesintegerYesNumber of Volumes.
qtPartsintegerYesNumber of Parts.
nrLacreSIFStringNoField for free use by the customer. If not available, send “” (blank). (up to 20 characters)
nrLacreArmador
dsShip
dsSiglaOrigstringNoOrigin Unit acronym. Send “” (blank) when the information does not exist. (up to 20 characters)
dsSiglaDeststringNoAcronym of the Destination Unit. Send “” (blank) when the information does not exist. (up to 20 characters)
flRegiaointegerNoDestination Region Code (1-South, 2-Southwest, 3-Central-West, 4-Northeast, 5-North)
nrCustomerControl1StringNoField for free use by the customer. If not available, send “” (blank). (up to 20 characters)
nrCustomerControl2No
nrCustomerControl3No
productsListYesDocument product list. To use this field, you must create an array of type sgrProduct.
vlCubageintegerNoTotal cubage value of the document.
vlWeightintegerNoTotal document weight.
cdTranspintegerNoCarrier code, returned by the sgrListaTransportadoras method.
nrDDDFone1stringNo*DDD Phone number of delivery address *Mandatory if nrFone1 is entered (up to 5 characters)
nrDDDFone2stringNo*DDD Delivery address phone number. * Mandatory if nrFone2 is entered (up to 5 characters)
nrCustomerControl7stringNoField for free use by the customer. If not available, send “” (blank). (up to 20 characters)
nrCustomerControl8
nrCustomerControl9
nrCustomerControl10
flTrocaNotaintegerNoIndicates whether the document allows invoices to be exchanged, i.e. whether the document can be replaced by another. Enter a value of 1 for Yes and 0 for No.
cdExchangeNoteintegerNoCode of the replacement document.
cdProgramacaoDestinatariointegerNoProgramming recipient code.
cdProgrammingintegerNoProgramming code.
nfslistNoList of notes to exchange. To use this field, you must create an array of type sgrNF.
vlStartDiaryOnTermintegerNoIndicates whether the start of the per diem is on time.
vlStartDailyLateintegerNoIndicates if the start of the daily rate is late.