Skip to main content

sgrIncluirTransportadora

Inclusion of carriers in the customer register.

SoapAction

PARAMETERS

FieldTypeRequired?Description
accesskeystringYesKey returned by the sgrLogin method.
cdPasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.
dsNomestringYesCarrier's corporate name.
nrCGCCPFstringYesCarrier's CPF/CNPJ.
cdPaisOrigemintYesCode of the country of origin of the CPF/CNPJ.
dsNomeFantasiastringYesCarrier's trade name.
nrInscEststringYesCarrier's state registration.
dsRuastringYesCarrier's street name.
nrRuastringYesCarrier's address number.
dsBairrostringYesCarrier's neighborhood.
nrCEPstringYesCarrier's zip code.
cdCidintYesCity code.
cdCidIBGEintYesIBGE city code.
nrddd1stringYesCarrier's area code.
nrFone1stringYesCarrier's phone number.
dsEmailstringYesCarrier's email.

METHOD RETURN:

If the parameters are filled in correctly, the carrier's data will be saved. and the ReturnDescription property will display the message: Carrier entered successfully.

If there is an error when executing the method, the ReturnDescription property will display:

ErrorDescription
The CPF/CNPJ entered is invalid.You must provide a valid CPF or CNPJ (CPF with 11 characters and CNPJ with 14 characters).
Carrier already registeredThe carrier provided is already registered and linked to the customer.
Mandatory fieldsThe listed parameters were not filled in.