Agreements

Agreement management operations

Create a new agreement

post

Create a new pre-approval agreement between the payer and receiver, including one or more milestones. The agreement becomes valid once both parties approve it.

Authorizations
x-api-idstringRequired
Body
idstringRequired

ID of the agreement

Example: agreement_123
payerUserIdstringRequired

ID of the user paying for milestones

Example: 123
receiverUserIdstringRequired

ID of the user paid for milestones

Example: 123
platformFeePercentagenumberRequired

Platform fee percentage (as a fraction, e.g. 0.01 for 1%)

Example: 0.01
organizationFeePercentagenumberRequired

Organization fee percentage (as a fraction, e.g. 0.01 for 1%)

Example: 0.01
Responses
200

Agreement created

application/json
post
/v1/agreements

Get agreement by id

get

Get an agreement by id.

Authorizations
x-api-idstringRequired
Path parameters
idstringRequired

ID of the agreement

Example: agreement_123
Responses
200

Agreement retrieved

application/json
get
/v1/agreements/{id}

Add milestones to an agreement

post

Add pre-approval milestone(s) to an existing agreement.

Authorizations
x-api-idstringRequired
Body
idstringRequired

ID of the agreement

Example: agreement_123
Responses
200

Milestone added

application/json
post
/v1/agreements/milestones

(Coming soon) Updates existing approval milestones to pre-approval status

patch

(Coming soon) Updates existing approval milestones to pre-approval status (with agreement and funds distribution).

Authorizations
x-api-idstringRequired
Path parameters
idanyRequired

ID of the agreement

Example: agreement_123
Body
Responses
200

Milestone updated

application/json
patch
/v1/agreements/{id}/milestones

Cancel an agreement

post

Cancel a pending agreement before any milestones have been approved.

Authorizations
x-api-idstringRequired
Path parameters
idstringRequired

ID of the agreement

Example: agreement_123
Responses
200

Agreement cancelled

application/json
post
/v1/agreements/{id}/cancel

Cancel a milestone

post

Cancel a pending milestone before escrow deployment.

Authorizations
x-api-idstringRequired
Path parameters
idstringRequired

External ID of the agreement

Example: agreement_123
milestoneIdstringRequired

External ID of the milestone

Example: milestone_123
Responses
200

Milestone cancelled

application/json
post
/v1/agreements/{id}/milestones/{milestoneId}/cancel

Last updated