UiPath Documentation
industry-department-solutions
latest
false
Supply Chain & Retail Solutions API guide
  • Overview
  • API Resources

Tax

tax API resource representing VAT and other tax rates per product-location combination in Supply Chain & Retail Solutions.

Overview

The tax resource represents tax rates for products at specific locations. This resource stores Value Added Tax (VAT) or other tax information applicable to product-location combinations.

Resource Endpoint

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

Supported Methods

MethodReturn TypeDescription
POSTResponseIngest (create/update) tax 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_id (string) - Foreign key reference to products
  • location_id (string) - Foreign key reference to locations
  • created_at (timestamp) - Timestamp when the tax record was created — included in the PK so successive tax updates for the same product/location pair are distinct rows

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_idstringYesNoProduct identifier (Primary Key, Foreign Key)
location_idstringYesNoLocation identifier (Primary Key, Foreign Key)
created_attimestampYesNoTimestamp when the record was created (Primary Key)
vatfloatYesYesVAT or tax rate (typically as a decimal, e.g., 0.20 for 20%)
updated_attimestampYesYesTimestamp when the record was last updated

Relationships

Outbound References

None

Inbound References

  • location - Foreign key location_id references location
  • product - Foreign key product_id references product

JSON Representation

{
  "solutionName": "MP_OOTB",
  "data": [
    {
      "location_id": "LOC-UK-001",
      "product_id": "PROD-001",
      "created_at": "2025-01-10T08:00:00Z",
      "vat": 0.20,
      "updated_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "MP_OOTB",
  "data": [
    {
      "location_id": "LOC-UK-001",
      "product_id": "PROD-001",
      "created_at": "2025-01-10T08:00:00Z",
      "vat": 0.20,
      "updated_at": "2025-01-28T10:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/MP_TAX_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "MP_OOTB",
    "data": [
      {
        "location_id": "LOC-UK-001",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "vat": 0.20,
        "updated_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/MP_TAX_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "MP_OOTB",
    "data": [
      {
        "location_id": "LOC-UK-001",
        "product_id": "PROD-001",
        "created_at": "2025-01-10T08:00:00Z",
        "vat": 0.20,
        "updated_at": "2025-01-28T10:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • Foreign Key Dependencies: Requires valid product_id and location_id to exist in their respective tables
  • Tax Rate Format: VAT is typically stored as a decimal (e.g., 0.20 represents 20% tax)
  • Location-Specific: Tax rates can vary by location due to different jurisdictions
  • Product-Specific: Some products may have different tax rates (e.g., reduced rates for essentials)
  • Pricing Calculations: Used to calculate final prices including tax
  • Custom Attributes: Additional custom attributes can be added using the /TAX/add-attribute endpoint
  • Data Validation: All attributes are validated according to their defined data types

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated