Catalog
Search the catalog index. /catalog_items answers for every record type, and /published_catalog_items answers for the published copy of the types that publish. Both take a record_type, filter by path, tag and attribute, and paginate.
Use these endpoints to find records that you cannot yet name: every offer with a label, the pages that show a label, the products changed since a date. They read a search index, so they carry large result sets, and they can lag a write by some seconds.
To read one record that you can already name, use Catalog Management.
Lists the records of one type from the catalog index, offers, products, add-ons, pages, segments or discounts, and answers with the working copy of each one. It supersedes /add_ons, /offers/v2, /pages, /products and /segments, which each answer for one type from the same index.
record_type selects the type. Every catalog type is available. Filter further by path, tags, referencedLabel and any attributes.* value, and page through the result with the opt.* parameters. Give the whole value of a filter, in the same case. A filter that matches no record answers with an empty list, not with an error.
Offers and pages are joined by labels. To find the offers with label X, filter offers on their label attribute: record_type=offer&attributes.label__limio=X. To find the pages that show the offers with label X, filter pages on referencedLabel: record_type=page&referencedLabel=X. referencedLabel filters pages, not offers, and tags holds tag paths such as /tags/main, not labels.
Use this endpoint to find records: the offers with a label, the products changed since a date, the pages that show a label. Use /published_catalog_items for the published copy instead of the working copy.
Do not use this endpoint to read back a record that you just wrote. The index can lag a write by some seconds. GET /limio/catalogs/1/items/{path} reads the catalog itself, so it answers at once and answers with the record exactly as it is stored.
OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.
Obtain a token via the OAuth flow described in Authentication.
Pass the token in the Authorization header: Bearer <token>
The record type to retrieve. Each type answers from its own tree in the catalog index.
offerPossible values: Filter items by Elasticsearch document ID.
Filter by the exact catalog path of the item, e.g. /offers/2024 Summer Campaign or /pages/Homepage.
/offers/2024 Summer CampaignFilter by a tag path in the tags list of the record, e.g. /tags/main. Give the whole tag path. Pages carry tags. Offers seldom do, so on offers this filter usually answers with no records, not with an error. To find the offers with a label, use attributes.label__limio instead.
/tags/mainFilter pages by the label of the offers that they show. Pages only: an offer has no referencedLabel. To find the offers with a label, use attributes.label__limio.
studentSet to true to leave out a fixed set of heavy display attributes (assets, attachments, checkout, offer features and styling) and the attributes of each expanded product. It is not a projection: it does not take a list of fields, and it does not remove a large attribute array such as allowed_countries. Use it to trim a response, not to choose what a response holds.
Number of items per page (default 50, maximum 160). The response size limit is 6 MB, so use smaller page sizes with queryMore pagination when retrieving large datasets. Note: this parameter cannot be used in combination with opt.all=true — once opt.all is set, the page size cannot be increased.
50Example: 50Filter items modified after the indicated date or date-time (ISO-date format, i.e '2020-12-01' or '2020-12-01T16:00:00Z')
2020-12-01T16:00:00ZSet to true to enable cursor-based pagination. When enabled, the response includes a queryMore object with from and alias fields that can be passed to subsequent requests to retrieve the next page. A maximum of 100 items will be returned per page when active.
falseThe From Hash for the query more functionality. Use it to fetch next page of the query (obtained from queryMore.from in the response)
The Alias for the query more functionality. Use it to fetch next page of the query (obtained from queryMore.alias in the response)
To query with attributes, replace 'YOUR_ATTRIBUTE_HERE' with your attribute. Attributes are defined by your templates.
Due Upon ReceiptOK
The commit ID of the index that was queried.
Bad request. Returned when query parameters fail validation, e.g. missing record_type.
Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.
GET /api/catalog_items?record_type=offer HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"hits": {
"value": 1,
"relation": "eq"
},
"items": [],
"queryMore": {
"from": "text",
"alias": "text"
},
"commitId": "text"
}Searches the published index and answers with the live copy of each record. A record appears here only after a publish, so this is the endpoint that answers what a customer sees.
Only the types that publish are available: add_on, offer and discount. It takes the same filters and paging as /catalog_items.
Use /catalog_items for the working copy, which includes records that no publish has made live. Use GET /limio/catalogs/1/items/{path} to read one record that you can name, exactly as it is stored.
OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.
Obtain a token via the OAuth flow described in Authentication.
Pass the token in the Authorization header: Bearer <token>
The type of published item to retrieve. Only publishable types are accepted.
Filter items by Elasticsearch document ID.
Filter by the exact catalog path of the item, e.g. /offers/2024 Summer Campaign or /pages/Homepage.
/offers/2024 Summer CampaignFilter pages by the label of the offers that they show. Pages only: an offer has no referencedLabel. To find the offers with a label, use attributes.label__limio.
studentSet to true to leave out a fixed set of heavy display attributes (assets, attachments, checkout, offer features and styling) and the attributes of each expanded product. It is not a projection: it does not take a list of fields, and it does not remove a large attribute array such as allowed_countries. Use it to trim a response, not to choose what a response holds.
Number of items per page (default 50, maximum 160). The response size limit is 6 MB, so use smaller page sizes with queryMore pagination when retrieving large datasets. Note: this parameter cannot be used in combination with opt.all=true — once opt.all is set, the page size cannot be increased.
50Example: 50Filter items modified after the indicated date or date-time (ISO-date format, i.e '2020-12-01' or '2020-12-01T16:00:00Z')
2020-12-01T16:00:00ZSet to true to enable cursor-based pagination. When enabled, the response includes a queryMore object with from and alias fields that can be passed to subsequent requests to retrieve the next page. A maximum of 100 items will be returned per page when active.
falseThe From Hash for the query more functionality. Use it to fetch next page of the query (obtained from queryMore.from in the response)
The Alias for the query more functionality. Use it to fetch next page of the query (obtained from queryMore.alias in the response)
To query with attributes, replace 'YOUR_ATTRIBUTE_HERE' with your attribute. Attributes are defined by your templates.
Due Upon ReceiptOK
The commit ID of the index that was queried.
Bad request. Returned when query parameters fail validation, e.g. non-publishable record_type or missing required parameters.
Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.
GET /api/published_catalog_items?record_type=add_on HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"hits": {
"value": 1,
"relation": "eq"
},
"items": [],
"queryMore": {
"from": "text",
"alias": "text"
},
"commitId": "text"
}Last updated
Was this helpful?

