List Itemsets

Use this API to list itemsets created in the advertiser account

Note: The API currently provides only a list of measurement itemsets that were successfully built

📘

URL: ​POST/api/v1/itemsets/list

Request Parameters

ParameterNotesTypeRequiredPossible Values
advertiserId ID of the advertiserintegerYUnique numeric identifier
Filter[itemsetId]List of itemset IDs
Note: max size of the array is 25
arrayNUnique itemset IDs
Filter[lastModifiedDate] To get list of itemsets modified on or after this datedateNdate value.

Date should be in format:   yyyy-MM-dd'T'HH:mm:ss.SSSXXX
Filter[class]To get list of itemsets belonging to a specific classstringNEnum values:

• measurement
• targeting
Filter[status]To get list of itemsets belonging to a specific statusstringNEnum values:

• building
• built
• draft
• failed
• invalid
• pending
startIndexYou can use this parameter to fetch specific number of itemsets from the available list. This indicates the starting position of the liststringNA range of 0 to length of the list minus one

Example: To return the first ten itemsets entries, set startIndex=0 and count=10
countYou can use this parameter in combination with startIndex to fetch specific number of itemsets from the available list.integerNNumber of itemsets that you want to fetch in response to this call

Note: defaultCount=100, maxCount = 100, minCount = 1

Example: To return the first ten itemset entries, set startIndex=0 and count=10

Headers

Header NameDescriptionRequiredValues
AuthorizationThe token will provide you the access to the API. It is same for all advertisers you access through the API.YPlease utilize the generated auth_token shared with you at the time of partner onboarding from the Getting Started Guide
WM_CONSUMER.IDWe will provide you the consumer ID to access the API. It is same for all advertisers you access through the API.   YPlease use the generated ConsumerId shared with you at the time of partner onboarding. Refer to the Getting Started Guide for more information
WM_SEC.AUTH_SIGNATUREAuth signature as an API key.YUse the signature generator code from Getting Started Guide to generate this value
WM_SEC.KEY_VERSIONWe will provide you with the KEY VERSION to access the API. It is same for all advertisers you access through the API.Y1
WM_CONSUMER.intimestampTimestamp for which the auth signature is generated. Use Unix epoch format for the timestamp.YUse the signature generator code from Getting Started Guide to generate this value

Sample Request

curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/itemsets/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>'
--header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \  --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' --data ' { "advertiserId": 1, "Filter[itemsetId]": [1, 2], "Filter[lastModifiedDate]": "string", "Filter[class]": "measurement", "Filter[status]": "built", "startIndex": 0, "count": 10 } ' 

Response

ElementDescriptionType
totalResultsTotal number of rows returned in the responseinteger
itemsetsElements of array:
  • itemsetId: unique identifier for item set
    • Data type: integer
  • name
    • Data type: string
  • description
    • Data type: string
  • status
    • Data type: string
    • Values: DRAFT, BUILDING, FAILED, BUILT, INVALID, PENDING
  • class
    • Data type: string
    • Value: MEASUREMENT
  • editable
    • Data type: string
    • Value: true
  • creationDate
    • Data type:date
  • lastUpdatedDate
    • Data type: date
string

Sample Response

{ "totalResults": 2, "itemsets": [ { "itemsetId": 1, "name": "string", "description": "string", "status": "BUILT", "class": "MEASUREMENT", "editable": "true", "creationDate": "string", "lastUpdatedDate": "string" }, { "itemsetId": 2, "name": "string", "description": "string", "status": "BUILT", "class": "MEASUREMENT", "editable": "true", "creationDate": "string", "lastUpdatedDate": "string" } ] }