Skip to content

Delete your outbound voice rates

DELETE
/v1/Accounts/{auth_id}/Rates
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.

auth_id
required
string

Your account Auth ID (20 characters). The request always acts on the authenticated account.

Deleted

The account ID is too short to be valid

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

Missing or wrong Auth ID / Auth Secret (answered by the API gateway)

Media type application/json
string

Example generated

example

Signed in as a sub-user (portal login) rather than the account owner: only the owner can change rates

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

You have no rates of your own

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

The rates could not be deleted

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

The account’s vendor could not be looked up

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}