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": "6344ec01-7b92-45c4-8129-7c6ba476700a",
    "QuantidadeRegistros": 2
  },
  {
    "Token": "6344ec01-7b92-45c4-8129-7c6ba476700a",
    "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>6344ec01-7b92-45c4-8129-7c6ba476700a</Token>
  </LojaSyncBindingModel>
  <LojaSyncBindingModel>
    <QuantidadeRegistros>2</QuantidadeRegistros>
    <Token>6344ec01-7b92-45c4-8129-7c6ba476700a</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": "0ca4df13-38fe-4ccb-b36f-cf387b178fec",
      "Itens": null
    },
    {
      "Index": 1,
      "Token": "0ca4df13-38fe-4ccb-b36f-cf387b178fec",
      "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>0ca4df13-38fe-4ccb-b36f-cf387b178fec</Token>
    </LojaSync_SyncResultItem>
    <LojaSync_SyncResultItem>
      <Index>1</Index>
      <Itens xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Token>0ca4df13-38fe-4ccb-b36f-cf387b178fec</Token>
    </LojaSync_SyncResultItem>
  </Itens>
  <Success>true</Success>
</LojaSync_SyncResult>