Knowledgebase

Delete Bounce Addresses

Method: DELETE
Endpoint: /api/deleteBounceAddresses/{ids}

Parameter

Parameter Type Required

Description 

ids int Yes Bounce account id(s) to be deleted


Response Parameter

Parameter Type Description
status JSON Success or Error
result JSON Result of the operation
response JSON Output of the operation


Example Request (CURL)

<?php

// Authentication
$api_token	=	'API_KEY'; // Mumara API Key (can be found in Settings -> API Key)
$domain		=	'http://www.anydomain.com'; // Your Mumara Domain Name

// API Endpoint
$endpoint	=	'/api/deleteBounceAddresses/';

//Bounce Account ids
$ids = '10,11';

// Defining cURL Request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$domain.$endpoint.$ids);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER,
    array('Content-Type: application/json', 'Authorization: Bearer ' . $api_token));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Executing cURL
$output = curl_exec ($ch);

// Printing Output
echo "<pre>";
echo json_encode(json_decode($output),JSON_PRETTY_PRINT);

// Closing cURL
curl_close ($ch);
?>


Example Response (JSON)

{
    "status": "success",
    "result": "Success: Bounce Addresses have been successfully deleted."
}
Status value of the success response will be "Success"


Example Error Response (JSON)

{
    "status": "error",
    "result": "Error: Bounce Address does not exist."
}


Possible Errors

  • Bounce Address does not exist
  • Access Denied
DELETE
/api/deleteBounceAddresses/{ids}
Try it out