POST API/AgendServManter/ValidarAtribuirMesmoNcmParaTodosOsItens?ncm={ncm}&agendTipoServId={agendTipoServId}&numeroBl={numeroBl}

Valida e atribui o mesmo NCM para todos os itens

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ncm

string

Required

agendTipoServId

decimal number

Required

numeroBl

string

Required

Body Parameters

Collection of WilsonSons.Terminais.WSNegocio.Modelo.VwAgendServItem
NameDescriptionTypeAdditional information
BlId

decimal number

None.

NumeroBl

string

None.

AgendServId

decimal number

None.

AgendServItemId

decimal number

None.

IndStatus

string

None.

HstmvId

decimal number

None.

CodCntr

string

None.

Volumes

decimal number

None.

NotasFiscais

string

None.

Instancia

WilsonSons.Arquitetura.Framework.GenericObjectHandler.Modelo.BaseDTO

None.

Estado

System.Data.DataRowState

None.

Filtrado

boolean

None.

Original

WilsonSons.Arquitetura.Framework.GenericObjectHandler.Modelo.BaseDTO

None.

FoiAlterado

boolean

None.

Lista

Collection of Object

None.

EdicaoIniciada

boolean

None.

AdicaoPendente

boolean

None.

ErroValidacao

string

None.

ErroValidacaoItem

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "BlId": 1.0,
    "NumeroBl": "sample string 2",
    "AgendServId": 3.0,
    "AgendServItemId": 4.0,
    "IndStatus": "sample string 5",
    "HstmvId": 1.0,
    "CodCntr": "sample string 6",
    "Volumes": 1.0,
    "NotasFiscais": "sample string 7"
  },
  {
    "BlId": 1.0,
    "NumeroBl": "sample string 2",
    "AgendServId": 3.0,
    "AgendServItemId": 4.0,
    "IndStatus": "sample string 5",
    "HstmvId": 1.0,
    "CodCntr": "sample string 6",
    "Volumes": 1.0,
    "NotasFiscais": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfVwAgendServItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Modelo">
  <VwAgendServItem>
    <BlId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</BlId>
    <NumeroBl xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</NumeroBl>
    <AgendServId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">3</AgendServId>
    <AgendServItemId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">4</AgendServItemId>
    <IndStatus xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 5</IndStatus>
    <HstmvId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</HstmvId>
    <CodCntr xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 6</CodCntr>
    <Volumes xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</Volumes>
    <NotasFiscais xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 7</NotasFiscais>
  </VwAgendServItem>
  <VwAgendServItem>
    <BlId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</BlId>
    <NumeroBl xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</NumeroBl>
    <AgendServId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">3</AgendServId>
    <AgendServItemId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">4</AgendServItemId>
    <IndStatus xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 5</IndStatus>
    <HstmvId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</HstmvId>
    <CodCntr xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 6</CodCntr>
    <Volumes xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</Volumes>
    <NotasFiscais xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 7</NotasFiscais>
  </VwAgendServItem>
</ArrayOfVwAgendServItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of WilsonSons.Terminais.WSNegocio.Modelo.VwAgendServItemMerc
NameDescriptionTypeAdditional information
AgendServItemMercId

decimal number

None.

AgendServId

decimal number

None.

AgendServItemId

decimal number

None.

MercId

decimal number

None.

MrcAntaqId

string

None.

Instancia

WilsonSons.Arquitetura.Framework.GenericObjectHandler.Modelo.BaseDTO

None.

Estado

System.Data.DataRowState

None.

Filtrado

boolean

None.

Original

WilsonSons.Arquitetura.Framework.GenericObjectHandler.Modelo.BaseDTO

None.

FoiAlterado

boolean

None.

Lista

Collection of Object

None.

EdicaoIniciada

boolean

None.

AdicaoPendente

boolean

None.

ErroValidacao

string

None.

ErroValidacaoItem

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AgendServItemMercId": 1.0,
    "AgendServId": 2.0,
    "AgendServItemId": 3.0,
    "MercId": 4.0,
    "MrcAntaqId": "sample string 5"
  },
  {
    "AgendServItemMercId": 1.0,
    "AgendServId": 2.0,
    "AgendServItemId": 3.0,
    "MercId": 4.0,
    "MrcAntaqId": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfVwAgendServItemMerc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WilsonSons.Terminais.WSNegocio.Modelo">
  <VwAgendServItemMerc>
    <AgendServItemMercId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</AgendServItemMercId>
    <AgendServId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">2</AgendServId>
    <AgendServItemId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">3</AgendServItemId>
    <MercId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">4</MercId>
    <MrcAntaqId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 5</MrcAntaqId>
  </VwAgendServItemMerc>
  <VwAgendServItemMerc>
    <AgendServItemMercId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">1</AgendServItemMercId>
    <AgendServId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">2</AgendServId>
    <AgendServItemId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">3</AgendServItemId>
    <MercId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:decimal" xmlns="">4</MercId>
    <MrcAntaqId xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 5</MrcAntaqId>
  </VwAgendServItemMerc>
</ArrayOfVwAgendServItemMerc>