Get a service
curl --request GET \ --url https://example.com/api/v1/services/example \ --header 'Authorization: Bearer <token>'Returns a service by id, active or archived (see isActive), with every pricing option, the intake form it asks buyers for, its revenue account and class rule, service period rule, base hourly rate, the order type it opens, its subscription term and review reminder. Requires the invoices.view permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The requested service.
object
A workspace service-catalog entry.
object
Standard hourly rate hour packages are priced at, in the service currency; null when not set.
The fixed class team; null unless classKind is FIXED_TEAM.
Hours the single price includes; null in options mode.
The SERVICE_INTAKE order form a buyer fills in after purchase; null when the service asks for nothing.
False when the service is archived.
The order type an invoice line of this service opens; null leaves the type to be chosen on the invoice, from the hours the service sells.
How a line’s service period is computed; null when no rule is set.
How the service period of an invoice line is computed: RECURRING is one renewal interval from the invoice date, FIXED_MONTHS is periodMonths months from it, and MANUAL leaves the dates to the person invoicing.
single sells one price (rate); options sells one of pricingOptions.
Every option by position, disabled ones included; empty in single mode.
A purchasable pricing option of a service.
object
Hours the option includes, when hour-bound.
Disabled options are not offered to buyers.
Price of the option in the service currency.
Price / hours rounded to cents; null when the option has no hours.
Single price in the service currency; null in options mode.
The revenue account the service books to; null when none is set.
Listed in the client portal; hidden services still sell on forms.
Example
{ "data": { "classKind": "FIXED_TEAM", "periodRule": "RECURRING", "pricingMode": "single", "recurringInterval": "WEEKLY" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC