POST api/CotacaoMoeda/Cotacao

Request Information

URI Parameters

None.

Body Parameters

TaxaCambio
NameDescriptionTypeAdditional information
ccIPClient

string

None.

cdCotacao

date

None.

cvIdMoeda

integer

None.

cvIdTaxaCambio

integer

None.

cvParidadeCompra

decimal number

None.

cvParidadeVenda

decimal number

None.

cvTaxaCompra

decimal number

None.

cvTaxaVenda

decimal number

None.

Moeda

Moeda

None.

cdCotacaoInicio

date

None.

cdCotacaoFim

date

None.

cdAtualizacao

date

None.

cvIdUsuarioSessao

integer

None.

ccNomeUsuarioSessao

string

None.

ccRet

string

None.

ccMensagem

string

None.

cvPageIndex

integer

None.

cvTotalRecordsPage

integer

None.

Validacao

Collection of ValidacaoRoboCotacao

None.

Request Formats

application/json, text/json

Sample:
{
  "ccIPClient": "sample string 1",
  "cdCotacao": "2024-11-07T21:24:25.7279238+00:00",
  "cvIdMoeda": 1,
  "cvIdTaxaCambio": 1,
  "cvParidadeCompra": 1.0,
  "cvParidadeVenda": 1.0,
  "cvTaxaCompra": 1.0,
  "cvTaxaVenda": 1.0,
  "Moeda": {
    "cbAtivo": true,
    "ccCodigo": "sample string 1",
    "ccIPClient": "sample string 2",
    "ccNome": "sample string 3",
    "ccSimbolo": "sample string 4",
    "ccTipoMoeda": "sample string 5",
    "cvIdMoeda": 1,
    "cdAtualizacao": "2024-11-07T21:24:25.7279238+00:00",
    "cvIdUsuarioSessao": 1,
    "ccNomeUsuarioSessao": "sample string 6",
    "ccRet": "sample string 7",
    "ccMensagem": "sample string 8",
    "cvPageIndex": 1,
    "cvTotalRecordsPage": 1,
    "Validacao": [
      {
        "ccInstancia": "sample string 1",
        "ccChaveErro": "sample string 2",
        "ccMensagemErro": "sample string 3"
      },
      {
        "ccInstancia": "sample string 1",
        "ccChaveErro": "sample string 2",
        "ccMensagemErro": "sample string 3"
      }
    ]
  },
  "cdCotacaoInicio": "2024-11-07T21:24:25.7279238+00:00",
  "cdCotacaoFim": "2024-11-07T21:24:25.7279238+00:00",
  "cdAtualizacao": "2024-11-07T21:24:25.7279238+00:00",
  "cvIdUsuarioSessao": 1,
  "ccNomeUsuarioSessao": "sample string 2",
  "ccRet": "sample string 3",
  "ccMensagem": "sample string 4",
  "cvPageIndex": 1,
  "cvTotalRecordsPage": 1,
  "Validacao": [
    {
      "ccInstancia": "sample string 1",
      "ccChaveErro": "sample string 2",
      "ccMensagemErro": "sample string 3"
    },
    {
      "ccInstancia": "sample string 1",
      "ccChaveErro": "sample string 2",
      "ccMensagemErro": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<TaxaCambio xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EY.Tax.RoboCotacao.Entity">
  <Validacao>
    <ValidacaoRoboCotacao>
      <ccChaveErro>sample string 2</ccChaveErro>
      <ccInstancia>sample string 1</ccInstancia>
      <ccMensagemErro>sample string 3</ccMensagemErro>
    </ValidacaoRoboCotacao>
    <ValidacaoRoboCotacao>
      <ccChaveErro>sample string 2</ccChaveErro>
      <ccInstancia>sample string 1</ccInstancia>
      <ccMensagemErro>sample string 3</ccMensagemErro>
    </ValidacaoRoboCotacao>
  </Validacao>
  <ccIPClient i:nil="true" />
  <ccMensagem>sample string 4</ccMensagem>
  <ccNomeUsuarioSessao>sample string 2</ccNomeUsuarioSessao>
  <ccRet>sample string 3</ccRet>
  <cdAtualizacao>2024-11-07T21:24:25.7279238+00:00</cdAtualizacao>
  <cvIdUsuarioSessao>1</cvIdUsuarioSessao>
  <cvPageIndex>1</cvPageIndex>
  <cvTotalRecordsPage>1</cvTotalRecordsPage>
  <Moeda>
    <Validacao>
      <ValidacaoRoboCotacao>
        <ccChaveErro>sample string 2</ccChaveErro>
        <ccInstancia>sample string 1</ccInstancia>
        <ccMensagemErro>sample string 3</ccMensagemErro>
      </ValidacaoRoboCotacao>
      <ValidacaoRoboCotacao>
        <ccChaveErro>sample string 2</ccChaveErro>
        <ccInstancia>sample string 1</ccInstancia>
        <ccMensagemErro>sample string 3</ccMensagemErro>
      </ValidacaoRoboCotacao>
    </Validacao>
    <ccIPClient i:nil="true" />
    <ccMensagem>sample string 8</ccMensagem>
    <ccNomeUsuarioSessao>sample string 6</ccNomeUsuarioSessao>
    <ccRet>sample string 7</ccRet>
    <cdAtualizacao>2024-11-07T21:24:25.7279238+00:00</cdAtualizacao>
    <cvIdUsuarioSessao>1</cvIdUsuarioSessao>
    <cvPageIndex>1</cvPageIndex>
    <cvTotalRecordsPage>1</cvTotalRecordsPage>
    <cbAtivo>true</cbAtivo>
    <ccCodigo>sample string 1</ccCodigo>
    <ccIPClient>sample string 2</ccIPClient>
    <ccNome>sample string 3</ccNome>
    <ccSimbolo>sample string 4</ccSimbolo>
    <ccTipoMoeda>sample string 5</ccTipoMoeda>
    <cvIdMoeda>1</cvIdMoeda>
  </Moeda>
  <ccIPClient>sample string 1</ccIPClient>
  <cdCotacao>2024-11-07T21:24:25.7279238+00:00</cdCotacao>
  <cdCotacaoFim>2024-11-07T21:24:25.7279238+00:00</cdCotacaoFim>
  <cdCotacaoInicio>2024-11-07T21:24:25.7279238+00:00</cdCotacaoInicio>
  <cvIdMoeda>1</cvIdMoeda>
  <cvIdTaxaCambio>1</cvIdTaxaCambio>
  <cvParidadeCompra>1</cvParidadeCompra>
  <cvParidadeVenda>1</cvParidadeVenda>
  <cvTaxaCompra>1</cvTaxaCompra>
  <cvTaxaVenda>1</cvTaxaVenda>
</TaxaCambio>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnCotacao
NameDescriptionTypeAdditional information
Success

boolean

None.

Data

Collection of TaxaCambio

None.

Ex

Exception

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": [
    {
      "ccIPClient": "sample string 1",
      "cdCotacao": "2024-11-07T21:24:25.7435524+00:00",
      "cvIdMoeda": 1,
      "cvIdTaxaCambio": 1,
      "cvParidadeCompra": 1.0,
      "cvParidadeVenda": 1.0,
      "cvTaxaCompra": 1.0,
      "cvTaxaVenda": 1.0,
      "Moeda": {
        "cbAtivo": true,
        "ccCodigo": "sample string 1",
        "ccIPClient": "sample string 2",
        "ccNome": "sample string 3",
        "ccSimbolo": "sample string 4",
        "ccTipoMoeda": "sample string 5",
        "cvIdMoeda": 1,
        "cdAtualizacao": "2024-11-07T21:24:25.7435524+00:00",
        "cvIdUsuarioSessao": 1,
        "ccNomeUsuarioSessao": "sample string 6",
        "ccRet": "sample string 7",
        "ccMensagem": "sample string 8",
        "cvPageIndex": 1,
        "cvTotalRecordsPage": 1,
        "Validacao": [
          {
            "ccInstancia": "sample string 1",
            "ccChaveErro": "sample string 2",
            "ccMensagemErro": "sample string 3"
          },
          {
            "ccInstancia": "sample string 1",
            "ccChaveErro": "sample string 2",
            "ccMensagemErro": "sample string 3"
          }
        ]
      },
      "cdCotacaoInicio": "2024-11-07T21:24:25.7435524+00:00",
      "cdCotacaoFim": "2024-11-07T21:24:25.7435524+00:00",
      "cdAtualizacao": "2024-11-07T21:24:25.7435524+00:00",
      "cvIdUsuarioSessao": 1,
      "ccNomeUsuarioSessao": "sample string 2",
      "ccRet": "sample string 3",
      "ccMensagem": "sample string 4",
      "cvPageIndex": 1,
      "cvTotalRecordsPage": 1,
      "Validacao": [
        {
          "ccInstancia": "sample string 1",
          "ccChaveErro": "sample string 2",
          "ccMensagemErro": "sample string 3"
        },
        {
          "ccInstancia": "sample string 1",
          "ccChaveErro": "sample string 2",
          "ccMensagemErro": "sample string 3"
        }
      ]
    },
    {
      "ccIPClient": "sample string 1",
      "cdCotacao": "2024-11-07T21:24:25.7435524+00:00",
      "cvIdMoeda": 1,
      "cvIdTaxaCambio": 1,
      "cvParidadeCompra": 1.0,
      "cvParidadeVenda": 1.0,
      "cvTaxaCompra": 1.0,
      "cvTaxaVenda": 1.0,
      "Moeda": {
        "cbAtivo": true,
        "ccCodigo": "sample string 1",
        "ccIPClient": "sample string 2",
        "ccNome": "sample string 3",
        "ccSimbolo": "sample string 4",
        "ccTipoMoeda": "sample string 5",
        "cvIdMoeda": 1,
        "cdAtualizacao": "2024-11-07T21:24:25.7435524+00:00",
        "cvIdUsuarioSessao": 1,
        "ccNomeUsuarioSessao": "sample string 6",
        "ccRet": "sample string 7",
        "ccMensagem": "sample string 8",
        "cvPageIndex": 1,
        "cvTotalRecordsPage": 1,
        "Validacao": [
          {
            "ccInstancia": "sample string 1",
            "ccChaveErro": "sample string 2",
            "ccMensagemErro": "sample string 3"
          },
          {
            "ccInstancia": "sample string 1",
            "ccChaveErro": "sample string 2",
            "ccMensagemErro": "sample string 3"
          }
        ]
      },
      "cdCotacaoInicio": "2024-11-07T21:24:25.7435524+00:00",
      "cdCotacaoFim": "2024-11-07T21:24:25.7435524+00:00",
      "cdAtualizacao": "2024-11-07T21:24:25.7435524+00:00",
      "cvIdUsuarioSessao": 1,
      "ccNomeUsuarioSessao": "sample string 2",
      "ccRet": "sample string 3",
      "ccMensagem": "sample string 4",
      "cvPageIndex": 1,
      "cvTotalRecordsPage": 1,
      "Validacao": [
        {
          "ccInstancia": "sample string 1",
          "ccChaveErro": "sample string 2",
          "ccMensagemErro": "sample string 3"
        },
        {
          "ccInstancia": "sample string 1",
          "ccChaveErro": "sample string 2",
          "ccMensagemErro": "sample string 3"
        }
      ]
    }
  ],
  "Ex": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}

application/xml, text/xml

Sample:
<ReturnCotacao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EY.Tax.LocalOne.API.Controllers">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/EY.Tax.RoboCotacao.Entity">
    <d2p1:TaxaCambio>
      <d2p1:Validacao>
        <d2p1:ValidacaoRoboCotacao>
          <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
          <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
          <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
        </d2p1:ValidacaoRoboCotacao>
        <d2p1:ValidacaoRoboCotacao>
          <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
          <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
          <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
        </d2p1:ValidacaoRoboCotacao>
      </d2p1:Validacao>
      <d2p1:ccIPClient i:nil="true" />
      <d2p1:ccMensagem>sample string 4</d2p1:ccMensagem>
      <d2p1:ccNomeUsuarioSessao>sample string 2</d2p1:ccNomeUsuarioSessao>
      <d2p1:ccRet>sample string 3</d2p1:ccRet>
      <d2p1:cdAtualizacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdAtualizacao>
      <d2p1:cvIdUsuarioSessao>1</d2p1:cvIdUsuarioSessao>
      <d2p1:cvPageIndex>1</d2p1:cvPageIndex>
      <d2p1:cvTotalRecordsPage>1</d2p1:cvTotalRecordsPage>
      <d2p1:Moeda>
        <d2p1:Validacao>
          <d2p1:ValidacaoRoboCotacao>
            <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
            <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
            <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
          </d2p1:ValidacaoRoboCotacao>
          <d2p1:ValidacaoRoboCotacao>
            <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
            <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
            <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
          </d2p1:ValidacaoRoboCotacao>
        </d2p1:Validacao>
        <d2p1:ccIPClient i:nil="true" />
        <d2p1:ccMensagem>sample string 8</d2p1:ccMensagem>
        <d2p1:ccNomeUsuarioSessao>sample string 6</d2p1:ccNomeUsuarioSessao>
        <d2p1:ccRet>sample string 7</d2p1:ccRet>
        <d2p1:cdAtualizacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdAtualizacao>
        <d2p1:cvIdUsuarioSessao>1</d2p1:cvIdUsuarioSessao>
        <d2p1:cvPageIndex>1</d2p1:cvPageIndex>
        <d2p1:cvTotalRecordsPage>1</d2p1:cvTotalRecordsPage>
        <d2p1:cbAtivo>true</d2p1:cbAtivo>
        <d2p1:ccCodigo>sample string 1</d2p1:ccCodigo>
        <d2p1:ccIPClient>sample string 2</d2p1:ccIPClient>
        <d2p1:ccNome>sample string 3</d2p1:ccNome>
        <d2p1:ccSimbolo>sample string 4</d2p1:ccSimbolo>
        <d2p1:ccTipoMoeda>sample string 5</d2p1:ccTipoMoeda>
        <d2p1:cvIdMoeda>1</d2p1:cvIdMoeda>
      </d2p1:Moeda>
      <d2p1:ccIPClient>sample string 1</d2p1:ccIPClient>
      <d2p1:cdCotacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacao>
      <d2p1:cdCotacaoFim>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacaoFim>
      <d2p1:cdCotacaoInicio>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacaoInicio>
      <d2p1:cvIdMoeda>1</d2p1:cvIdMoeda>
      <d2p1:cvIdTaxaCambio>1</d2p1:cvIdTaxaCambio>
      <d2p1:cvParidadeCompra>1</d2p1:cvParidadeCompra>
      <d2p1:cvParidadeVenda>1</d2p1:cvParidadeVenda>
      <d2p1:cvTaxaCompra>1</d2p1:cvTaxaCompra>
      <d2p1:cvTaxaVenda>1</d2p1:cvTaxaVenda>
    </d2p1:TaxaCambio>
    <d2p1:TaxaCambio>
      <d2p1:Validacao>
        <d2p1:ValidacaoRoboCotacao>
          <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
          <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
          <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
        </d2p1:ValidacaoRoboCotacao>
        <d2p1:ValidacaoRoboCotacao>
          <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
          <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
          <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
        </d2p1:ValidacaoRoboCotacao>
      </d2p1:Validacao>
      <d2p1:ccIPClient i:nil="true" />
      <d2p1:ccMensagem>sample string 4</d2p1:ccMensagem>
      <d2p1:ccNomeUsuarioSessao>sample string 2</d2p1:ccNomeUsuarioSessao>
      <d2p1:ccRet>sample string 3</d2p1:ccRet>
      <d2p1:cdAtualizacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdAtualizacao>
      <d2p1:cvIdUsuarioSessao>1</d2p1:cvIdUsuarioSessao>
      <d2p1:cvPageIndex>1</d2p1:cvPageIndex>
      <d2p1:cvTotalRecordsPage>1</d2p1:cvTotalRecordsPage>
      <d2p1:Moeda>
        <d2p1:Validacao>
          <d2p1:ValidacaoRoboCotacao>
            <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
            <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
            <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
          </d2p1:ValidacaoRoboCotacao>
          <d2p1:ValidacaoRoboCotacao>
            <d2p1:ccChaveErro>sample string 2</d2p1:ccChaveErro>
            <d2p1:ccInstancia>sample string 1</d2p1:ccInstancia>
            <d2p1:ccMensagemErro>sample string 3</d2p1:ccMensagemErro>
          </d2p1:ValidacaoRoboCotacao>
        </d2p1:Validacao>
        <d2p1:ccIPClient i:nil="true" />
        <d2p1:ccMensagem>sample string 8</d2p1:ccMensagem>
        <d2p1:ccNomeUsuarioSessao>sample string 6</d2p1:ccNomeUsuarioSessao>
        <d2p1:ccRet>sample string 7</d2p1:ccRet>
        <d2p1:cdAtualizacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdAtualizacao>
        <d2p1:cvIdUsuarioSessao>1</d2p1:cvIdUsuarioSessao>
        <d2p1:cvPageIndex>1</d2p1:cvPageIndex>
        <d2p1:cvTotalRecordsPage>1</d2p1:cvTotalRecordsPage>
        <d2p1:cbAtivo>true</d2p1:cbAtivo>
        <d2p1:ccCodigo>sample string 1</d2p1:ccCodigo>
        <d2p1:ccIPClient>sample string 2</d2p1:ccIPClient>
        <d2p1:ccNome>sample string 3</d2p1:ccNome>
        <d2p1:ccSimbolo>sample string 4</d2p1:ccSimbolo>
        <d2p1:ccTipoMoeda>sample string 5</d2p1:ccTipoMoeda>
        <d2p1:cvIdMoeda>1</d2p1:cvIdMoeda>
      </d2p1:Moeda>
      <d2p1:ccIPClient>sample string 1</d2p1:ccIPClient>
      <d2p1:cdCotacao>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacao>
      <d2p1:cdCotacaoFim>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacaoFim>
      <d2p1:cdCotacaoInicio>2024-11-07T21:24:25.7435524+00:00</d2p1:cdCotacaoInicio>
      <d2p1:cvIdMoeda>1</d2p1:cvIdMoeda>
      <d2p1:cvIdTaxaCambio>1</d2p1:cvIdTaxaCambio>
      <d2p1:cvParidadeCompra>1</d2p1:cvParidadeCompra>
      <d2p1:cvParidadeVenda>1</d2p1:cvParidadeVenda>
      <d2p1:cvTaxaCompra>1</d2p1:cvTaxaCompra>
      <d2p1:cvTaxaVenda>1</d2p1:cvTaxaVenda>
    </d2p1:TaxaCambio>
  </Data>
  <Ex xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Ex>
  <Success>true</Success>
</ReturnCotacao>