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": "688124bd-cd63-4ef0-9f16-ab673f56205d",
    "QuantidadeRegistros": 2
  },
  {
    "Token": "688124bd-cd63-4ef0-9f16-ab673f56205d",
    "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>688124bd-cd63-4ef0-9f16-ab673f56205d</Token>
  </LojaSyncBindingModel>
  <LojaSyncBindingModel>
    <QuantidadeRegistros>2</QuantidadeRegistros>
    <Token>688124bd-cd63-4ef0-9f16-ab673f56205d</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": "5ecc6963-eed4-4b7a-a420-0c38abea8550",
      "Itens": null
    },
    {
      "Index": 1,
      "Token": "5ecc6963-eed4-4b7a-a420-0c38abea8550",
      "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>5ecc6963-eed4-4b7a-a420-0c38abea8550</Token>
    </LojaSync_SyncResultItem>
    <LojaSync_SyncResultItem>
      <Index>1</Index>
      <Itens xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Token>5ecc6963-eed4-4b7a-a420-0c38abea8550</Token>
    </LojaSync_SyncResultItem>
  </Itens>
  <Success>true</Success>
</LojaSync_SyncResult>