Monetate Engine API
Decision
Request Decisions
POST
Path Parameters
retailerShortname
string
*
Body Parameters
body
HttpRequestBody
*
Example
{
"deviceId": "device id",
"monetateId": "monetate id",
"preview": "preview token",
"customerId": "customer id",
"events": [
{
"eventType": "Event"
}
]
}
Description
The request containing the events requiring decisioning.
deviceId
string
customerId
string
events
Event[]
*
monetateId
string
preview
string
channel
string
sdkVersion
string
Responses
200
The request was succesful and the payload will include valid Actions.
HttpResponseBody
Example
{
"meta": {
"code": 200,
"errors": [],
"warnings": [],
"monetateId": "monetate id"
},
"data": {
"responses": [
{
"requestId": "12345",
"actions": [
{
"actionType": "Action"
}
]
}
]
}
}
Description
The request was succesful and the payload will include valid Actions.
data
ResponseData
*
meta
Meta
400
Invalid request.
The request was either malformated (did not follow this specification) or the data sent was invalid.
HttpResponseBody
Example
{
"meta": {
"code": 200,
"errors": [],
"warnings": [],
"monetateId": "monetate id"
},
"data": {
"responses": [
{
"requestId": "12345",
"actions": [
{
"actionType": "Action"
}
]
}
]
}
}
Description
Invalid request.
The request was either malformated (did not follow this specification) or the data sent was invalid.
data
ResponseData
*
meta
Meta