Skip to main content

Get CPN

Retrieves the details of a single customer part number (CPN).

HTTP Request​

  • URL: /cpn/{id}
  • Method: GET
  • 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 retrieve.

cURL Example​

curl --location '<BASE_URL>/cpn/69021dec6f3d8d4a6ebf8dba' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The CPN was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, or the ID is not valid.
  • 404 Not Found: No CPN matches the ID.

Sample JSON Response​

{
"success": true,
"data": {
"_id": "69021dec6f3d8d4a6ebf8dba",
"companyId": "683808ee2b054dc60961637c",
"productId": "687a84a7958d6a5c0d0c7a35",
"cpn": "ACME-VLV-0042",
"createdBy": {
"id": "66a0f138a8323b0b86b0f1dc",
"name": "ERP Connector",
"type": "api"
},
"createdAt": "2025-10-29T14:02:52.118Z",
"updatedAt": "2025-10-29T14:02:52.118Z"
}
}

Response Details​

CPN Data​

The fields are the same as in Get All CPNs.