LianaCommerce REST API

Extra inputs

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

Read the extra inputs that customers fill in when they order a product, such as a name on a ticket, and the groups that collect them. The values customers entered are on the order rows.


List extra inputs

GET
https://shop.example.com/api/v1
/extra_inputs

Returns the shop's extra inputs, newest first. Deleted inputs are left out. The list has no filters, and order_by_field and order_by_direction have no effect.

List extra inputs › 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 extra inputs › Responses

The extra inputs.

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

GET
https://shop.example.com/api/v1
/extra_inputs/{extra-input-id}

Returns one extra input. The response has no paging links.

Get an extra input › path Parameters

extra-input-id
​integer · required

The extra input's id. An id that is not a decimal integer returns 400; an unknown or deleted id returns 404.

Get an extra input › Responses

The extra input.

href
​string

The URL of the request.

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

List extra input groups

GET
https://shop.example.com/api/v1
/extra_input_groups

Returns the shop's extra input groups, newest first. Products use a group to get its extra inputs. Items have no href. Deleted groups are not listed. The API can't create or delete groups.

List extra input groups › 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
code
​string

Return the groups with exactly this code. Case-sensitive.

List extra input groups › Responses

The extra input groups.

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 group

GET
https://shop.example.com/api/v1
/extra_input_groups/{extra-input-group-id}

Get an extra input group › path Parameters

extra-input-group-id
​integer · int64 · required

The extra input group's ID. A value that is not a number returns 400; an unknown or deleted group returns 404.

Get an extra input group › Responses

The extra input group.

href
​string

The URL of the request.

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

One extra input group.

​Meta

Update an extra input group

PUT
https://shop.example.com/api/v1
/extra_input_groups/{extra-input-group-id}

Updates the fields you send and keeps the other. Send at least one of name and code.

Update an extra input group › path Parameters

extra-input-group-id
​integer · int64 · required

The extra input group's ID. A value that is not a number returns 400; an unknown or deleted group returns 404.

Update an extra input group › Request Body

name
​string

Can't be null.

Example: Engraving options
code
​string | null

null stores an empty string.

Example: ENGRAVING

Update an extra input group › Responses

The updated extra input group.

href
​string

The URL of the request.

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

One extra input group.

​Meta