Splits
Create a split
Changed onCreate a revenue split for your store. The split applies either to your whole store (type: store) or to a single product (type: product). Recipients are existing stores (added directly) or email invitees; a split created with any email invitee starts disabled and activates once the first invitee accepts. The split is always created for the store the API key belongs to.
post/v1/splits
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"description": "Q3 revenue share",
"type": "store",
"type_reference": "prod_1a2b3c4d",
"recipients": [
{
"recipient_type": "store",
"recipient_reference": "store_1a2b3c4d",
"amount": 25
}
]
}Response
Successfully created the split
Example response
{
"object": "split",
"store_id": "store_1a2b3c4d",
"description": "Q3 revenue share",
"type": "store",
"type_reference": "prod_1a2b3c4d",
"enabled": true,
"recipients": [
{
"type": "percentage",
"recipient_type": "store",
"recipient_reference": "store_1a2b3c4d",
"amount": 25,
"enabled": true,
"invite_status": "pending"
}
],
"created_at": 1735689600000
}Changes
- warning
added the new
revokedenum value to the//response property for the response status
- warning
- info
endpoint added
- info