Skip to main content

Relations Overview

RelationshipTypeDescription
CommissionRule → CommissionRateOne-to-OneA commission rule has one commission rate
CommissionLine → CommissionRuleRead-only - has oneA commission line references a commission rule
CommissionLine → LineItem (Order Module)Read-only - has oneA commission line references an order line item

Data Models

CommissionRule

This documentation provides a reference to the CommissionRule data model. It belongs to the Commission Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the commission rule.
nameTextPropertyThe name of the commission rule
referenceTextPropertyThe type of the commission rule. Can be site, product_type, product_category, seller+product_category, seller+product_type, or seller.
reference_idTextPropertyThe ID of the referenced entity (e.g., seller ID, product type ID).
is_activeBooleanPropertyWhether the commission rule is active. Defaults to true.
rateHasOne<CommissionRate>The associated CommissionRate.

CommissionRate

This documentation provides a reference to the CommissionRate data model. It belongs to the Commission Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the commission rate.
typeTextPropertyThe type of the commission rate. Can be flat or percentage.
percentage_rateNumberPropertyThe percentage rate for percentage-based commissions.
include_taxBooleanPropertyWhether the commission calculation includes tax.
price_set_idTextPropertyThe ID of the price set used for flat-rate commissions.
max_price_set_idTextPropertyThe ID of the price set defining the maximum commission amount.
min_price_set_idTextPropertyThe ID of the price set defining the minimum commission amount.
ruleBelongsTo<CommissionRule>The associated CommissionRule.

CommissionLine

This documentation provides a reference to the CommissionLine data model. It belongs to the Commission Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the commission line.
item_line_idTextPropertyThe ID of the order line item that this commission applies to.
rule_idTextPropertyThe ID of the commission rule that was applied.
currency_codeTextPropertyThe ISO 3 currency code of the commission. For example, usd.
valueBigNumberPropertyThe calculated commission amount.