Delete Rate Plan
curl --request DELETE \
--url https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true
}
}{
"message": "Rate plan not found"
}{
"message": "<string>"
}Rate Plans
Delete Rate Plan
Overview
This API deletes an IPD rate plan of your workspace. The delete is a soft delete: the rate plan is archived, not removed.
Cascading archive: deleting a rate plan also archives every inclusion of that rate plan. Archived rate plans and inclusions are no longer returned in listings.
Returns 400 with Rate plan not found when the rate_plan_id does not exist or belongs to another workspace.
DELETE
/
ipd
/
v1
/
service
/
rateplans
/
{rate_plan_id}
Delete Rate Plan
curl --request DELETE \
--url https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/rateplans/{rate_plan_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true
}
}{
"message": "Rate plan not found"
}{
"message": "<string>"
}Was this page helpful?

