CX-0074 Business Partner Data Gate API v3.0.0
TABLE OF CONTENTS
FOR WHOM IS THE STANDARD DESIGNED
This document is mainly targeted to technical individuals involved in integrating and developing against this API, as well as business individuals who are involved in compliance process of this API.
COMPARISON WITH THE PREVIOUS VERSION OF THE STANDARD
Version | Publishing Date | Author | Description of Change |
---|---|---|---|
1.0.0 | 2023-09-26 | Initial version by Catena-X Association | |
1.1.0 | 2024-01-10 | Small additions to the terminology chapters: added roles “supplier” & “customer”; added ISO 6709 and WGS 84 for geographic coordinates; added generic business partner outlook; moved attribute “sharing process started at” from specific business partner entities to the sharing state entry (API was correct); linked OpenAPI document in release branch instead of main | |
2.0.0 | 2024-03-22 | Added business partner description and removed detailed legal entity, site and address descriptions from terminology chapter; removed business partner type from changelog entry and sharing state entry descriptions; added business partner endpoints and removed legal entity, site and address endpoints; added “house number supplement” attribute; added “is own company data” attribute to claim ownership; switched to the new document structure | |
3.0.0 | 2024-06-07 | Added footnote to indicate that the term "site main address" is subject to change; added the CX-0018 version; changed and added the detailed asset structure; added footnote to clarify role distribution; removed classification sub-object, to reintroduce it in a presumably new form in one of the next non-breaking versions of this standard; removed business partner state and introduced separate states at representation classes; added outlook for business partner relationship; removed "api/catena/" from the endpoint definitions; added data sovereignty chapters as additional requirements. |
ABSTRACT
The Business Partner Data Management (BPDM) is a distributed service-based system, composed of a set of dedicated services, that simultaneously serve multiple stakeholders. It is based on a central data pool of business partners, which is consistent with the overall design principles of Catena-X. The main target is to create business partner data records (such as customer/supplier) with a high quality and currentness, to provide other processes with these data. This results in less rework and adjustment due to better master data quality which ultimately leads to an overall cost reduction for participating companies. Additionally, Value Added Services shall be offered to enrich those business partner data sets even further and give additional information or warnings about the business partners. Getting a 360° view on your business partners also helps with reducing costs and achieving process excellence because better decisions can be made.
The Business Partner Gate allows any Catena-X member to share own business partner data as well as business partner data of its suppliers and customers with the Catena-X network so that cleansed and enriched business partner data records, so-called Golden Records, can be created and made available. It is a main component of the architecture framework at Catena-X, as it enables the Catena-X members to leverage accurate, complete, and consistent business partner data for Catena-X applications and shared services.
The Business Partner Gate can be accessed via the standardized API described in this standard.
1. INTRODUCTION
1.1 AUDIENCE & SCOPE
This section is non-normative
This standard is relevant for the following audience:
- Core Service Provider
- Onboarding Service Provider
- Data Provider and Consumer
This document focuses on the Business Partner Gate API (short: Gate API) that is part of the Business Partner Data Management (BPDM) described on the BPDM Catena-X Website. It is relevant for core service providers who want to provide services for uploading and downloading business partner master data records with the aim of cleansing and enriching them and thus create a high-quality business partner data record (Golden Record), which is identified by the business partner number (BPN). It is also relevant for onboarding service providers, business application providers as well as data providers and consumers who want to use such services.
Not in scope are the structure and logic of the business partner number itself and the mechanism on how the business partner number is issued. There is a separate standard for this: CX-0010 Business Partner Number 2.0.0.
Not in scope is the overall Business Partner Data Pool with all Golden Records within Catena-X and the way of how the Golden Records can be retrieved. There is a separate standard for this: CX-0012 Business Partner Data Pool API 4.0.0.
Not in scope are the requirements of cleansing and enriching the business partner data records with the aim to create a Golden Record. There is a separate standard for this: CX-0076 Golden Record End to End Requirements Standard 1.2.0.
You can find the other standards in the standard library of Catena-X: https://catena-x.net/en/standard-library
1.2 CONTEXT AND ARCHITECTURE FIT
This section is non-normative
The Gate API is a crucial core component in Catena-X and its platform capability BPDM because it contributes to the following functions:
- Data Consistency: The Gate API allows that data related to business partners can be collected from multiple sources and can be sent through the sharing process to correct, enrich and validate the data. This ultimately enables BPDM to create accurate, complete, and consistent business partner data records (Golden Records). This helps to reduce the risk of errors and inconsistencies in business partner data.
- Data Sovereignty: The Gate API allows to upload and download business partner data in a data sovereign way, because each Catena-X member has its own area of business partner data in BPDM, where private data (like customer / supplier relationships) is only visible to the Catena-X member.
- Data Governance: The Gate API is the basis for a data governance framework and helps to enforce data quality standards, such as data completeness, accuracy, and consistency. It allows to compare the uploaded business partner data records against the corrected and enriched ones and provides the Sharing Member with a proposal for taking over the changes into the local MDM systems. This helps to ensure that business partner data is of high quality and can be trusted for use in various business processes.
- Interoperability: The Gate API provides an interoperable and standardized way of uploading and downloading business partner data, ensuring both Core Service Provider interchangeability and streamlined data accessibility for all consumers of the API.
There is a reference implementation for the Gate API on GitHub. It is part of a Spring Boot Kotlin open-source software project under the hood of the Eclipse Foundation and follows the Apache 2.0 licenses.
For the complete and up-to-date API setup refer to the following website: https://github.com/eclipse-tractusx/bpdm
For an architecture overview refer to the ARC42 documentation: https://github.com/eclipse-tractusx/bpdm/tree/951dd4b38699caa0f50c5d756d8d0079880d2c11/docs/arc42
To use the Gate API in the BPDM use case apart from this standard, the following other standards should be considered by all participants for which this standard is relevant:
- CX-0018 Dataspace Connectivity 3.0.0
- CX-0012 Business Partner Data Pool API 4.0.0
1.3 CONFORMANCE AND PROOF OF CONFORMITY
This section is non-normative
If sections are marked as non-normative, all authoring guidelines, diagrams, examples, and notes in these sections are non-normative. Everything else in this specification is normative.
The key words MAY, MUST, MUST NOT, OPTIONAL, RECOMMENDED, REQUIRED, SHOULD and SHOULD NOT in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
All participants and their solutions will need to prove, that they are conform with the Catena-X standards. To validate that the standards are applied correctly, Catena-X employs Conformity Assessment Bodies (CABs).
When implementing the API defined in this standard, proof of conformity MUST be provided by the following deliverables:
- An OpenAPI specification defining the relevant resources for this standard
- Examples of data assets
1.4 EXAMPLES
The following examples show business partners which are potentially shared using this API.
1.4.1 EXAMPLE 1
A business partner having assigned a legal entity and its legal address.
Dr. Ing. h.c. F. Porsche Aktiengesellschaft, Porscheplatz 1, 70435 Stuttgart, Deutschland
1.4.2 EXAMPLE 2
A business partner having assigned a legal entity and one of its additional addresses.
Dr. Ing. h.c. F. Porsche Aktiengesellschaft, Schwieberdinger Str. 130, 70435 Stuttgart, Deutschland
1.4.3 EXAMPLE 3
A business partner having assigned a legal entity, a site and its main address1, which is not the legal address.
Dr. Ing. h.c. F. Porsche Aktiengesellschaft, Porsche Zuffenhausen, Werk 2, Hauptpforte, Porschestraße 42, 70435 Stuttgart, Deutschland
1.4.4 EXAMPLE 4
A business partner having assigned a legal entity, a site and its main address1, which is also the legal address.
Schaeffler Group USA INC. Fort Mill 1, 308 Springhill Farm Rd, Fort Mill, SC 29715, USA
1.4.5 EXAMPLE 5
A business partner having assigned a legal entity, a site and one of its addresses, which is neither the legal address nor the main address1 of that site.
Dr. Ing. h.c. F. Porsche Aktiengesellschaft, Porsche Zuffenhausen, Werk 2, Pforte (Lieferanten), Schwieberdinger Str. 130, 70435 Stuttgart, Deutschland
1.5 TERMINOLOGY
This section is non-normative
1.5.1 GENERAL
Golden Record: Golden Record defines a business partner data record which successfully passed a set of predefined quality rules. These rules qualified the data record into a harmonized, standardized, and semantically unified data structure which is defined by Catena-X. The Golden Record status is a prerequisite for each BP data record to receive a valid BPN.
Sharing Member: A Sharing Member is a Catena-X member who shares the business partner data of his own business environment2.
Company Data: Company Data are business partner data that represent the organizational structures of the Sharing Member.
1.5.2 DATA MODEL
This chapter explains the data model3 from a conceptual / terminology point of view. It does not include technical details of the API data model, such as:
- differences in response and request
- differences in data stages (like input or output)
- attributes for pagination
- singular query parameters, which are not already attributes of the entities
Note that cardinalities always refer to the entity state as required output of the sharing process. In general, cardinalities of relations and attributes are not to be enforced while uploading business partners, except for the external ID.
1.5.2.1 BUSINESS PARTNER
In general, a business partner is any entity (such as a customer, a supplier, an employee, or a service provider) that does business with another entity.
In Catena-X, a business partner is an organization (such as an enterprise or company, university, association, etc., and not a natural person) or one of its substructures that acts as unique partner within the automotive supply chain - either in the role of a direct participant, or a consultant, or a non-production-material (NPM) supplier.
The business partner entity in the Gate API provides a merged view on the entity combinations from the Business Partner Data Pool. In all combinations, a business partner has exactly one legal entity and one address assigned. It may additionally have a site assigned if the assigned address belongs to the site and the site is known to BPDM / has been shared by the owner. Note that for the assignment of the entities the respective BPNL, BPNS or BPNA (from the Business Partner Data Pool) are used.
The business partner address type and the BPN assignment determine the entity combinations, on which the business partner entity provides a merged view. The combinations are visualized in the following table. All other combinations are invalid as output of the sharing process and will result in a sharing error:
Description | Address Type | BPNL | BPNS | BPNA | Shared by | Example |
---|---|---|---|---|---|---|
A business partner having assigned a legal entity and its legal address. | Legal Address | has a | - | has a | Anyone | 1.4.1 EXAMPLE 1 |
A business partner having assigned a legal entity and one of its additional addresses. | Additional Address | has a | - | has a | Anyone | 1.4.2 EXAMPLE 2 |
A business partner having assigned a legal entity, a site and its main address1, which is not the legal address. | Site Main Address1 | has a | has a | has a | Owner only | 1.4.3 EXAMPLE 4 |
A business partner having assigned a legal entity, a site and its main address1, which is also the legal address. | Legal and Site Main Address1 | has a | has a | has a | Owner only | 1.4.4 EXAMPLE 4 |
A business partner having assigned a legal entity, a site and one of its addresses, which is neither the legal address nor the main address1 of that site. | Additional Address | has a | has a | has a | Owner only | 1.4.5 EXAMPLE 5 |
These are the attributes of the business partner:
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
External ID | The identifier which uniquely identifies (in the internal system landscape of the Sharing Member) the business partner. | String |
Name Parts | The list of name parts of the business partner to accommodate the different number of name fields in different systems. | List of String |
Identifiers | The list of identifiers of the business partner. | List of Business Partner Identifier |
Roles | One or more of the roles, the business partner assumes with respect to the Sharing Member: Supplier, Customer. | List of Enum |
Is Own Company Data | Indicates whether the Sharing Member claims (in the initial upload) the business partner to belong to the Company Data of the Sharing Member.4 | Boolean |
Created At | The date and time when the business partner data record has been created. | Date / Time |
Updated At | The date and time when the business partner data record has been last updated. | Date / Time |
Legal Entity | The legal entity, on which the business partner provides a view. | Legal Entity Representation |
Site | The site, on which the business partner provides a view. | Site Representation |
Address | The address, on which the business partner provides a view. | Address Representation |
1.5.2.1.1 BUSINESS PARTNER IDENTIFIER
A business partner identifier (uniquely) identifies the business partner, such as the German Handelsregisternummer, a VAT number, etc.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Value | The value of the identifier like “DE123465789” | String |
Type | The type of the identifier. | Identifier Type |
Issuing Body | The name of the official register, where the identifier is registered. For example, a Handelsregisternummer in Germany is only valid with its corresponding Registergericht and Registerart. | String |
1.5.2.1.2 LEGAL ENTITY REPRESENTATION
A legal entity representation adds context information to the legal entity, on which the business partner provides a view. Additionally, it contains some of the information from the assigned legal entity.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Legal Entity BPN | The BPNL of the legal entity, on which the business partner provides a view. | String |
Legal Name | The name of the legal entity, on which the business partner provides a view, according to official registers. | String |
Short Name | The abbreviated name of the legal entity, on which the business partner provides a view. | String |
States | The list of (temporary) states of the legal entity. | List of Legal Entity State |
Legal Form | The legal form of the legal entity, on which the business partner provides a view. | Legal Form |
1.5.2.1.2.1 LEGAL ENTITY STATE
A legal entity state indicates if the legal entity is active or inactive5. This does not describe the relation between a Catena-X Member and a business partner and whether they have active business, but it describes whether the legal entity is still operating.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Valid From | The date and time from which the state is valid. | Date / Time |
Valid To | The date and time until the state is valid. | Date / Time |
Type | One of the state types: active, inactive. | Enum |
1.5.2.1.3 SITE REPRESENTATION
A legal entity representation adds context information to the site, on which the business partner provides a view. Additionally, it contains some of the information from the assigned site.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Site BPN | The BPNS of the site, on which the business partner provides a view. | String |
Name | The name of the site, on which the business partner provides a view. This is not according to official registers but according to the name the owner chooses. | String |
States | The list of the (temporary) states of the site. | List of Site State |
1.5.2.1.3.1 SITE STATE
A site state indicates if the site is active or inactive5. This does not describe the relation between a Catena-X Member and a business partner and whether they have active business, but it describes whether the site is still operating.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Valid From | The date from which the state is valid. | String |
Valid To | The date until the state is valid. | String |
Type | One of the state types: active, inactive. | Enum |
1.5.2.1.4 ADDRESS REPRESENTATION
An address representation adds context information to the address, on which the business partner provides a view. Additionally, it contains most of the information from the assigned address.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Address BPN | The BPNA of the address, on which the business partner provides a view. | String |
Name | The name of the address, on which the business partner provides a view. This is not according to official registers but according to the name the sharing members agree on, such as the name of a gate or any other additional names that designate the address in common parlance. | String |
States | The list of (temporary) states of the address. | List of Address State |
Type | One of the address types: Legal Address, Site Main Address1, Legal and Site Main Address1, Additional Address. | Enum |
Physical Postal Address | The physical postal address of the address, on which the business partner provides a view, such as an office, warehouse, gate, etc. | Physical Postal Address |
Alternative Postal Address | The alternative postal address of the address, on which the business partner provides a view, for example if the goods are to be picked up somewhere else. | Alternative Postal Address |
1.5.2.1.4.1 ADDRESS STATE
An address state indicates if the address is active or inactive5. This does not describe the relation between a Catena-X Member and a business partner and whether they have active business, but it describes whether the business partner is still operating at that address.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Valid From | The date from which the state is valid. | String |
Valid To | The date until the state is valid. | String |
Type | One of the state types: active, inactive. | Enum |
1.5.2.2 LEGAL FORM
A legal form is a mandatory corporate legal framework by which companies can conduct business, charitable or other permissible activities.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Technical Key | The technical identifier of the legal form according to ISO 20275. | String |
Name | The name of legal form according to ISO 20275. | String |
Abbreviation | The abbreviated name of the legal form according to ISO 20275, such as AG for German Aktiengesellschaft. | String |
1.5.2.3 PHYSICAL POSTAL ADDRESS
A physical postal address describes the physical location of an office, warehouse, gate, etc.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Geographic Coordinates | The exact location of the physical postal address in latitude, longitude, and altitude. | Geographic Coordinate |
Country | The two-letter country code of the physical postal address according to ISO 3166-1. | String |
Administrative Area Level 1 | The administrative area of the physical postal address, such as a region within a country. | Administrative Area (Level 1) |
Administrative Area Level 2 | The name of the locally regulated secondary country subdivision of the physical postal address, such as county within a country. | String |
Administrative Area Level 3 | The name of the locally regulated tertiary country subdivision of the physical address, such as townships within a country. | String |
Postal Code | The alphanumeric identifier (sometimes including spaces or punctuation) of the physical postal address for the purpose of sorting mail, synonyms: postcode, post code, PIN or ZIP code. | String |
City | The name of the city of the physical postal address, synonyms: town, village, municipality. | String |
District | The name of the district of the physical postal address which divides the city in several smaller areas. | String |
Street | The street of the physical postal address, synonyms: road, avenue, lane, boulevard, highway | Street |
Company Postal Code | The company postal code of the physical postal address, which is sometimes required for large companies. | String |
Industrial Zone | The industrial zone of the physical postal address, designating an area for industrial development, synonym: industrial area. | String |
Building | The alphanumeric identifier of the building addressed by the physical postal address. | String |
Floor | The number of a floor in the building addressed by the physical postal address, synonym: level. | String |
Door | The number of a door in the building on the respective floor addressed by the physical postal address, synonyms: room, suite. | String |
1.5.2.3.1 STREET
A street is a public road in a city, town, or village, typically with houses and buildings on one or both sides, synonyms: road, avenue, lane, boulevard, highway.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Name Prefix | The street related information, which is usually printed before the official street name on an address label. | String |
Additional Name Prefix | The additional street related information, which is usually printed before the official street name on an address label. | String |
Name | The name of the street. | String |
Name Suffix | The street related information, which is usually printed after the official street name on an address label. | String |
Additional Name Suffix | The additional street related information, which is usually printed after the official street name on an address label. | String |
House Number | The alphanumeric identifier representing the exact location of a building within the street. | String |
House Number Supplement | The alphanumeric identifier representing the exact location of a business partner in a building. Note this information might be further detailed out semantically in the building, floor, and door attributes. However, this attribute is the only relevant for addressing the business partner. | String |
Milestone | The alphanumeric identifier representing the exact location of an addressed object within a street without house numbers, such as within long roads. | String |
Direction | The cardinal direction describing where the exit to the location of the addressed object on large highways / motorways is located, such as Highway 101 South. | String |
1.5.2.4 ALTERNATIVE POSTAL ADDRESS
An alternative postal address describes an alternative way of delivery for example if the goods are to be picked up somewhere else.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Geographic Coordinates | The exact location of the alternative postal address in latitude, longitude, and altitude. | Geographic Coordinate |
Country | The two-letter country code of the postal address according to ISO 3166-1. | String |
Administrative Area Level 1 | The administrative area of the alternative postal address, such as a region within a country. | Administrative Area (Level 1) |
Postal Code | The alphanumeric identifier (sometimes including spaces or punctuation) of the physical postal address for the purpose of sorting mail, synonyms: postcode, post code, PIN or ZIP code. | String |
City | The name of the city of the physical postal address, synonyms: town, village, municipality. | String |
City | The name of the city of the alternative postal address, synonyms: town, village, municipality. | String |
Delivery Service Type | One of the alternative postal address types: P.O. box, private bag, boite postale. | Enum |
Delivery Service Qualifier | The qualifier uniquely identifying the delivery service endpoint of the alternative postal address in conjunction with the delivery service number. In some countries for example, entering a P.O. box number, postal code and city is not sufficient to uniquely identify a P.O. box, because the same P.O. box number is assigned multiple times in some cities. | String |
Delivery Service Number | The number indicating the delivery service endpoint of the alternative postal address to which the delivery is to be delivered, such as a P.O. box number or a private bag number. | String |
1.5.2.5 ADMINISTRATIVE AREA (Level 1)
An administrative area (level 1) is the country subdivision according to ISO 3166-2, such as regions within a country.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Name | The name of the country subdivision according to ISO 3166-2. | String |
Code | The six-character alphanumeric code according to ISO 3166-2, consisting of the two-letter ISO 3166-1 country code and a three-character alphanumeric code for the subdivision in that country, separated by a hyphen. | String |
1.5.2.6 GEOGRAPHIC COORDINATES
Geographic coordinates describe an exact location in latitude, longitude, and altitude, according to ISO 6709 with WGS 84 as the currently only supported coordinate reference system.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Longitude | The geographic coordinate of a place indicating the distance to the west or east of the line passing through Greenwich, in decimal degrees (DD). | Float |
Latitude | The geographic coordinate of a place indicating its distance to the north or south of the equator, in decimal degrees (DD). | Float |
Altitude | The geographic coordinate of a place indicating its height above mean sea level, in meters. | Float |
1.5.2.7 IDENTIFIER TYPE
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
Technical Key | The technical identifier of the identifier type. | String |
Name | The name of the identifier type. | String |
Business Partner Type | One of the types of business partners for which the identifier is valid: legal entity, address | Enum |
1.5.2.8 SHARING STATE ENTRY
A sharing state entry shows the progress in the sharing process and is updated each time the progress for a business partner changes. The business partner is identified by the external ID.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
External ID | The external ID of the business partner for which the sharing state entry was created. | String |
Sharing State Type | One of the sharing state types of the current sharing state: pending, success, error. | Enum |
Sharing Error Code | One of the sharing error codes in case the current sharing state type is “error”: sharing process error, sharing timeout, BPN not in pool. | Enum |
Sharing Process Started At | The date and time when the processing of the business partner data record started. | Date / Time |
1.5.2.9 CHANGELOG ENTRY
An entry of the changelog, which is created each time a business partner is modified and contains data about the change. The actual new state of the business partner is not included.
Attribute | Description | (Data) Type / Code List / Enumeration |
---|---|---|
External ID | The external ID of the business partner for which the changelog entry was created. | String |
Changelog Type | One of the actions for which the changelog entry was created: create, update. | Enum |
Timestamp | The date and time when the changelog entry was created. | Date / Time |
2 BUSINESS PARTNER GATE API [NORMATIVE]
The Business Partner Gate API allows to upload and download business partner data records to improve their quality and enrich them with additional information. The Gate API MUST be implemented based on the OpenAPI 3.0.1 specification.
2.1 PRECONDITIONS AND DEPENDENCIES
To run the API the following SHOULD be set up: https://github.com/eclipse-tractusx/bpdm/blob/release/6.0.x/README.md
2.2 API SPECIFICATION
2.2.1 API ENDPOINT & RESOURCES
The Gate API MUST be implemented as defined in the following OpenAPI document: https://raw.githubusercontent.com/eclipse-tractusx/bpdm/release/6.0.x/docs/api/gate.json
The resources MUST use the well-known HTTP request methods for CRU(D) operations:
- POST method MUST be used for create requests
- PUT6 method MUST be used for update requests
- GET method MUST be used for read requests
The POST method MAY also be used for read requests, if input is not given by parameters but rather by an HTTP body to bypass maximum URL length. The PUT method MAY also be used for upsert requests (create or update) if this is required. A state (active / inactive) at each entity MUST be used for a soft delete, so that the DELETE method SHALL NOT be used. Other HTTP request methods SHALL NOT be used, including PATCH.
To facilitate the compliance assessment, this chapter additionally lists and describes the API resources of the Gate API per API controller.
The following API controllers of the OpenAPI document MUST be implemented:
- Business Partner controller
- Sharing state controller
- Changelog controller
Uploading and downloading data to/from the Gate API MUST follow a staging concept with two stages, so that consumers of the Gate API can compare what they have uploaded (input stage) against what has been corrected and/or enriched by BPDM (output stage). The following controllers MUST distinguish between an input and an output stage:
- Business Partner controller
- Changelog controller
Note that all resources of the OpenAPI document described in the following are MANDATORY. Conversely, all resources not described in the following are OPTIONAL.
2.2.1.1 BUSINESS PARTNER CONTROLLER
The business partner controller MUST allow to create, update, or read business partners in the input and read from the output stage. It MUST have the following resources:
Business Partner Controller Resources | Description |
---|---|
PUT/input/business-partners | Creates business partners or updates existing business partners in the input stage. |
POST/input/business-partners/search | Returns business partners by an array of external IDs from the input stage. |
POST/output/business-partners/search | Returns business partners by an array of external IDs from the output stage. |
2.2.1.2 SHARING STATE CONTROLLER
The sharing state controller MUST allow to read sharing state entries of business partners. A sharing state of type "Success" SHOULD include the assigned BPNL, BPNS and BPNA. The sharing state controller MUST have the following resources:
Sharing State Controller Resources | Description |
---|---|
GET/sharing-state | Returns sharing states of business partners, optionally filtered by an array of external IDs. |
2.2.1.3 CHANGELOG CONTROLLER
The changelog controller MUST allow to read business partner change log entries. It MUST have the following resources:
Changelog Controller Resources | Description |
---|---|
POST/input/business-partners/changelog/search | Returns change log entries as of a specified timestamp from the input stage, optionally filtered by an array of external IDs. |
POST/output/business-partners/changelog/search | Returns change log entries as of a specified timestamp from the output stage, optionally filtered by an array of external IDs. |
2.2.2 AVAILABLE DATA TYPES
The API MUST use JSON as the payload format transported via HTTP. Other formats can be added. These are then, however, OPTIONAL.
2.2.3 DATA ASSET STRUCTURE
The following data assets MUST be registered at the Core Service Provider so that the Sharing Member can negotiate an API usage contract with the Core Service Provider and access its dedicated BPDM Gate (hosted by the Core Service Provider) through these data assets2:
Type | Subject | Version | Description |
---|---|---|---|
BPDMGate | FullAccessGateInputForSharingMember | 6.0 | Grants the Sharing Member full access to the input persistence. This can be used to read business partner data in the input persistence, and create / update business partner data in the input persistence from data sources of the Sharing Member. To that end, it also grants read access to the input changelog entries. |
BPDMGate | ReadAccessGateInputForSharingMember | 6.0 | Grants the Sharing Member read access to the input persistence. This can be used explicitly for value-added services to read business partner data from the input persistence. To that end, it also grants read access to the input changelog entries. |
BPDMGate | ReadAccessGateOutputForSharingMember | 6.0 | Grants the Sharing Member read access to the output persistence. This can be used to read business partner data from the output persistence so that the data sources of the Sharing Member can be updated. Furthermore, it can be used to update data sources in value-added services. To that end, it also grants read access to the output changelog and sharing state entries. |
Example data asset (dct:type for asset type, dct:subject for asset subject, dct:description for asset description and cx-common:version for asset version from the table above):
{
"@context": {
"dct": "https://purl.org/dc/terms/",
"cx-taxo": "https://w3id.org/catenax/taxonomy#",
"cx-common": "https://w3id.org/catenax/ontology/common#",
},
"@type": "Asset",
"@id": "a8f15946-2347-47a8-a67f-846e7303fd94",
"properties": {
"dct:type": {
"@id": "cx-taxo:BPDMGate"
},
"dct:subject": {
"@id": "cx-taxo:FullAccessGateInputForSharingMember"
},
"dct:description": "Grants the Sharing Member full access to the input persistence. This can be used to read business partner data in the input persistence, and create / update business partner data in the input persistence from data sources of the Sharing Member. To that end, it also grants read access to the input changelog entries.",
"cx-common:version": "6.0"
},
"dataAddress": {
"@type": "DataAddress",
"type": "HttpData",
"baseUrl": "https://<host>/companies/<company>/api/v6/",
"oauth2:tokenUrl": "https://<host>/auth/realms/<realm>/protocol/openid-connect/token",
"oauth2:clientId": "<technical user>",
"oauth2:clientSecretKey": "<key to the secret of the technical user in the vault>",
"proxyMethod": true,
"proxyPath": true,
"proxyQueryParams": true,
"proxyBody": true
}
}
The OAuth2 client permissions MUST be configured to solely allow access to the API resources defined in the corresponding asset, checking HTTP method (read vs. full access), path (e.g. for input / output / sharing state), query parameters and body of the HTTP request sent to the data plane public API which acts as a proxy for the BPDM Gate API7.
2.2.4 ERROR HANDLING
The following http response codes MUST be defined for all resources:
- 200 - OK
- 400 - Bad Request
- 401 - Unauthorized
- 403 - Forbidden
- 404 - Not Found
- 500 - Internal Server Error
HTTP Status Code Registry MUST be adhered to in the implementation for the decision on when to use which error code: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2.2.5 ADDITIONAL REQUIREMENTS
2.2.5.1 CONVENTIONS FOR USE CASE POLICY IN CONTEXT OF DATA EXCHANGE
In alignment with our commitment to data sovereignty, a specific framework governing the utilization of data within the Catena-X use cases has been outlined. A set of specific policies on data offering and data usage level detail the conditions under which data may be accessed, shared, and used, ensuring compliance with legal standards.
For a comprehensive understanding of the rights, restrictions, and obligations associated with data usage in the Catena-X ecosystem, we refer users to
- the detailed ODRL policy repository. This document provides in-depth explanations of the terms and conditions applied to data access and utilization, ensuring that all engagement with our data is conducted responsibly and in accordance with established guidelines.
- the ODRL schema template. This defines how policies used for data sharing/usage should get defined. Those schemas MUST be followed when providing services or apps for data sharing/consuming.
2.2.5.2 ADDITIONAL DETAILS REGARDING ACCESS POLICIES
A Data Provider may tie certain access authorizations ("Access Policies") to its data offers for members of Catena-X and one or several Data Consumers. By limiting access to certain Participants, Data Provider maintains control over its anti-trust obligations when sharing certain data. In particular, Data Provider may apply Access Policies to restrict access to a particular data offer for only one Participant identified by a specific business partner number.
- Membership
- BPNL
2.2.5.3 ADDITIONAL DETAILS REGARDING USAGE POLICIES
In the context of data usage policies (“Usage Policies”), Participants and related services MUST use the following policy rules:
- Use Case Framework (“FrameworkAgreement”)
- at least one use case purpose (“UsagePurpose”) from the above mentioned ODRL policy repository.
Additionally, respective usage policies MAY include the following policy rule:
- Reference Contract (“ContractReference”).
Details on namespaces and ODRL policy rule values to be used for the above-mentioned types are provided via the ODRL policy repository.
3 REFERENCES
3.1 NORMATIVE REFERENCES
3.2 NON-NORMATIVE REFERENCES
This section is non-normative
REFERENCE IMPLEMENTATION
This section is non-normative
ANNEXES
FIGURES
This section is non-normative
The following picture shows the business partner with the business partner relationship as an outlook for one of the next versions of this standard:
The idea is to use the business partner relationship to upload different kinds of relations between two business partners, such as:
- a business partner is the legal entity for another business partner
- a business partner is replaced by another business partner
It is not intended to use the business partner relationship for legal hierarchies (majority shareholding).
TABLES
This section is non-normative
Intentionally left blank.
Legal
Copyright © 2024 Catena-X Automotive Network e.V. All rights reserved. For more information, please visit here.
Footnotes
-
Note that there is currently a debate as to whether a site is only a consolidation of addresses (BPNA), with all addresses being equally ranked, since a "main" address can't always be defined at this point in time. This may lead to changes in the next update of this standard. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
-
Note that the Sharing Member assumes the roles Data Provider on upload and Data Consumer on download of business partner data, while the Core Service Provider assumes the roles Data Consumer on upload and Data Provider on download of business partner data. ↩ ↩2
-
Note that PlantUml is used for the conceptual UML diagrams in this document (A = abstract class; green E = entity; C = class; red E = enumeration). An abstract class has no actual representation in the OpenAPI implementation. An entity is usually implemented by an own OpenAPI controller with resources and usually is the root in a payload, while a class is a sub node in the payload. An enumeration is a set of predefined values. ↩
-
Note that each data record in the MDM business partner data of the Sharing Member does not explicitly have to be flagged as "is own company data". However, it is important that the Sharing Member flags business partners as "is own company data" in the initial upload of own Company Data, such as by introducing a constant in the used middleware. ↩
-
Note that this a currently a soft-delete approach and not a business state. However, this can be adapted in the next version of this standard. ↩ ↩2 ↩3
-
Note that in case of a PUT the corresponding resources expect to receive the full updated record, including values that did not change. ↩
-
Note that the definition of the data assets depends on the current implementation state of the reference implementation (Tractus-X Eclipse Dataspace Connector). Therefore the data assets represent permissions on APIs, whereas they should actually only represent APIs. ↩