POST API/NotaFiscalADE/XmlImportacaoNota

Retorna uma nota fiscal baseada no xml informado.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

WilsonSons.Terminais.WSNegocio.Negocio.Core.Result
NameDescriptionTypeAdditional information
Id

decimal number

None.

Mensagem

string

None.

Sucesso

boolean

None.

Nf

WilsonSons.Terminais.WSNegocio.Modelo.ScNotaFiscalTransp

None.

ListaCntr

Collection of WilsonSons.Terminais.WSNegocio.Modelo.ScNotaFiscalTranspCntr

None.

ListaItem

Collection of WilsonSons.Terminais.WSNegocio.Modelo.ScNotaFiscalTranspItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1.0,
  "Mensagem": "sample string 2",
  "Sucesso": true,
  "Nf": {
    "Id": 1.0,
    "Status": "sample string 2",
    "NumNotaTransp": "SAMPLE STRING 3",
    "SerieNotaTransp": "SAMPLE STRING 4",
    "DatEmissao": "2025-06-06T20:26:36.2437211-03:00",
    "TranspId": 5.0,
    "DatSaidaEmissor": "2025-06-06T20:26:36.2437211-03:00",
    "ParcIdEmiss": 6.0,
    "EstabIdEmiss": 7.0,
    "CnpjDest": "sample string 8",
    "RazaoSocialDest": "SAMPLE STRING 9",
    "CdPaisDest": "sample string 10",
    "CdUnidadeFedDest": "sample string 11",
    "NomCidadeDest": "sample string 12",
    "InscrEstadDest": "sample string 13",
    "Operacao": 14.0,
    "CodCfop": 15.0,
    "ValIpi": 16.0,
    "ValIcms": 17.0,
    "QtdTotal": 18.0,
    "ValTotal": 19.0,
    "PesoTotal": 20.0,
    "Membershipuserid": 21.0,
    "NumBooking": "sample string 22",
    "ChaveNfe": "SAMPLE STRING 23",
    "FlagBagagem": "sample string 24",
    "XmlNota": "sample string 25",
    "Ruc": "sample string 26",
    "StatusDue": "sample string 27",
    "TruckVisitAppointmentNbr": 28.0,
    "FlagBitrem": "sample string 29",
    "Cnpjs": "sample string 30",
    "RazaoSocialEmissor": "SAMPLE STRING 31"
  },
  "ListaCntr": [
    {
      "Id": 1.0,
      "NotaFiscalTranspId": 2.0,
      "CntId": 3.0,
      "CodCntr": "SAMPLE STRING 4",
      "Status": "sample string 5",
      "NumGuiaCaminhao": "sample string 6",
      "NumBooking": "SAMPLE STRING 7",
      "CnpjCobrade": "sample string 8",
      "UnitGkey": 9.0,
      "StatusDue": "sample string 10",
      "IndExcluido": "sample string 11"
    },
    {
      "Id": 1.0,
      "NotaFiscalTranspId": 2.0,
      "CntId": 3.0,
      "CodCntr": "SAMPLE STRING 4",
      "Status": "sample string 5",
      "NumGuiaCaminhao": "sample string 6",
      "NumBooking": "SAMPLE STRING 7",
      "CnpjCobrade": "sample string 8",
      "UnitGkey": 9.0,
      "StatusDue": "sample string 10",
      "IndExcluido": "sample string 11"
    }
  ],
  "ListaItem": [
    {
      "Id": 1.0,
      "NotaFiscalTranspId": 2.0,
      "MercId": 3.0,
      "QtdItem": 4.0,
      "ValItem": 5.0,
      "PesoItem": 6.0,
      "NcmMerc": "sample string 7",
      "CodCfop": 8.0,
      "IndExcluido": "sample string 9"
    },
    {
      "Id": 1.0,
      "NotaFiscalTranspId": 2.0,
      "MercId": 3.0,
      "QtdItem": 4.0,
      "ValItem": 5.0,
      "PesoItem": 6.0,
      "NcmMerc": "sample string 7",
      "CodCfop": 8.0,
      "IndExcluido": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Negocio.Core">
  <Id>1</Id>
  <ListaCntr xmlns:d2p1="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Modelo">
    <d2p1:ScNotaFiscalTranspCntr>
      <Id xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">1</Id>
      <NotaFiscalTranspId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">2</NotaFiscalTranspId>
      <CntId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">3</CntId>
      <CodCntr xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">SAMPLE STRING 4</CodCntr>
      <Status xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 5</Status>
      <NumGuiaCaminhao xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 6</NumGuiaCaminhao>
      <NumBooking xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">SAMPLE STRING 7</NumBooking>
      <CnpjCobrade xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 8</CnpjCobrade>
      <UnitGkey xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">9</UnitGkey>
      <StatusDue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 10</StatusDue>
      <IndExcluido xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 11</IndExcluido>
    </d2p1:ScNotaFiscalTranspCntr>
    <d2p1:ScNotaFiscalTranspCntr>
      <Id xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">1</Id>
      <NotaFiscalTranspId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">2</NotaFiscalTranspId>
      <CntId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">3</CntId>
      <CodCntr xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">SAMPLE STRING 4</CodCntr>
      <Status xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 5</Status>
      <NumGuiaCaminhao xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 6</NumGuiaCaminhao>
      <NumBooking xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">SAMPLE STRING 7</NumBooking>
      <CnpjCobrade xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 8</CnpjCobrade>
      <UnitGkey xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">9</UnitGkey>
      <StatusDue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 10</StatusDue>
      <IndExcluido xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 11</IndExcluido>
    </d2p1:ScNotaFiscalTranspCntr>
  </ListaCntr>
  <ListaItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Modelo">
    <d2p1:ScNotaFiscalTranspItem>
      <Id xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">1</Id>
      <NotaFiscalTranspId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">2</NotaFiscalTranspId>
      <MercId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">3</MercId>
      <QtdItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">4</QtdItem>
      <ValItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">5</ValItem>
      <PesoItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">6</PesoItem>
      <NcmMerc xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 7</NcmMerc>
      <CodCfop xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">8</CodCfop>
      <IndExcluido xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 9</IndExcluido>
    </d2p1:ScNotaFiscalTranspItem>
    <d2p1:ScNotaFiscalTranspItem>
      <Id xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">1</Id>
      <NotaFiscalTranspId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">2</NotaFiscalTranspId>
      <MercId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">3</MercId>
      <QtdItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">4</QtdItem>
      <ValItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">5</ValItem>
      <PesoItem xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">6</PesoItem>
      <NcmMerc xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 7</NcmMerc>
      <CodCfop xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal" xmlns="">8</CodCfop>
      <IndExcluido xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 9</IndExcluido>
    </d2p1:ScNotaFiscalTranspItem>
  </ListaItem>
  <Mensagem>sample string 2</Mensagem>
  <Nf xmlns:d2p1="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Modelo">
    <Id xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</Id>
    <Status xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Status>
    <NumNotaTransp xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">SAMPLE STRING 3</NumNotaTransp>
    <SerieNotaTransp xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">SAMPLE STRING 4</SerieNotaTransp>
    <DatEmissao xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:dateTime" xmlns="">2025-06-06T20:26:36.2437211-03:00</DatEmissao>
    <TranspId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">5</TranspId>
    <DatSaidaEmissor xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:dateTime" xmlns="">2025-06-06T20:26:36.2437211-03:00</DatSaidaEmissor>
    <ParcIdEmiss xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">6</ParcIdEmiss>
    <EstabIdEmiss xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">7</EstabIdEmiss>
    <CnpjDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 8</CnpjDest>
    <RazaoSocialDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">SAMPLE STRING 9</RazaoSocialDest>
    <CdPaisDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 10</CdPaisDest>
    <CdUnidadeFedDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 11</CdUnidadeFedDest>
    <NomCidadeDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 12</NomCidadeDest>
    <InscrEstadDest xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 13</InscrEstadDest>
    <Operacao xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">14</Operacao>
    <CodCfop xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">15</CodCfop>
    <ValIpi xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">16</ValIpi>
    <ValIcms xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">17</ValIcms>
    <QtdTotal xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">18</QtdTotal>
    <ValTotal xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">19</ValTotal>
    <PesoTotal xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">20</PesoTotal>
    <Membershipuserid xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">21</Membershipuserid>
    <NumBooking xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 22</NumBooking>
    <ChaveNfe xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">SAMPLE STRING 23</ChaveNfe>
    <FlagBagagem xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 24</FlagBagagem>
    <XmlNota xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 25</XmlNota>
    <Ruc xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 26</Ruc>
    <StatusDue xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 27</StatusDue>
    <TruckVisitAppointmentNbr xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">28</TruckVisitAppointmentNbr>
    <FlagBitrem xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 29</FlagBitrem>
    <Cnpjs xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 30</Cnpjs>
    <RazaoSocialEmissor xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">SAMPLE STRING 31</RazaoSocialEmissor>
  </Nf>
  <Sucesso>true</Sucesso>
</Result>