Skip to main content

List Cost Codes

GET/projects/{id}/cost-codes
Agency-scoped keys

This endpoint is not available for agency-scoped API keys.

Summary​

Lists the cost codes for one project accessible to the company-scoped API key. Active and inactive cost codes are included by default.

URL Parameters​

NameTypeRequiredDescription
idstringYesProject id or nanoid

Query Parameters​

NameTypeRequiredDescription
pageintegerNoPage number (default 1)
limitintegerNoRecords per page (default 50, max 200)
querystringNoCase-insensitive search in code or description
statusenum(active, inactive)NoFilter by status
sortByenum(code, description, createdAt, updatedAt)NoSort field (default description)
sortOrderenum(asc, desc)NoSort direction (default asc)
fieldsstringNoComma-separated list of response fields or dot-path nested fields to return

Request Example​

curl -X GET 'https://api.requidex.com/api/open/v1/projects/{id}/cost-codes?status=active&page=1' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'

Response Example​

{
"success": true,
"data": [
{
"id": "67bc36db80a1616ec3f47010",
"nanoid": "abc123def4",
"code": "419498",
"description": "Training Centre",
"active": true,
"createdAt": "2026-09-01T10:00:00.000Z",
"updatedAt": "2026-09-01T10:00:00.000Z"
}
],
"meta": { "page": 1, "limit": 50, "total": 1 }
}

Errors​

StatusCodeMeaning
400BAD_REQUESTInvalid status or pagination parameters
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENMissing read:projects scope or agency-scoped key
404NOT_FOUNDProject is not accessible to the key