Skip to main content

Update Reservation Item

PUT 

/api/reservations/:id/services/:serviceId

Update Reservation Item

Request

Path Parameters

    id integerrequired
    serviceId integerrequired
    Example: 7

Header Parameters

    X-Company-Slug stringrequired

Body

    employee_id string
    service_id stringrequired
    price float
    quantity integerrequired
    estimated_time integer
    starting_at date-time
    finishing_at date-time

Responses

Successful response

Schema

    id string
    code string
    customer_id string
    created_by_id string
    updated_by_id string
    notes stringnullable
    total float
    starting_at date-time
    finishing_at date-time
    created_at date-time
    updated_at date-time
    status ReservationStatusEnum (string)

    Possible values: [new, accepted, cancelled, no-show, success]

    source_id numbernullable
    custom_fields objectnullable
    transaction_id numbernullable

    services

    object[]

  • Array [

  • id string
    reservation_id string
    employee_id string
    service_id string
    price float
    quantity integer
    estimated_time integer
    starting_at date-time
    finishing_at date-time
    is_bound boolean

    service

    object

    id string
    name string
    slug string
    description stringnullable
    price float
    original_price floatnullable
    estimated_time integer
    category_id string
    created_at date-time
    updated_at date-time

    employee

    object

    id string
    email string
    name stringnullable
    surname stringnullable
    language stringnullable
    phone_number stringnullable
    remember_me_token booleannullable
    birthday datenullable
    created_at date-time
    updated_at date-time
    timezone stringnullable

    meta

    object

    gender ContactGenderEnum (string)nullable

    Possible values: [male, female, other]

  • ]

Loading...