Skip to content

eVault

This endpoint returns an eVault object.

GET https://sandbox.reggora.io/lender/evault/<evault_id>

ParameterDescription
evault_idThe ID of the eVault.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/evault/<evault_id>', headers=headers)
{
"data": {
"evault": {
"id": "5c4f16764672bb00105ea5f9",
"documents": [{
"document_name": "test.pdf",
"document_id": "24bab39a-4404-11e8-ba10-02420a050006",
"upload_datetime": "2018-04-19T15:02:02.157Z"
}]
}
},
"status": 200
}

This endpoint returns a file object specified by the evault ID and the document ID.

GET https://sandbox.reggora.io/lender/evault/<evault_id>/<document_id>

ParameterDescription
evault_idThe ID of the eVault.
document_idThe ID of the document.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/evault/<evault_id>/<document_id>', headers=headers)

The above command returns a file object. The file sending is implemented with the flask send_file extension.

This endpoint allows you to upload a document to an evault and returns the ID of the document.

POST https://sandbox.reggora.io/lender/evault

ParameterDescriptionRequired
idThe id of the eVault you are uploading toTrue
fileThe file you want to uploadTrue
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
"id": "24bab39a-4404-11e8-ba10-02420a050006"
"file": File, # Required
}
response = requests.post('https://sandbox.reggora.io/lender/evault', json=body, headers=headers)
{
"data": "5c4f16764672bb00105ea5f9",
"status": 200
}

This endpoint allows you to upload a P&S to an order and returns the ID of the P&S document.

POST https://sandbox.reggora.io/lender/p_and_s

ParameterDescriptionRequired
idThe id of the Order you are uploading the Purchase and Sale agreement toTrue
fileThe file you want to uploadTrue
document_nameThe name of the document to be uploadedFalse
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
"id": "5c4f16764672bb00105ea472"
"file": File, # Required
"document_name": "my_test.pdf" #This is an optional parameter
}
response = requests.post('https://sandbox.reggora.io/lender/p_and_s', json=body, headers=headers)
{
"data": "5c4f16764672bb00105ea5f9",
"status": 200
}

This endpoint allows you to delete a document from the evault.

DELETE https://sandbox.reggora.io/lender/evault

ParameterDescriptionRequired
idThe ID of the eVault of the document you are deletingTrue
document_idthe ID of the document you are deletingTrue
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
'id': '524523ff2d2d223d23',
'document_id': '00a1eb9e-ba6a-11e9-b584-0242ac120002',
}
response = requests.delete('https://sandbox.reggora.io/lender/evault', json=body, headers=headers)
{
"data": "Your document has been deleted",
"status": 200
}