Order Notifications

get available notification types

request
GET /api/v2/notification/order/999999991 HTTP/1.1
Table 274. /api/v2/notification/order/{orderId}
Parameter Description

orderId

Order ID

response
HTTP/1.1 200 OK

{
  "canSendPush" : true,
  "canSendEmail" : true,
  "canSendSms" : true
}
Table 275. response description
Path Type Description

canSendPush

Boolean

Whether push notifications can be sent for the order

canSendEmail

Boolean

Whether email notifications can be sent for the order

canSendSms

Boolean

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" : "Заказ готов"
}
Table 276. /api/v2/notification/order/{orderId}
Parameter Description

orderId

Order ID

Table 277. request description
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.
Size must be between 0 and 50000 inclusive

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