Marketplace (beta) (2.0)
Download OpenAPI specification:Download
Marketplace V2 is redesigned to structure around tenant. Credit profile widget only supports Marketplace V2.
This suite of APIs is currently in beta
. Please reach out to your Partnership Manager before migrate or using it.
Note: Marketplace V1 can be found here.
Environment | Base URL | Description |
---|---|---|
Demo | https://demo.capitalise.com | Get started with test credentials and life-like data |
Production | https://capitalise.com | Launch your app with unlimited live credentials |
Throughout the Developer Portal where Marketplace V2 is mentioned, you will see below terminology:
API Key
: this is a unique key of your application to access Capitalise APIs. It is generated by Platform V1Master (access) token
: this token is used to manage tenants at tenant level, e.g./tenants
. It can't be used to manage the product and data of a specific tenant.Tenant (access) token
: this token is used to manage the product and data of a specific tenants, e.g./profile
. It can't be used to manage tenants at tenant level.
Refresh a master access token
Authorizations:
Request Body schema: application/json
refresh_token | string The refresh token |
Responses
Response Schema: application/json
access_token | string The access token to manage tenants, which is referred as |
expires_in | string The expiry of |
refresh_token | string The refresh token |
scope | string The scopes that the tenants should have |
token_type | string The token type |
Request samples
- Payload
{- "refresh_token": "string"
}
Response samples
- 201
{- "access_token": "string",
- "expires_in": "string",
- "refresh_token": "string",
- "scope": "string",
- "token_type": "string"
}
Retrieve the profile
Authorizations:
Responses
Response Schema: application/json
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string non-empty Profile created date time | ||||||||||||||||||||||||||||||||||||||||||||||
id required | string non-empty The profile ID | ||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string non-empty Profile updated date time |
Response samples
- 200
{- "companyInformation": {
- "name": "string",
- "type": "LIMITED_COMPANY",
- "sector": "AGRICULTURE",
- "registrationNumber": "string",
- "score": {
- "grade": "A"
}, - "creditLimit": {
- "value": 0,
- "code": "GBP"
}
}, - "id": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Set up profile details
Authorizations:
Request Body schema: application/json
required | object | ||
|
Responses
Response Schema: application/json
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string non-empty Profile created date time | ||||||||||||||||||||||||||||||||||||||||||||||
id required | string non-empty The profile ID | ||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string non-empty Profile updated date time |
Request samples
- Payload
{- "companyInformation": {
- "registrationNumber": "string"
}
}
Response samples
- 201
{- "companyInformation": {
- "name": "string",
- "type": "LIMITED_COMPANY",
- "sector": "AGRICULTURE",
- "registrationNumber": "string",
- "score": {
- "grade": "A"
}, - "creditLimit": {
- "value": 0,
- "code": "GBP"
}
}, - "id": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Create a tenant
A tenant is property or product within a company.
Authorizations:
Request Body schema: application/json
referenceId | string A unique reference ID that you can pass over to identify this tenan |
Responses
Response Schema: application/json
Request samples
- Payload
{- "referenceId": "string"
}
Response samples
- 201
{ }
Retrieve tenants
Retrieve all tenants
Authorizations:
Responses
Response Schema: application/json
required | Array of objects (Profile response) non-empty unique | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Response samples
- 200
{- "data": [
- {
- "companyInformation": {
- "name": "string",
- "type": "LIMITED_COMPANY",
- "sector": "AGRICULTURE",
- "registrationNumber": "string",
- "score": {
- "grade": "A"
}, - "creditLimit": {
- "value": 0,
- "code": "GBP"
}
}, - "id": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "links": {
- "self": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "totalEntries": 0
}
}