post-api2-dashboard-offers-lis

Create Line Item Selector (LIS)

Allows a business to define one or more line item selectors (LIS). You can bulk create a maximum of 20 line item selectors per API call. If the request input contains more than 20 LIS, only the first 20 are created, and the remaining are ignored.

For more information, see Offers Ingestion Management

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.

For more information on LIS settings, see the Line Item Selectors article on the Support Portal.

Note: To view the Punchh product documentation on the Punchh Support Portal, you must log in to a Punchh platform production environment. If you already have access to a production environment, follow the instructions here to access the Punchh Support Portal.

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
  • data
    Type: array object[]
    required

    A list of line item selectors (LIS) that needs to be created

Responses
  • 200
    Type: LIS Results (Object)
    • results
      Type: array object[]

      List of responses indicating if the entity is created or not

  • 400
    Type: object
    • error
      Type: string
  • 401
    Type: object
    • error
      Type: string
  • 403
    Type: object
    • error
      Type: string
post/api2/dashboard/offers/lis
{
  "results": [
    {
      "external_id": "string",
      "success": true,
      "errors": [
        "string"
      ],
      "warnings": {
        "base_items": {
          "clauses": [
            {
              "message": "string",
              "item": {
                "attribute": "string",
                "operator": "string",
                "value": "string"
              }
            }
          ]
        },
        "modifiers": {
          "clauses": [
            {
              "message": "string",
              "item": {
                "attribute": "string",
                "operator": "string",
                "value": "string"
              }
            }
          ]
        }
      }
    }
  ]
}