Milestone groups
Create 2–20 escrows for a job paid in stages in one atomic request, and read them back as one unit.
API keyHow to authenticate
- POSTCreate milestone group
/v1/escrow-groupsCreates 2-20 ordinary escrows that are paid, released or refunded independently and read as one group — the way to pay a project in stages. Each item ofmembersis exactly aPOST /v1/escrowsbody, with the same rules and defaults; array order is the milestone order. Atomic: every member is created or none is. Each member gets its own platform fee, computed from its own amount and rounded down. An invalid member is 422validation_failednaming the field asmembers.<index>.<field>(zero-based); anexternalReferencealready used in the organization (the group's or a member's) is 409 and nothing is created. SupportsIdempotency-Keyfor the whole request (optional; 8-255 characters when sent): the same key with the same body returns the same group; the same key with a different body is a conflict; without a key, a retried request creates a second group. When every member has reached a final state (RELEASED, REFUNDED, RESOLVED, CANCELLED or EXPIRED) oneescrow.group.completedwebhook is sent. Partial release, partial refund and split dispute outcomes are not supported by the deployed contract (BL-02) — a group of separate escrows is the supported way to pay in parts. - GETGet milestone group
/v1/escrow-groups/{groupId}Retrieves one milestone group with every member, in milestone order, each a full escrow with its current status and links.progressis computed from the members on every read;completedAtis whenescrow.group.completedwas sent, and is not cleared if a member is later reconciled after a chain reorganization — readprogressfor the current state. Another organization's group is 404.