Skip to content

Instantly share code, notes, and snippets.

@matheusoliveira-luizalabs
Last active September 5, 2016 12:59
Show Gist options
  • Select an option

  • Save matheusoliveira-luizalabs/75a0a05d0e42d2c903941fa36ab7ab0e to your computer and use it in GitHub Desktop.

Select an option

Save matheusoliveira-luizalabs/75a0a05d0e42d2c903941fa36ab7ab0e to your computer and use it in GitHub Desktop.
Message Center API

Message Center API

{
"id": "57b98e92d5eb6b1100e50910",
"order": {
"salesOrderNumber": 12323235,
"ecommerceOrderNumber": 28258915,
"customerOrderNumber": "4603500212490095"
},
"event": {
"code": 1,
"title": "Entrega Realizada",
"customerTitle": "Entrega Realizada",
"channel": {
"id": 1,
"name": "B2B"
},
"platform": {
"id": 5,
"name": "ADMSITE"
},
"createdBy": "MAHE_OLIVEIRA",
"createdAt": "2016-08-20T16:42:29.801Z"
},
"object": {
"note": "Placa",
"invoice": {
"number": 1234,
"serie": 12,
"createdAt": "2016-08-20T16:42:29.801Z"
},
"delivery": {
"supplier": {
"id": 1,
"name": "E-Sedex"
},
"package": {
"trackNumber": "431243124231BR",
"url": "https://correios.com.br/rastreio/431243124231BR"
}
}
}
}
{
"name" : "Envio email de Produto Entregue ",
"event": {
"code" : 1,
"platform": {
"id": 1,
"name": "TRACKING"
}
},
"exceptionChannels" : [
{
"id": 1,
"name": "B2B"
}
],
"notificationTypes" : [
{
"type": {
"id": 1,
"name": "sms"
},
"message" : "Seu Pedido {customer_order_id} foi entregue."
},
{
"type" : {
"id": 2,
"name": "email"
},
"templateId" : 80
}
]
}
{
"id": "57b98e92d5eb6b1100e50910",
"name" : "Envio email de Produto Entregue ",
"event": {
"code": 1,
"platform": {
"id": 1,
"name": "TRACKING"
}
},
"exceptionChannels" : [
{
"id": 1,
"name": "B2B"
}
],
"notificationTypes" : [
{
"type": {
"id": 1,
"name": "sms"
},
"message" : "Seu Pedido {customer_order_id} foi entregue."
},
{
"type": {
"id": 2,
"name": "email"
},
"templateId" : 80
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment