Breadify Integration API (1.1.0)

Download OpenAPI specification:

Endpoints

Use the following endpoints for access to the production environment.

Environment API Endpoint Authentication Endpoint
production https://api.breadify.me https://auth.breadify.me

Authentication

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

Lists

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.

Add items to the watch list

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Get the watch list contents

Authorizations:
access-token
query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "orgNumbers": [
    • {
      • "orgNumber": "string",
      • "orgName": "string",
      • "addedAt": "string"
      }
    ],
  • "cursor": "string",
  • "hasRemaining": true
}

Retrieve watch list status of a collection of items

Determine whether the specified items are present on the watch list.

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Response samples

Content type
application/json
{
  • "orgNumbers": [
    • {
      • "value": "5593957763",
      • "isItemOnList": true
      }
    ]
}

Delete items from the watch list

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Add items to the trusted list

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Get the trusted list contents

Authorizations:
access-token
query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "orgNumbers": [
    • {
      • "orgNumber": "string",
      • "orgName": "string",
      • "addedAt": "string"
      }
    ],
  • "cursor": "string",
  • "hasRemaining": true
}

Retrieve trusted list status of a collection of items

Determine whether the specified items are present on the trusted list.

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Response samples

Content type
application/json
{
  • "orgNumbers": [
    • {
      • "value": "5593957763",
      • "isItemOnList": true
      }
    ]
}

Delete items from the trusted list

Authorizations:
access-token
Request Body schema: application/json
non-empty
orgNumbers
Array of strings [ 1 .. 100 ] items unique [ items^[0-9]{10}$ ]

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Company Profiles

Retrieve company profile information

Authorizations:
access-token
Request Body schema: application/json
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.

Responses

Request samples

Content type
application/json
{
  • "orgNumbers": [
    • "5593957763"
    ]
}

Response samples

Content type
application/json
{
  • "profiles": [
    • {
      • "orgNumber": "5593957763",
      • "statuses": [
        • {
          • "date": "20200112",
          • "status": "BankruptcyBegin"
          },
        • {
          • "date": "20220324",
          • "status": "BankruptcyEnd"
          }
        ],
      • "kfm": {
        • "totalDebt": "12500"
        },
      • "lists": {
        • "orgNumberOnWatchList": true,
        • "orgNumberOnTrustedList": false,
        • "connectedCompaniesOnWatchList": [
          • "5522334455",
          • "5566778899",
          • "5593957763"
          ]
        },
      }
    ]
}

Company Relationship

Query the relationship between two companies

Authorizations:
access-token
Request Body schema: application/json
orgNumberSource
required
string^[0-9]{10}$
orgNumberTarget
required
string^[0-9]{10}$

Responses

Request samples

Content type
application/json
{
  • "orgNumberSource": "5593957763",
  • "orgNumberTarget": "5521835633"
}

Response samples

Content type
application/json
{}

Custom Relationships

Retrieve all custom relationships

Authorizations:
access-token
query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "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
}

Create new custom relationships

Authorizations:
access-token
Request Body schema: application/json
required
Array ([ 1 .. 100 ] items)
sourceType
required
string (CustomRelationshipSourceTypes)

The type of the source entity. Can be one of the following values:

  • person
  • company
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:

  • bankAccount
  • email
  • phone
  • carRegNumber
  • case
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.

Responses

Request samples

Content type
application/json
[
  • {
    • "sourceType": "string",
    • "sourceValue": "string",
    • "relationshipType": "string",
    • "relationshipValue": "string",
    • "startDate": "2019-08-24",
    • "endDate": "2019-08-24"
    }
]

Response samples

Content type
application/json
{
  • "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"
      }
    ]
}

Delete many custom relationships

Authorizations:
access-token
Request Body schema: application/json
required
Array ([ 1 .. 100 ] items)
string

Responses

Request samples

Content type
application/json
[
  • "string"
]

Retrieve a custom relationship

Authorizations:
access-token

Responses

Response samples

Content type
application/json
{
  • "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"
}

Delete a custom relationship

Authorizations:
access-token

Responses