Skip to main content
Services do not have inventory records — use products for items that need stock tracking.

Endpoint

POST /api/services

Authentication

Authorization
string
required
Bearer token. Format: Bearer <token>

Request body

name
string
required
Service display name.
description
string
Optional description of the service.
price
number
required
Service price.

Response

id
string
Unique service identifier (UUID).
name
string
Service display name.
description
string | null
Optional description of the service.
price
number
Service price.
tenantId
string
UUID of the tenant that owns this service.
createdAt
string
ISO 8601 timestamp of when the service was created.
updatedAt
string
ISO 8601 timestamp of the last update.

Examples

curl --request POST \
  --url http://localhost:5000/api/services \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Hardware Installation",
    "description": "On-site installation of hardware components",
    "price": 120.00
  }'

Example response

{
  "id": "c3d4e5f6-a7b8-9012-cdef-012345678902",
  "name": "Hardware Installation",
  "description": "On-site installation of hardware components",
  "price": 120.00,
  "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
  "createdAt": "2026-03-24T10:00:00.000Z",
  "updatedAt": "2026-03-24T10:00:00.000Z"
}

Build docs developers (and LLMs) love