Partner APIs
The full master data records for a Partner include the Partner's headquarters information, identifiers, and location master data on TraceLink. IT system administrators and app developers use these APIs to read the full master data record for a Partner and its internal locations by submitting either regulatory identifier information for the company or location or a query that finds the company or location based on the contents of one or more fields. Additionally, IT system administrators use these APIs to edit the full master data record for a Partner and its internal locations.
Get Partner Company Master Data
Guidelines
Attribute | Type | Description | |
---|---|---|---|
header | – |
Required. The request header. |
|
headerVersion | Integer |
Required. The version identifier for the request. |
|
eventName | String |
Required. The fully qualified name of the request event. |
|
ownerId | String |
Required. The identifier for the company providing the app. |
|
dataspace | String |
Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is |
|
appName | String |
Required. The application that owns the event. |
|
payload | – |
Required. The |
|
regulatoryCompanyIdentifier | String |
The value of the regulatory identifier. |
|
regulatoryCompanyIdentifierType | String |
The type of the regulatory identifier. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-partner-by-regulatory-identifier:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"regulatoryCompanyIdentifier": "8888882021122",
"regulatoryCompanyIdentifierType": "SGLN"
}
}
Guidelines
Attribute | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
header | – |
Required. The response header. |
||||||
headerVersion | Integer |
Required. The version identifier for the response. |
||||||
eventName | String |
Required. The fully qualified name of the response event. |
||||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||||
isErr | String |
Required. Indicates whether the request was successful. Valid values:
|
||||||
errCode | String |
Required. The status code of the request. |
||||||
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
||||||
licensePlate | String |
Required. The unique identifier for the request and response instance. |
||||||
payload | – |
Required. The |
||||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||||
documents | Array |
Required. Contains the results of the query request. |
||||||
metadata | Object |
Required. The metadata about the object. |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
primaryKey | String |
Required. The primary key of the object. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
indexTarget | String |
Required. The index target identifier of the object. |
||||||
dbTxid | Integer |
Required. The transactional identifier of the object. |
||||||
payload | – | Required. The master data objects. | ||||||
schemaVersion | String |
Required. The JSON schema version number. |
||||||
data | Object |
Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. |
||||||
dataStatus | Boolean |
Required. Indicates if the master data for this location is active or inactive. Valid values:
|
||||||
lscS3Identifier | String |
Required. The identifier of the company object that S3 uses. |
||||||
isLegalEntity | Boolean |
Specifies if the company is a legal entity. Valid values:
|
||||||
providerNetworkNodeIdentifier | String |
Required. The network node of the originating company for the master data record. |
||||||
legalEntityCode | String |
The legal entity code of the network node. |
||||||
companyNetworkNodeId | String |
Required. The network node that the record belongs to. |
||||||
regulatoryPartnerLicenses | Array | The Partner company's license information. | ||||||
lscLicenseIdentifier | String | The license identifier in Track & Trace Services. | ||||||
licenseNumber | String | Required. The regulatory license number for the specified Partner company. | ||||||
licenseCountry | String | Required. The country of the licensing agency. | ||||||
licenseIssuingAgency | String | The agency granting the regulatory license. | ||||||
licenseStateOrRegion | String | The state or region of the licensing agency. | ||||||
regulatoryPartnerIdentifiers | String |
Required. The list of all identifiers of the company. |
||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier of the regulatory identifier type and value combination. | ||||||
regulatoryCompanyIdentifierType | String |
Required. The identifier type. |
||||||
isPrimaryRegulatoryIdentifier | String |
Required. Specifies if the given identifier is the primary identifier. |
||||||
regulatoryIdentifierValue | String |
Required. The identifier value. |
||||||
businessMasterDataCommon | TypeDef |
Required. The common business information. |
||||||
businessType | String |
The list of all business types of the company. |
||||||
lscBusinessVersion | String |
Required. The business version identifier in Track & Trace Services. |
||||||
businessName | String |
Required. The company's name. |
||||||
businessEmail | String |
The company's email address. |
||||||
businessPhone | String |
The company's phone number. |
||||||
businessUrl | String |
The URL of the company's website. |
||||||
businessTaxRegistrationCode | String |
The company's tax registration code. |
||||||
businessAddress | TypeDef |
The company's address information. |
||||||
address1 | String |
Required. The street address, including number and street name. |
||||||
address2 | String |
The second line of the street address. Any additional address information, if available. |
||||||
city | String | Required. The city where this Partner company is located. | ||||||
district | String |
The 3-digit numeric code of the district where the Partner company is located in India. |
||||||
village | String |
The village in which the Partner company is located. |
||||||
houseNumber | String |
The building, house, or unit number of the company. House numbers are usually only separated from the street address in China. For all addresses outside of China, continue to enter the building, house, or unit number in address1. |
||||||
township | String |
The name of the town in which the Partner company is located. |
||||||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
||||||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
||||||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
||||||
url | String | The URL of the Partner company's website. | ||||||
buildingNumber | String |
The Partner company's building number. |
||||||
plantNumber | String |
The facility's plant number. |
||||||
floorNumber | String |
The facility's floor number. |
||||||
premisesCode | String |
The identifier representing a physical area within the company location (e.g. a location's second floor). |
||||||
fax | String |
The office's fax number. |
||||||
telephone | String |
The office's telephone number. |
||||||
lscAddressidentifier | String |
The global identifier assigned by Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F. |
||||||
regulatoryContact | Object |
The contact information for the regulatory contact at the company. |
||||||
regulatoryContactTitle | String |
The regulatory contact's business title. |
||||||
regulatoryContactName | String |
The regulatory contact's name. |
||||||
regulatoryContactEmail | String |
The regulatory contact's email address. |
||||||
regulatoryContactPhone | Integer |
The regulatory contact's phone number. |
||||||
businessLogo | Object |
Information for the business logo. |
||||||
imageIdentifier | String |
The business logo's image identifier. |
||||||
imageMimeType | String |
The business logo's image mime type. |
||||||
imagefileName | String |
The business logo's file name. |
||||||
imagebase64 | String |
A readable string of the image. |
||||||
regulatoryPartnerIdentifiersDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerIdentifiersWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerLicensesWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
id | String | Required. The identifier of the master data object. | ||||||
objectType | String | Required. The type of the object. Valid value is masterdata-manager:productMasterData . |
||||||
lastUpdatedDateTime | String |
The identifier of the user that made the last update to the master data record. |
||||||
contextualOwnerId | String | Required. The identifier of the company sending the master data request. | ||||||
lastUpdatedByUserId | DateTime |
The identifier of the user that made the last update to the master data record. |
||||||
ownerId | String |
Required. The identifier of the company that owns the master data record. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
createdByUserId | String |
Required. The ID of the user that created the master data record. |
||||||
creationDateTime | DateTime |
Required. The date and time when the master data record was created. |
||||||
primaryKey | String | Required. The primary key of the object. | ||||||
facets | String |
Required. Enables searches through a particular dataset. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-partner-by-regulatory-identifier-response:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "W1thmm"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:partnerMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:partnerMasterData#471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"dataVersion": 1,
"indexTarget": "471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"dbTxId": 111353
},
"payload": {
"schemaVersion": 1,
"data": {
"dataStatus": "dataStatus",
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryPartnerLicenses": [
{
"lscLicenseIdentifier": "lscLicenseIdentifier",
"licenseNumber": "licenseNumber",
"licenseCountry": "US",
"licenseIssuingAgency": "licenseIssuingAgency",
"licenseStateOrRegion": "licenseStateOrRegion"
}
],
"regulatoryPartnerIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "ac8b1d0b-8041-4938-bd38-0c5eeed8a28b",
"regulatoryCompanyIdentifierType": "SGLN",
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "8888882021122"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "businessNameTest",
"businessEmail": "businessEmail",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "city",
"village": "village",
"township": "township",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
"lscAddressIdentifier": "lscAddressIdentifier"
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "regulatoryContactEmail",
"regulatoryContactPhone": "regulatoryContactPhone"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "imageMimeType",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
},
"regulatoryPartnerLicensesWithBusinessNameDerivedField": "businessNameTest licenseIssuingAgency US licenseStateOrRegion licenseNumber",
"regulatoryPartnerIdentifiersWithBusinessNameDerivedField": "businessNameTest SGLN 8888882021122",
"regulatoryPartnerIdentifiersDerivedField": "SGLN 8888882021122"
},
"schemaId": "masterdata-manager:partnerMasterData",
"id": "471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"objectType": "masterdata-manager:partnerMasterData",
"lastUpdatedDateTime": 1616100835395,
"contextualOwnerId": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataVersion": 1,
"createdByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"creationDateTime": 1616100835395
},
"primaryKey": "masterdata-manager:partnerMasterData#471b0f7a-4759-4279-bf8e-dc74c70bd8a8"
}
],
"facets": [
]
}
}
Errors
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use
Add or Edit Partner Company Master Data
IT system administrators use this API to add or edit the full master data record for a Partner (e.g. name, address). IT system administrators should retrieve the existing partner company master data record, edit the values that need to change, and then submit the entire record. These APIs overwrite the full set of data previously added to the associated record.
Guidelines
Element | Type | Description | |||
---|---|---|---|---|---|
header | – | Required. The request header. | |||
headerVersion | Integer | Required. The version identifier for the request. Valid value is 1 . |
|||
eventName | String | Required. The fully qualified name of the request event. Valid value is masterdata-manager:add-partner:v4 . |
|||
ownerId | String | Required. The identifier for the Owner company associated with the request. | |||
appName | String | Required. The application that owns the event. Valid value is masterdata-manager . |
|||
dataspace | String | Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is default . |
|||
payload | – | Required. The request payload. | |||
data | Object | Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. | |||
dataStatus | String |
Required. Indicates if the Partner company data is active within TraceLink. Valid values:
|
|||
regulatoryPartnerLicenses | Array | The regulatory Identifier. | |||
licenseStateOrRegion | String |
The state or region of the licensing agency. |
|||
licenseIssuingAgency | String |
The agency that grants the regulatory license. |
|||
licenseCountry | String |
Required. The country of the licensing agency. |
|||
licenseNumber | String |
Required. The regulator license number for the location. |
|||
regulatoryPartnerIdentifiers | Array | Required. The identifiers for a Partner company. | |||
regulatoryIdentifierValue | String | Required. The value ofPartner company identifier. | |||
isPrimaryRegulatoryIdentifier | String |
Required. Specifies if the given Partner identifier is the primary identifier. Only one identifier can be set as the primary identifier. TraceLink uses the primary company identifier to identify the correct partner when the user updates the Master Data with an asynchronous message. Valid values:
|
|||
regulatoryCompanyIdentifierType | String |
Required. The company identifier type. Valid values
|
|||
businessMasterDataCommon | Object | Required. The Partner's headquarters information. | |||
businessType | String |
Required. The different types of business the Partner conducts. Valid values:
|
|||
businessName | String | Required. The Partner company's name. | |||
businessEmail | String | The Partner company's email address. | |||
businessPhone | String |
The Partner company's telephone number. |
|||
businessUrl | String | The Partner company's URL. | |||
businessTaxRegistrationCode | String |
The Partner company's tax registration code. The code used to identify this entity for tax or other legal reporting purposes. |
|||
businessAddress | Object | The Partner company's address information. | |||
address1 | String |
Required. The street address, including number and street name. |
|||
address2 | String |
The second line of the street address. Any additional address information, if available. |
|||
city | String | Required. The city where this Partner company is located. | |||
district | String |
The 3-digit numeric code of the district where the Partner company is located in India. |
|||
village | String |
The village in which the Partner company is located. |
|||
houseNumber | String | The unique number on the street for this Partner company. | |||
township | String |
The name of the town in which the Partner company is located. |
|||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
|||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
|||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
|||
url | String | The URL of the Partner company's website. | |||
buildingNumber | String | The Partner company's building number. | |||
plantNumber | String | The Partner company's plant number. | |||
floorNumber | String | The Partner company's floor number. | |||
premisesCode | String |
The internal identifier associated with this Partner company (e.g. a company with 4 locations in the city of Mumbai internally refers to the 4th location as MUM4). |
|||
fax | String | The Partner company's fax number. | |||
telephone | String |
The phone number of the contact person or department at the Partner company. |
|||
regulatoryContact | Array |
The contact information for the regulatory contact at the Partner company. Each field can only appear once per Partner company. |
|||
regulatoryContactName | String |
The regulatory contact's name in base64 format. |
|||
regulatoryContactTitle | String |
The regulatory contact's business title. |
|||
regulatoryContactEmail | String |
The regulatory contact's email address. |
|||
regulatoryContactPhone | String |
The regulatory contact's phone number. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-partner:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"id":"15af7e5b-0ce5-11ed-a271-ede41d741a85",
"data": {
"dataStatus": "ACTIVE",
"companyIdentifier": [
"bb40845c-8912-4b98-9c9a-f08bd5a9bd07"
],
"regulatoryPartnerLicenses": [
{
"lscLicenseIdentifier": "lscLicenseIdentifier",
"licenseStateOrRegion": "MA",
"licenseIssuingAgency": "licenseIssuingAgency",
"licenseCountry": "US",
"licenseNumber": "100001"
}
],
"regulatoryPartnerIdentifiers": [
{
"regulatoryIdentifierValue": "1888881021124",
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"isPrimaryRegulatoryIdentifier": true,
"regulatoryCompanyIdentifierType": "GLN"
}
],
"businessMasterDataCommon": {
"businessType": ["MANUFACTURER"],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "businessName",
"businessEmail": "m@m.com",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "city",
"village": "village",
"township": "township",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
"lscAddressIdentifier": "lscAddressIdentifier"
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "m@m.com",
"regulatoryContactPhone": "regulatoryContactPhone"
}
}
}
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response. Valid value is 1 . |
|
eventName | String | Required. The fully qualified name of the response event. Valid value is masterdata-manager:add-partner-response:v4 . |
|
ownerId | String | Required. The identifier for the Owner company associated with the request. | |
isErr | Boolean |
Required. Indicates whether the request was successful. Valid values:
|
|
errCode | String | Required. The status code of the request. 200_OK indicates that the request was successful. |
|
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
|
licensePlate | String | Required. The unique identifier for the request and response instance. | |
exceptionName | String |
The exception returned for the request, if applicable. Valid values:
|
|
payload | – | Required. The payload containing the response body. If the call is unsuccessful, payload is null . |
|
id | String | Conditionally required if the call is successful. The identifier for the new or edited Partner company. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-partner-response:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "AWcxNp-nDAFrJ"
},
"payload": {
"id": "15af7e5b-0ce5-11ed-a271-ede41d741a85"
}
}
Errors
Element | Error Message | Description |
---|---|---|
|
Invalid value for <field name>. Valid values are: [list of valid values, separated by commas]. |
The error occurs if the value is not in the list of valid values. |
regulatoryPartnerIdentifiers | Identifiers must be unique. Identifier [<type>] <value> already exists in Company or Partner Master Data. | The error occurs if the regulatoryPartnerIdentifiers specifies a primary ID that is in use but is not the primary company Id. |
regulatoryPartnerIdentifiers | Identifier Type <type> has two values. Only one identifier value for each type can be added for this location, except for COMPANYID and COMPANYSITEID. | The error occurs if the regulatoryPartnerIdentifiers specifies a primary ID that does not belong to the company. |
isPrimaryRegulatoryIdentifier | No identifiers are currently set as the primary. One identifier must be set as the primary identifier. | The error occurs if no identifiers are set at the primary identifier. |
isPrimaryRegulatoryIdentifier | Multiple identifiers are currently set as the primary. Only one identifier can be set as the primary identifier. |
The error occurs if isPrimaryRegulatoryIdentifier is set to have multiple identifiers as the primary identifier. |
regulatoryPartnerLicenses |
License is already assigned to another Partner company or location. |
The error occurs if regulatoryPartnerLicenses is set to assign a license to more than one Partner company or location. |
businessEmail | An email address is not in the valid format. |
The error occurs if an invalid email address is entered. |
regulatoryContactEmail | An email address is not in the valid format. | The error occurs if an invalid email address is entered. |
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use
Query Partner Company Master Data
Guidelines
Attribute | Type | Description | ||||
---|---|---|---|---|---|---|
header | – |
Required. The request header. |
||||
headerVersion | Integer |
Required. The version identifier for the request. |
||||
eventName | String |
Required. The fully qualified name of the request event. |
||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||
dataspace | String |
Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is |
||||
appName | String |
Required. The application that owns the event. |
||||
payload | – |
Required. The |
||||
predicates | Array |
Required. The contents of the query. |
||||
type | String |
Required. The type of the predicate. Valid value is |
||||
logicalOperator | String |
Required. The logical operator of the predicate. Valid values:
|
||||
clauses | Array |
Required. The attributes and values to include in the response message. |
||||
type | String |
Required. The type of the clause. Valid value is |
||||
comparisonOperator | String |
Required. The operator of the term.
Valid values:
|
||||
schemaId | String |
Required. The schema identifier of the network objects being queried. |
||||
ftsInfo | Object |
Required. The Lucene query info. |
||||
value | String | Required. Determines the content the query searches for. Replace "[searchString]" with the search value. Valid values:
|
||||
pageIndex | Integer |
Required. The index of the first page of results to display, starting at |
||||
sortField | Object |
Required. The method of sorting the values in the relevant indexes. Valid values:
|
||||
maximumResults | Integer |
Required. The maximum number of results returned in the response. |
||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||
keyFormat | String |
Required. The format of the response to a key-only query. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-partnerMasterData:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"predicates": [
{
"type": "PREDICATE",
"logicalOperator": "TRUE",
"clauses": [{
"type": "TERM",
"comparisonOperator": "LUCENE_FTS",
"schemaId": "masterdata-manager:partnerMasterData",
"ftsInfo": {
"value": "index-regulatoryPartnerIdentifiersWithBusinessNameDerivedField:*123*",
"pageIndex": 0,
"sortField": {
}
}
}]
}
],
"maximumResults": 10000,
"pagingInfo": "",
"keyFormat": "PRIMARY_KEY"
}
}
Guidelines
Attribute | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
header | – |
Required. The response header. |
||||||
headerVersion | Integer |
Required. The version identifier for the response. |
||||||
eventName | String |
Required. The fully qualified name of the response event. |
||||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||||
isErr | String |
Required. Indicates whether the request was successful. Valid values:
|
||||||
errCode | String |
Required. The status code of the request. |
||||||
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
||||||
licensePlate | String |
Required. The unique identifier for the request and response instance. |
||||||
payload | – |
Required. The |
||||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||||
documents | Array |
Required. Contains the results of the query request. |
||||||
metadata | Object |
Required. The metadata about the object. |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
primaryKey | String |
Required. The primary key of the object. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
indexTarget | String |
Required. The index target identifier of the object. |
||||||
dbTxid | Integer |
Required. The transactional identifier of the object. |
||||||
payload | – | Required. The master data objects. | ||||||
schemaVersion | String |
Required. The JSON schema version number. |
||||||
data | Object |
Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. |
||||||
dataStatus | Boolean |
Required. Indicates if the master data for this location is active or inactive. Valid values:
|
||||||
lscS3Identifier | String |
Required. The identifier of the company object that S3 uses. |
||||||
isLegalEntity | Boolean |
Specifies if the company is a legal entity. Valid values:
|
||||||
providerNetworkNodeIdentifier | String |
Required. The network node of the originating company for the master data record. |
||||||
legalEntityCode | String |
The legal entity code of the network node. |
||||||
companyNetworkNodeId | String |
Required. The network node that the record belongs to. |
||||||
regulatoryPartnerLicenses | Array | The Partner company's license information. | ||||||
lscLicenseIdentifier | String | The license identifier in Track & Trace Services. | ||||||
licenseNumber | String | Required. The regulatory license number for the specified Partner company. | ||||||
licenseCountry | String | Required. The country of the licensing agency. | ||||||
licenseIssuingAgency | String | The agency granting the regulatory license. | ||||||
licenseStateOrRegion | String | The state or region of the licensing agency. | ||||||
regulatoryPartnerIdentifiers | String |
Required. The list of all identifiers of the company. |
||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier of the regulatory identifier type and value combination. | ||||||
regulatoryCompanyIdentifierType | String |
Required. The identifier type. |
||||||
isPrimaryRegulatoryIdentifier | String |
Required. Specifies if the given identifier is the primary identifier. |
||||||
regulatoryIdentifierValue | String |
Required. The identifier value. |
||||||
businessMasterDataCommon | TypeDef |
Required. The common business information. |
||||||
businessType | String |
The list of all business types of the company. |
||||||
lscBusinessVersion | String |
Required. The business version identifier in Track & Trace Services. |
||||||
businessName | String |
Required. The company's name. |
||||||
businessEmail | String |
The company's email address. |
||||||
businessPhone | String |
The company's phone number. |
||||||
businessUrl | String |
The URL of the company's website. |
||||||
businessTaxRegistrationCode | String |
The company's tax registration code. |
||||||
businessAddress | TypeDef |
The company's address information. |
||||||
address1 | String |
Required. The street address, including number and street name. |
||||||
address2 | String |
The second line of the street address. Any additional address information, if available. |
||||||
city | String | Required. The city where this Partner company is located. | ||||||
district | String |
The 3-digit numeric code of the district where the company is located in India. |
||||||
village | String |
The village in which the Partner company is located. |
||||||
houseNumber | String |
The building, house, or unit number of the company. House numbers are usually only separated from the street address in China. For all addresses outside of China, continue to enter the building, house, or unit number in address1. |
||||||
township | String |
The name of the town in which the Partner company is located. |
||||||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
||||||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
||||||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
||||||
url | String | The URL of Partner company's website. | ||||||
buildingNumber | String |
The company's building number. |
||||||
plantNumber | String |
The facility's plant number. |
||||||
floorNumber | String |
The facility's floor number. |
||||||
premisesCode | String |
The identifier representing a physical area within the company location (e.g. a location's second floor). |
||||||
fax | String |
The office's fax number. |
||||||
telephone | String |
The office's telephone number. |
||||||
lscAddressidentifier | String |
The global identifier assigned by Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F. |
||||||
regulatoryContact | Object |
The contact information for the regulatory contact at the company. |
||||||
regulatoryContactTitle | String |
The regulatory contact's business title. |
||||||
regulatoryContactName | String |
The regulatory contact's name. |
||||||
regulatoryContactEmail | String |
The regulatory contact's email address. |
||||||
regulatoryContactPhone | Integer |
The regulatory contact's phone number. |
||||||
businessLogo | Object |
Information for the business logo. |
||||||
imageIdentifier | String |
The business logo's image identifier. |
||||||
imageMimeType | String |
The business logo's image mime type. |
||||||
imagefileName | String |
The business logo's file name. |
||||||
imagebase64 | String |
A readable string of the image. |
||||||
regulatoryPartnerIdentifiersDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerIdentifiersWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerLicensesWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
id | String | Required. The identifier of the master data object. | ||||||
objectType | String | Required. The type of the object. Valid value is masterdata-manager:productMasterData . |
||||||
lastUpdatedDateTime | String |
The identifier of the user that made the last update to the master data record. |
||||||
contextualOwnerId | String | Required. The identifier of the Partner company sending the master data request. | ||||||
lastUpdatedByUserId | DateTime |
The identifier of the user that made the last update to the master data record. |
||||||
ownerId | String |
Required. The identifier of the Partner company that owns the master data record. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
createdByUserId | String |
Required. The ID of the user that created the master data record. |
||||||
creationDateTime | DateTime |
Required. The date and time when the master data record was created. |
||||||
primaryKey | String | Required. The primary key of the object. | ||||||
facets | String |
Required. Enables searches through a particular dataset. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-partnerMasterData-response:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "W1thmm"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:partnerMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:partnerMasterData#471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"dataVersion": 1,
"indexTarget": "471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"dbTxId": 111353
},
"payload": {
"schemaVersion": 1,
"data": {
"dataStatus": "dataStatus",
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryPartnerLicenses": [
{
"lscLicenseIdentifier": "lscLicenseIdentifier",
"licenseNumber": "licenseNumber",
"licenseCountry": "US",
"licenseIssuingAgency": "licenseIssuingAgency",
"licenseStateOrRegion": "licenseStateOrRegion"
}
],
"regulatoryPartnerIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "ac8b1d0b-8041-4938-bd38-0c5eeed8a28b",
"regulatoryCompanyIdentifierType": "SGLN",
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "8888882021122"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "businessNameTest",
"businessEmail": "businessEmail",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "city",
"village": "village",
"township": "township",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
"lscAddressIdentifier": "lscAddressIdentifier"
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "regulatoryContactEmail",
"regulatoryContactPhone": "regulatoryContactPhone"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "imageMimeType",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
},
"regulatoryPartnerLicensesWithBusinessNameDerivedField": "businessNameTest licenseIssuingAgency US licenseStateOrRegion licenseNumber",
"regulatoryPartnerIdentifiersWithBusinessNameDerivedField": "businessNameTest SGLN 8888882021122",
"regulatoryPartnerIdentifiersDerivedField": "SGLN 8888882021122"
},
"schemaId": "masterdata-manager:partnerMasterData",
"id": "471b0f7a-4759-4279-bf8e-dc74c70bd8a8",
"objectType": "masterdata-manager:partnerMasterData",
"lastUpdatedDateTime": 1616100835395,
"contextualOwnerId": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataVersion": 1,
"createdByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"creationDateTime": 1616100835395
},
"primaryKey": "masterdata-manager:partnerMasterData#471b0f7a-4759-4279-bf8e-dc74c70bd8a8"
}
],
"facets": [
]
}
}
Errors
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use
Get Partner Company Location Master Data
Guidelines
Attribute | Type | Description | |
---|---|---|---|
header | – |
Required. The request header. |
|
headerVersion | Integer |
Required. The version identifier for the request. |
|
eventName | String |
Required. The fully qualified name of the request event. |
|
ownerId | String |
Required. The identifier for the company providing the app. |
|
dataspace | String |
Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is |
|
appName | String |
Required. The application that owns the event. |
|
payload | – |
Required. The |
|
regulatoryLocationIdentifier | String |
The value of the regulatory identifier. |
|
regulatoryLocationIdentifierType | String |
The type of the regulatory identifier. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-partnerLocation-by-regulatory-identifier:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"regulatoryCompanyIdentifier": "123456",
"regulatoryCompanyIdentifierType": "GLN"
}
}
Guidelines
Attribute | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
header | – |
Required. The response header. |
||||||
headerVersion | Integer |
Required. The version identifier for the response. |
||||||
eventName | String |
Required. The fully qualified name of the response event. |
||||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||||
isErr | String |
Required. Indicates whether the request was successful. Valid values:
|
||||||
errCode | String |
Required. The status code of the request. |
||||||
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
||||||
licensePlate | String |
Required. The unique identifier for the request and response instance. |
||||||
payload | – |
Required. The |
||||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||||
documents | Array |
Required. Contains the results of the query request. |
||||||
metadata | Object |
Required. The metadata about the object. |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
primaryKey | String |
Required. The primary key of the object. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
indexTarget | String |
Required. The index target identifier of the object. |
||||||
dbTxid | Integer |
Required. The transactional identifier of the object. |
||||||
payload | – |
Required. The master data objects. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
data | Object |
Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. |
||||||
dataStatus | Boolean |
Required. Indicates if the master data for this location is active or inactive. Valid values:
|
||||||
parentLegalEntityCode | String | Required. The legal code of the parent network node. | ||||||
isLegalEntity | Boolean |
Specifies if the company is a legal entity. Valid values:
|
||||||
legalEntityCode | String |
The legal entity code of the network node. |
||||||
companyNetworkNodeId | String |
Required. The network node that the record belongs to. |
||||||
locationNetworkNodeId | String | Required. The location node that owns the record. | ||||||
regulatoryLocationIdentifiers | String |
Required. The list of all identifiers of the company. |
||||||
regulatoryIdentifierValue | String |
Required. The identifier value. |
||||||
lscRegulatoryIdentifier | String | Required. The identifier of the regulatory identifier type and value in Track & Trace Services. | ||||||
isPrimaryRegulatoryIdentifier | String |
Required. Specifies if the given identifier is the primary identifier. |
||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier of the regulatory identifier type and value combination. | ||||||
regulatoryCompanyIdentifierType | String |
Required. The identifier type. |
||||||
regulatoryLocationLicenses | Array | The partner location's license information. | ||||||
lscLicenseIdentifier | String | The license identifier in Track & Trace Services. | ||||||
licenseStateOrRegion | String | The state or region of the licensing agency. | ||||||
licenseIssuingAgency | String | The agency granting the regulatory license. | ||||||
licenseCountry | String | Required. The country of the licensing agency. | ||||||
licenseNumber | String | Required. The regulatory license number for the specified Partner company location. | ||||||
businessMasterDataCommon | TypeDef |
Required. The common business information. |
||||||
businessType | String |
The list of all business types of the company. |
||||||
lscBusinessVersion | String |
Required. The business version identifier in Track & Trace Services. |
||||||
businessName | String |
Required. The company's name. |
||||||
businessEmail | String |
The company's email address. |
||||||
businessPhone | String |
The company's phone number. |
||||||
businessUrl | String |
The URL of the company's website. |
||||||
businessTaxRegistrationCode | String |
The company's tax registration code. |
||||||
businessAddress | TypeDef |
The company's address information. |
||||||
address1 | String |
Required. The street address, including number and street name. |
||||||
address2 | String |
The second line of the street address. Any additional address information, if available. |
||||||
city | String | Required. The city where this Partner company is located. | ||||||
district | String |
The 3-digit numeric code of the district where the company is located in India. |
||||||
village | String |
The village in which the Partner company location is located in. |
||||||
houseNumber | String |
The building, house, or unit number of the company. House numbers are usually only separated from the street address in China. For all addresses outside of China, continue to enter the building, house, or unit number in address1. |
||||||
township | String |
The name of the town in which the company is located. |
||||||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
||||||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
||||||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
||||||
url | String | The URL of the Partner company's website. | ||||||
buildingNumber | String |
The Partner company's building number. |
||||||
plantNumber | String |
The facility's plant number. |
||||||
floorNumber | String |
The facility's floor number. |
||||||
premisesCode | String |
The identifier representing a physical area within the company location (e.g. a location's second floor). |
||||||
fax | String |
The office's fax number. |
||||||
telephone | String |
The office's telephone number. |
||||||
lscAddressidentifier | String |
The global identifier assigned by Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F. |
||||||
regulatoryContact | Object |
The contact information for the regulatory contact at the company. |
||||||
regulatoryContactTitle | String |
The regulatory contact's business title. |
||||||
regulatoryContactName | String |
The regulatory contact's name. |
||||||
regulatoryContactEmail | String |
The regulatory contact's email address. |
||||||
regulatoryContactPhone | Integer |
The regulatory contact's phone number. |
||||||
regulatoryPartnerLocationIdentifiersDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerLocationIdentifiersWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
index-regulatoryPartnerLocationLicensesWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
id | String | Required. The identifier of the master data object. | ||||||
objectType | String | Required. The type of the object. Valid value is masterdata-manager:productMasterData . |
||||||
lastUpdatedDateTime | String |
The identifier of the user that made the last update to the master data record. |
||||||
contextualOwnerId | String | Required. The identifier of the Partner company sending the master data request. | ||||||
lastUpdatedByUserId | DateTime |
The identifier of the user that made the last update to the master data record. |
||||||
ownerId | String |
Required. The identifier of the Partner company that owns the master data record. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
createdByUserId | String |
Required. The ID of the user that created the master data record. |
||||||
creationDateTime | DateTime |
Required. The date and time when the master data record was created. |
||||||
primaryKey | String | Required. The primary key of the object. | ||||||
facets | String |
Required. Enables searches through a particular dataset. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-partnerLocation-by-regulatory-identifier-response-response:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "W1thmm"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:partnerLocationMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:partnerLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dataVersion": 1,
"indexTarget": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dbTxId": 53948
},
"payload": {
"schemaVersion": 1,
"data": {
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "123456"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "Time Magazin",
"businessEmail": "businessEmail",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "city",
"village": "village",
"township": "township",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
"lscAddressIdentifier": "lscAddressIdentifier"
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "regulatoryContactEmail",
"regulatoryContactPhone": "regulatoryContactPhone"
},
},
"regulatoryPartnerIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryPartnerLocationIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:partnerLocationMasterData",
"id": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"lastUpdatedDateTime": 1614028698435,
"contextualOwnerId": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataVersion": 1,
"createdByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"creationDateTime": 1614028698435
},
"primaryKey": "masterdata-manager:partnerLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b"
}
],
"facets": [
]
}
}
Errors
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use
Add or Edit Partner Company Location Master Data
IT system administrators use this API to add the full master data record for a Partner company's location (e.g. name, address). IT system administrators should retrieve the existing partner company
Guidelines
Element | Type | Description | |||
---|---|---|---|---|---|
header | – | Required. The request header. | |||
headerVersion | Integer | Required. The version identifier for the request. Valid value is 1 . |
|||
eventName | String | Required. The fully qualified name of the request event. Valid value is masterdata-manager:add-partnerLocation:v4 . |
|||
ownerId | String | Required. The identifier for the Owner company associated with the request. | |||
appName | String | Required. The application that owns the event. Valid value is masterdata-manager . |
|||
dataspace | String | Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is default . |
|||
payload | – | Required. The request body. | |||
data | Object | Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. | |||
dataStatus | String |
Required. Indicates if the Partner company's location data is active within TraceLink. Valid values:
|
|||
regulatoryLocationIdentifiers | Array | Required. The identifiers for a location. | |||
regulatoryIdentifierValue | String | Required. The location identifier. | |||
isPrimaryRegulatoryIdentifier | Boolean |
Required. Indicates whether the given Partner identifier is the primary identifier. Only one identifier can be set as the primary identifier. TraceLink uses the primary company identifier to identify the correct partner when the user updates the Master Data with an asynchronous message. Valid values:
|
|||
regulatoryLocationIdentifierType | String |
Required. Specifies the Partner company's location identifier type. Valid values
|
|||
regulatoryLocationLicenses | Array | Required. The identifiers for a Partner company's location. | |||
licenseStateOrRegion | String |
The state or region of the licensing agency. |
|||
licenseIssuingAgency | String |
The agency that grants the regulatory license. |
|||
licenseCountry | String |
Required. The country of the licensing agency. |
|||
licenseNumber | String |
Required. The regulator license number for the location. |
|||
businessMasterDataCommon | Array | Required. The Partner's headquarters information. | |||
businessType | Array (String) |
Required. The different types of business the Partner conducts. Valid values:
|
|||
businessName | String | Required. The Partner company location name. | |||
businessEmail | String | The Partner company location's email address. | |||
businessPhone | String |
The telephone number of the Partner location's corporate office. |
|||
businessUrl | String |
The URL of the Partner company location's website. |
|||
businessTaxRegistrationCode | String |
The Partner company location's tax registration code. The code used to identify this entity for tax or other legal reporting purposes. |
|||
businessAddress | String |
The Partner company location's information. |
|||
address1 | String |
Required. The street address, including number and street name. |
|||
address2 | String |
The second line of the street address. Any additional address information, if available. |
|||
city | String |
Required. The city that the Partner company location is located in. |
|||
district | String |
The 3-digit numeric code of the district where the Partner company location is located in India. |
|||
village | String |
The village in which the Partner company location is located in. |
|||
houseNumber | String | The unique number on the street for this Partner company location. | |||
township | String |
The name of the town in which the Partner company is located. |
|||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
|||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
|||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
|||
url | String | The URL of the Partner company location's website. | |||
buildingNumber | String | The Partner company location's building number. | |||
plantNumber | String |
The Partner company location's plant number. |
|||
floorNumber | String | The Partner company location's floor number. | |||
premisesCode | String |
The internal identifier associated with this location (e.g. a location with 4 locations in the city of Mumbai internally refers to the 4th location as MUM4). |
|||
fax | String | The Partner company location's fax number. | |||
telephone | String |
The phone number of the contact person or department at the Partner company location. |
|||
regulatoryContact | Array |
The contact information for the regulatory contact at the Partner company's location. Each field can only appear once per Partner company location. |
|||
regulatoryContactName | String |
The regulatory contact's name in base64 format. |
|||
regulatoryContactTitle | String |
The regulatory contact's business title. |
|||
regulatoryContactEmail | String |
The regulatory contact's email address. |
|||
regulatoryContactPhone | String |
The regulatory contact's phone number. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-partnerLocation:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"data": {
"dataStatus": "ACTIVE",
"regulatoryLocationIdentifiers": [
{
"regulatoryIdentifierValue": "8688884021124",
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"isPrimaryRegulatoryIdentifier": true,
"regulatoryLocationIdentifierType": "GLN"
}
],
"regulatoryLocationLicenses": [
{
"licenseStateOrRegion": "MA",
"licenseIssuingAgency": "licenseIssuingAgency",
"licenseCountry": "US",
"licenseNumber": "100001"
}
],
"businessMasterDataCommon": {
"businessType": ["MANUFACTURER"],
"businessName": "businessName",
"businessEmail": "email.com",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "city",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "email.com",
"regulatoryContactPhone": "regulatoryContactPhone"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "image/png",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
}
}
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response. Valid value is 1 . |
|
eventName | String | Required. The fully qualified name of the response event. Valid value is masterdata-manager:add-partnerLocation-response:v4 . |
|
ownerId | String | Required. The identifier for the Owner company associated with the request. | |
isErr | Boolean |
Required. Indicates whether the request was successful. Valid values:
|
|
errCode | String | Required. The status code of the request. 200_OK indicates that the request was successful. |
|
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
|
licensePlate | String | Required. The unique identifier for the request and response instance. | |
exceptionName | String |
The exception returned for the request, if applicable. Valid values:
|
|
payload | – | Required. The payload containing the response body. If the call is unsuccessful, payload is null . |
|
id | String | Conditionally required if the call is successful. The identifier for the new or edited partner company location. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-partnerLocation-response:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "zi4Dzj-R8do2g"
},
"payload": {
"id": "342f5d98-11dc-11ed-9805-932314baeafa"
}
}
Errors
Element | Error Message | Description |
---|---|---|
|
Invalid value for <field name>. Valid values are: [list of valid values, separated by commas]. |
The error occurs if the value is not in the list of valid values. |
regulatoryLocationIdentifiers | Identifiers must be unique. Identifier <type> value already exists in Company or Partner Master Data. | The error occurs if the regulatoryLocationIdentifiers specifies a primary ID that is in use but is not the primary Partner Id. |
regulatoryLocationIdentifiers | Identifier Type <type> has two values. Only one identifier value for each type can be added for a single Partner location, except for COMPANYSITEID. | The error occurs if the regulatoryLocationIdentifiers specifies a primary ID that does not belong to the Partner. |
isPrimaryRegulatoryIdentifier | No identifiers are currently set as the primary. One identifier must be set as the primary identifier. | The error occurs if no identifiers are set at the primary identifier. |
isPrimaryRegulatoryIdentifier | Multiple identifiers are currently set as the primary. Only one identifier can be set as the primary identifier. |
The error occurs if isPrimaryRegulatoryIdentifier is set to have multiple identifiers as the primary identifier. |
partnerIdentifier | A Partner company with the primary identifier [<type>] <value> does not exist. Make sure the identifier is set as the primary for that Partner company. | The error occurs if partnerIdentifier specifies a primary identifier for a Partner company location that does not exist. |
regulatoryPartnerLicenses |
License is already assigned to another Partner company or location. |
The error occurs if regulatoryPartnerLicenses is set to assign a license to more than one Partner company or location. |
businessEmail | An email address is not in the valid format. |
The error occurs if an invalid email address is entered. |
regulatoryContactEmail | An email address is not in the valid format. | The error occurs if an invalid email address is entered. |
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use
Query Partner Company Location Master Data
Guidelines
Attribute | Type | Description | ||||
---|---|---|---|---|---|---|
header | – |
Required. The request header. |
||||
headerVersion | Integer |
Required. The version identifier for the request. |
||||
eventName | String |
Required. The fully qualified name of the request event. |
||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||
dataspace | String |
Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is |
||||
appName | String |
Required. The application that owns the event. |
||||
payload | – |
Required. The |
||||
predicates | Array |
Required. The contents of the query. |
||||
type | String |
Required. The type of the predicate. Valid value is |
||||
logicalOperator | String |
Required. The logical operator of the predicate. Valid values:
|
||||
clauses | Array |
Required. The attributes and values to include in the response message. |
||||
type | String |
Required. The type of the clause. Valid value is |
||||
comparisonOperator | String |
Required. The operator of the term.
Valid values:
|
||||
schemaId | String |
Required. The schema identifier of the network objects being queried. |
||||
ftsInfo | Object |
Required. The Lucene query info. |
||||
value | String |
Required. Determines the content the query searches for. Replace "[searchString]" with the search value. Valid values:
|
||||
pageIndex | Integer |
Required. The index of the first page of results to display, starting at |
||||
sortField | Object |
Required. The method of sorting the values in the relevant indexes. Valid values:
|
||||
maximumResults | Integer |
Required. The maximum number of results returned in the response. |
||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||
keyFormat | String |
Required. The format of the response to a key-only query. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-partnerLocationMasterData:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"predicates": [
{
"type": "PREDICATE",
"logicalOperator": "TRUE",
"clauses": [{
"type": "TERM",
"comparisonOperator": "LUCENE_FTS",
"schemaId": "masterdata-manager:partnerLocationMasterData",
"ftsInfo": {
"value": "index-regulatoryPartnerLocationIdentifiersWithBusinessNameDerivedField:*123*",
"pageIndex": 0,
"sortField": {
}
}
}]
}
],
"maximumResults": 10000,
"pagingInfo": "",
"keyFormat": "PRIMARY_KEY"
}
}
Guidelines
Attribute | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
header | – |
Required. The response header. |
||||||
headerVersion | Integer |
Required. The version identifier for the response. |
||||||
eventName | String |
Required. The fully qualified name of the response event. |
||||||
ownerId | String |
Required. The identifier for the company providing the app. |
||||||
isErr | String |
Required. Indicates whether the request was successful. Valid values:
|
||||||
errCode | String |
Required. The status code of the request. |
||||||
errMsg | String |
Conditionally required if the call is unsuccessful. The message associated with the error code. |
||||||
licensePlate | String |
Required. The unique identifier for the request and response instance. |
||||||
payload | – |
Required. The |
||||||
pagingInfo | String |
Required. The query paging information representing where the previous query result ended. The pagingInfo from the previous query may be used as the starting point for |
||||||
documents | Array |
Required. Contains the results of the query request. |
||||||
metadata | Object |
Required. The metadata about the object. |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
primaryKey | String |
Required. The primary key of the object. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
indexTarget | String |
Required. The index target identifier of the object. |
||||||
dbTxid | Integer |
Required. The transactional identifier of the object. |
||||||
payload | – |
Required. The master data objects. |
||||||
schemaVersion | Integer |
Required. The JSON schema version number. |
||||||
data | Object |
Required. Contains the attributes for the object. The contents depend on the object schema specified when the event handlers were added. |
||||||
dataStatus | Boolean |
Required. Indicates if the master data for this location is active or inactive. Valid values:
|
||||||
parentLegalEntityCode | String | Required. The legal code of the parent network node. | ||||||
isLegalEntity | Boolean |
Specifies if the company is a legal entity. Valid values:
|
||||||
legalEntityCode | String |
The legal entity code of the network node. |
||||||
companyNetworkNodeId | String |
Required. The network node that the record belongs to. |
||||||
locationNetworkNodeId | String | Required. The location node that owns the record. | ||||||
regulatoryLocationIdentifiers | String |
Required. The list of all identifiers of the company. |
||||||
regulatoryIdentifierValue | String |
Required. The identifier value. |
||||||
lscRegulatoryIdentifier | String | Required. The identifier of the regulatory identifier type and value in Track & Trace Services. | ||||||
isPrimaryRegulatoryIdentifier | String |
Required. Specifies if the given identifier is the primary identifier. |
||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier of the regulatory identifier type and value combination. | ||||||
regulatoryCompanyIdentifierType | String |
Required. The identifier type. |
||||||
regulatoryLocationLicenses | Array | The partner location's license information. | ||||||
lscLicenseIdentifier | String | The license identifier in Track & Trace Services. | ||||||
licenseStateOrRegion | String | The state or region of the licensing agency. | ||||||
licenseIssuingAgency | String | The agency granting the regulatory license. | ||||||
licenseCountry | String | Required. The country of the licensing agency. | ||||||
licenseNumber | String | Required. The regulatory license number for the specified Partner company location. | ||||||
businessMasterDataCommon | TypeDef |
Required. The common business information. |
||||||
businessType | String |
The list of all business types of the company. |
||||||
lscBusinessVersion | String |
Required. The business version identifier in Track & Trace Services. |
||||||
businessName | String |
Required. The company's name. |
||||||
businessEmail | String |
The company's email address. |
||||||
businessPhone | String |
The company's phone number. |
||||||
businessUrl | String |
The URL of the company's website. |
||||||
businessTaxRegistrationCode | String |
The company's tax registration code. |
||||||
businessAddress | TypeDef |
The company's address information. |
||||||
address1 | String |
The street address, including number and street name. |
||||||
address2 | String |
The second line of the street address. Any additional address information, if available. |
||||||
city | String |
The city in which the company is located. |
||||||
district | String |
The 3-digit numeric code of the district where the company is located in India. |
||||||
village | String |
The village in which the Partner company location is located in. |
||||||
houseNumber | String |
The building, house, or unit number of the company. House numbers are usually only separated from the street address in China. For all addresses outside of China, continue to enter the building, house, or unit number in address1. |
||||||
township | String |
The name of the town in which the company is located. |
||||||
stateOrRegion | String |
Required. The state, province, or region using the standard two– or three–letter abbreviation specified in the ISO 3166–2:1998 country subdivision code. |
||||||
postalCode | String |
Conditionally required if the country has a ZIP or other postal code. If the country does have a postal code and it is omitted, an error is generated. See Valid values for exclusions. Valid values
|
||||||
country | String |
Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. Valid values
|
||||||
url | String | The URL of the Partner company location's website. | ||||||
buildingNumber | String |
The Partner company's building number. |
||||||
plantNumber | String |
The facility's plant number. |
||||||
floorNumber | String |
The facility's floor number. |
||||||
premisesCode | String |
The identifier representing a physical area within the company location (e.g. a location's second floor). |
||||||
fax | String |
The office's fax number. |
||||||
telephone | String |
The office's telephone number. |
||||||
lscAddressidentifier | String |
The global identifier assigned by Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F. |
||||||
regulatoryContact | Object |
The contact information for the regulatory contact at the company. |
||||||
regulatoryContactTitle | String |
The regulatory contact's business title. |
||||||
regulatoryContactName | String |
The regulatory contact's name. |
||||||
regulatoryContactEmail | String |
The regulatory contact's email address. |
||||||
regulatoryContactPhone | Integer |
The regulatory contact's phone number. |
||||||
regulatoryPartnerLocationIdentifiersDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
regulatoryPartnerLocationIdentifiersWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
index-regulatoryPartnerLocationLicensesWithBusinessNameDerivedField | String |
The result of the query when ftsInfo | value equals |
||||||
schemaId | String |
Required. The JSON schema that defines the object. |
||||||
id | String | Required. The identifier of the master data object. | ||||||
objectType | String | Required. The type of the object. Valid value is masterdata-manager:productMasterData . |
||||||
lastUpdatedDateTime | String |
The identifier of the user that made the last update to the master data record. |
||||||
contextualOwnerId | String | Required. The identifier of the Partner company sending the master data request. | ||||||
lastUpdatedByUserId | DateTime |
The identifier of the user that made the last update to the master data record. |
||||||
ownerId | String |
Required. The identifier of the Partner company that owns the master data record. |
||||||
dataVersion | Integer |
Required. The current version number of the object. |
||||||
createdByUserId | String |
Required. The ID of the user that created the master data record. |
||||||
creationDateTime | DateTime |
Required. The date and time when the master data record was created. |
||||||
primaryKey | String | Required. The primary key of the object. | ||||||
facets | String |
Required. Enables searches through a particular dataset. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-partnerLocationMasterData-response:v1",
"ownerId": "00000000-0000-0000-0000-000000000000",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "fjjnne"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:partnerLocationMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:partnerLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dataVersion": 1,
"indexTarget": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dbTxId": 53948
},
"payload": {
"schemaVersion": 1,
"data": {
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "123456"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "Time Magazin",
"businessEmail": "businessEmail",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"city": "city",
"district": "district",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "regulatoryContactEmail",
"regulatoryContactPhone": "regulatoryContactPhone"
},
},
"regulatoryPartnerIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryPartnerLocationIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:partnerLocationMasterData",
"id": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"objectType": "masterdata-manager:partnerLocationMasterData",
"lastUpdatedDateTime": 1614028698435,
"contextualOwnerId": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"ownerId": "00000000-0000-0000-0000-000000000000",
"dataVersion": 1,
"createdByUserId": "f9f35dd0-035d-11eb-8ec8-0242ac11000c",
"creationDateTime": 1614028698435
},
"primaryKey": "masterdata-manager:partnerLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b"
}
],
"facets": [
]
}
}
Errors
This app uses standard HTTP response codes. If an error occurs, additional available information regarding the cause of the error is provided in the errMsg element in the relevant response.
Review TraceLink's API: Terms of Use