OVIRO LogoOVIRO
Push NotificationsNotification Endpoint

Hủy đăng ký Endpoint

Hủy đăng ký (soft-disable) endpoint nhận thông báo theo owner-scope.

Endpoint

POST /v1/notificationendpoints/unregister

Body Parameters

TênKiểuBắt buộcMô tả
company_idintID công ty
owner_typeint | stringLoại chủ sở hữu (1/"user", 3/"customer", 5/"system")
owner_idintID chủ sở hữu (User ID hoặc Customer ID)
channel_typeintLoại kênh thông báo cần hủy (VD: 9 = Push)
app_codestringMã ứng dụng cần hủy đăng ký (VD: pos, web, app)

Ví dụ JSON

{
  "company_id": 10311,
  "owner_type": 1,
  "owner_id": 789,
  "channel_type": 9,
  "app_code": "pos"
}

Response Schema

HTTP 200 - JSON Object

{
  "status": "disabled",
  "message": "Endpoint disabled"
}

Nếu không tìm thấy endpoint ACTIVE phù hợp:

{
  "status": "not_found",
  "message": "No active endpoint found"
}

Error Codes

HTTPCodeMô tả
422error_company_id_requiredID công ty không được để trống
422error_owner_type_requiredLoại chủ sở hữu không được để trống
422error_owner_type_invalidLoại chủ sở hữu không hợp lệ
422error_owner_id_requiredID chủ sở hữu không được để trống hoặc phải > 0
422error_channel_type_requiredLoại kênh không được để trống hoặc phải > 0
422error_app_code_requiredMã ứng dụng không được để trống

On this page