Skip to main content

update order

PUT 

/api/orders/:id

update order

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    customer_id number
    notes string
    status OrderTypeEnum (string)

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

    reservation_id number

    items

    object[]

  • Array [

  • product_id stringrequired
    quantity numberrequired
    price number
  • ]

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]

Loading...