POST api/v2/lojasync/sync

Request Information

URI Parameters

None.

Body Parameters

Collection of LojaSyncBindingModel
NameDescriptionTypeAdditional information
Token

globally unique identifier

Required

QuantidadeRegistros

integer

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "Token": "39c18118-683a-4095-bc62-ccdc069064cd",
    "QuantidadeRegistros": 2
  },
  {
    "Token": "39c18118-683a-4095-bc62-ccdc069064cd",
    "QuantidadeRegistros": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfLojaSyncBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v2.BindingModels">
  <LojaSyncBindingModel>
    <QuantidadeRegistros>2</QuantidadeRegistros>
    <Token>39c18118-683a-4095-bc62-ccdc069064cd</Token>
  </LojaSyncBindingModel>
  <LojaSyncBindingModel>
    <QuantidadeRegistros>2</QuantidadeRegistros>
    <Token>39c18118-683a-4095-bc62-ccdc069064cd</Token>
  </LojaSyncBindingModel>
</ArrayOfLojaSyncBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LojaSync_SyncResult
NameDescriptionTypeAdditional information
Erro

LojaSyncError

None.

Success

boolean

None.

Itens

Collection of LojaSync_SyncResultItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Erro": {
    "Codigo": 1,
    "Descricao": "sample string 2"
  },
  "Success": true,
  "Itens": [
    {
      "Index": 1,
      "Token": "4dd79dfb-c403-4a93-978c-c70bcd288c98",
      "Itens": null
    },
    {
      "Index": 1,
      "Token": "4dd79dfb-c403-4a93-978c-c70bcd288c98",
      "Itens": null
    }
  ]
}

application/xml, text/xml

Sample:
<LojaSync_SyncResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v2.Result">
  <Erro>
    <Codigo>1</Codigo>
    <Descricao>sample string 2</Descricao>
  </Erro>
  <Itens>
    <LojaSync_SyncResultItem>
      <Index>1</Index>
      <Itens xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Token>4dd79dfb-c403-4a93-978c-c70bcd288c98</Token>
    </LojaSync_SyncResultItem>
    <LojaSync_SyncResultItem>
      <Index>1</Index>
      <Itens xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Token>4dd79dfb-c403-4a93-978c-c70bcd288c98</Token>
    </LojaSync_SyncResultItem>
  </Itens>
  <Success>true</Success>
</LojaSync_SyncResult>