Skip to main content
DELETE
/
push-subscriptions
Delete all subscriptions
curl --request DELETE \
  --url https://store.salesive.com/api/v1/push-subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'

Request

DELETE /push-subscriptions
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
AuthorizationstringProvide the customer token as Bearer <jwt>.
x-shop-idstringIdentify the shop.

Successful response

{
    "status": 200,
    "success": true,
    "message": "All subscriptions deleted",
    "data": {
        "deletedCount": 2
    }
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Response

200

All subscriptions deleted