Delete CPN
Permanently deletes a customer part number (CPN). This action cannot be undone.
HTTP Request
- URL:
/cpn/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_CUSTOMERPARTNUMBERorREAD_WRITE_CUSTOMERPARTNUMBER
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the CPN to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/cpn/69021dec6f3d8d4a6ebf8dba' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The CPN was deleted successfully.
- 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, the ID is not valid, or the CPN's company is locked.
- 404 Not Found: No CPN matches the ID.
Sample JSON Response
{
"success": true,
"message": "Deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the CPN was deleted. |
message | String | Result message. |