Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Create SKU Split

POST {api-url}/createSKUSplit?ns={community}

Define SKU Split Rules that map a specific item/SKU to its target beneficiary wallets. Note: SKUs must not contain spaces. The total sum of percentages must not exceed the community limits.

FieldTypeRequirementDescription
SKUStringRequiredThe unique product SKU identifier without any spaces.
DescriptionStringOptionalA description for this SKU split configuration.
RulesJSONStringRequiredA stringified JSON array containing Username and Percentage keys for each beneficiary.
DataJSONStringOptionalExtensible JSON data associated with this SKU rule.
MetadataStringOptionalAny other detail that you wish to store with this event.
{
"SKU": "Celbux_Credits",
"Description": "Split for Celbux Credits",
"RulesJSON": "[{\"Username\":\"celbuxCredits\",\"Percentage\":\"18.75\"},{\"Username\":\"celbuxCashback\",\"Percentage\":\"12.50\"}]",
"DataJSON": "{}",
"Metadata": "{\"InitialSetup\": \"true\"}"
}
Terminal window
curl -X POST '{api-url}/createSKUSplit?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"SKU":"Celbux_Credits","Description":"Split for Celbux Credits","RulesJSON":"[{\"Username\":\"celbuxCredits\",\"Percentage\":\"18.75\"},{\"Username\":\"celbuxCashback\",\"Percentage\":\"12.50\"}]","DataJSON":"{}","Metadata":"{\"InitialSetup\": \"true\"}"}'