Skip to Content
HomeLink Hub
Escrow

Pay the next milestone (raw passthrough)

POST
/api/v1/escrow/milestone/next-payment

Access: Bearer token required.

Thin proxy to Pandascrow's POST /escrow/next-payment for milestone escrows: forwards userId as uuid, escrowId as escrow_id and the caller's IP address as ip_address, then returns Pandascrow's status, message and data.

No local state is changed by this call; the local escrow record is set to funded only if Pandascrow later delivers its milestone-paid webhook. The handler does not check that the caller is a party to the escrow, and userId is taken from the body rather than the access token. The first-party apps only create onetime escrows and do not call this endpoint.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
userId*string

Sent to Pandascrow as uuid.

escrowId*string

Pandascrow escrow id of the milestone escrow (Pandascrow takes it as a string here).

Response Body

Pandascrow answered 2xx. success, message and data are passed through; the shape of data is not defined in this codebase.

application/json
  1. response
status*integer
success*boolean
message*string
data*unknown
Example Request
curl -X POST 'http://localhost:4000/api/v1/escrow/milestone/next-payment' \  -H 'Content-Type: application/json' \  -d '{  "userId": "8d2f6c1e-4b7a-4e0c-9a35-1f6b2c7d9e10",  "escrowId": "48213"}'
Example Response
{  "status": 200,  "success": true,  "message": "(message returned by Pandascrow)",  "data": null}