LianaCommerce REST API

Order rows

Serverhttps://shop.example.com/api/v1

Read and update single rows of an order, and the extra input values and event bookings entered for a row. Find a row's id in the order's rows.


Get an order row

GET
https://shop.example.com/api/v1
/orderrows/{order-row-id}

Returns one row of an order. There is no list of all order rows: an order's rows are in its rows, see Get an order. The response has no paging links.

Get an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

Get an order row › Responses

The order row.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]
​Meta

Update an order row

PUT
https://shop.example.com/api/v1
/orderrows/{order-row-id}

Changes the row's description or delivered amount. Fields you leave out keep their value. The row's modification time and the order's modified_at are set to now, so List orders with modified_after finds the change. The order's status and totals are not changed. Returns the updated row.

Update an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

Update an order row › Request Body

Send at least one field. A field you leave out keeps its value.
description
​string | null

The row's description. null sets an empty string.

Example: Gift wrapped
delivered_amount
​integer | null

How many units have been delivered. null sets 0.

Example: 2

Update an order row › Responses

The updated order row.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]
​Meta

List the extra inputs of an order row

GET
https://shop.example.com/api/v1
/orderrows/{order-row-id}/extrainputs

Returns the extra input values that the customer entered for the row, newest first, without the values themselves: get one to see its values. Paging works differently from other endpoints: if the row has at most limit values, all of them are returned, offset is ignored and there are no paging links. Only if it has more are the items sliced by offset and limit, with first, prev and next links that carry only offset and limit, and result_index counts from the start of the whole list, not of the page.

List the extra inputs of an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

List the extra inputs of an order row › query Parameters

limit
​integer · min: 1 · max: 2147483647

The number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.

Default: 20
offset
​integer · min: 0 · max: 2147483647

The number of items to skip. Must be a decimal integer; any other value returns 400.

Default: 0

List the extra inputs of an order row › Responses

The row's extra input values. items is empty if the row has none.

Links to the first, previous and next page. Each link carries the request's `limit`, `offset` and filters. At either end of the list the object is still there, with `href` set to `null`.
href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​PageLink
​PageLink
​PageLink
​object[]
​Meta

Get an extra input of an order row

GET
https://shop.example.com/api/v1
/orderrows/{order-row-id}/extrainputs/{extra-input-row-id}

Returns one extra input value of the row, with its values. The item has no href. For a json input, values lists the entered rows, each with its child inputs.

Get an extra input of an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

extra-input-row-id
​integer · required

The id of the extra input value row, as in the id of List the extra inputs of an order row. An id that is unknown or belongs to another order row returns 404, also when the row has no extra inputs.

Get an extra input of an order row › Responses

The extra input value.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]
​Meta

Update an extra input of an order row

PUT
https://shop.example.com/api/v1
/orderrows/{order-row-id}/extrainputs/{extra-input-row-id}

Replaces the value of one extra input of the row. What values accepts depends on the input's type; a value of the wrong kind returns 400. Returns the input with the value you sent, normalized.

Update an extra input of an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

extra-input-row-id
​integer · required

The id of the extra input value row, as in the id of List the extra inputs of an order row. An id that is unknown or belongs to another order row returns 404, also when the row has no extra inputs.

Update an extra input of an order row › Request Body

values
​required

The new value. What is accepted depends on the input's type:

  • text, first_name, last_name, street, postal_code, city, phone_number, country, number_with_finnish_check_digit, textarea, code_generator, order_number: a string.
  • numeric: a number or a numeric string.
  • date: a date string in a common format, such as 2026-12-24; it is saved as YYYY-MM-DD. An empty string clears the date.
  • boolean: true, false, or one of the strings "1", "0", "yes", "no", "on", "off", "true", "false".
  • choice, select: an array of option ids of the input (integers or integer strings), at most as many as the input allows.

json, attachment, cities, country_select and view_only inputs can't be changed: a PUT returns 400 and keeps the stored value.

Example: Maija Meikäläinen

Update an extra input of an order row › Responses

The updated extra input value.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]
​Meta

List the event bookings of an order row

GET
https://shop.example.com/api/v1
/orderrows/{order-row-id}/product_event_bookings

Returns the event bookings made with the row, newest first. The list has no filters.

List the event bookings of an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

List the event bookings of an order row › query Parameters

limit
​integer · min: 1 · max: 2147483647

The number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.

Default: 20
offset
​integer · min: 0 · max: 2147483647

The number of items to skip. Must be a decimal integer; any other value returns 400.

Default: 0

List the event bookings of an order row › Responses

The row's event bookings. items is empty if the row has none.

Links to the first, previous and next page. Each link carries the request's `limit`, `offset` and filters. At either end of the list the object is still there, with `href` set to `null`.
href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​PageLink
​PageLink
​PageLink
​object[]
​Meta

Get an event booking of an order row

GET
https://shop.example.com/api/v1
/orderrows/{order-row-id}/product_event_bookings/{product-event-booking-id}

Returns one event booking of the row. The response has no paging links.

Get an event booking of an order row › path Parameters

order-row-id
​integer · required

The order row's id. The rows of an order are listed in its rows, see Get an order. An id that is not a decimal integer returns 400; an unknown id returns 404.

product-event-booking-id
​integer · required

The booking's id. An id that is unknown or belongs to another order row returns 404.

Get an event booking of an order row › Responses

The event booking.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]
​Meta