Skip to main content
PUT
Convert standard escrow to milestone

Authorizations

Authorization
string
header
required

Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (staging) or sk_live_... (production); a key on the wrong host is refused with 403 Unauthorized Access. Each key is limited to 10 requests per minute (429 beyond that) and, on production, to the IP addresses on your dashboard allowlist when one is configured.

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

Splits a standard escrow's amount into milestones. amount is optional: supply it to set a new escrow amount, or omit it to keep the escrow's current amount. Either way the milestone amounts must sum to the target amount.

milestones
object[]
required

At least 2 milestones whose amounts sum to the target amount (the new amount if supplied, otherwise the escrow's existing amount).

Minimum array length: 2
amount
integer

Optional new escrow amount (naira, two decimal places, minimum 1000). Omit to keep the current amount; the milestones must still sum to it.

Example:

200000

Response

Escrow converted to a milestone escrow.

status
integer
Example:

200

message
string
Example:

"Operation successful"

data
object