Get Contracts. If company ID is provided, then contracts for specific company will be returned, otherwise contracts for client will be returned. If client or company has no contract, then list of available contracts will be returned
curl --request GET \
--url https://client-api.dev.finhost.io/v2/contracts \
--header 'Authorization: Bearer <token>'
{
"contracts": [
{
"id": "regularContract",
"title": "Regular Contract",
"description": "Best contract ever",
"available": true,
"clientType": "individual",
"currencies": [
{
"currency": "GBP",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"variants": [
{
"id": 1,
"currency": "GBP",
"description": "<string>",
"title": "Regular Contract",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"onboardingFee": {
"currency": "GBP",
"amount": 5
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Company ID
OK
The response is of type object
.
curl --request GET \
--url https://client-api.dev.finhost.io/v2/contracts \
--header 'Authorization: Bearer <token>'
{
"contracts": [
{
"id": "regularContract",
"title": "Regular Contract",
"description": "Best contract ever",
"available": true,
"clientType": "individual",
"currencies": [
{
"currency": "GBP",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"variants": [
{
"id": 1,
"currency": "GBP",
"description": "<string>",
"title": "Regular Contract",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"onboardingFee": {
"currency": "GBP",
"amount": 5
}
}
]
}
Get Contracts. If company ID is provided, then contracts for specific company will be returned, otherwise contracts for client will be returned. If client or company has no contract, then list of available contracts will be returned
curl --request GET \
--url https://client-api.dev.finhost.io/v2/contracts \
--header 'Authorization: Bearer <token>'
{
"contracts": [
{
"id": "regularContract",
"title": "Regular Contract",
"description": "Best contract ever",
"available": true,
"clientType": "individual",
"currencies": [
{
"currency": "GBP",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"variants": [
{
"id": 1,
"currency": "GBP",
"description": "<string>",
"title": "Regular Contract",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"onboardingFee": {
"currency": "GBP",
"amount": 5
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Company ID
OK
The response is of type object
.
curl --request GET \
--url https://client-api.dev.finhost.io/v2/contracts \
--header 'Authorization: Bearer <token>'
{
"contracts": [
{
"id": "regularContract",
"title": "Regular Contract",
"description": "Best contract ever",
"available": true,
"clientType": "individual",
"currencies": [
{
"currency": "GBP",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"variants": [
{
"id": 1,
"currency": "GBP",
"description": "<string>",
"title": "Regular Contract",
"accountsCountLimit": 123,
"products": [
{
"id": "sepa-in",
"type": "transfer",
"transferPlans": [
{
"calculator": "sum",
"from": 0,
"flat": 5,
"percentage": 0
}
]
}
]
}
],
"onboardingFee": {
"currency": "GBP",
"amount": 5
}
}
]
}