Create a transaction
The POST /v2/escrow-create endpoint is used to create an escrow transaction with the provided details. The request body should include information such as business ID, parties involved, title, type, description, milestones, quantity, amount, inspection period, due date, currency, source, and other related details. Additionally, files and recipients for each milestone can also be included in the request.
Specify type attribute to 'one off' for one off transactions and milestone for transactions with multiple milestones
create a transaction
POST
v2/escrow/create
Headers
Accept*
string
application/json
V-PRIVATE-KEY*
string
your vesicash private key
V-PUBLIC-KEY*
String
your vesicash public key
Request body
dashboard_url: The dashboard of the organization
currency (string): The currency used for the transaction.
title (string): The title of the escrow transaction.
type (string): The type of transaction, e.g., "milestone" or "oneoff"
description (string): A description of the transaction.
dispute_handler (string): The dispute handler for the transaction.
webhook_url (string): The URL for webhook events related to the escrow.
webhook_secret (string): The secret for verifying webhook events.
files (array): An array of file URLs related to the escrow.
url (string): The URL of the file.
parties (array): An array of parties involved in the escrow.
user_id (string): The ID of the user (unique identifier from your side).
email (string): The email of the party.
first_name (string): The first name of the party
last_name (string): The last name of the party.
phone (string): The phone number of the party.
is_initiator (boolean): Indicates if the party is the initiator.
role (string): The role of the party. eg buyer, seller or broker
role_description (string): The description of the party's role.
bank_account (object): The bank account details of the party.
bank_name (string): The name of the bank.
bank_code (string): The bank code.
account_number (string): The account number.
account_name (string): The account holder's name
milestones (array): An array of milestones for the escrow.
title (string): The title of the milestone.
amount (number): The amount associated with the milestone.
description (string): The description of the milestone.
inspection_period (number): The inspection period for the milestone.
grace_period (number): The grace period for the milestone.
due_date (string): The due date for the milestone.
Request
For example, you can make a post request to the endpoint above and pass in the raw json data below to create a one-off transaction.
Response
The response of the request is a JSON schema representing the structure of the data returned. It includes various properties such as ID, transaction details, parties involved, milestones, files, and broker information. Each property has specific sub-properties that define the details of the escrow transaction and its associated entities. The response JSON schema is complex and includes nested objects and arrays, providing detailed information about the escrow transaction, parties, milestones, files, and broker details.
If the transaction requires a file upload such as photos or contracts from other sources, all you need to do is pass the files url as shown below:
See how to upload files to our server and get the file url.
Last updated