Skip to main content

Get Single Reservation

GET 

/api/reservations/:id

Get Single Reservation

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

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]

    customer

    object

    id string
    name string
    surname stringnullable
    type ContactTypeEnum (string)nullable

    Possible values: [vendor, customer]

    email emailnullable
    phone phonenullable
    gender ContactGenderEnum (string)nullable

    Possible values: [male, female, other]

    birthdate datenullable
    address stringnullable
    custom_fields objectnullable
    created_at date-time
    updated_at date-time
    default_photo_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]

  • ]

  • createdBy

    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]

    updatedBy

    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]

    source_id numbernullable
    custom_fields objectnullable
    transaction_id stringnullable

    transaction

    get_transaction_single

    nullable

    id string
    document_id stringnullable
    account_id string
    contact_id stringnullable
    created_by_id string
    amount numbernullable
    currency CurrencyEnum (string)

    Possible values: [EUR, USD, GBP, TRY]

    type TransactionTypeEnum (string)

    Possible values: [income, expense, order, reservation]

    reference stringnullable
    description stringnullable
    paid_at string
    created_at string
    updated_at string
    order_id stringnullable
    reservation_id stringnullable
    tips numbernullable
    discount numbernullable
    payment_method TransactionPaymentMethodEnums (string)

    Possible values: [cash, credit_card, bank_transfer, qr]

    account

    object

    id stringrequired
    created_by_id stringrequired
    name stringrequired
    number stringnullablerequired
    currency CurrencyEnum (string)required

    Possible values: [EUR, USD, GBP, TRY]

    bank_name stringnullablerequired
    bank_phone stringnullablerequired
    bank_address stringnullablerequired
    enabled booleanrequired
    created_at date-timerequired
    updated_at date-timerequired
    deleted_at date-timenullablerequired
    total integerrequired
Loading...