Create milestone escrow
4. Create the deal — Milestone Escrow
Create milestone escrow
Creates a milestone escrow (JSON body, no file upload). Rules: at least 2 milestones, every milestone amount is a positive integer, and the sum of milestone amounts must equal amount. Requires the customer-id header.
POST
Create milestone escrow
Authorizations
Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).
Headers
The merchant customer this request acts on behalf of.
Body
application/json
Example:
1000000
Example:
"Company website build"
For milestone escrows the buyer always pays the Payluk fee; buyer is the only accepted value.
Available options:
buyer Example:
"buyer"
At least 2 milestones whose amounts sum to amount.
Minimum array length:
2Example:
"3-phase delivery"
Example:
30
Available options:
minutes, hours, days Example:
"days"
Example:
1
Example:
"665f1b2c9a1e4d0012ab3c30"