get-api2-dashboard-offers-lis

Get Line Item Selector (LIS) List

Pulls a list of line item selectors available and defined at the business level.

To call this API, the offers ingestion option must be enabled for the business on the Punchh platform. Contact your Punchh representative to update this Punchh platform configuration.

Line item selector search is on a business level, and the request can:

  • Set search limits and order by descending search
  • Filter based on name and other attributes, for example, name or recency For more information, see Offers Ingestion Management
Headers
  • Accept
    Type: string

    Set this header to application/json

  • Authorization
    Type: string
    required

    Bearer token for admin authorization, who is making a call on behalf of the customer. Send the API key in the following format: "Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE".

  • Content-Type
    Type: string

    Set this header to application/json

Body
application/json
  • page
    Type: integer
    default: 
    1

    Number of pages to retrieve. If the requested number exceeds the available pages, the system will retrieve up to the last valid page. If the page value is not provided, the default value is used.

  • per_page
    Type: integer
    default: 
    20

    Number of records per page. If the per_page value is not provided, the default value is used. The maximum per_page value is enforced based on the OFFERS_LIST_MAX_PER_PAGE environment variable.

  • query
    Type: string

    Define the search string on the lis name column

Responses
  • 200
    Type: LIS Output (Object)
    • data
      Type: array object[]

      A list of line item selectors

    • meta
      Type: object

      Contains pagination information

  • 400
    Type: object
    • error
      Type: string
  • 401
    Type: object
    • error
      Type: string
  • 403
    Type: object
    • error
      Type: string
get/api2/dashboard/offers/lis
{
  "data": [
    {
      "name": "string",
      "external_id": "string",
      "filter_item_set": "string",
      "exclude_non_payable": true,
      "base_items": {
        "clauses": [
          {
            "attribute": "string",
            "operator": "string",
            "value": "string"
          }
        ]
      },
      "modifiers": {
        "max_discount_units": 1,
        "processing_method": "string",
        "clauses": [
          {
            "attribute": "string",
            "operator": "string",
            "value": "string"
          }
        ]
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 1,
    "total_records": 1
  }
}