Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a commission rate.
curl -X POST 'http://localhost:9000/admin/commission-rates' \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json' \ -d '{"name": "Electronics", "code": "electronics", "type": "percentage", "value": 12, "rules": [{"reference": "product_category", "reference_id": "pcat_01HXYZ"}]}'
const { commission_rate } = await client.admin.commissionRates.mutate({ name: "Electronics", code: "electronics", type: "percentage", value: 12, rules: [{ reference: "product_category", reference_id: "pcat_01HXYZ" }], })
{ "commission_rate": { "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y", "name": "Electronics", "code": "electronics", "type": "percentage", "value": 12, "currency_code": null, "include_tax": false, "include_shipping": false, "is_enabled": true, "is_default": false, "rules": [ { "id": "comrule_01HXYZ9A1B2C3D4E5F6G7H8J9K", "reference": "product_category", "reference_id": "pcat_01HXYZ" } ], "values": [] } }
fixed
percentage
Show properties
product
product_type
product_collection
product_category
seller