Skip to content

Update SKU Split

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

Use this call to update the configuration or the beneficiary split definitions for an existing SKU.

FieldTypeRequirementDescription
SKUStringRequiredThe unique product SKU identifier to update.
DescriptionStringOptionalA description for this SKU split configuration.
RulesJSONStringOptionalA stringified JSON array containing updated Username and Percentage definitions.
DataJSONStringOptionalExtensible JSON data associated with this SKU rule.
MetadataStringOptionalAny other detail that you wish to store with this event.
{
"SKU": "Celbux_Credits",
"Description": "Updated Split for Celbux Credits",
"RulesJSON": "[{\"Username\":\"celbuxCredits\",\"Percentage\":\"20.00\"},{\"Username\":\"celbuxCashback\",\"Percentage\":\"10.00\"}]",
"DataJSON": "{}",
"Metadata": "{\"UpdateReason\": \"Rate change\"}"
}
Terminal window
curl -X POST '{api-url}/updateSKUSplit?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"SKU":"Celbux_Credits","Description":"Updated Split for Celbux Credits","RulesJSON":"[{\"Username\":\"celbuxCredits\",\"Percentage\":\"20.00\"},{\"Username\":\"celbuxCashback\",\"Percentage\":\"10.00\"}]","DataJSON":"{}","Metadata":"{\"UpdateReason\": \"Rate change\"}"}'