BlueSuite Developers
REST API v1

Services

Services in the BlueSuite REST API

Maintain the service/product catalog used in quote, job, and invoice line items. List services with search/pagination or id_in, a comma-separated list of service IDs. Creating a catalog service does not add it to existing quotes or jobs.

See line items for how quantities, prices, and catalog references are used in documents.

GET /api/v1/services

GET /api/v1/services

Required scopes: services:read.

Query parameters

FieldType / accepted valuesRequiredDetails
pageintegerNoPage number, starting at 1. Default: 1.
per_pageintegerNoRecords per page, from 1 to 100. Default: 25. minimum: 1. maximum: 100.
searchstringNoSearch text. maxLength: 100.
sort_bystringNoSort column. See the supported columns below when listed.
sort_direction"asc", "desc"NoSort direction. Default: "desc".
id_instringNoComma-separated record IDs.

Response

200 with { "success": true, "data": [...], "pagination": { "page": 1, "per_page": 25, "total_pages": 1 } }.

See response conventions and errors.

POST /api/v1/services

POST /api/v1/services

Required scopes: services:write.

JSON body

FieldType / accepted valuesRequiredDetails
namestringYesminLength: 1.
descriptionstring or nullNo
pricenumberNoDefault: 0.
skustring or nullNo
type"service", "product"NoDefault: "service".
taxablebooleanNoDefault: true.
image_pathstring or nullNo

Unknown body fields are rejected. Conditional requirements are explained above.

Response

201 with { "success": true, "data": ... }. The data contains the result of the operation.

See response conventions and errors.

GET /api/v1/services/:id

GET /api/v1/services/:id

Required scopes: services:read.

Path parameters: id. Use positive integer record IDs from this workspace.

Response

200 with { "success": true, "data": ... }. The data contains the result of the operation.

See response conventions and errors.

PUT /api/v1/services/:id

PUT /api/v1/services/:id

Required scopes: services:write.

Path parameters: id. Use positive integer record IDs from this workspace.

JSON body

FieldType / accepted valuesRequiredDetails
namestringNominLength: 1.
descriptionstring or nullNo
pricenumberNoDefault: 0.
skustring or nullNo
type"service", "product"NoDefault: "service".
taxablebooleanNoDefault: true.
image_pathstring or nullNo

Unknown body fields are rejected. Conditional requirements are explained above.

Response

200 with { "success": true, "data": ... }. The data contains the result of the operation.

See response conventions and errors.

DELETE /api/v1/services/:id

DELETE /api/v1/services/:id

Required scopes: services:write.

Path parameters: id. Use positive integer record IDs from this workspace.

No request body.

Response

200 with { "success": true, "data": ... }. The data contains the result of the operation.

See response conventions and errors.

On this page