Update Escrow

This endpoint allows you to change the properties of an escrow as long as a series of requirements are met, which will be mentioned in this section.

Requirements to use:

  1. Only the entity with the platform role has permissions to execute this endpoint

  2. If an escrow has funds, the only thing the platform can do is add more milestones. The other properties cannot be modified under any circumstances.

Headers

Name
Value

Content-Type

application/json

x-api-key

<token>

Roles:

Name
Type
Description

approver

string

Address of the entity requiring the service.

serviceProvider

string

Address of the entity providing the service.

platformAddress

string

Address of the entity that owns the escrow

releaseSigner

string

Address of the user in charge of releasing the escrow funds to the service provider.

disputeResolver

string

Address in charge of resolving disputes within the escrow.

receiver

string

Address where escrow proceeds will be sent to

Milestone:

Name
Type
Description

description

string

Text describing the function of the milestone.

status

string

Milestone status. Ex: Approved, In dispute, etc...

approved

boolean

Flag indicating whether a milestone has been approved by the approver.

Flags

Name
Type
Description

disputed

boolean

Flag indicating that an escrow is in dispute.

released

boolean

Flag indicating that escrow funds have already been released.

resolved

boolean

Flag indicating that a disputed escrow has already been resolved.

Trustline

Name
Type
Description

address

string

Public address establishing permission to accept and use a specific token.

Open API

put
Authorizations
Body
signerstringRequired

Entity that signs the transaction that deploys and initializes the escrow

Example: GSIGN...XYZ
contractIdstringRequired

ID (address) that identifies the escrow contract

Example: CAZ6UQX7...
Responses
200

This endpoint returns an unsigned transaction in XDR format. This XDR is then used to sign the transaction using the “/helper/send-transaction” endpoint.

application/json
put
/escrow/single-release/update-escrow

What this Endpoint returns?

This endpoint returns the transaction unsigned so that the transaction can be signed by means of a customer wallet.

Use Example:

Last updated

Was this helpful?