Mapping your properties onto BeCause companies
You hold a catalogue of properties under your own ids — a hotel id in your booking platform, a supplier code in your chain's system — and want BeCause to know which of its companies each one is. Once it does, your id becomes a way to address that company everywhere on this API: the searches return it beside each company when you ask for it, and the imports accept it in place of a BeCause company id. This walkthrough is the complete loop — submit, poll, download, then what happens to the matches — plus a webhook variant that removes the polling.
The mechanics are one endpoint, POST /api/v1/bulk/company-mappings. You send each property with your id and whatever public detail you hold; BeCause searches its certified companies for the best candidate, reports the match and how sure it is, and stores your id against the company it matched.
Before you start
- An API key — Getting started covers creating one, Authentication what it acts as.
- The id of the custom property your ids are stored under. It must be your own and identifier-typed:
GET /api/v1/custom-propertieslists your properties, and the identifier-type ones carryisIdentifier: true. No such property? BeCause creates it for you during onboarding — ask support@because.eco. - Optionally, the ids of the certifications you care about, shared by BeCause during onboarding. Naming them narrows the pool of companies a property can match to their holders, and narrows the certification columns of the result to them.
- A name, a street and coordinates for every property, plus a country. These are the matching signals; the request is rejected without them.
1. Submit the mapping
The mapping is a bulk endpoint: the request is queued, not answered while you wait — see Asynchronous processing. One request carries many properties: up to 100 MB of JSON as sent, or about 400,000 properties once gzipped — see Payload size.
curl -X POST https://api.because.eco/api/v1/bulk/company-mappings \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customIdentifierId": "0992e704-5c3b-4b6e-8a1d-7f2e9c4b6d18",
"companies": [
{
"id": "HTL-12345",
"name": "Hotel Aurora",
"street": "Harbour Street 1",
"city": "Copenhagen",
"zipCode": "1000",
"threeLetterCountryCode": "DNK",
"latitude": 55.67,
"longitude": 12.56,
"bookingComId": "184527"
},
{
"id": "HTL-12346",
"name": "Seaside Inn",
"street": "Beach Road 9",
"city": "Aarhus",
"zipCode": "8000",
"twoLetterCountryCode": "DK",
"latitude": 56.15,
"longitude": 10.21
}
],
"certificationIds": [
"3c7f2f64-0d3a-4b7e-9a11-2f66afa60001",
"3c7f2f64-0d3a-4b7e-9a11-2f66afa60002"
]
}'
customIdentifierId names the property your ids live under, and each company's id is the value that will be stored there once the match is accepted — so send the id your own system keys the property by, exactly as you will send it to the other endpoints later.
Every company needs id, name, street, latitude and longitude, and one of threeLetterCountryCode, twoLetterCountryCode or airportCode; a company missing any of them fails the whole request with a 400 rather than a row error. city, zipCode and region sharpen the address match when you have them. A bookingComId is matched exactly against the Booking.com ids BeCause holds, before any address matching — the surest signal there is, so send it whenever you hold one. Up to four additionalProperties, each a custom-property id and a value, ride along with the mapping and come back echoed in the result; they play no part in the matching itself.
These options shape what the result carries about certifications. certificationIds, certificationRecognitionIds or the older certificationTags narrow both the matching pool and the certification columns to those certifications. The recognition ids are listed under Recognitions; certificationTags takes the same recognitions by name instead of id, matched without regard to case. Prefer the ids: a name can be renamed and an id cannot, and an id that isn't a published recognition fails the whole request with a 400 (integration/company-mapping/unknown-recognition), while an unknown tag simply matches nothing. "includeExpiredCertificationHolders": true admits lapsed holders to the matching pool and the certification columns alike, and "includeUnknownActiveCertificationHolders": true admits holdings without an expiry date. "includeLowConfidenceMatches": true reports a best candidate even when its score falls below the threshold that normally counts as a match; such rows arrive as Low or VeryLow and deserve a human look before approval. deltaSinceUtc is for re-runs, covered at the end. The reference has the full list; the allowMissing…, includeAllEstablishments and skipCreatingCompanyMappings switches in it are accepted but have no effect on requests made through the API.
{
"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
That correlation id is the handle for everything that follows. Queued means queued — no property has been matched yet.
2. Poll until a terminal state
curl https://api.because.eco/api/v2/bulk/tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6 \
-H "Authorization: YOUR_API_KEY"
The status advances through Pending, Scheduled and InProgress; poll on an interval — seconds, not milliseconds — until one of the four terminal states, Success, PartialSuccess, Error or Cancelled. How long it takes scales with how many properties you sent. On success, the response carries the result as a single file entry:
{
"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAtUtc": "2026-07-31T08:12:44.9Z",
"updatedAtUtc": "2026-07-31T08:21:07.41Z",
"status": "Success",
"requestType": "BulkMapCompanies",
"result": {
"pageSize": -1,
"pageCount": 1,
"pages": [
{
"url": "https://exports.because.eco/…/result.csv?sv=…",
"companyCount": -1
}
]
},
"error": null
}
The mapping is one of the older endpoints that write their whole result to one file, so pageSize and companyCount are -1 — per-page numbers do not apply — and the one entry's URL is the complete result.
3. Download and read the result
The url is a self-contained link — GET it directly, no Authorization header — valid for thirty days. Unlike the search pages, the file is an uncompressed CSV: UTF-8 with a byte-order mark, a header row, one row per property you sent, in the order you sent them. Excel opens it directly.
curl "https://exports.because.eco/…/result.csv?sv=…" > mappings.csv
Each row repeats your input, then names the BeCause company it matched and that company's certifications. The company mapping result page lists every column; the ones that decide what you do next:
Confidencesays how sure the match is:ExistingMatch(your id was already stored on this company — the row confirms a mapping that exists), thenExceptional,VeryHigh,High,MediumandLowin descending order of the address-and-name score, andManualMatchfor a mapping made by hand on the BeCause side. Empty means the row matched nothing, or could not be processed.ParsingErroris why a row could not be processed at all. Everything else on that row is empty.BeCause Idis the company id the rest of the API uses — theida company search returns and theidentifiedBy.companyIdan import accepts. Store it beside your own id.Certification n Name,Level,Valid UntilandIssuer, up to five slots, are the company's certifications as the request's filters admitted them — enough to show a badge from this file alone.
A row whose Confidence and BeCause Id are both empty found no company, which for a certified-companies platform usually means the property holds none of the certifications your key can see. It is not an error; the request still reports Success.
4. What happens to the matches
The file is a report. The lasting effect is that every match becomes a mapping — a record that your id belongs to that BeCause company — and a mapping takes effect in one of two ways:
- Auto-approved. Your profile carries a list of confidence levels it trusts outright, set in the BeCause app under the marketplace manager's settings. A match at one of those levels stores your id on the company's identifier property the moment the mapping finishes.
- Pending. Every other match waits in the marketplace manager for someone on your side to approve or reject it. Approving stores the id; rejecting discards the match.
Until a mapping is approved, your id is not on the company, and the other endpoints cannot resolve it: a search asked for your identifier under customPropertyIds returns no fields for that company, and an import naming it by identifiedBy fails the row with NoCompanyMatchedIdentifier. A fresh profile trusts no level automatically, so on a first run expect every match to land as pending — decide your auto-approve levels before the first request, or plan the review. Exceptional and VeryHigh are the usual choice; anything below deserves a look.
The mapping is also the join the other workflows rely on: the standard-holders and companies searches return your id under fields when you list your identifier property in customPropertyIds, and the imports accept it as identifiedBy. Map first, then those calls work by your id alone.
5. Skip the polling
Instead of polling in step 2, configure a webhook on the four terminal topics. When bulk.task.succeeded (or bulk.task.partially_succeeded) arrives, verify the signature and check data.correlationId is the id you submitted. A mapping identifies itself by data.taskKind — CompanyMappingRequest, where every other bulk request reports BulkProcessingRequest — and its data.requestType is null; only the task endpoint names it BulkMapCompanies. Then go straight to the task call, whose result now carries the file URL.
Re-running the mapping
Properties join your catalogue, and companies certify, merge and change address, so re-run the mapping on a schedule — weekly is plenty for most catalogues; mind the rate limits. Re-sending a property that is already mapped is safe: it reports ExistingMatch and changes nothing. Only the rows that matched nothing last time, or are new, can produce a new mapping.
Set deltaSinceUtc to the time of your previous run and the file gains a Mapping changes since <date> column and one Certification n changes since <date> per slot, so the rows worth acting on — a mapping added or removed, a certification gained, renewed or lapsed — stand out without a diff against the previous file. Result files stop being retrievable after thirty days, so download promptly rather than bookmarking the URL.