ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiSplits

Create or replace the split rule for a project

PUT
/api/v1/splits/rules

Targets are lightning addresses with a percent each (sum ≤ 100%). Every settled project invoice pays out the shares automatically; the remainder stays with you.

Authorization

bearer

Query Parameters

projectId*string

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Rule saved

Example Request
curl -X PUT 'http://localhost:3001/api/v1/splits/rules?projectId=string'
Example Response200
Empty