Push notification to clients.
Array of objects |
{- "events": [
- {
- "channel": "string",
- "name": "string",
- "data": { }
}
]
}
{- "code": "success",
- "message": "Successfully bulk pushed notifications",
- "server_time": "2021-05-20T12:38:03.851056Z"
}
Only sysadmin & merchant can access this endpoint
For any link to s3, please use get detail notification instead to get signed url
order | string Default: "desc" Enum: "asc" "desc" The direction of the sort |
range_start_created_at | string Example: range_start_created_at=2022-01-03T15:04:05Z Range start (inclusive) of Created At |
range_end_created_at | string Example: range_end_created_at=2025-01-03T15:04:05Z Range end (inclusive) of Created At |
{- "meta": {
- "range_start_created_at": "2022-01-03T15:04:05Z",
- "range_end_created_at": "2025-01-03T15:04:05Z"
}, - "notifications": [
- {
- "event_type": "string",
- "event_data": {
- "user_id": "xxxx-xxx-xxxx",
- "title": "Export completed",
- "...": "..."
}
}
]
}
Only sysadmin & merchant can access this endpoint. Set notification as has been read.
*is_read from false to true
{- "message": "Successfully update notification as has been read",
- "server_time": "2021-05-20T12:38:03.851056Z"
}
Read an existing Notification log detail.
notification_id required | string ID of the Notification log to be read. |
{- "event_type": "string",
- "event_data": {
- "user_id": "xxxx-xxx-xxxx",
- "title": "Export completed",
- "...": "..."
}
}
Pushed notifications and create a log in notification log db
event_type | string |
object |
{- "event_type": "string",
- "event_data": {
- "user_id": "xxxx-xxx-xxxx",
- "title": "Export completed",
- "...": "..."
}
}
{- "server_time": "2021-05-20T12:38:03.851056Z"
}
Array of objects | |
application_key | string |
org_id | string |
{- "push_messages": [
- {
- "user_id": "string",
- "title": "string",
- "body": "string",
- "data": { },
- "sound": "default"
}
], - "application_key": "string",
- "org_id": "string"
}
{- "code": "success",
- "message": "Successfully bulk pushed push notifications",
- "server_time": "2021-05-20T12:38:03.851056Z"
}
Only sysadmin, RRTB, Price Adjustment can access this endpoint
order | string Default: "desc" Enum: "asc" "desc" The direction of the sort |
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
application_key | string filter by application key |
is_qa | boolean Is Quality Assurance |
range_start_created_at | string Example: range_start_created_at=2022-01-03T15:04:05Z Range start (inclusive) of Created At |
range_end_created_at | string Example: range_end_created_at=2025-01-03T15:04:05Z Range end (inclusive) of Created At |
{- "meta": {
- "range_start_created_at": "2022-01-03T15:04:05Z",
- "range_end_created_at": "2025-01-03T15:04:05Z"
}, - "push_notifications": [
- {
- "id": "string",
- "user_id": "string",
- "application_key": "string",
- "device_id": "string",
- "push_notification_key": "string",
- "is_qa": true,
- "created_at": "string"
}
]
}
device_id | string |
application_key | string |
org_id | string |
user_id | string |
push_notification_key | string |
{- "device_id": "string",
- "application_key": "string",
- "org_id": "string",
- "user_id": "string",
- "push_notification_key": "string"
}
{- "code": "success",
- "message": "Successfully add push notification key",
- "server_time": "2021-05-20T12:38:03.851056Z"
}
Only OrgDriver & OrgTransporter are allowed to call this API
{- "code": "success",
- "message": "Successfully remove push notification keys",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only OrgDriver & OrgTransporter are allowed to call this API
{- "code": "success",
- "message": "Successfully remove push notification keys",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}