UiPath Documentation
industry-department-solutions
latest
false
  • Overview
  • API Resources

Supply Chain & Retail Solutions API guide

Product Extra

Overview

The product_extra resource represents additional dynamic attributes for products in the B2C pricing application. This resource enables flexible key-value pairs for product-specific metadata.

Resource Endpoint

/api/v2/ingest/object/{prefix}PRODUCT_EXTRA{suffix}
/api/v2/ingest/object/{prefix}PRODUCT_EXTRA{suffix}

Supported Methods

MethodReturn TypeDescription
POSTResponseIngest (create/update) product extra records via UPSERT operation

Request Headers

HeaderRequiredDescription
AuthorizationYesYour Personal Access Token (PAT) from platform.peak.ai
Content-TypeYesMust be application/json

Properties

Primary Keys

  • product_extra_attribute (string) - Name of the extra attribute
  • product_extra_value (string) - Value of the extra attribute
  • product_id (string) - Foreign key reference to products

Attributes

About Required + Nullable: every attribute key must appear in each payload (Required: Yes). Nullable: Yes means the value can be null when you don't have data; Nullable: No means a non-null value is required. See Schema definition structure for the underlying rules.

AttributeData TypeRequiredNullableDescription
product_extra_attributestringYesNoAttribute name (Primary Key)
product_extra_valuestringYesNoAttribute value (Primary Key)
product_idstringYesNoProduct identifier (Primary Key, Foreign Key)
created_attimestampYesYesTimestamp when the record was created
updated_attimestampYesYesTimestamp when the record was last updated

Relationships

Outbound References

None

Inbound References

  • product - Foreign key product_id references product

JSON Representation

{
  "solutionName": "QP_OOTB",
  "data": [
    {
      "product_extra_attribute": "color",
      "product_extra_value": "black",
      "product_id": "PROD-001",
      "created_at": "2025-01-10T08:00:00Z",
      "updated_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "QP_OOTB",
  "data": [
    {
      "product_extra_attribute": "color",
      "product_extra_value": "black",
      "product_id": "PROD-001",
      "created_at": "2025-01-10T08:00:00Z",
      "updated_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/QP_PRODUCT_EXTRA_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "QP_OOTB",
    "data": [
      {
        "product_extra_attribute": "color",
        "product_extra_value": "black",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "updated_at": "2025-01-28T10:00:00Z"
      },
      {
        "product_extra_attribute": "size",
        "product_extra_value": "medium",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "updated_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/QP_PRODUCT_EXTRA_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "QP_OOTB",
    "data": [
      {
        "product_extra_attribute": "color",
        "product_extra_value": "black",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "updated_at": "2025-01-28T10:00:00Z"
      },
      {
        "product_extra_attribute": "size",
        "product_extra_value": "medium",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "updated_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • Foreign Key Dependencies: Requires valid product_id to exist in the products object
  • Flexible Schema: Enables storing variable product attributes without schema changes
  • Multiple Attributes: A single product can have many extra attributes
  • Use Cases: Ideal for variant attributes (color, size), specifications, or custom metadata
  • Custom Attributes: Additional custom attributes can be added using the /PRODUCT_EXTRA/add-attribute endpoint
  • Data Validation: All attributes are validated according to their defined data types
  • product - Base product information

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated