Skip to content

Get Supplier Contact

This endpoint returns one supplier contact by ID.

GET /v1/supplier-contacts/supplier-contacts/:id

Include your API key in the x-api-key header. See Authentication.

supplier-contacts:read
ParameterTypeRequiredDescription
idstringYesSupplier contact ID, for example suppliercontact-vwx123yza4567890.

This endpoint does not accept a request body.

Terminal window
curl "https://api.crewsum.com/v1/supplier-contacts/supplier-contacts/suppliercontact-vwx123yza4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched supplier contact",
"data": {
"id": "suppliercontact-vwx123yza4567890",
"supplierId": "supplier-stu123vwx4567890",
"supplierName": "Supplier Name",
"name": "Supplier Contact Name",
"description": "A brief description of the supplier contact",
"email": "placeholder@example.com",
"isArchived": false,
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "2023-01-02T00:00:00.000Z",
"isDeleted": false
}
}
  • This endpoint returns archived and deleted contacts. Check isArchived and isDeleted in the response.
  • updatedAt is null until the contact is updated for the first time.
StatusMeaning
400The ID path segment was empty (for example, a trailing slash). Message: Supplier Contact ID not provided.
404Message: Supplier contact not found. The API returns this for an unknown ID and also for any other failure, including database errors.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.