Skip to product menu
Skip to main content

Delete Contract

Purpose

To delete a contract.

Request Details

Request URL

https://contracts.zoho.com/api/v1/contracts/{apiName}

Authorization

Authorization: Zoho-oauthtoken 1000.67013ab3960787bcf3affae67e649fc0.83a789c859e040bf11e7d05f9c8b5ef6

Scope

contracts.contracts.DELETE, contracts.contracts.ALL

Possible Operation Types

ALL - Full access to contracts
DELETE - Delete contract

Sample Request

Copiedcurl "https://contracts.zoho.com/api/v1/contracts/sla-with-zylker"
-X DELETE
-H "Authorization: Zoho-oauthtoken 1000.67013ab3960787bcf3affae67e649fc0.83a789c859e040bf11e7d05f9c8b5ef6"

Response JSON Keys

  • Typestring

    Represents the success response to the request.

  • apiNamestring

    Represents the name of the contract in the API.

Possible Errors

INVALID_URL_PATTERNHTTP 404

Request URL is incorrect

Resolution: Specify a valid request URL. Refer to the Request URL section above.

OAUTH_SCOPE_MISMATCHHTTP 401

Unauthorized

Resolution: Client does not have contracts.contracts.DELETE scope. Create a new client with valid scope. Refer to the Scope section above.

NO_PERMISSIONHTTP 403

Permission denied to delete

Resolution: The user does not have permission to delete records. Contact your organization administrator.

INTERNAL_ERRORHTTP 500

Internal Server Error

Resolution: Unexpected and unhandled exception in the server.

INVALID_REQUEST_METHODHTTP 400

The HTTP request method is not a valid one.

Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method. Refer to the Endpoints section above.

AUTHORIZATION_FAILEDHTTP 400

The user does not have sufficient privilege to delete module details.

Resolution: The user does not have permission to delete module details. Contact your organization administrator.

CONFLICTHTTP 409

ErrorCode: 5300

The contract cannot be deleted since it is in signed or active status.

Resolution: Please delete a contract that is not in signed or active status.

Sample Response

{

 "Errors":

 {

 "ErrorCode": 5300,

 "ErrorMessage": "You cannot delete a contract that is in signed or active status ."

 }

}

Sample Response

Copied{
    "Type":String,
    "apiName":String
}
 Zoho Contracts Developer Community