Notices and one-time codes
Notice fields
Section titled “Notice fields”Add serviceUpdate to an item to make it a notice. The app shows the resident’s language. If that language is missing, the app shows the other language.
| Field | Rule |
|---|---|
title |
Required. At most 256 characters. The resident’s lock screen can show it, so do not put private details in it. |
titleAr |
Optional. The title in Arabic. |
reference |
Optional. Your case or transaction number. It is not translated. |
kind |
SERVICE_KIND_NOTICE (the default) or SERVICE_KIND_CODE. See below. |
priority |
SERVICE_PRIORITY_NORMAL (the default) or SERVICE_PRIORITY_HIGH. A high notice can reach a resident who receives only mentions. |
expiresAt |
Optional. RFC 3339 time. After it, the notice shows as expired. In a batch, an item that is still waiting at this time is not sent. |
remindAt |
Optional. Before expiresAt. If the resident has not opened the notice by then, 1.ae sends a second push. |
dueAt |
Optional. The date when the matter is due, for example a bill. The app lists the notice under “Coming up”. |
amount |
Optional. {"currency":"AED","amount":"284.50"}. The amount is a string with at most 3 decimals. |
actions |
Optional. At most 2 buttons. Each has a label, an optional labelAr, and a url or a deeplink. |
One-time codes
Section titled “One-time codes”A one-time code is a notice with "kind": "SERVICE_KIND_CODE" and the code in serviceUpdate.code. Your system makes and checks the code. 1.ae only delivers it. Send codes only with SendServiceMessage. See Send one message.
- The code has 4 to 10 letters or digits.
- If you do not set
expiresAt, the code expires after 5 minutes. After it expires, 1.ae does not show the code again. - A code has high priority by default.
- 1.ae shows the code only in the app. The code is not in the push, the banner, the Updates list or search, and the 1.ae assistant cannot read it.