POST api/v2/lojasync/sync
Request Information
URI Parameters
None.
Body Parameters
Collection of LojaSyncBindingModelName | Description | Type | Additional information |
---|---|---|---|
Token | globally unique identifier |
Required |
|
QuantidadeRegistros | integer |
Required |
Request Formats
application/json, text/json
Sample:
[ { "Token": "07844922-2aed-4508-b726-343c52c1b34e", "QuantidadeRegistros": 2 }, { "Token": "07844922-2aed-4508-b726-343c52c1b34e", "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>07844922-2aed-4508-b726-343c52c1b34e</Token> </LojaSyncBindingModel> <LojaSyncBindingModel> <QuantidadeRegistros>2</QuantidadeRegistros> <Token>07844922-2aed-4508-b726-343c52c1b34e</Token> </LojaSyncBindingModel> </ArrayOfLojaSyncBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LojaSync_SyncResultName | Description | Type | Additional 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": "a6eca77f-970a-4b38-9a56-2052aed0f42b", "Itens": null }, { "Index": 1, "Token": "a6eca77f-970a-4b38-9a56-2052aed0f42b", "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>a6eca77f-970a-4b38-9a56-2052aed0f42b</Token> </LojaSync_SyncResultItem> <LojaSync_SyncResultItem> <Index>1</Index> <Itens xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <Token>a6eca77f-970a-4b38-9a56-2052aed0f42b</Token> </LojaSync_SyncResultItem> </Itens> <Success>true</Success> </LojaSync_SyncResult>