Now in Beta: Multi-Entity Global Rules

Documentation

Explore our comprehensive documentation to understand how to integrate and utilize PriceFlow effectively. From API references to step-by-step guides, we provide all the resources you need to get started and make the most of our platform.

products schema

FieldTypeDescription
skuStringUnique identifier for the product entity.
base_priceDecimalCost per unit in the base currency.
base_currencyStringISO 4217 currency code.
nameStringThe display name of the product.
categoryStringThe category to which the product belongs.
metadataJSONAdditional key-value pairs.
{
"id":"success"
"name":"SaaS Enterprise"
"base_currency":"USD"
"base_price":99.99
"category":"Software"
"metadata":{
"features":[
0:"API Access"
1:"Priority Support"
2:"Unlimited Users"
]
"trial_period_days":30
"support_email":"support@saasenterprise.com"
}
}

CSV Mapping Guide

Destination FieldRequirementtypedefault value
skuRequiredStringN/A
base_priceRequiredDecimalN/A
base_currencyRequiredStringN/A
nameOptionalStringN/A
categoryOptionalStringN/A

Tips

Tips for CSV Upload
  • Use a consistent format for the base_currency field.
  • Ensure that the metadata JSON is properly escaped in the CSV.

Things to avoid

Common Errors
  • Duplicate SKUs will result in the last occurrence being used.
  • Invalid JSON in the metadata field will cause the row to be skipped.

Data integrity

Validation Rules
  • Missing required fields will cause the row to be skipped.
  • base_price must be a positive number.
Data Types
  • Ensure that base_price is a valid decimal.
  • metadata should be a valid JSON object if provided.
Unique Constraints
  • Each product must have a unique SKU.

Customers Schema

FieldTypeDescription
codeStringPricora internal customer ID.
external_idStringIdentifier in your own system.
emailStringVerified communication address.
regionStringOperational jurisdiction (e.g. EU).
nameStringFull name of the customer.
metadataJSONAdditional key-value pairs.
{
"code":"CUST-001"
"external_id":"EXT-12345"
"email":"customer@example.com"
"region":"EU"
"name":"John Doe"
"metadata":{
"company":"Example Corp"
"tier":"Enterprise"
}
}

CSV Mapping Guide

Destination FieldRequirementtypedefault value
codeRequiredStringN/A
external_idOptionalStringN/A
emailOptionalStringN/A
regionOptionalStringN/A
nameOptionalStringN/A

Data integrity

Validation Rules
  • All fields are mandatory for customer creation.
  • Country must follow ISO 3166-1 alpha-2 format.
Common Mistakes
  • Invalid country codes (e.g., 'UK' instead of 'GB').
  • Missing unique customer IDs.

Pricing Rules Schema

FieldTypeDescription
codeStringUnique identifier for the Customer.
nameStringThe display name of the Rule.
skuStringThe product's stock keeping unit.
valueDecimalThe value of the pricing rule.
typeEnum (FLAT/PERCENT)The type of the pricing rule (Fixed | Percentage).
minimum_quantityIntegerThe minimum quantity for which the pricing rule applies.
priorityIntegerThe priority of the pricing rule.
statusEnum (TRUE/FALSE)Indicates whether the pricing rule is active.
metadataJSONAdditional key-value pairs.
{
"code":"PR-001"
"name":"Summer Sale"
"sku":"SKU-456"
"value":15
"type":"FLAT"
"minimum_quantity":100
"priority":90
"status":true
"metadata":{
"description":"15 USD off for summer promotio..."
"valid_from":"2024-06-01"
"valid_to":"2024-08-31"
}
}

CSV Mapping Guide

Destination FieldRequirementtypedefault value
codeRequiredStringN/A
skuRequiredStringN/A
valueRequiredDecimalN/A
typeRequiredEnum (FLAT/PERCENT)N/A
nameOptionalStringN/A
minimum_quantityOptionalInteger1
priorityOptionalInteger0
statusOptionalEnum (TRUE/FALSE)TRUE

Data integrity

Validation Rules
  • Type must be exactly 'FLAT' or 'PERCENT'.
  • Value must be numeric.
Common Mistakes
  • Referencing non-existent SKUs.
  • Overlapping priorities for the same SKU.