---
title: "Confirm appointments"
method: POST
path: "/api/business/{businessId}/branch/{branchId}/appointment/confirm"
tags: ["Appointment"]
---

# Confirm appointments

`POST /api/business/{businessId}/branch/{branchId}/appointment/confirm`

## Request

- Base URL: `http://api-gateway-eu.phorest.com/third-party-api-server`
- URL: `http://api-gateway-eu.phorest.com/third-party-api-server/api/business/{businessId}/branch/{branchId}/appointment/confirm`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/phorest/apis/third-party-api/docs/api/business/:businessId/branch/:branchId/appointment/confirm/post.ts> (a function with typed inputs; its response is checked against the schema)

Confirm appointments for the specified client id on a specified date

## Path parameters

- `businessId` string, required
- `branchId` string, required

## Query parameters

- `client_id` string, required
- `date` string, date

## Response `200`

Appointments confirmed successfully

- DataPagedModelAppointmentResponse
  - `_embedded` object
    - `appointments` AppointmentResponse[]
      - `appointmentId` string, required
      - `version` integer, required
      - `appointmentDate` string
      - `startTime` string, required
      - `endTime` string: If the staff/service is changed then the duration is calculated from the new staff/service and endTime is ignored. Otherwise the endTime given is used.
      - `price` number
      - `staffId` string, required
      - `roomId` string
      - `machineId` string
      - `confirmed` boolean
      - `serviceId` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `staffRequest` boolean
      - `preferredStaff` boolean
      - `clientId` string
      - `serviceRewardId` string
      - `courseId` string
      - `courseName` string
      - `clientCourseId` string
      - `clientCourseItemId` string
      - `purchasingBranchId` string
      - `serviceGroupItemOptionId` string
      - `serviceGroupId` string
      - `parentServiceGroupId` string: This is the id of a service group at a business level and corresponds to the service group id used in the booking apis
      - `serviceName` string
      - `state` 'BOOKED' | 'CHECKED_IN' | 'PAID'
      - `activationState` 'RESERVED' | 'ACTIVE' | 'CANCELED'
      - `waitingListDateTime` string, date-time
      - `depositAmount` number
      - `depositDateTime` string, date-time
      - `bookingId` string
      - `source` string
      - `groupBookingId` string
      - `deleted` boolean
      - `notes` string
      - `internetServiceCategories` InternetServiceCategory[]: Contains list of the ID and name of an internet service category that a service belongs to. This data is available only if <code>fetch_online_category</code> parameter is set to true
        - `id` string
        - `name` string
      - `branchId` string
      - `isFinishAppointment` boolean: Indicates if this appointment is the concluding segment of a split service.
  - `page` PageMetadata
    - `size` integer
    - `totalElements` integer
    - `totalPages` integer
    - `number` integer

## Other responses

- `400`: Bad Request
- `404`: Business or branch with given ids don't exist
- `429`: Request rate limit exceeded. Current limit set to 100 rps.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phorest/apis/third-party-api.md) - [All operations](https://skmtc.dev/phorest/apis/third-party-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phorest/apis/third-party-api/revisions/beea6ef29634?raw)
