Delete your outbound voice rates
const url = 'https://api.siprtc.io/v1/Accounts/example/Rates';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.siprtc.io/v1/Accounts/example/Rates \ --header 'Authorization: Basic <credentials>'Deletes the rate plan you uploaded, so your outbound calls are rated with your vendor’s default plan again.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID (20 characters). The request always acts on the authenticated account.
Responses
Section titled “ Responses ”Deleted
The account ID is too short to be valid
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}Missing or wrong Auth ID / Auth Secret (answered by the API gateway)
Example generated
exampleSigned in as a sub-user (portal login) rather than the account owner: only the owner can change rates
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}You have no rates of your own
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}The rates could not be deleted
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}The account’s vendor could not be looked up
object
What went wrong, in plain words.
Always “failed”.
Example
{ "message": "trunk not found", "status": "failed"}