LogoLogo
Support
Product Discovery Developer Guide
Product Discovery Developer Guide
  • Product Discovery Developer Guide
  • 🛒Item catalog management
    • What is the Items API?
    • How to work with Items
      • Item Schema
        • Attributes
        • Nested Item Schemas
        • Using the Item Schema API
        • DefaultLocale API
        • Onboarding on/migrating to Fredhopper
        • List of Reserved Attributes
      • Category Tree
        • Using the Category Tree API
        • Onboarding on XO
      • Item Catalog
        • Using the Catalog API
      • Items
        • Using the streaming Items API
        • Using the batch Items API
    • Step by Step guide
      • Step by step guide for Fredhopper customers
    • Feedback
      • Using the Feedback API
    • Authorization to APIs
    • Troubleshooting API errors
  • 🎯XO Recommendations
    • Introduction
    • Using the Recommendations API
    • Setting up the Chrome extension
    • Micro-segmentation
    • XO Legacy APIs
  • 🔎XO Search
    • Introduction
    • Getting started
    • API Reference
      • Search API
      • Autocomplete API (Beta)
      • Product Suggest API
    • API Parameters
      • Search
      • Pagination
      • Faceting
      • Sorting
      • Grouping
      • Filtering
      • Disable features
      • Response mask
      • Context
    • Configuration limitation
  • 🧪A/B testing
    • Fredhopper A/B testing
      • Integration steps for a non-caching solution
      • Integration steps for a caching solution
        • Java SDK Integration
          • Setup
          • Retrieve running A/B tests - Java SDK
          • Filter and request variant - Java SDK
          • Extending the SDK
        • Manual A/B tests integration
          • Retrieve running A/B tests
          • Filter out irrelevant A/B tests
          • Assign variants to user
          • Request variant for page
        • Limitations and Best Practices
  • 📚Resources
    • Glossary
    • Best Practices
      • Tracker Best Practices
      • Items API Best Practices
      • Fredhopper Data Configuration Best Practices
      • Fredhopper Query Response Best Practices
      • Fredhopper Merchandising Studio Best Practices
    • Privacy Notice
  • Archived Pages
    • FHR Tracking plan
    • XO Tracking plan
    • The Tracking API and JS Library
      • What to Track
        • Generic Actions
          • View
          • Click
          • Add to Cart
          • Remove from Cart
          • Purchase
        • Custom Actions
      • Initializing the JavaScript Library
      • REST API Technical Documentation
Powered by GitBook

Copyright @ 2024 Crownpeak Technology, Inc. All rights reserved.

On this page
  • Feedback API
  • Catalog activation statistics
  • Single update feedback
  • Created catalog versions
  • Summary of updates
  • Summary of updates within a time window
  • Summary of updates with a specified state
  • Summary of updates with a specified state within a time window
  • List of updates with specified state
  • List of updates with specified state within a time window
  1. Item catalog management
  2. Feedback

Using the Feedback API

Feedback API

The Feedback API is meant for customer integration. The information exposed via this API can be used for triggering alerts or retry strategies on the customer side as well as feeding customer side dashboards or any UI elements.

Catalog activation statistics

GET https://items.attraqt.io/feedback/catalog-version/:version/full/statistics

This endpoint queries statistics for a specified catalog version. The statistics are focused on creation and activation. Note that one catalog could have had multiple activation attempts.

Path Parameters

Name
Type
Description

version

string

The catalog version

Query Parameters

Name
Type
Description

environment

string

Name of the environment

tenant

string

Name of the tenant

{
    "catalogCreation": 
        {
            "version": "1",
            "startTimestamp": "2021-04-16T09:37:21.662",
            "endTimestamp": "2021-04-16T09:37:23.628",
            "duration": 1,
            "state": "SUCCESS",
            "message": "Creation of the catalog version #1 succeed // requestId: a21aa652-3c1d-460d-8417-6f17832e4167",
            "receiptId": "a21aa652-3c1d-460d-8417-6f17832e4167"
        }
    "catalogActivations" : [
        {
            "version": "1",
            "startTimestamp": "2021-04-16T09:47:21.662",
            "endTimestamp": "2021-04-16T09:57:23.628",
            "duration": 600,
            "state": "SUCCESS",
            "message": "Activation of the catalog version #1 succeed",
            "receiptId": "a21aa653-3c1d-460d-8417-6f17832e4167"
        },
        ...
    ]
}

Single update feedback

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/:receiptId

This endpoint returns feedback about a specific update, using its unique receiptId.

Path Parameters

Name
Type
Description

receiptId

string

The receiptId for the update

version

string

The catalog version

Query Parameters

Name
Type
Description

environment

string

Name of the tenant

tenant

string

Name of the environment

Headers

Name
Type
Description

Authorization

string

Bearer token containing the following permission:

{
  "update": {
    "startTimestamp": "string",
    "endTimestamp": "string",
    "duration": 0,
    "state": "UNKNOWN",
    "message": "string",
    "itemId": "string",
    "receiptId": "string"
  },
  "type": "DATA"
}

Created catalog versions

GET https://items.attraqt.io/feedback/catalog-version

This endpoint returns a history of created catalogs.

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

from

integer

Positive integer. Defaults to 0.

size

integer

Positive non-zero integer describing the number of elements to show. Must be lower than 100.

Headers

Name
Type
Description

Authorization

string

Bearer token containing the following permission:

{
  "catalogCreations": [
    {
      "version": "string",
      "startTimestamp": "string",
      "endTimestamp": "string",
      "duration": 0,
      "state": "UNKNOWN",
      "message": "string",
      "receiptId": "string"
    }
  ]
}

Summary of updates

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/statistics/summary/relative

This endpoint provides a summary of the number of updates processed in the past specified period e.g. in the last hour, in the last 30 minutes. The response groups counts for successful, failed, and still pending updates.

Path Parameters

Name
Type
Description

version

string

The catalog version

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

lastPeriodValue

integer

A count for a period, with the period unit specified in the lastPeriodUnit. The final time interval cannot be higher than 720 hours ( 30 days )

lastPeriodUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

{
  "numberOfSuccesses": 0,
  "numberOfFailures": 0,
  "numberOfPendingUpdates": 0
}

Summary of updates within a time window

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/statistics/summary/absolute

This endpoint provides a summary of the number of update processed within the given time window. The response groups counts for successful, failed, and still pending updates.

Path Parameters

Name
Type
Description

version

string

The catalog version

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

startTime

string

Must follow the ISO 8601 format. Cannot be in the future.

endTime

string

Must follow the ISO 8601 format. Cannot be in the future.

\

The time interval cannot be higher than 720 hours ( 30 days )

{
  "numberOfSuccesses": 0,
  "numberOfFailures": 0,
  "numberOfPendingUpdates": 0
}

Summary of updates with a specified state

GET /feedback/catalog-version/:version/updates/statistics/summary/:updateState/relative

This endpoint returns the number of updates with a certain state with a duration higher than the specified duration parameter. Only updates in the last specified period will be taken into account.

Path Parameters

Name
Type
Description

version

string

The catalog version

updateState

string

Available values are FAILURE, SUCCESS, PENDING

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

durationValue

integer

Positive non-zero value. The final duration period cannot be higher than 720 hours ( 30 days )

durationUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

lastPeriodValue

integer

Positive non-zero value. The final time interval cannot be higher than 720 hours ( 30 days )

lastPeriodUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

{
  "numberOfUpdates": 0
}

Summary of updates with a specified state within a time window

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/statistics/summary/:updateState/absolute

This endpoint returns the number of updates with a certain state with a duration higher than the specified duration parameter. Only updates within the specified time window will be taken into account.

Path Parameters

Name
Type
Description

version

string

The catalog version

updateState

string

Available values are: FAILURE, SUCCESS, PENDING

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

durationValue

integer

Positive non-zero value. The final duration period cannot be higher than 720 hours ( 30 days )

durationUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

startTime

string

Must follow the ISO 8601 format. Cannot be in the future

endTime

string

Must follow the ISO 8601 format. Cannot be in the future. The final time interval cannot be higher than 720 hours ( 30 days ).

{
  "numberOfUpdates": 0
}

List of updates with specified state

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/statistics/details/:updateState/relative

This endpoint returns a list of updates with a certain state with a duration higher than the specified duration parameter. Only updates in the last specified period will be taken into account. Pagination is done by use of the from and size parameters.

Path Parameters

Name
Type
Description

version

string

The catalog version

updateState

string

Available values are: FAILURE, SUCCESS, PENDING

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

durationValue

integer

Positive non-zero value. The final duration period cannot be higher than 720 hours ( 30 days )

durationUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

lastPeriodValue

integer

Positive non-zero value. The final time interval cannot be higher than 720 hours ( 30 days )

lastPeriodUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

from

integer

Positive integer. Defaults to 0.

size

integer

Positive non-zero integer. Maximum size is 100.

{
  "updates": [
    {
      "startTimestamp": "string",
      "endTimestamp": "string",
      "duration": 0,
      "state": "UNKNOWN",
      "message": "string",
      "itemId": "string",
      "receiptId": "string"
    }
  ]
}

List of updates with specified state within a time window

GET https://items.attraqt.io/feedback/catalog-version/:version/updates/statistics/details/:updateState/absolute

This endpoint returns the list of updates with a certain state with a duration higher than the specified duration parameter. Only updates within the specified time window will be taken into account. Pagination is done by use of the from and size parameters.

Path Parameters

Name
Type
Description

version

string

The catalog version

updateState

string

Available values are: FAILURE, SUCCESS, PENDING

Query Parameters

Name
Type
Description

tenant

string

The name of the tenant

environment

string

The name of the environment

durationValue

integer

Positive non-zero value. The final duration cannot be higher than 720 hours ( 30 days )

durationUnit

string

Available values: SECOND, MINUTE, HOUR

\

Default: SECOND

startTime

string

Must follow the ISO 8601 format

endTime

string

Must follow the ISO 8601 format

from

integer

Positive integer. Defaults to 0

size

integer

Positive non-zero integer. Maximum size is 100.

{
  "updates": [
    {
      "startTimestamp": "string",
      "endTimestamp": "string",
      "duration": 0,
      "state": "UNKNOWN",
      "message": "string",
      "itemId": "string",
      "receiptId": "string"
    }
  ]
}
PreviousFeedbackNextAuthorization to APIs

Last updated 7 months ago

🛒