Skip to main content

Importing your certified companies

You are a certifier and keep the list of companies you have certified in your own system. You want that list on BeCause, so each company's profile shows your certification and the marketplaces and platforms connected to BeCause can pick it up.

The job takes two imports, sent one after the other:

  1. Companies. Tell BeCause which companies you mean. Each one is matched to an existing BeCause company or created, and added to your group.
  2. Certifications. Say which of your certifications each company holds, and for how long.

The same two imports keep BeCause current afterwards: new companies, renewals and withdrawn certifications all go through them. Both are queued, and you poll for the outcome; Asynchronous processing explains the pattern.

Before you start​

  • An API key, created on your own BeCause profile. See Getting started.
  • Your group id. Every company you import becomes a member of one of your groups. GET /api/v1/groups lists them.
  • Your certification ids. BeCause shares them during onboarding, and the standards search returns them too when you send searchBy.includeAllAccessibleStandards: true.
  • Your identifier property. A custom property on your profile that holds the id each company has in your system, so you can name a company by your own id. GET /api/v1/custom-properties lists your properties; the one to use has isIdentifier: true and is String-type. If you don't have one yet, ask us to set it up.

1. Import the companies​

Send every company you have certified to POST /api/v2/bulk/companies/upsert.

curl -X POST https://api.because.eco/api/v2/bulk/companies/upsert \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groupId": "2f6c1d8a-4b7e-4a39-9c05-7d1e8f3a6b21",
"companies": [
{
"matchBy": {
"customIdentifiers": [
{ "id": "7f1b5c3d-2e4a-4c9b-8d7e-3f4a5b6c7d13", "value": "H-12345" }
],
"domainName": "harbourviewhotel.example",
"locationCoordinates": { "latitude": 55.6761, "longitude": 12.5683 },
"clientReferenceId": "H-12345"
},
"name": "Harbour View Hotel",
"website": "https://harbourviewhotel.example",
"companyAddress": {
"streetAddress": "Havnegade 12",
"zipCode": "1058",
"city": "Copenhagen",
"threeLetterCountryCode": "DNK"
}
}
]
}'
  • groupId is required. Every company in the request is added to this group.
  • matchBy is what BeCause uses to find the right company:
    • customIdentifiers: your own id for the company. id is your identifier property, value is the company's id in your system. It is stored on the company, so later requests can name the company by it.
    • locationCoordinates: the company's position. It finds a company that is already on BeCause, and it places the company on the map.
    • domainName and vatNumber narrow the match further.
    • becauseProfileId: the BeCause company id, if you know it. A company that already stores a different value of your identifier property fails, unless the row also carries becauseProfileId; then the stored value is replaced.
    • clientReferenceId is never used for matching. It comes back with a failed company, so you can tie it to your own record.
  • name is required. A company that is already on BeCause keeps the name, website and contact email it has.
  • companyAddress takes the country as an ISO 3166-1 alpha-3 code.

Always send your own id, the coordinates, and the address with street and country. They tie your record to the right company, and a certification cannot be stored on a company without an address and coordinates: step 3 fails for it with MissingRequiredCompanyField. Send the address and coordinates together and in full every time; a part you leave out is cleared.

The response carries the correlationId for the next step.

2. Wait for the companies import to finish​

curl https://api.because.eco/api/v2/bulk/tasks/10e863d1-c71d-48b5-84d7-62cda3c208da \
-H "Authorization: YOUR_API_KEY"

Poll until status is terminal:

  • Success: every company was matched or created.
  • PartialSuccess: some companies failed. error.companyInputErrors lists each with the matchBy you sent and the reason.
  • Error: nothing was imported. Either every company failed and is listed the same way, or the request failed as a whole and error.generalErrorMessages says why.
  • Cancelled: the request was cancelled before it finished.

To skip the polling, configure a webhook on the terminal topics.

Do not send the certifications until this task is finished. Tasks do not finish in the order you send them, and a certification for a company that is still being created fails with NoCompanyMatchedIdentifier.

3. Import the certifications​

Say what each company holds, with POST /api/v2/bulk/standards/holders/upsert.

curl -X POST https://api.because.eco/api/v2/bulk/standards/holders/upsert \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"companies": [
{
"identifiedBy": {
"customProperty": {
"customPropertyId": "7f1b5c3d-2e4a-4c9b-8d7e-3f4a5b6c7d13",
"value": "H-12345"
}
},
"certifications": [
{
"certificationId": "c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e15",
"startDateUtc": "2026-01-01T00:00:00Z",
"endDateUtc": "2027-12-31T00:00:00Z",
"validation": { "validationState": "Valid" }
}
]
}
]
}'
  • identifiedBy names one company, by exactly one of customProperty (your identifier property and the value from step 1) or companyId (the BeCause company id). Use your own id. When BeCause merges two profiles of the same company, the company keeps your id, while the BeCause id of the profile that was merged away stops working. This endpoint never creates a company: a value that matches none, or more than one, fails.
  • certifications has one entry per certification the company holds.
    • startDateUtc and endDateUtc are the period it covers; the end date is the last valid day. Send both every time. Each import replaces the stored period, and a certification without an end date does not count as certified.
    • validation.validationState is Valid, Invalid, Revoked or Unvalidated. Send it every time. Left out, the certification is stored as Valid, also when you sent Revoked before.

A company counts as certified from the start date through the end date, while the state is Valid.

A request holds at most 50,000 company and certification pairs. A certification can require its dates and validation state; a request that leaves one out for such a certification is rejected as a whole with a 400.

4. Read the outcome​

Poll the task as in step 2. Failures are listed row by row under error.rowErrors:

{
"correlationId": "d9eeef08-513d-4c63-8445-8c971931cffd",
"createdAtUtc": "2026-12-03T15:29:04.198Z",
"updatedAtUtc": "2026-12-03T15:29:52.695Z",
"status": "PartialSuccess",
"requestType": "BulkUpsertStandardHolders",
"result": null,
"error": {
"generalErrorMessages": [],
"rowErrors": [
{
"companyId": null,
"identifiedByValue": "H-67890",
"certificationId": "c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e15",
"reason": "NoCompanyMatchedIdentifier",
"message": "No company matched identifier value 'H-67890'."
}
]
}
}

Every row that is not listed was stored; a failed row never stops the others. When every row fails, the status is Error and the rows are still listed.

ReasonWhat it means
InvalidCompanyTargetThe entry gives both customProperty and companyId, or neither.
NoCompanyMatchedIdentifierNo company holds that value of your identifier property. Usually the company was not in a companies import, or that import had not finished.
MultipleCompaniesMatchedIdentifierMore than one company holds that value.
CompanyNotFoundThe companyId belongs to no company, or to a profile that has been merged into another.
NotPropertyOwner, NotAStringPropertyThe identifier property is not yours, or is not String-type.
DuplicateCompanyRowsTwo entries in the request are the same company.
CertificationNotFound, UnauthorizedCertificationAccessNo certification has that id, or it is not yours to issue.
MissingRequiredCompanyFieldThe company lacks something the certification requires, usually street address, country or coordinates. The message names the field. Add it with a companies import and send the row again.
InternalErrorThe row could not be processed. Send it again, and contact us if it keeps failing.

Treat a reason you do not recognize as a failed row; the task endpoint lists them all. The full record of both imports, successful rows included, is in the BeCause app under Company manager → Import & export → API → API usage.

Keeping the list up to date​

Both imports are safe to repeat, so a scheduled sync of your whole list is the simplest way to stay current, within the rate limits:

  • A new certified company: include it in both imports.
  • A renewal: send the certification again with the new dates.
  • A withdrawn certification: send it again with validationState set to Revoked. Leaving a company out of an import removes nothing.

Moving from the consolidated endpoint​

POST /api/v1/bulk/consolidated/upsert-standard-holders did both jobs in one request and keeps working; the two endpoints on this page replace it. The company part of each entry moves to step 1, together with the group id, and the certifications move to step 3, named by your identifier value. Versioning lists the other endpoints that have successors.