Skip to main content

Checkout Reservation

POST 

/api/reservations/:id/checkout

Checkout Reservation

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    status ReservationStatusEnum (string)required

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

    tips numberrequired
    discount numberrequired
    payment_method TransactionPaymentMethodEnums (string)required

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

    account_id number

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 string

    company

    get_company

    id stringrequired
    whitelabel_id numberrequired
    code stringrequired
    slug stringrequired

    Possible values: <= 25 characters

    name stringrequired
    about stringnullablerequired
    address stringnullablerequired
    email stringnullablerequired
    created_at stringrequired
    updated_at stringrequired
    country_id numbernullablerequired
    package_id numberrequired
    valid_until stringrequired
    phone numbernullablerequired
    full_phone numbernullablerequired
    cf_vendor objectnullablerequired
    cf_customer objectnullablerequired
    settings objectnullablerequired
    cf_reservation objectnullablerequired
    modules string[]nullablerequired
    city stringnullablerequired

    working_hours

    object

    monday stringnullable
    tuesday stringnullable
    wednesday stringnullable
    thursday stringnullable
    friday stringnullable
    saturday stringnullable
    sunday stringnullable
    last_payment date-timerequired
    employees object[]required

    package

    object

    required

    id numberrequired
    name stringrequired
    price numberrequired
    currency stringrequired
    whitelabel_id numberrequired
    modules string[]nullablerequired
    created_at date-timerequired
    updated_at date-timerequired
    interval stringnullablerequired

    Possible values: [yearly, monthly]

    type stringnullablerequired

    Possible values: [subscription, email, sms]

    code stringrequired
    quantity numberrequired

    transaction

    get_transaction_single

    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...