Table of contents
The full master data records for a company and its internal locations include the company'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 their company and 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 their company and internal locations.
Get your Company Master Data
IT system administrators and app developers use this API to retrieve the full master data record for a company (e.g. name, address) based on the company's regulatory identifier information.
Guidelines
Attribute | Type | Description | |
---|---|---|---|
header | – | Required. The request header. | |
headerVersion | Integer | Required. The version identifier for the request. Valid value is | |
eventName | String | Required. The fully qualified name of the request event. Valid value is | |
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. Valid value is | |
payload | – | Required. The request body. | |
regulatoryCompanyIdentifier | String | The value of the regulatory identifier. | |
regulatoryCompanyIdentifierType | String | The type of the regulatory identifier. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-company-by-regulatory-identifier:v1",
"ownerId": "0510ad55-2abb-4316-bf60-e8578251c8fe",
"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. Valid value is | ||||||
eventName | String | Required. The fully qualified name of the response event. Valid value is | ||||||
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. | ||||||
exceptionName | String | The exception name. Valid values:
| ||||||
payload | – | Required. The response body. | ||||||
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 a new query. | ||||||
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. | ||||||
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. | ||||||
regulatoryCompanyIdentifiers | String | Required. The list of all identifiers of the company. | ||||||
regulatoryCompanyIdentifierTypeId | 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. | ||||||
buildingNumber | String | The company's building number. | ||||||
plantNumber | String | The facility's plant number. | ||||||
floorNumber | String | The facility's floor number. | ||||||
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. | ||||||
city | String | The city in which the company is located. | ||||||
village | String | The village in which the company is located. | ||||||
township | String | The name of the town in which the company is located. | ||||||
district | String | The 3-digit numeric code of the district where the company is located in India. | ||||||
state | String | The state in which the company is located. | ||||||
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
| ||||||
telephone | String | The office's telephone number. | ||||||
fax | String | The office's fax number. | ||||||
premisesCode | String | The identifier representing a physical area within the company location (e.g. a location's second floor). | ||||||
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. | ||||||
regulatoryCompanyIdentifiersDerivedField | String | The result of the query when ftsInfo | value equals This includes the following fields:
| ||||||
regulatoryCompanyIdentifiersWithBusinessNameDerivedField | String | The result of the query when ftsInfo | value equals This includes the following fields:
| ||||||
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-company-by-regulatory-identifier-response:v1",
"ownerId": "0510ad55-2abb-4316-bf60-e8578251c8fe",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "htdsgG"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:companyMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:companyMasterData#f8af495f-de32-4448-a197-2904dfb7dcd1",
"dataVersion": 1,
"indexTarget": "f8af495f-de32-4448-a197-2904dfb7dcd1",
"dbTxId": 93446
},
"payload": {
"schemaVersion": 1,
"data": {
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "13487f42-8b26-49e6-8268-ef899de71532",
"regulatoryCompanyIdentifierType": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "13487f42-8b26-49e6-8268-ef899de71533",
"regulatoryCompanyIdentifierType": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"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"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "imageMimeType",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
},
"regulatoryCompanyIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryCompanyIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:companyMasterData",
"id": "f8af495f-de32-4448-a197-2904dfb7dcd1",
"objectType": "masterdata-manager:companyMasterData",
"lastUpdatedDateTime": 1615473059186,
"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": 1615473059186
},
"primaryKey": "masterdata-manager:companyMasterData#f8af495f-de32-4448-a197-2904dfb7dcd1"
}
],
"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
Edit your Company Master Data
IT system administrators use this API to edit the full master data record for a company (e.g. name, address). IT system administrators should retrieve the existing 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-company: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. | |||
regulatoryCompanyIdentifiers | Array | Required. The identifiers for a company. | |||
regulatoryIdentifierValue | String | Required. The value of the company identifier. | |||
isPrimaryRegulatoryIdentifier | Boolean | Required. Indicates whether the given company 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 type of company identifier. Valid values
| |||
businessMasterDataCommon | Object | Required. The company's headquarters information. | |||
businessType | Array (String) | Required. The different types of business the company conducts. Valid values:
| |||
businessName | String | Required. The company's name. | |||
businessEmail | String | The company's email address. | |||
businessPhone | String | The company's telephone number. | |||
businessURL | String | The company's URL. | |||
businessTaxRegistrationCode | String | The company's tax registration code. The code used to identify this entity for tax or other legal reporting purposes. | |||
businessAddress | Object | 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. | |||
buildingNumber | String | The company's building number. | |||
plantNumber | String | The company's plant number. | |||
floorNumber | String | The company's floor number. | |||
houseNumber | String | The unique number on the street for this company. | |||
city | String | Required. The city where the company is located. | |||
village | String | The village in which the company is located. | |||
township | String | The name of the town in which the company is located. | |||
district | String | The 3-digit numeric code of the district where the company is located in India. | |||
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. | |||
country | String | Required. The country using the standard two–letter abbreviation specified in ISO 3166–1alpha-2:1997 country code. | |||
telephone | String | The phone number of the contact person or department at the company. | |||
fax | String | The company's fax number. | |||
url | String | The URL of the company's website. | |||
premisesCode | String | The internal identifier associated with this company (e.g. a company with 4 locations in the city of Mumbai internally refers to the 4th location as MUM4). | |||
regulatoryContact | Array | The contact information for the regulatory contact at the company. Each field can only appear once per 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. | |||
businessLogo | Object | The image file displaying the company logo. | |||
imagebase64 | String | The readable string of the company's image in base64 format. | |||
imageMimeType | String | Required. The file type of the image. Valid values:
| |||
imagefileName | String | The file name of the image. If the file name is not provided, value defaults to companyImage.[file type] . |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-company:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"id": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"data": {
"businessMasterDataCommon": {
"businessEmail": "jbean@trace.com",
"regulatoryContact": {
"regulatoryContactPhone": "+1-706-8752559",
"regulatoryContactEmail": "mary_garcia@yahoo.com",
"regulatoryContactTitle": "Job Title",
"regulatoryContactName": "Mary Garcia"
},
"businessLogo": {
"imagefileName": "",
"imageMimeType": "image/png",
"imagebase64": "base64data"
},
"businessName": "ZZAuto2022061015511055416",
"businessUrl": "url",
"businessPhone": "978-222-1112",
"businessAddress": {
"address1": "202 Main Street",
"address2": "RiverPark Drive",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"houseNumber": "houseNumber",
"city": "North Reading",
"village": "village",
"township": "township"
"district": "district",
"state": "MA",
"postalCode": "01940",
"country": "US",
"fax": "978-224-3421",
"premisesCode": "premisesCode",
},
"businessType": [
"MANUFACTURER"
],
"businessTaxRegistrationCode": "gbnffke"
},
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierType": "GLN",
"lscRegulatoryIdentifier": "0c8a2a7d-aa3e-4afa-be7b-6d712f6d4919",
"regulatoryIdentifierValue": "3216805777987",
"isPrimaryRegulatoryIdentifier": true,
"normalizedRegulatoryIdentifierValue": "GLN|3216805777987"
},
{
"regulatoryCompanyIdentifierType": "SGLN",
"lscRegulatoryIdentifier": "f6cbef86-7941-486f-a1bb-bd45b35ca5ac",
"regulatoryIdentifierValue": "32168057.7798.0",
"isPrimaryRegulatoryIdentifier": false,
"normalizedRegulatoryIdentifierValue": "SGLN|3216805777980"
},
{
"regulatoryCompanyIdentifierType": "DUNS",
"lscRegulatoryIdentifier": "4c2b6322-7402-4b75-9123-3cd83641d9ae",
"regulatoryIdentifierValue": "216287609",
"isPrimaryRegulatoryIdentifier": false,
"normalizedRegulatoryIdentifierValue": "DUNS|216287609"
},
{
"regulatoryCompanyIdentifierType": "AR_CUIT",
"lscRegulatoryIdentifier": "5bcea934-5036-48cc-9055-303540482542",
"regulatoryIdentifierValue": "30-48336180-0",
"isPrimaryRegulatoryIdentifier": false,
"normalizedRegulatoryIdentifierValue": "AR_CUIT|30483361800"
}
]
}
}
}
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-company-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 updated company. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-company-response:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "szZIA8-5LSqhV"
},
"payload": {
"id": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07"
}
}
Errors
Changed regulatoryPartnerIdentifiers to regulatoryCompanyIdentifiers in the element column in rows 2,3,4 and 5. Verify in the spec but Saurabh confirmed that this is probably a typo.
Element | Error Message | Description |
---|---|---|
| Invalid value for | The error occurs if the value is not in the list of valid values. |
regulatoryCompanyIdentifiers | Your company does not have the Identifier [ | The error occurs if the regulatoryPartnerIdentifiers specifies a primary ID that is in use but is not the primary company Id. |
regulatoryCompanyIdentifiers | Identifier [ | The error occurs if the regulatoryPartnerIdentifiers specifies a primary ID that does not belong to the company. |
regulatoryCompanyIdentifiers | Identifiers must be unique. Identifier [ | The error occurs if the non-primary Identifier [ |
regulatoryCompanyIdentifiers | Identifier Type | The error occurs if regulatoryPartnerIdentifiers is set to to use an Identifier Type |
isPrimaryRegulatoryIdentifier | Multiple identifiers are currently set as the primary. Only one identifier can be set as the primary identifier. | The error occurs if isPrimaryRegulatoryIdentifier to set multiple identifiers as the primary identifier. |
removeIdentifier | Identifier [ | The error occurs if removeIdentifier is set to remove the primary identifier before setting another identifier as the primary. |
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 your Company Master Data
IT system administrators and app developers use this API to retrieve the full master data record for a company (e.g. contact information, identifiers).
Guidelines
Attribute | Type | Description | ||||
---|---|---|---|---|---|---|
header | – | Required. The request header. | ||||
headerVersion | Integer | Required. The version identifier for the request. Valid value is | ||||
eventName | String | Required. The fully qualified name of the request event. Valid value is | ||||
ownerId | String | Required. The identifier for the company providing the app. | ||||
appName | String | Required. The application that owns the event. Valid value is | ||||
dataspace | String | Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is | ||||
payload | – | Required. The request body. | ||||
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 the current query. | ||||
keyFormat | String | Required. The format of the response to a key-only query. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-companyMasterData:v1",
"ownerId": "0510ad55-2abb-4316-bf60-e8578251c8fe",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"predicates": [
{
"type": "PREDICATE",
"logicalOperator": "TRUE",
"clauses": [{
"type": "TERM",
"comparisonOperator": "LUCENE_FTS",
"schemaId": "masterdata-manager:companyMasterData",
"ftsInfo": {
"value": "index-regulatoryCompanyIdentifiersWithBusinessNameDerivedField:*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. Valid value is | ||||||
eventName | String | Required. The fully qualified name of the response event. Valid value is | ||||||
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. | ||||||
exceptionName | String | The exception name. Valid values:
| ||||||
payload | – | Required. The response body. | ||||||
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 a new query. | ||||||
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. | ||||||
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. | ||||||
regulatoryCompanyIdentifiers | String | Required. The list of all identifiers of the company. | ||||||
regulatoryCompanyIdentifierTypeId | 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 | The street address, including number and street name. | ||||||
address2 | String | The second line of the street address. Any additional address information, if available. | ||||||
buildingNumber | String | The company's building number. | ||||||
plantNumber | String | The facility's plant number. | ||||||
floorNumber | String | The facility's floor number. | ||||||
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. | ||||||
city | String | The city in which the company is located. | ||||||
village | String | The village in which the company is located. | ||||||
township | String | The name of the town in which the company is located. | ||||||
district | String | The 3-digit numeric code of the district where the company is located in India. | ||||||
state | String | The state in which the company is located. | ||||||
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
| ||||||
telephone | String | The office's telephone number. | ||||||
fax | String | The office's fax number. | ||||||
premisesCode | String | The identifier representing a physical area within the company location (e.g. a location's second floor). | ||||||
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. | ||||||
regulatoryCompanyIdentifiersDerivedField | String | The result of the query when ftsInfo | value equals This includes the following fields:
| ||||||
regulatoryCompanyIdentifiersWithBusinessNameDerivedField | String | The result of the query when ftsInfo | value equals This includes the following fields:
| ||||||
schemaId | String | Required. The JSON schema that defines the object. | ||||||
id | String | Required. The identifier of the master data object for one record. | ||||||
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:query-companyMasterData-response:v1",
"ownerId": "0510ad55-2abb-4316-bf60-e8578251c8fe",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "htdsgG"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:companyMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:companyMasterData#f8af495f-de32-4448-a197-2904dfb7dcd1",
"dataVersion": 1,
"indexTarget": "f8af495f-de32-4448-a197-2904dfb7dcd1",
"dbTxId": 93446
},
"payload": {
"schemaVersion": 1,
"data": {
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "13487f42-8b26-49e6-8268-ef899de71532",
"regulatoryCompanyIdentifierType": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "13487f42-8b26-49e6-8268-ef899de71533",
"regulatoryCompanyIdentifierType": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"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"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "imageMimeType",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
},
"regulatoryCompanyIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryCompanyIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:companyMasterData",
"id": "f8af495f-de32-4448-a197-2904dfb7dcd1",
"objectType": "masterdata-manager:companyMasterData",
"lastUpdatedDateTime": 1615473059186,
"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": 1615473059186
},
"primaryKey": "masterdata-manager:companyMasterData#f8af495f-de32-4448-a197-2904dfb7dcd1"
}
],
"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 your Company Location Master Data
IT system administrators and app developers use this API to retrieve the full master data record for a company's location (e.g. name, address) based on the partner location's regulatory identifier information.
Guidelines
Attribute | Type | Description | |
---|---|---|---|
header | – | Required. The request header. | |
headerVersion | Integer | Required. The version identifier for the request. Valid value is | |
eventName | String | Required. The fully qualified name of the request event. Valid value is | |
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 default . | |
appName | String | Required. The application that owns the event. Valid value is | |
payload | – | Required. The request body. | |
regulatoryCompanyIdentifier | String | The value of the regulatory identifier. | |
regulatoryCompanyIdentifierType | String | The type of the regulatory identifier. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:get-companyLocation-by-regulatory-identifier:v1",
"ownerId": "0510ad55-2abb-4316-bf60-e8578251c8fe",
"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. Valid value is | ||||||
eventName | String | Required. The fully qualified name of the response event. Valid value is | ||||||
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. | ||||||
exceptionName | String | The exception name. Valid values:
| ||||||
payload | – | Required. The response body. | ||||||
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 a new query. | ||||||
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:
| ||||||
providerNetworkNodeIdentifier | String | Required. The network node of the originating company for the master data record. | ||||||
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. | ||||||
regulatoryCompanyIdentifiers | String | Required. The list of all identifiers of the company. | ||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier type. | ||||||
isPrimaryRegulatoryIdentifier | String | Required. Specifies if the given identifier is the primary identifier. | ||||||
regulatoryIdentifierValue | String | Required. The identifier value. | ||||||
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. | ||||||
buildingNumber | Integer | The company's building number. | ||||||
plantNumber | Integer | The facility's plant number. | ||||||
floorNumber | Integer | The facility's floor number. | ||||||
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. | ||||||
city | String | The city in which the company is located. | ||||||
village | String | The village in which the company is located in. | ||||||
township | String | The name of the town in which the company is located. | ||||||
district | String | The 3-digit numeric code of the district where the company is located in India. | ||||||
state | String | The state in which the company is located. | ||||||
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
| ||||||
telephone | Integer | The office's telephone number. | ||||||
fax | Integer | The office's fax number. | ||||||
premisesCode | String | The identifier representing a physical area within the company location (e.g. a location's second floor). | ||||||
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. | ||||||
regulatoryLocationIdentifiersDerivedField | String | The result of the query when ftsInfo | value equals | ||||||
regulatoryLocationIdentifiersWithBusinessNameDerivedField | String | The result of the query when ftsInfo | value equals | ||||||
index-regulatoryLocationLicensesWithBusinessNameDerivedField | 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-companyLocation-by-regulatory-identifier-response:v1",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "fjjnne"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:companyLocationMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:companyLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dataVersion": 1,
"indexTarget": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dbTxId": 53948
},
"payload": {
"schemaVersion": 1,
"data": {
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"parentLegalEntityCode": "parentLegalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "123456"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "Time Magazine",
"businessEmail": "businessEmail",
"businessPhone": "businessPhone",
"businessUrl": "businessUrl",
"businessTaxRegistrationCode": "businessTaxRegistrationCode",
"businessAddress": {
"address1": "address1",
"address2": "address2",
"city": "city",
"state": "state",
"postalCode": "postalCode",
"country": "US",
"telephone": "telephone",
"fax": "fax",
"url": "url",
"district": "district",
"buildingNumber": "buildingNumber",
"plantNumber": "plantNumber",
"floorNumber": "floorNumber",
"lscAddressIdentifier": "lscAddressIdentifier"
},
"regulatoryContact": {
"regulatoryContactTitle": "regulatoryContactTitle",
"regulatoryContactName": "regulatoryContactName",
"regulatoryContactEmail": "regulatoryContactEmail",
"regulatoryContactPhone": "regulatoryContactPhone"
},
"businessLogo": {
"imageIdentifier": "imageIdentifier",
"imageMimeType": "imageMimeType",
"imagefileName": "imagefileName",
"imagebase64": "imagebase64"
}
},
"regulatoryLocationIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryLocationIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:companyLocationMasterData",
"id": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"objectType": "masterdata-manager:companyLocationMasterData",
"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:companyLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b"
}
],
"facets": [
]
}
}
Review TraceLink's API: Terms of Use
Add or Edit your Company Location Master Data
IT system administrators use this API to add or edit the full master data record for a company's location (e.g. name, address). IT system administrators should retrieve the existing company location 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-companyLocation: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 | Indicates if the company location data is active within TraceLink. Valid values:
| |||
regulatoryLocationIdentifiers | Array | Required. The identifiers for a company's location. | |||
regulatoryIdentifierValue | String | Required. The identifier value. | |||
isPrimaryRegulatoryIdentifier | Boolean | Required. Indicates whether the given company's location identifier is the primary identifier. One only identifier can be set as the primary identifier. Not all identifiers can be set as the primary. 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. The type of the regulatory company's location identifier. Valid values
| |||
regulatoryLocationLicenses | Array | The regulator license for a 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 | Object | Required. The company location's headquarters information. | |||
businessType | Array (String) | Required. The different types of business the company conducts. Valid values:
| |||
businessName | String | Required. The company location name. | |||
businessEmail | String | The company location's email address. | |||
businessPhone | String | The telephone number of the company location's corporate office. | |||
businessURL | String | The URL of the company location's website. | |||
businessTaxRegistrationCode | String | The company location's tax registration code. The code used to identify this entity for tax or other legal reporting purposes. | |||
businessAddress | Object | The company location 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. | |||
buildingNumber | String | The company's building number. | |||
plantNumber | String | The company location's plant number. | |||
floorNumber | String | The company location's floor number. | |||
houseNumber | String | The unique number on the street for this company. | |||
city | String | Required. The city that the company location is located in. | |||
village | String | The village in which the company location is located in. | |||
township | String | The name of the town in which the company is located. | |||
district | String | The 3-digit numeric code of the district where the company is located in India. | |||
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. | |||
telephone | String | The phone number of the contact person or department at the location. | |||
fax | String | The company's fax number. | |||
url | String | The URL of the company's website. | |||
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). | |||
regulatoryContact | Array | The contact information for the regulatory contact at the company's location. Each field can only appear once per 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. | |||
businessLogo | Object | The image file displaying the company location logo. | |||
imagebase64 | String | The readable string of the company locations's image in base64 format. | |||
imageMimeType | String | Required. The file type of the image. Valid values:
| |||
imagefileName | String | The file name of the image. If the file name is not provided, value defaults to companyImage.[file type] . |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-companyLocation:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"data": {
"dataStatus": "ACTIVE",
"companyIdentifier": "companyIdentifier",
"companyNetworkNodeId": "companyNetworkNodeId",
"locationNetworkNodeId": "locationNetworkNodeId",
"regulatoryLocationIdentifiers": [
{
"regulatoryIdentifierValue": "8888882021124",
"lscRegulatoryIdentifier": "lscRegulatoryIdentifier",
"isPrimaryRegulatoryIdentifier": true,
"regulatoryLocationIdentifierType": "GLN"
}
],
"regulatoryLocationLicenses": [
{
"lscLicenseIdentifier": "lscLicenseIdentifier",
"licenseStateOrRegion": "MA",
"licenseIssuingAgency": "licenseIssuingAgency",
"licenseCountry": "US",
"licenseNumber": "100001"
}
],
"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"
},
"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-companyLocation-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 company location. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:add-companyLocation-response:v4",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "8zsf2G-lbcUxW"
},
"payload": {
"id": "4f1cc1cd-fcfe-11ec-980a-1d5ac0247b8d"
}
}
Errors
Element | Error Message | Description |
---|---|---|
| Invalid value for | The error occurs if the value is not in the list of valid values. |
regulatoryLocationIdentifiers | Identifiers must be unique. Identifier [ | The error occurs if the regulatoryLocationIdentifiers specifies a primary ID that is in use but is not the primary company Id. |
regulatoryLocationIdentifiers | Identifier Type | The error occurs if the regulatoryLocationIdentifiers 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. |
removeIdentifier | Identifier [ | The error occurs if removeIdentifier is set to remove the primary identifier before setting another identifier as the primary. |
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. |
businessAddress | The business address is missing a required field: | The error occurs if mandatory fields are missing in the businessAddress. |
postalCode | Postal code is required for | The error occurs if the postal code is missing for a country that requires the postal code. |
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 your Company Location Master Data
IT system administrators and app developers use this API to query a company's location information (e.g. contact information, identifiers).
Guidelines
Attribute | Type | Description | ||||
---|---|---|---|---|---|---|
header | – | Required. The request header. | ||||
headerVersion | Integer | Required. The version identifier for the request. Valid value is | ||||
eventName | String | Required. The fully qualified name of the request event. Valid value is | ||||
ownerId | String | Required. The identifier for the company providing the app. | ||||
appName | String | Required. The application that owns the event. Valid value is | ||||
dataspace | String | Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is | ||||
payload | – | Required. The request body. | ||||
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 the current query. | ||||
keyFormat | String | Required. The format of the response to a key-only query. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:query-companyLocationMasterData:v1",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"predicates": [
{
"type": "PREDICATE",
"logicalOperator": "TRUE",
"clauses": [{
"type": "TERM",
"comparisonOperator": "LUCENE_FTS",
"schemaId": "masterdata-manager:companyLocationMasterData",
"ftsInfo": {
"value": "index-regulatoryLocationIdentifiersWithBusinessNameDerivedField:*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. Valid value is | ||||||
eventName | String | Required. The fully qualified name of the response event. Valid value is | ||||||
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. | ||||||
exceptionName | String | The exception name. Valid values:
| ||||||
payload | – | Required. The response body. | ||||||
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 a new query. | ||||||
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:
| ||||||
providerNetworkNodeIdentifier | String | Required. The network node of the originating company for the master data record. | ||||||
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. | ||||||
regulatoryCompanyIdentifiers | String | Required. The list of all identifiers of the company. | ||||||
regulatoryCompanyIdentifierTypeId | String | Required. The identifier type. | ||||||
isPrimaryRegulatoryIdentifier | String | Required. Specifies if the given identifier is the primary identifier. | ||||||
regulatoryIdentifierValue | String | Required. The identifier value. | ||||||
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. | ||||||
buildingNumber | Integer | The company's building number. | ||||||
plantNumber | Integer | The facility's plant number. | ||||||
floorNumber | Integer | The facility's floor number. | ||||||
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. | ||||||
city | String | The city in which the company is located. | ||||||
village | String | The village in which the company location is located in. | ||||||
township | String | The name of the town in which the company is located. | ||||||
district | String | The 3-digit numeric code of the district where the company is located in India. | ||||||
state | String | The state in which the company is located. | ||||||
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
| ||||||
telephone | Integer | The office's telephone number. | ||||||
fax | Integer | The office's fax number. | ||||||
premisesCode | String | The identifier representing a physical area within the company location (e.g. a location's second floor). | ||||||
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. | ||||||
regulatoryLocationIdentifiersDerivedField | String | The result of the query when ftsInfo | value equals | ||||||
regulatoryLocationIdentifiersWithBusinessNameDerivedField | String | The result of the query when ftsInfo | value equals | ||||||
index-regulatoryLocationLicensesWithBusinessNameDerivedField | 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:query-companyLocationMasterData-response:v1",
"ownerId": "bb40845c-8912-4b98-9c9a-f08bd5a9bd07",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "fjjnne"
},
"payload": {
"pagingInfo": null,
"documents": [
{
"metadata": {
"schemaId": "masterdata-manager:companyLocationMasterData",
"schemaVersion": 1,
"primaryKey": "masterdata-manager:companyLocationMasterData#0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dataVersion": 1,
"indexTarget": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"dbTxId": 53948
},
"payload": {
"schemaVersion": 1,
"data": {
"lscS3Identifier": "lscS3Identifier",
"isLegalEntity": true,
"providerNetworkNodeIdentifier": "providerNetworkNodeIdentifier",
"legalEntityCode": "legalEntityCode",
"parentLegalEntityCode": "parentLegalEntityCode",
"companyNetworkNodeId": "companyNetworkNodeId",
"regulatoryCompanyIdentifiers": [
{
"regulatoryCompanyIdentifierTypeId": "SGLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "OneOne1"
},
{
"regulatoryCompanyIdentifierTypeId": "GLN",
"isPrimaryRegulatoryIdentifier": false,
"regulatoryIdentifierValue": "123456"
}
],
"businessMasterDataCommon": {
"businessType": [
"MANUFACTURER"
],
"lscBusinessVersion": "lscBusinessVersion",
"businessName": "Time Magazine",
"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"
}
},
"regulatoryLocationIdentifiersDerivedField": "SGLN OneOne1,GLN 123456",
"regulatoryLocationIdentifiersWithBusinessNameDerivedField": "Time Magazin SGLN OneOne1,Time Magazin GLN 123456"
},
"schemaId": "masterdata-manager:companyLocationMasterData",
"id": "0d1d7aa7-32c5-47f0-84b8-fdfa9219e67b",
"objectType": "masterdata-manager:companyLocationMasterData",
"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:companyLocationMasterData#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
Enable Company Location Linking
IT system administrators use these APIs to enable company location linking. Locations must already exist as members of the TraceLink Network, and the identifiers added using the must match an identifier that Tracelink verified for the company. If linking is enabled, individuals with certain roles can link to specific locations. If linking is not allowed, then all individuals with the proper roles and permissions can access all of the company's location master data.
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 | |||
ownerId | String | Required. The identifier for the Owner company associated with the request. | |||
dataspace | String | Required. The dataspace within the environment where the request is being made. Valid value for the Production and Validation environments is default . | |||
appName | String | Required. The application that owns the event. Valid value is | |||
payload | – | Required. The request body. | |||
companyLocationId | String | Required. The GUID identifying the company location record against which the network node is being created. Use the Query your Company Location Master Data API to find the |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:enable-company-location-linking:v1",
"ownerId": "5af8699f-9e71-474b-a5eb-113cad41d518",
"dataspace": "default",
"appName": "masterdata-manager"
},
"payload": {
"companyLocationId": "e5f57895-0daf-4ef6-8a26-297f2dea637a"
}
}
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:enable-company-location-linking-response:v1 . | |
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. | |
companyLocationId | String | Required. The GUID of the company location record. | |
companyLocationNeworkNodeId | String | Required. The GUID of the network node ID. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "masterdata-manager:enable-company-location-linking-response:v1",
"ownerId": "5af8699f-9e71-474b-a5eb-113cad41d518",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "nwE2h3-nzd9Zl"
},
"payload": {
"companyLocationId": "e5f57895-0daf-4ef6-8a26-297f2dea637a",
"companyLocationNetworkNodeId": "639634cd-9e85-4066-a0c5-6dffad406cc8"
}
}
Errors
Element | Error Message | Description |
---|---|---|
companyLocationId | Invalid company location ID [companyLocationId] does not match an existing company location. | The error occurs if the companyLocationId does not match an existing company location on the TraceLink Network. Use the Query your Company Location Master Data API to find the |
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