POST
/api/public/v1/appointment-services

Create appointment service

Create a new bookable service for a business.

Request Body

PropertyTypeDescription
businessIdstringOwning business.
namestringService name.
descriptionstringDescription.
durationnumberDuration in minutes (15-480).
pricenumberPrice in cents.
isActivebooleanWhether bookable (default true).
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/appointment-services" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "businessId": "biz_abc",
    "name": "Consultation",
    "duration": 30,
    "price": 5000
  }'
200Example response
json
{
  "message": "Appointment service created successfully!",
  "content": {
    "service": {
      "id": "svc_1"
    }
  }
}