get-api2-segment-list
Get Segment List
Pulls a list of segments available and/or defined on Punchh, allowing for browsing/selecting of Punchh segments natively in an external platform. Segment search is on a business level, and the request can:
- Set search limits and order by desc search
- Search based on name or segment type filter
- Filter based on name or description For more information, see Headless Offers Management - Distribution
Headers
- Type: string
Content - Type requiredapplication/json
- Type: string
Accept requiredapplication/json
- Type: string
Authorization requiredBearer token for admin authorization, who is making a call on behalf of the customer
Body
application/json
- Type: integer
page Number of pages
- Type: integer
per _page Number of records per page
- Type: string
query Define the search string on the segment name
Responses
- Type: object
200 - Type: string
description Description of the segment
- Type: string
membership _level Membership level of the user
- Type: string
name Name of the segment
- Type: integer
segment _id Unique ID of the segment
- Type: string
segment _type Type of the segment
- Type: string
user _type Type of the user
- Type: object
400 - Type: object
422
get/api2/dashboard/segments
{
"segment_id": 1,
"name": "string",
"description": "string",
"segment_type": "string",
"user_type": "string",
"membership_level": "string"
}