Skip to main content

Get Order

GET 

/api/orders/:id

Get Order

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Responses

Successful response

Schema

    id string
    customer_id stringnullable
    code string
    notes stringnullable
    status OrderTypeEnum (string)

    Possible values: [new, accepted, cancelled, paid, success]

    total number
    created_at date-time
    updated_at date-time
    reservation_id stringnullable
    marketplace objectnullable
    marketplace_id stringnullable
    delivery_type stringnullable
    transaction_id stringnullable
    created_by_id string
    nextEvents OrderNextEventEnum (string)[]

    Possible values: [accept, cancel, ship, refund, checkout, prepare, deliver, handover]

    reservation

    object

    nullable

    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]

  • ]

  • source_id numbernullable
    custom_fields objectnullable
    transaction_id stringnullable

    customer

    object

    nullable

    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

    shipping

    object

    nullable

    address_line string
    address_line_2 string
    city string
    country_phone_code stringnullable
    country_id number
    postal_code string
    method stringnullable
    tracking_code string
    id number
    order_id number
    status OrderTypeEnum (string)

    Possible values: [new, accepted, cancelled, paid, success]

    items

    object[]

  • Array [

  • id number
    product_id number
    order_id number
    price number
    quantity numbernullable
    total number
    product_name string

    product

    object

    id string
    quick_sale booleannullable
    name string
    slug stringnullable
    sku string
    description string
    stock integernullable
    shipping_required boolean
    price float
    original_price floatnullable
    brand_id stringnullable
    created_at date-time
    updated_at date-time
    inventory_track booleannullable
    inventory_type InventoryType (string)

    Possible values: [volume, unit]

    inventory_quantity integernullable
  • ]

Loading...