Skip to main content
DELETE
/
api
/
customer
/
{customerId}
/
crp
/
{crpId}
Delete a Customer Related Party (CRP)
curl --request DELETE \
  --url https://api.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId} \
  --header 'Authorization: <authorization>' \
  --header 'X-Domain-ID: <x-domain-id>'
import requests

url = "https://api.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}"

headers = {
    "X-Domain-ID": "<x-domain-id>",
    "Authorization": "<authorization>"
}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {
  method: 'DELETE',
  headers: {'X-Domain-ID': '<x-domain-id>', Authorization: '<authorization>'}
};

fetch('https://api.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}', 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.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "Authorization: <authorization>",
    "X-Domain-ID: <x-domain-id>"
  ],
]);

$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.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("X-Domain-ID", "<x-domain-id>")
	req.Header.Add("Authorization", "<authorization>")

	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.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}")
  .header("X-Domain-ID", "<x-domain-id>")
  .header("Authorization", "<authorization>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["X-Domain-ID"] = '<x-domain-id>'
request["Authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
This endpoint deletes a Customer Related Party (CRP) associated with a Primary Customer.

Path Parameters

  • customerId — The Primary Customer’s ID.
  • crpId — The Customer Related Party ID to be deleted.
    • Retrieve from the Primary Customer’s CRP list (e.g. via Get Customer with CRPs endpoint).

Notes

  • Only the specified CRP will be deleted.
  • The Primary Customer will remain intact.

Example (Batch Delete via Script)

import requests

base_url = "https://api.artemis.cynopsis.co/api/customer/{customerId}/crp/{crpId}"

headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <YOUR_TOKEN>",
    "X-Domain-ID": "<x-domain-id>"
}

customers = [
    ({customer_id}, {crpId})
]

for customerId, crpId in customers:
    url = base_url.format(customerId=customerId, crpId=crpId)
    print("Sending DELETE →", url)
    response = requests.delete(url, headers=headers)
    print("Status:", response.status_code)

Headers

X-Domain-ID
string
required

Domain identifier

Example:

"1"

Authorization
string
required

Bearer access token

Example:

"Bearer eyJhbGciOi..."

Path Parameters

customerId
integer
required

Primary Customer ID

Example:

68

crpId
integer
required

Customer Related Party (CRP) ID

Example:

31691

Response

CRP deleted successfully