Skip to content

Get Supplier

This endpoint returns one supplier by ID.

GET /v1/suppliers/suppliers/:id

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

suppliers:read
ParameterTypeRequiredDescription
idstringYesSupplier ID, for example supplier-stu123vwx4567890.

This endpoint does not accept a request body.

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

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched supplier",
"data": {
"id": "supplier-stu123vwx4567890",
"name": "Supplier Name",
"description": "A brief description of the supplier",
"isArchived": false,
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "2023-01-02T00:00:00.000Z",
"isDeleted": false
}
}
  • This endpoint returns archived and deleted suppliers. Check isArchived and isDeleted in the response.
  • updatedAt is null until the supplier is updated for the first time.
StatusMeaning
400The ID path segment was empty (for example, a trailing slash). Message: SupplierID not provided.
404Message: Supplier 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.