Retrieve information subscription deletion
GET
/deletions/{id}
const url = 'https://example.com/deletions/25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/deletions/25 \ --header 'Authorization: Bearer <token>'Retrieve information about a deletion by querying the ID sent in a deletion request
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
number format: integer
Example
25Responses
Section titled “ Responses ”The object was successfully deleted
object
deletion_id
required
number format: integer
status
required
string
message
string
Examples
{ "deletion_id": 25, "status": "SUCCESS", "message": "Subscription deleted successfully"}{ "deletion_id": 25, "status": "PENDING", "message": "Deletion is pending"}{ "deletion_id": 25, "status": "FAILURE", "message": "The deletion process encountered an error and was rolled backwas rolled back"}object
deletion_id
required
number format: integer
status
required
string
message
string
Examples
{ "deletion_id": 25, "status": "SUCCESS", "message": "Subscription deleted successfully"}{ "deletion_id": 25, "status": "PENDING", "message": "Deletion is pending"}{ "deletion_id": 25, "status": "FAILURE", "message": "The deletion process encountered an error and was rolled back"}Unauthorized
object
code
required
string
message
required
string
Example
{ "code": 401, "message": "User not authorized"}object
code
required
string
message
required
string
Example
{ "code": 401, "message": "User not authorized"}Not found
object
code
required
string
message
required
string
Example
{ "code": 404, "message": "Resource not found"}object
code
required
string
message
required
string
Example
{ "code": 404, "message": "Resource not found"}Validation exception
object
code
required
string
message
required
string
Example
{ "code": 405, "message": "Input could not be validated"}object
code
required
string
message
required
string
Example
{ "code": 405, "message": "Input could not be validated"}