Scan Reports APIs

This section describes the APIs used by the App flow. These endpoints allow clients to: Check the processing status of one or more scans. Fetch on-demand analytical reports for a given scan.

1. Fetch Scan Statuses

Endpoint

POST /mobilesdkapi/facing/scan-statuses

Description

Returns the current processing status and metadata for one or more scans. This is typically used to show whether a scan is still in progress, completed, or failed, and to expose basic capture metadata.

Authentication

This endpoint requires a valid access tokenarrow-up-right.

Headers:

x-pensa-access-token: <access_token>
X-Cognito-Username: <app_username>

Request

Request body

{
  "scan_ids": [1234, 5678]
}
  • scan_ids (array, required): List of scan IDs whose status you want to query.

Response

Success response (200)

Field reference

Top-level

  • data (array): List of scan status items.

ScanStatusItem fields (NEW MODEL)

  • id (int): Scan ID.

  • status (string): Final processing status (for example, COMPLETE).

  • fast_status (string): Fast-pipeline status (for example, COMPLETE).

  • created (string): Timestamp when the scan record was created.

  • scan_timestamp (string): Timestamp when the scan was captured.

  • scanner_id (int): Identifier of the scanner device.

  • shelf_scan_period_id (int): Shelf scan period identifier.

  • fast_completed (string): Timestamp when the fast pipeline completed.

  • completed (string): Timestamp when the full pipeline completed.

  • capture_duration_secs (int): Total capture duration (in seconds).


2. Fetch On-Demand Reports

Endpoint

Description

Returns on-demand analytical reports for a given scan.

Authentication

This endpoint also requires a valid access token.

Headers:

Request

Request body

  • scan_id (int, required): ID of the scan you want to fetch reports for.

  • report_types (array, required): List of report types to return.

    • FACINGS_SEEN

    • FULL_FACINGS

    • FULL_FACINGS_AND_PRODUCT_POSITIONS

    • ITEMS_SEEN

    • NEW_PRODUCTS

    • OOS

    • PRODUCT_POSITIONS

Response

Success response (200)

A simplified example response:

Field reference

Top-level

  • data (object): Map of report type

Report wrapper

  • project_report_name (string): Readable report name.

  • project_report_id (int): Internal identifier of the report definition.

  • project_name (string): Name of the project associated with the scan.

  • project_id (int): Project identifier.

  • scan_id (int): Scan identifier the report belongs to.

  • report (object): Report payload.

report.product_list[] items

Each element describes a product observed in the scan.

  • brand (string)

  • brand_id (int)

  • category (string)

  • category_id (int)

  • manufacturer (string)

  • manufacturer_id (int)

  • product (string)

  • product_id (int)

  • upc (string)

Last updated

Was this helpful?