Logo
Swift API Sandbox Collections API Documentation

Unsubscribe from a category.

DELETE {{baseUrl}}/subscriptions/{{subscription-id}}

A client can invoke this API when they want to unsubscribe from a category. Any notifications pending delivery will be sent to the customer, but new notifications from that category will not be sent once the unsubscription is confirmed.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
notif-role
string (Required) Header that identifies role of the requester to validate if its a provider or consumer. Added by the client in the request.




RESPONSES

status OK





Curl
curl -X DELETE 'https://sandbox.swift.com/swift-notif/v1/subscriptions/subscription-id' -H 'notif-role: Y29uc3VtZXI='

ENDPOINTS