Skip to main content

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_CUSTOMERPARTNUMBER or READ_WRITE_CUSTOMERPARTNUMBER

Path Parameters​

ParameterTypeDescription
idStringRequired. 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​

FieldTypeDescription
successBooleanWhether the CPN was deleted.
messageStringResult message.