Order Notifications
get available notification types
request
GET /api/v2/notification/order/999999991 HTTP/1.1
Parameter | Description |
---|---|
|
Order ID |
response
HTTP/1.1 200 OK
{
"canSendPush" : true,
"canSendEmail" : true,
"canSendSms" : true
}
Path | Type | Description |
---|---|---|
|
|
Whether push notifications can be sent for the order |
|
|
Whether email notifications can be sent for the order |
|
|
Whether SMS notifications can be sent for the order |
send order notification
request
POST /api/v2/notification/order/999999991 HTTP/1.1
{
"type" : "EMAIL",
"message" : "Ваш заказ готов к выдаче в нашей оптике",
"subject" : "Заказ готов"
}
Parameter | Description |
---|---|
|
Order ID |
Path | Type | Description | Constraints |
---|---|---|---|
type |
String |
Notification type (NOTIFICATION for push, EMAIL, SMS) |
Must not be null |
message |
String |
Notification message text |
Must not be blank. |
subject |
String |
Email subject (required only for EMAIL type) |
Size must be between 0 and 280 inclusive |
price |
Number |
Notification price |
response
HTTP/1.1 200 OK