Delete a notification preference

delete/notification_preferences/{id}

The DELETE /notification_preferences/{id} call allows your platform to delete a notification preference. Notification preferences allow your platform to subscribe to notifications based on an event topic.

SecurityappIdAuth and appTokenAuth
Request
path Parameters
id
required
string [ 1 .. 255 ] characters

ID of the notification preference, generated by WePay when the notification preference is created.

header Parameters
Api-Version
required
string
Example: 3.0
Unique-Key
string
Responses
200
Response Schema: application/json
id
required
string
resource
required
string

Helps organize information by identifying the resource type of the object data.

Value: Description
notification_preferences
path
required
string
create_time
required
integer <int64> >= 0
topic
required
string
callback_uri
required
string
status
required
string

Status of the notification preference. Possible values are: active, unreachable, deleted.

Enum: Description
active

The notification preference is active and ready to be used.

deleted

The notification preference has already been deleted.

… 1 more
api_version
string
object

This owner resource and owner path of the object.

400

INVALID_PARAMS, RESOURCE_PREVIOUSLY_DELETED

403

NOT_AUTHORIZED

500

UNEXPECTED_ERROR

Request samples
Response samples
application/json
{
  • "create_time": 1509407823974,
  • "id": "9164a672-8128-4163-8f66-04a9172d2911",
  • "owner": {
    • "id": "74582",
    • "path": null,
    • "resource": "applications"
    },
  • "path": "/notification_preferences/9164a672-8128-4163-8f66-04a9172d2911",
  • "resource": "notification_preferences",
  • "status": "deleted",
  • "topic": "disputes.created",
  • "api_version": "3.0"
}