Skip to main content
PUT
Edit milestone escrow

Authorizations

Authorization
string
header
required

Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).

Headers

customer-id
string
required

The merchant customer this request acts on behalf of.

Path Parameters

paymentToken
string
required

The escrow's payment token (e.g. PY_8AB12C9D3045).

Body

application/json
amount
integer
required
Example:

1000000

purpose
string
required
Example:

"Company website build"

whoPays
enum<string>
required

For milestone escrows the buyer always pays the Payluk fee; buyer is the only accepted value.

Available options:
buyer
Example:

"buyer"

milestones
object[]
required

At least 2 milestones whose amounts sum to amount.

Minimum array length: 2
description
string
Example:

"3-phase delivery"

maxDelivery
integer
Example:

30

deliveryTimeline
enum<string>
Available options:
minutes,
hours,
days
Example:

"days"

totalQuantity
integer
Example:

1

categoryId
string
Example:

"665f1b2c9a1e4d0012ab3c30"

Response

Milestone escrow updated.

status
integer
Example:

200

message
string
Example:

"Operation successful"

data
object