Open an escrow and return the payer's approval
Changed onCreate an escrow draft and return the payer's approval that funds it. The payer signs it on its own wallet: a developer key cannot, and a payer that owns its wallet is refused with account_not_controlled until it can approve in the HEVN sign-in window. No on-chain action is submitted until it is signed.
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
The client account to act for, as a cl_… id. Omit it to act as yourself.
Your own key for this write, ^[A-Za-z0-9._:-]{1,128}$. A retry with the same key replays the first answer; the same key with a different request is refused.
Request body
Example request
{
"senderClientId": "cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"receiverClientId": "cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"token": "USDC",
"maxAmount": "500.00",
"approveWithin": "14d",
"holdFor": "14d",
"refundableFor": "14d"
}Response
OK
Example response
{
"maxAmount": "500.00",
"authorizedAmount": "500.00",
"capturableAmount": "500.00",
"refundableAmount": "500.00",
"action": {
"amount": "500.00"
}
}Changes
- warning
added the new
verification_not_applicableenum value to the/response property for the response status - info
removed the
phone_requiredenum value from the/response property for the response status - info
removed the
rail_requirements_unmetenum value from the/response property for the response status
- warning
- warning
deleted the
headerrequest parameterx-api-key - warning
added the new
client_already_linkedenum value to the/response property for the response status - warning
added the new
kyb_documents_processingenum value to the/response property for the response status - warning
added the new
link_code_expiredenum value to the/response property for the response status - warning
added the new
link_code_invalidenum value to the/response property for the response status - warning
added the new
payout_not_awaiting_signatureenum value to the/response property for the response status - warning
added the new
redirect_uri_not_allowedenum value to the/response property for the response status - warning
added the new
sandbox_amount_limit_exceededenum value to the/response property for the response status - warning
added the new
sandbox_faucet_balance_too_highenum value to the/response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
removed the
client_policy_not_enabledenum value from the/response property for the response status - info
removed the
client_request_conflictenum value from the/response property for the response status - info
removed the
email_in_useenum value from the/response property for the response status - info
removed the
integrator_inactiveenum value from the/response property for the response status - info
removed the
name_in_useenum value from the/response property for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning