Push Notification API

Managing push notifications for staff and partners

Base URL

https://{tenant}.logzi.com/api/push/

Every request returns a JSON response. On success result.code == 1, on error result.code == 0. A push notification is a system message shown in the mobile app. It can also be used to alert on internal events (new task, receipt status change).

GET /api/push/get

Retrieve a single push notification by identifier.

Query parameters

ParameterTypeRequiredDescription
idintIdentifier of the push notification

Example request

GET /api/push/get?id=30
X-API-KEY: {your_api_key}
GET /api/push/list

Retrieve a paginated list of push notifications with filtering options.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_condition[company_id]intFilter by company identifier
list_condition[company_user_id]intFilter by staff member identifier
list_condition[company_user_id_or_null]intFilter by staff member OR all (NULL) notifications

Example request

GET /api/push/list?list_condition[company_user_id]=3&list_offset=0
X-API-KEY: {your_api_key}
POST /api/push/save

Create a push notification (new entry). For an existing entry, only status_id can be changed. For a new notification use data[id] = 0.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new notification, >0 = status change
status_idintStatus of the notification
company_user_idintTarget staff member (if NULL: all users)
partner_idintIdentifier of the related partner
receipt_idintIdentifier of the related receipt
receipt_type_idintType of the receipt
push_levelintImportance level (1=info, 2=warning, 3=critical)
push_titlestringTitle of the notification
push_descriptionstringText of the notification

Example request

POST /api/push/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{
  "data": {
    "id": 0,
    "status_id": 1,
    "company_user_id": 3,
    "push_level": 2,
    "push_title": "Új rendelés érkezett",
    "push_description": "Webshopból érkezett egy rendelés.",
    "receipt_id": 501,
    "receipt_type_id": 11
  }
}

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!