For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Product Bundles

ProductBundles object

Get product bundles

get
/v1/product-bundles

This operation returns a list of product bundles. Product bundles are groups of products that can have a fixed price and are always sold together as combo meals.

The default page size is 10; page sizes must be integers between 1 and 1000, including for the internal guest-ordering route.

Note: This operation needs Authentication and supports the following JSON:API features:

  • Relationships - productBundleItems using include query parameter.

  • Sparse fieldsets - supports all fields of productBundle and related resources with fields query parameter.

Authorizations
AuthorizationstringRequired

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Query parameters
page[size]integer · int32 · min: 1 · max: 1000Optional

The number of resources to return in a single response.

page[before]string · min: 1 · max: 36Optional

Unique identifier.

Pattern: ^[a-zA-Z0-9-]+$
page[after]string · min: 1 · max: 36Optional

Unique identifier.

Pattern: ^[a-zA-Z0-9-]+$
filter[updatedAtGt]any ofOptional

Filters the objects that were updated after a specified datetime.

string · date-time · max: 25Optional

Timestamp in RFC 3339 format.

Example: 2023-10-16T14:30:00Z
or
string · date · max: 10Optional

Date in RFC 3339 format.

Example: 2023-10-16
filter[updatedAtGteq]any ofOptional

Filters the objects that were updated after or on a specified datetime.

string · date-time · max: 25Optional

Timestamp in RFC 3339 format.

Example: 2023-10-16T14:30:00Z
or
string · date · max: 10Optional

Date in RFC 3339 format.

Example: 2023-10-16
Responses
200

Successful response with product bundles data in JSON:API format.

application/vnd.api+json
get/v1/product-bundles
GET /pos/v1/product-bundles HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": "286ef74f-e37f-477f-bcda-77f8fbfd13ea",
      "type": "productBundles",
      "attributes": {
        "name": "Combo Meal",
        "description": "A burger, fries, and drink",
        "imageUrl": "https://api.mews-demo.com/pos/images/example.png",
        "priceRange": {
          "min": "10.00",
          "max": "15.00"
        },
        "retailPriceInclTax": "15.00",
        "createdAt": "2022-10-16T11:29:00Z",
        "updatedAt": "2022-10-19T11:29:00Z"
      },
      "relationships": {
        "productBundleItems": {
          "data": [
            {
              "id": "c53372e2-9aa1-452a-8965-2ea3fa514fb2",
              "type": "productBundleItems"
            },
            {
              "id": "5efa8b3c-b930-4b31-918d-95ab0e212e64",
              "type": "productBundleItems"
            }
          ]
        }
      }
    }
  ],
  "included": [
    {
      "id": "c53372e2-9aa1-452a-8965-2ea3fa514fb2",
      "type": "productBundleItems",
      "attributes": {
        "retailPriceInclTax": "5.00",
        "groupName": "Lunch",
        "groupId": "32fa9b40-ea21-44b5-b0e0-d4ae8b9dbe42",
        "groupPosition": 1,
        "createdAt": "2022-10-16T11:29:00Z",
        "updatedAt": "2022-10-19T11:29:00Z"
      },
      "relationships": {
        "product": {
          "data": {
            "id": "06382148-c76a-489d-b382-72fb7d7ab37b",
            "type": "products"
          }
        },
        "productVariant": {
          "data": {
            "id": "e727124a-d2bb-4002-98bd-81af6d788666",
            "type": "productVariants"
          }
        }
      }
    },
    {
      "id": "5efa8b3c-b930-4b31-918d-95ab0e212e64",
      "type": "productBundleItems",
      "attributes": {
        "retailPriceInclTax": "10.00",
        "groupName": "Lunch",
        "groupId": "32fa9b40-ea21-44b5-b0e0-d4ae8b9dbe42",
        "groupPosition": 1,
        "createdAt": "2022-10-16T11:29:00Z",
        "updatedAt": "2022-10-19T11:29:00Z"
      },
      "relationships": {
        "product": {
          "data": {
            "id": "0907e6d2-62c1-44cd-a886-f403ce9c7145",
            "type": "products"
          }
        },
        "productVariant": {
          "data": null
        }
      }
    }
  ],
  "links": {
    "prev": "https://api.mews-demo.com/pos/v1/product-bundles?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
    "next": "https://api.mews-demo.com/pos/v1/product-bundles?page%5Bafter%5D=NA&page%5Bsize%5D=1"
  }
}

Last updated

Was this helpful?