Connect
POST/v1/split-rules

Create split rule

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/split-rules" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"recipients":[{"merchant_id":"mch_01jd2x3k4m5n6p7q8r9s0t1v2w","name":"Example","address":"string","share_bps":1,"seller":true,"platform":true}]}'

Creates the active split rule for one stablecoin service, or for every listed service with apply_to_all; shares must add up to 10000 bps and every recipient needs an address on the service network. Console session or API key with connect:manage.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/split-rulesBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionconnect:manage
Held by operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
service_id?|

Catalog service id (svc_...).

recipients*array<>
Items1 <= items <= 20
apply_to_all?Apply To All

Create the rule for every stablecoin service the platform lists instead of one service.

Defaultfalse

Response Body

Success.

application/json
  1. response
rule*
rules?array<>|null
count?integer|null
skipped?array<>|null
apply_to_all?|

Create the rule for every stablecoin service the platform lists instead of one service.

[key: string]?any