...
Bloco de código | ||
---|---|---|
| ||
POST /totvseai/standardmessage/v1/transactions?batchType=businessTransaction
{
"items" : [
{
"header" : {
"UUID" : "",
"type" : "BusinessMessage",
"subType" : "event|request",
"transaction" : "customerVendor",
"version" : "2.001",
"sourceApplication": "",
"productName" : "",
"productVersion" : "",
"generatedOn" : "",
"deliveryType" : "async",
},
"content" : {
"atributo1" : "",
"atributo2" : "",
...
"atributoN" : ""
}
},{
"header" : {
"UUID" : "",
...
"transaction" : "item",
"version" : "3.001",
...
"deliveryType" : "sync" // Rejeitar toda a requisição e informar que só aceita assíncrono
},
"content" : {
"atributo1" : "",
"atributo2" : "",
...
"atributoN" : ""
}
}
]
} |
...
Bloco de código | ||
---|---|---|
| ||
POST /totvseai/standardmessage/v1/transactions?batchType=simpleBatch { "header" : { "UUID" : "", "type" : "BusinessMessage", "subType" : "event|request", "transaction" : "customerVendor", "version" : "2.001", "sourceApplication": "", "productName" : "", "productVersion" : "", "generatedOn" : "", "deliveryType" : "async", }, "content" : { "items" : [ { "atributo1" : "valorA1", "atributo2" : "valorA2", ... "atributoN" : "valorAN" }, { "atributo1" : "valorB1", "atributo2" : "valorB2", ... "atributoN" : "valorBN" } ] } } |
...
Bloco de código | ||
---|---|---|
| ||
POST /totvseai/standardmessage/v1/transactions/customervendor_1_000?batchType=simpleBatch|businessTransaction { "items" : [ { "atributo1" : "valorA1", "atributo2" : "valorA2", ... "atributoN" : "valorAN" }, { "atributo1" : "valorB1", "atributo2" : "valorB2", ... "atributoN" : "valorBN" } ] } |
...
Tratar como event ou request.
Bloco de código | ||
---|---|---|
| ||
POST /totvseai/standardmessage/v1/transactions/customervendor_1_000/ { "atributo1" : "", "atributo2" : "", ... "atributoN" : "" } |
...
Bloco de código | ||
---|---|---|
| ||
POST /totvseai/standardmessage/v1/transactions/ { "header" : { "UUID" : "", "type" : "BusinessMessage", "subType" : "event|request", "transaction" : "customerVendor", "version" : "2.001", "sourceApplication": "", "productName" : "", "productVersion" : "", "generatedOn" : "", "deliveryType" : "async", }, "content" : { "atributo1" : "", "atributo2" : "", ... "atributoN" : "" } } |
Bloco de código | ||
---|---|---|
| ||
DELETE /totvseai/standardmessage/v1/transactions { "header" : { "UUID" : "", "type" : "BusinessMessage", "subType" : "event|request", "transaction" : "customerVendor", "version" : "2.001", "sourceApplication": "", "productName" : "", "productVersion" : "", "generatedOn" : "", "deliveryType" : "async", }, "content" : { "atributo1" : "", "atributo2" : "", ... "atributoN" : "" } } |
Bloco de código | ||
---|---|---|
| ||
DELETE /totvseai/standardmessage/v1/transactions { "items" : [ { "header" : { "UUID" : "", "type" : "BusinessMessage", "subType" : "event|request", "transaction" : "customerVendor", "version" : "2.001", "sourceApplication": "", "productName" : "", "productVersion" : "", "generatedOn" : "", "deliveryType" : "async", }, "content" : { "atributo1" : "", "atributo2" : "", ... "atributoN" : "" } }, { "header" : { "UUID" : "", "type" : "BusinessMessage", "subType" : "event|request", "transaction" : "customerVendor", "version" : "2.001", "sourceApplication": "", "productName" : "", "productVersion" : "", "generatedOn" : "", "deliveryType" : "async", }, "content" : { "atributo1" : "", "atributo2" : "", ... "atributoN" : "" } } ] } |
...