List contract imports
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"status": "<string>",
"total_records": 123,
"processed_records": 123,
"created_at": 123,
"items": [
{
"id": 123,
"source_name": "<string>",
"status": "<string>",
"document_kind": "<string>",
"proposal": {},
"proposal_digest": "<string>",
"warnings": [
"<string>"
],
"refusal": "<string>",
"error": "<string>",
"property_id": 123,
"property_manager_id": 123,
"created_at": 123
}
]
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Contract Imports
List contract imports
List recent contract import runs for the account (data_type=contracts). Requires the contract_import feature; otherwise the account answers 404.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
contract_imports
List contract imports
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_imports"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"status": "<string>",
"total_records": 123,
"processed_records": 123,
"created_at": 123,
"items": [
{
"id": 123,
"source_name": "<string>",
"status": "<string>",
"document_kind": "<string>",
"proposal": {},
"proposal_digest": "<string>",
"warnings": [
"<string>"
],
"refusal": "<string>",
"error": "<string>",
"property_id": 123,
"property_manager_id": 123,
"created_at": 123
}
]
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}