Download OpenAPI specification:
Use the following endpoints for access to the production environment.
| Environment | API Endpoint | Authentication Endpoint |
|---|---|---|
| production | https://api.breadify.me | https://auth.breadify.me |
All operations require an OAuth2 access token. When you onboard with Breadify, you will receive a client_id and a client_secret. This id and secret can be used to obtain an access token from the authentication endpoint. An example using curl to retrieve an access token would look like this:
curl -X POST -u "<your_client_id>:<your_client_secret>" -d "grant_type=client_credentials" https://auth.int.breadify.me/token
A successful response to the above request will include a property named access_token.
This access token must be passed in the Authentication header, with the Bearer prefix of all API requests.
Using curl, the Authorization header can be set with the following option:
--header "Authorization: Bearer <access_token>"
Access tokens expire after a certain amount of time. Your application will detect this by receiving a 401 Unauthorized response from the API endpoint.
When this happens, you should request a fresh access token and pass that new token in subsequent API requests. It is recommended to use a library to handle
this for you. A good example for ASP.NET Core applications would be https://docs.duendesoftware.com/identityserver/v6/tokens/requesting/#automating-token-requests-in-aspnet-core-and-worker-applications
Further details regarding OAuth2 can be found in the RFC at https://datatracker.ietf.org/doc/html/rfc6749
Add properties such as org numbers to trusted and watch lists. These lists can be used in rule sets when performing order or company assessments. You can also use these lists in your own logic via the API to keep track of your loyal and trusted customers, or customers with poor payment history.
| cursor | string The cursor for the next batch of results. Pass the cursor value received in the previous batch response. If not specified, then results are returned from the beginning of the list. |
| limit required | integer [ 1 .. 1000 ] The maximum number of items to return. |
{- "orgNumbers": [
- {
- "orgNumber": "string",
- "orgName": "string",
- "addedAt": "string"
}
], - "cursor": "string",
- "hasRemaining": true
}Determine whether the specified items are present on the watch list.
| orgNumbers | Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ] |
{- "orgNumbers": [
- "5593957763"
]
}{- "orgNumbers": [
- {
- "value": "5593957763",
- "isItemOnList": true
}
]
}| cursor | string The cursor for the next batch of results. Pass the cursor value received in the previous batch response. If not specified, then results are returned from the beginning of the list. |
| limit required | integer [ 1 .. 1000 ] The maximum number of items to return. |
{- "orgNumbers": [
- {
- "orgNumber": "string",
- "orgName": "string",
- "addedAt": "string"
}
], - "cursor": "string",
- "hasRemaining": true
}Determine whether the specified items are present on the trusted list.
| orgNumbers | Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ] |
{- "orgNumbers": [
- "5593957763"
]
}{- "orgNumbers": [
- {
- "value": "5593957763",
- "isItemOnList": true
}
]
}| orgNumbers | Array of strings = 1 items unique [ items^[0-9]{10}$ ] List of 10 digit (no separator) organization numbers for which the company profile information will be retrieved. Only a single organization number is supported. |
{- "orgNumbers": [
- "5593957763"
]
}{- "profiles": [
- {
- "orgNumber": "5593957763",
- "statuses": [
- {
- "date": "20200112",
- "status": "BankruptcyBegin"
}, - {
- "date": "20220324",
- "status": "BankruptcyEnd"
}
], - "kfm": {
- "totalDebt": "12500"
}, - "lists": {
- "orgNumberOnWatchList": true,
- "orgNumberOnTrustedList": false,
- "connectedCompaniesOnWatchList": [
- "5522334455",
- "5566778899",
- "5593957763"
]
},
}
]
}| orgNumberSource required | string^[0-9]{10}$ |
| orgNumberTarget required | string^[0-9]{10}$ |
{- "orgNumberSource": "5593957763",
- "orgNumberTarget": "5521835633"
}{- "connected": true,
- "degreesOfSeparation": 3,
}| relationshipType | string (CustomRelationshipTypes) Filter the type of relationships to retrieve. If unspecified, all types will be retrieved. |
| cursor | string The cursor for the next batch of results. Pass the cursor value received in the previous batch response. If not specified, then results are returned from the beginning of the list. |
| limit required | string The maximum number of items to retrieve. |
{- "relationships": [
- {
- "id": "string",
- "sourceType": "string",
- "sourceValue": "string",
- "relationshipType": "string",
- "relationshipValue": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "errorCode": "string"
}
], - "cursor": "string",
- "hasRemaining": true
}| sourceType required | string (CustomRelationshipSourceTypes) The type of the source entity. Can be one of the following values:
|
| sourceValue required | string The value of the source entity |
| relationshipType required | string (CustomRelationshipTypes) The type of the relationship. Can be one of the following values:
|
| relationshipValue required | string The value of the relationship |
| startDate required | string <date> The inclusive date from which the relationship applies |
| endDate | string or null <date> The inclusive date until which the relationship applies. If not specified then the relationship is considered to be ongoing. |
[- {
- "sourceType": "string",
- "sourceValue": "string",
- "relationshipType": "string",
- "relationshipValue": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
]{- "successes": [
- {
- "id": "string",
- "sourceType": "string",
- "sourceValue": "string",
- "relationshipType": "string",
- "relationshipValue": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "errorCode": "string"
}
], - "errors": [
- {
- "id": "string",
- "sourceType": "string",
- "sourceValue": "string",
- "relationshipType": "string",
- "relationshipValue": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "errorCode": "string"
}
]
}{- "id": "string",
- "sourceType": "string",
- "sourceValue": "string",
- "relationshipType": "string",
- "relationshipValue": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "errorCode": "string"
}