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>'
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