Skip to main content
DELETE
https://integrations.projectcor.com
/
v2
/
integrations
/
contracts
/
{id}
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  }
}'
{
  "message": "Contract deleted successfully",
  "external_id": "SF-CONTRACT-12345",
  "cor_id": 30001
}
Deletes a contract from your COR instance using its external ID. Also removes related entity associations if a corId is provided.

Path Parameters

id
string
required
External contract ID that was used when creating the contract

Request Body Requirements

metadata
object
required
corId
number
COR internal ID to remove associations (optional)

Known Errors

  • ContractNotFoundError — No contract found with the specified external ID
  • ValidationError — Missing required metadata.source field
  • DeletionError — Contract cannot be deleted due to active user associations
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  }
}'
{
  "message": "Contract deleted successfully",
  "external_id": "SF-CONTRACT-12345",
  "cor_id": 30001
}