This Help Center is a preview of a future release.
Compliance exception incident APIs
Companies that own or link to Agile Process Teams use these APIs to add, update, and resolve supply chain compliance exception incidents on the Owner's network. For example, a Dispenser in the US might receive a shipment of product with the tamper-proof foil seals broken and need to communicate to their supply chain partners that the product may be illegitimate. Partners must be a member of the Owner company's network to collaborate with the Owner on a compliance exception incident.
Add Compliance Exception
Owners and Partners use this API to add a new compliance exception incident to the Owner company's network, including any initial comments or file attachments. The response returns a generated identifier for the new incident. Notification timers are created based on the entered due dates for alerts.
New incidents are assigned the ToDo
base state by default.
Guidelines
Element | Type | Description | ||||
---|---|---|---|---|---|---|
header | – | Required. The request header. | ||||
headerVersion | Integer | Required. The version identifier for the request.1 . |
||||
eventName | String | Required. The fully qualified name of the request event.agile-process-teams:add-compliance-exception:v3 . |
||||
ownerId | String |
Required. The identifier for the company associated with the request. |
||||
appName | String | Required. The application that owns the event.agile-process-teams . |
||||
processNetworkId | String |
|
||||
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 | – |
|
||||
aptBusinessObjectSummary |
String |
|
||||
aptBusinessObjectDescription | String | A detailed description of the incident. Provides additional context for the incident. Cannot exceed 5000 characters. | ||||
businessPriority | Enum |
|
||||
resolutionDueDate | Number |
The date and time that the incident must be resolved. Enter the date in either of the following formats:
|
||||
currentlyAssignedUsersReporterCompany | Array |
List of email addresses for the one or more users at the company reporting the incident. If omitted, defaults to |
||||
responsibleUserReporterCompany | String |
The email address of the user from the company that reported the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
reporterCompany | String |
The company, company location, Partner company, or Partner company location that owns that reported the incident. If omitted, defaults to |
||||
masterDataEntityIdentifier | String |
The identifier type and value pairing for the company, company location, Partner company, or Partner company location that reported the incident. |
||||
masterDataEntityIdentifierType | String |
The type of identifier associated with the reporter company (e.g. GLN). |
||||
masterDataEntityIdentifierValue | String |
The value of the identifier entered for masterDataEntityIdentifierType. |
||||
incidentCategory | String |
The main problem that caused the incident. Valid values
|
||||
otherIncidentCategory | String |
If the incidentCategory is
To prevent corrupted data, the otherIncidentCategory should only be included in the request if the incidentCategory is
OTHER . |
||||
incidentSubcategory | String |
The subcategory of the selected incident category associated with the incident. Valid values depend on the incidentCategory selected, as follows: If the incidentCategory is
DATA_ISSUES :
If the incidentCategory is
DAMAGED_PRODUCT :
If the incidentCategory is
PRODUCT_BUT_NO_DATA :
If the incidentCategory is
DATA_BUT_NO_PRODUCT :
If the incidentCategory is
PACKAGING :
If the incidentCategory is
PRODUCT_HOLD :
If the incidentCategory is
SUSPECT_PRODUCT :
If the incidentCategory is
OTHER :
|
||||
otherIncidentSubcategory | String |
If the incidentSubcategory is
To prevent corrupted data, the otherIncidentSubcategory should only be included in the request if the incidentSubcategory is
OTHER . |
||||
accountableEntity | Array |
The identifier for the company, company location, Partner company, or Partner company location that owns the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
masterDataEntityIdentifier | String |
The identifier type and value pairing for the company, company location, Partner company, or Partner company location that owns the incident and is responsible for the incident's resolution. |
||||
masterDataEntityIdentifierType | String |
The type of identifier associated with the accountable entity (e.g. GLN). |
||||
masterDataEntityIdentifierValue | String |
The value of the identifier entered for masterDataEntityIdentifierType. |
||||
responsibleUserAccountableEntity | String |
The email address of the user from the company that is accountable for the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
currentlyAssignedUsersAccountableEntity | Array |
List of email addresses for the one or more users at the company that is accountable for the incident and is responsible for taking action to resolve the incident. If omitted, defaults to |
||||
responsibleDepartmentAtCompany | String |
The business area of the company that is responsible for the incident's resolution. If omitted, defaults to the job function of the responsible party, if defined for the user; otherwise is Valid values
|
||||
associatedEntities | Object |
List of identifiers for the supply chain entities associated with the incident throughout the supply chain. |
||||
shippedFromBusiness | Object |
The location that the product associated with the incident was initially shipped from. |
||||
entityIdentifierValue | String |
The value of the identifier for the location that the product associated with the incident was initially shipped from. |
||||
entityIdentifierType | String |
The identifier type for the location that the product associated with the incident was initially shipped from. |
||||
fromBusiness | Object | The company that the product associated with the incident was ordered from. | ||||
entityIdentifierValue | String |
The value of the identifier for the company that the product associated with the incident was ordered from. |
||||
entityIdentifierType | String |
The identifier type for the company that the product associated with the incident was ordered from. |
||||
shippedToBusiness | Object | The location that the product associated with the incident was shipped to. | ||||
entityIdentifierValue | String |
The value of the identifier for the location that the product associated with the incident was shipped to. |
||||
entityIdentifierType | String |
The identifier type for the location that the product associated with the incident was shipped to. |
||||
toBusiness | Object | The company that the product associated with the incident was ordered by. | ||||
entityIdentifierValue | String |
The value of the identifier for the company that the product associated with the incident was ordered by. |
||||
entityIdentifierType | String |
The identifier type for the company that the product associated with the incident was ordered by. |
||||
notes | String | General notes or comments about the entities associated with the incident. | ||||
issueDetail | Array |
The product and transaction details associated with the incident. |
||||
referenceTransactions | Array | One or more identifiers for transactions or shipments related to the incident (e.g. PO Number 1896155149). | ||||
referenceTransactionType | String |
The type of transaction or shipping document associated with the incident. Valid values:
|
||||
value | String |
The value for the selected referenceTransactionType. Cannot exceed 5000 characters. |
||||
productIdentifier | Array | The identifier for the product affected by the |
||||
productIdentifierType | String |
The type of identifier for the product used by the relevant regulatory agency (i.e. NDC or GTIN). |
||||
productIdentifierValue | String |
The value of the identifier entered for productIdentifierType. |
||||
issueProductDetails | String |
Any additional details about the product impacted by the incident. |
||||
scanDate | Date |
The date and time that the physical product was scanned in as received by the entity at its current location. Enter the date in either of the following formats:
|
||||
quantity | Array |
The state and amount of each product associated with the incident. |
||||
quantityType | String |
The state of the product in relation to its Purchase Order status. Valid values:
|
||||
quantityValue | String |
The amount of product affected by the incident (e.g. 1,500). Cannot exceed 12 characters. |
||||
quantityUnitOfMeasurement | String |
The unit of measure for the specified amount of impacted product. Valid values
|
||||
productCodeInformation | Array | The company that the product associated with the incident was initially shipped from. | ||||
serialNumber | String |
The serial number impacted by the incident. |
||||
lotNumber | String | The lot number associated with the serial number. | ||||
expirationDate | String |
The date that all serial numbers in the lot expire. Enter the date in either of the following formats:
|
||||
additionalInformation | Object |
Additional information about the product's makeup and use.
This element should only be entered if the incidentCategory is
SUSPECT_PRODUCT . |
||||
drugComposition | String |
The product's primary ingredients. |
||||
drugUse | String |
The intended type of end user for the drug. Valid values:
|
||||
drugDescription | String |
The classification of the drug. Valid values:
|
||||
eventIssueDescription | String |
The reason that the product was labeled as suspect. Cannot exceed 5000 characters.
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in the description |
||||
requestForNotificationTermination | String |
The reason that the previous compliance exception notification submitted to a regulatory agency is void and is being withdrawn. Cannot exceed 5000 characters.
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in addition to the reason why the previous compliance exception is being withdrawn. |
||||
submittedThroughAlternateMechanism | String |
Conditionally required if requestForNotificationTermination is present. The method used if the incident was previously submitted to the regulatory agency. Valid values:
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in the requestForNotificationTermination. |
||||
otherSubmittedThroughAlternateMechanism | String |
Conditionally required if submittedThroughAlternateMechanism is |
||||
incidentNumber | String |
Conditionally required if requestForNotificationTermination is present. The incident number that has been provided by the regulatory agency for the incident. |
||||
initialNotificationDateToFDA | String |
The date that the FDA was initially notified of the incident. Enter the date in either of the following formats:
|
||||
dateProductIdentifiedAsIllegitimate | String |
The date that the product was identified as illegitimate. Enter the date in either of the following formats:
|
||||
notificationClassification | String |
The reason the product was identified as illegitimate. Valid values:
|
||||
businessType | String |
The business role of the company that identified the product as suspect. Valid values:
This element maps to Company Category for FDA Drug Notifications.
|
||||
relatedProcesses | Array |
One or more processes to link to the incident as a related process (e.g. a change request that caused an incident, a previously occurring incident). This must be an existing process in the Owner's network. |
||||
processId | String | The identifier for the related process. | ||||
processType | String |
The process type of the related process. Valid values:
|
||||
relationshipType | String |
The type of relationship the linked process has to the current incident. Valid values:
|
||||
aptCommentBox | Array | Contains any comments or files to attach to the incident. | ||||
addAttachment | Array | One or more relevant files to attach to the incident. Supported file formats are DOC, TXT, CSV, JPEG, PNG, and PDF. | ||||
fileName | String | The name of the file |
||||
fileSize | String | The size of the file. Cannot exceed 25MB. | ||||
visibilityType | String |
Conditionally required to submit the attached file. Determines whether process team members from the Partner company associated with the incident can view the attached file. Valid values:
|
||||
requestIdentifier | String | The identifier for the upload request provided by File Import and Export Manager. | ||||
aptComment | Array |
Required. The final comment to provide as the closing statement for the incident. |
||||
commentText | String | Required. The closing statement text. Cannot exceed 5000 characters. | ||||
visibilityType | String |
Conditionally required to submit the comment. Determines whether process team members from the Partner company associated with the incident can view the comment. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:add-compliance-exception:v3",
"ownerId": "d25ab887-247f-4147-b8f1-36ff70ccd594",
"processNetworkId": "{{comp1Pni}}",
"appName": "2154f852-02eb-4725-b521-047df60bbbff",
"dataspace": "default"
},
"payload": {
"aptBusinessObjectSummary": "Kendall Pharma | ACME Inc | INC-2023-01 | No EPCIS Data for 1 package",
"aptBusinessObjectDescription": "Shipment quarantined due to T1 reflecting incomplete data|SO 3027209239|PO 5201019344|Transaminase enzyme, CDX-017 (ACS-4007466). EPCIS shows 48 pallets and receiving called out 50 received ",
"businessPriority": "HIGH",
"createdByPartner": false,
"resolutionDueDateISO": "2023-04-15T01:30:00.000-05:00",
"currentlyAssignedUsersReporterCompany": {
"userEmails":[
"johndoe@tracelink.com",
"janedoe@tracelink.com"
]
},
"responsibleUserReporterCompany":{
"userEmail":"johndoe@tracelink.com"
},
"currentlyAssignedUsersAccountableEntity": {
"userEmails":[
"jasondoe@tracelink.com",
"jananiedoe@tracelink.com"
]
},
"responsibleUserAccountableEntity":{
"userEmail":"jasondoe@tracelink.com"
},
"incidentCategory": "Product, No Data",
"incidentSubCategory": "Product Overage with valid PO",
"accountableEntity":{
"masterDataEntityIdentifier":{
"masterDataEntityIdentifierType": "GLN",
"masterDataEntityIdentifierValue": "9263497412690"
}
},
"reporterCompany": {
"masterDataEntityIdentifier":{
"masterDataEntityIdentifierType": "GLN",
"masterDataEntityIdentifierValue": "9263497412690"
}
},
"issueDetail": [
{
"productIdentifier":{
"productIdentifierType": "NDC",
"productIdentifierValue": "9263497410"
},
"issueProductDetails": {
"quantityDetails": [
{
"quantityType": "ORDER",
"quantityValue": "100",
"quantityUnitOfMeasure": "Pallet"
}
],
"productDetailInformation": [
{
"lotNumber": "123123",
"expirationDateISO": "2023-04-15T01:30:00.000-05:00",
}
],
"impactedSerialNumber":"1234567895,12346734534,123124555",
"referenceTransactions": [
{
"referenceTransactionType": "Bill of Lading",
"value": "INV-233455"
}
],
}
}
],
"relatedProcesses": [
{
"abtBusinessObjectId":"INC-123",
"processType": "incident"
}
],
"associatedEntities": [
{
"shippedFromBusiness": {
"entityIdentifierValue": "2023202120222",
"entityIdentifierType": "GLN",
},
"fromBusiness": {
"entityIdentifierValue": "2023202120222",
"entityIdentifierType": "GLN",
},
"aptCommentBox": [
{
"aptComment": {
"commentText": "Please review PO and let us know if you have any questions",
"isDeleted": false,
"visibilityType": "Public"
}
}
],
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response.1 . |
|
eventName | String | Required. The fully qualified name of the response event.agile-process-teams:add-compliance-exception-response:v3 . |
|
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 thrown based on the error code. Valid values:
|
|
payload | – |
|
|
id | String |
|
|
aptBusinessObjectId |
String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). |
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:add-compliance-exception-response:v3",
"ownerId": "62858857-a04e-4b90-9355-c51861160b69",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "jVgjkz-FC0reR"
},
"payload": {
"aptBusinessObjectId": "SRJCMP-3178",
"id": "907324d0-6630-4780-b98d-5450af0e9498"
}
}
Edit Compliance Exception
Owners and Partners use this API to edit an existing compliance exception incident on the Owner company's network, including any responses, comments, or file attachments.
Guidelines
Element | Type | Description | ||||
---|---|---|---|---|---|---|
header | – | Required. The request header. | ||||
headerVersion | Integer | Required. The version identifier for the request.1 . |
||||
eventName | String | Required. The fully qualified name of the request event.agile-process-teams:edit-compliance-exception:v3 . |
||||
ownerId | String |
Required. The identifier for the company associated with the request. |
||||
appName | String | Required. The application that owns the event.agile-process-teams . |
||||
processNetworkId | String |
|
||||
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 | – |
|
||||
aptBusinessObjectSummary |
String |
|
||||
aptBusinessObjectDescription | String | A detailed description of the incident. Provides additional context for the incident. Cannot exceed 5000 characters. | ||||
businessPriority | Enum |
|
||||
resolutionDueDate | Number |
The date and time that the incident must be resolved. Enter the date in either of the following formats:
|
||||
currentlyAssignedUsersReporterCompany | Array |
List of email addresses for the one or more users at the company reporting the incident. If omitted, defaults to |
||||
responsibleUserReporterCompany | String |
The email address of the user from the company that reported the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
reporterCompany | String |
The company, company location, Partner company, or Partner company location that owns that reported the incident. If omitted, defaults to |
||||
masterDataEntityIdentifier | String |
The identifier type and value pairing for the company, company location, Partner company, or Partner company location that reported the incident. |
||||
masterDataEntityIdentifierType | String |
The type of identifier associated with the reporter company (e.g. GLN). |
||||
masterDataEntityIdentifierValue | String |
The value of the identifier entered for masterDataEntityIdentifierType. |
||||
incidentCategory | String |
The main problem that caused the incident. Valid values
|
||||
otherIncidentCategory | String |
If the incidentCategory is
To prevent corrupted data, the otherIncidentCategory should only be included in the request if the incidentCategory is
OTHER . |
||||
incidentSubcategory | String |
The subcategory of the selected incident category associated with the incident. Valid values depend on the incidentCategory selected, as follows: If the incidentCategory is
DATA_ISSUES :
If the incidentCategory is
DAMAGED_PRODUCT :
If the incidentCategory is
PRODUCT_BUT_NO_DATA :
If the incidentCategory is
DATA_BUT_NO_PRODUCT :
If the incidentCategory is
PACKAGING :
If the incidentCategory is
PRODUCT_HOLD :
If the incidentCategory is
SUSPECT_PRODUCT :
If the incidentCategory is
OTHER :
|
||||
otherIncidentSubcategory | String |
If the incidentSubcategory is
To prevent corrupted data, the otherIncidentSubcategory should only be included in the request if the incidentSubcategory is
OTHER . |
||||
accountableEntity | Array |
The identifier for the company, company location, Partner company, or Partner company location that owns the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
masterDataEntityIdentifier | String |
The identifier type and value pairing for the company, company location, Partner company, or Partner company location that owns the incident and is responsible for the incident's resolution. |
||||
masterDataEntityIdentifierType | String |
The type of identifier associated with the accountable entity (e.g. GLN). |
||||
masterDataEntityIdentifierValue | String |
The value of the identifier entered for masterDataEntityIdentifierType. |
||||
responsibleUserAccountableEntity | String |
The email address of the user from the company that is accountable for the incident and is responsible for the incident's resolution. If omitted, defaults to |
||||
currentlyAssignedUsersAccountableEntity | Array |
List of email addresses for the one or more users at the company that is accountable for the incident and is responsible for taking action to resolve the incident. If omitted, defaults to |
||||
responsibleDepartmentAtCompany | String |
The business area of the company that is responsible for the incident's resolution. If omitted, defaults to the job function of the responsible party, if defined for the user; otherwise is Valid values
|
||||
associatedEntities | Object |
List of identifiers for the supply chain entities associated with the incident throughout the supply chain. |
||||
shippedFromBusiness | Object |
The location that the product associated with the incident was initially shipped from. |
||||
entityIdentifierValue | String |
The value of the identifier for the location that the product associated with the incident was initially shipped from. |
||||
entityIdentifierType | String |
The identifier type for the location that the product associated with the incident was initially shipped from. |
||||
fromBusiness | Object | The company that the product associated with the incident was ordered from. | ||||
entityIdentifierValue | String |
The value of the identifier for the company that the product associated with the incident was ordered from. |
||||
entityIdentifierType | String |
The identifier type for the company that the product associated with the incident was ordered from. |
||||
shippedToBusiness | Object | The location that the product associated with the incident was shipped to. | ||||
entityIdentifierValue | String |
The value of the identifier for the location that the product associated with the incident was shipped to. |
||||
entityIdentifierType | String |
The identifier type for the location that the product associated with the incident was shipped to. |
||||
toBusiness | Object | The company that the product associated with the incident was ordered by. | ||||
entityIdentifierValue | String |
The value of the identifier for the company that the product associated with the incident was ordered by. |
||||
entityIdentifierType | String |
The identifier type for the company that the product associated with the incident was ordered by. |
||||
notes | String | General notes or comments about the entities associated with the incident. | ||||
issueDetail | Array |
The product and transaction details associated with the incident. |
||||
referenceTransactions | Array | One or more identifiers for transactions or shipments related to the incident (e.g. PO Number 1896155149). | ||||
referenceTransactionType | String |
The type of transaction or shipping document associated with the incident. Valid values:
|
||||
value | String |
The value for the selected referenceTransactionType. Cannot exceed 5000 characters. |
||||
productIdentifier | Array | The identifier for the product affected by the |
||||
productIdentifierType | String |
The type of identifier for the product used by the relevant regulatory agency (i.e. NDC or GTIN). |
||||
productIdentifierValue | String |
The value of the identifier entered for productIdentifierType. |
||||
issueProductDetails | String |
Any additional details about the product impacted by the incident. |
||||
scanDate | Date |
The date and time that the physical product was scanned in as received by the entity at its current location. Enter the date in either of the following formats:
|
||||
quantity | Array |
The state and amount of each product associated with the incident. |
||||
quantityType | String |
The state of the product in relation to its Purchase Order status. Valid values:
|
||||
quantityValue | String |
The amount of product affected by the incident (e.g. 1,500). Cannot exceed 12 characters. |
||||
quantityUnitOfMeasurement | String |
The unit of measure for the specified amount of impacted product. Valid values
|
||||
productCodeInformation | Array | The company that the product associated with the incident was initially shipped from. | ||||
serialNumber | String |
The serial number impacted by the incident. |
||||
lotNumber | String | The lot number associated with the serial number. | ||||
expirationDate | String |
The date that all serial numbers in the lot expire. Enter the date in either of the following formats:
|
||||
additionalInformation | Object |
Additional information about the product's makeup and use.
This element should only be entered if the incidentCategory is
SUSPECT_PRODUCT . |
||||
drugComposition | String |
The product's primary ingredients. |
||||
drugUse | String |
The intended type of end user for the drug. Valid values:
|
||||
drugDescription | String |
The classification of the drug. Valid values:
|
||||
eventIssueDescription | String |
The reason that the product was labeled as suspect. Cannot exceed 5000 characters.
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in the description |
||||
requestForNotificationTermination | String |
The reason that the previous compliance exception notification submitted to a regulatory agency is void and is being withdrawn. Cannot exceed 5000 characters.
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in addition to the reason why the previous compliance exception is being withdrawn. |
||||
submittedThroughAlternateMechanism | String |
Conditionally required if requestForNotificationTermination is present. The method used if the incident was previously submitted to the regulatory agency. Valid values:
If submittedThroughAlternateMechanism is
OTHER , include the alternative method used to initially submit the notification to a regulatory agency in the requestForNotificationTermination. |
||||
otherSubmittedThroughAlternateMechanism | String |
Conditionally required if submittedThroughAlternateMechanism is |
||||
incidentNumber | String |
Conditionally required if requestForNotificationTermination is present. The incident number that has been provided by the regulatory agency for the incident. |
||||
initialNotificationDateToFDA | String |
The date that the FDA was initially notified of the incident. Enter the date in either of the following formats:
|
||||
dateProductIdentifiedAsIllegitimate | String |
The date that the product was identified as illegitimate. Enter the date in either of the following formats:
|
||||
notificationClassification | String |
The reason the product was identified as illegitimate. Valid values:
|
||||
businessType | String |
The business role of the company that identified the product as suspect. Valid values:
This element maps to Company Category for FDA Drug Notifications.
|
||||
relatedProcesses | Array |
One or more processes to link to the incident as a related process (e.g. a change request that caused an incident, a previously occurring incident). This must be an existing process in the Owner's network. |
||||
processId | String | The identifier for the related process. | ||||
processType | String |
The process type of the related process. Valid values:
|
||||
relationshipType | String |
The type of relationship the linked process has to the current incident. Valid values:
|
||||
aptCommentBox | Array | Contains any comments or files to attach to the incident. | ||||
addAttachment | Array | One or more relevant files to attach to the incident. Supported file formats are DOC, TXT, CSV, JPEG, PNG, and PDF. | ||||
fileName | String | The name of the file |
||||
fileSize | String | The size of the file. Cannot exceed 25MB. | ||||
visibilityType | String |
Conditionally required to submit the attached file. Determines whether process team members from the Partner company associated with the incident can view the attached file. Valid values:
|
||||
requestIdentifier | String | The identifier for the upload request provided by File Import and Export Manager. | ||||
aptComment | Array |
Required. The final comment to provide as the closing statement for the incident. |
||||
commentText | String | Required. The closing statement text. Cannot exceed 5000 characters. | ||||
visibilityType | String |
Conditionally required to submit the comment. Determines whether process team members from the Partner company associated with the incident can view the comment. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:edit-compliance-exception:v3",
"ownerId": "d25ab887-247f-4147-b8f1-36ff70ccd594",
"processNetworkId": "{{comp1Pni}}",
"appName": "2154f852-02eb-4725-b521-047df60bbbff",
"dataspace": "default"
},
"payload": {
"aptBusinessObjectSummary": "Kendall Pharma | ACME Inc | INC-2023-01 | No EPCIS Data for 1 package",
"aptBusinessObjectDescription": "Shipment quarantined due to T1 reflecting incomplete data|SO 3027209239|PO 5201019344|Transaminase enzyme, CDX-017 (ACS-4007466). EPCIS shows 48 pallets and receiving called out 50 received ",
"businessPriority": "HIGH",
"createdByPartner": false,
"resolutionDueDateISO": "2023-04-15T01:30:00.000-05:00",
"currentlyAssignedUsersReporterCompany": {
"userEmails":[
"johndoe@tracelink.com",
"janedoe@tracelink.com"
]
},
"responsibleUserReporterCompany":{
"userEmail":"johndoe@tracelink.com"
},
"currentlyAssignedUsersAccountableEntity": {
"userEmails":[
"jasondoe@tracelink.com",
"jananiedoe@tracelink.com"
]
},
"responsibleUserAccountableEntity":{
"userEmail":"jasondoe@tracelink.com"
},
"incidentCategory": "Product, No Data",
"incidentSubCategory": "Product Overage with valid PO",
"accountableEntity":{
"masterDataEntityIdentifier":{
"masterDataEntityIdentifierType": "GLN",
"masterDataEntityIdentifierValue": "9263497412690"
}
},
"reporterCompany": {
"masterDataEntityIdentifier":{
"masterDataEntityIdentifierType": "GLN",
"masterDataEntityIdentifierValue": "9263497412690"
}
},
"issueDetail": [
{
"productIdentifier":{
"productIdentifierType": "NDC",
"productIdentifierValue": "9263497410"
},
"issueProductDetails": {
"quantityDetails": [
{
"quantityType": "ORDER",
"quantityValue": "100",
"quantityUnitOfMeasure": "Pallet"
}
],
"productDetailInformation": [
{
"lotNumber": "123123",
"expirationDateISO": "2023-04-15T01:30:00.000-05:00",
}
],
"impactedSerialNumber":"1234567895,12346734534,123124555",
"referenceTransactions": [
{
"referenceTransactionType": "Bill of Lading",
"value": "INV-233455"
}
],
}
}
],
"relatedProcesses": [
{
"abtBusinessObjectId":"INC-123",
"processType": "incident"
}
],
"associatedEntities": [
{
"shippedFromBusiness": {
"entityIdentifierValue": "2023202120222",
"entityIdentifierType": "GLN",
},
"fromBusiness": {
"entityIdentifierValue": "2023202120222",
"entityIdentifierType": "GLN",
},
"aptCommentBox": [
{
"aptComment": {
"commentText": "Please review PO and let us know if you have any questions",
"isDeleted": false,
"visibilityType": "Public"
}
}
],
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response.1 . |
|
eventName | String | Required. The fully qualified name of the response event.agile-process-teams:edit-compliance-exception-response:v3 . |
|
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 thrown based on the error code. Valid values:
|
|
payload | – |
|
|
id | String |
|
|
aptBusinessObjectId |
String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). |
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:edit-compliance-exception-response:v3",
"ownerId": "62858857-a04e-4b90-9355-c51861160b69",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "aDXe0m-xgpqzM"
},
"payload": {
"id": "26a61063-3222-48c4-8abc-f58265a46f1b",
"aptBusinessObjectId": "SRJCMP-3170"
}
}
Close Compliance Exception Incident
Owners and Partners use this API to close an existing compliance exception incident. A closing statement and resolution type must be provided.
The closed incident transitions from its current base state (either To Do or Under Investigation) to a Closed state. Closed incidents can be edited or reopened by users with the requisite permissions.
Guidelines
Element | Type | Description | |||
---|---|---|---|---|---|
header | – | Required. The request header. | |||
headerVersion | Integer | Required. The version identifier for the request.1 . |
|||
eventName | String | Required. The fully qualified name of the request event.agile-process-teams:close-compliance-exception-incident:v3 . |
|||
ownerId | String | Required. The identifier for the Owner company associated with the request. | |||
appName | String | Required. The application that owns the event.agile-process-teams . |
|||
processNetworkId | String |
|
|||
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 | – |
|
|||
id | String |
|
|||
aptBusinessObjectId | String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). | |||
resolutionType | Enum |
|
|||
otherResolutionType | String |
If resolutionType is
To prevent corrupted data, otherResolutionType should only be included in the request if resolutionType is
OTHER . |
|||
isReoccurring |
Boolean |
Indicates whether the incident has previously occurred one or more times. Valid values:
|
|||
finalRootCause | String |
The main issue that directly caused the issue to occur. Valid values:
|
|||
otherFinalRootCause | String |
If finalRootCause is
To prevent corrupted data, otherFinalRootCause should only be included in the request if finalRootCause is
OTHER . |
|||
closingStatement | String | Any final closing statement about the incident and its closure. Cannot exceed 5000 characters. | |||
dispositionType | String |
The product action taken as a result of the incident. Valid values:
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:close-compliance-exception:v3",
"ownerId": "{{comp1}}",
"processNetworkId": "{{comp1Pni}}",
"appName": "agile-process-teams",
"dataspace": "default"
},
"payload": {
"id": "907324d0-6630-4780-b98d-5450af0e9498",
"aptBusinessObjectId": "SRJCMP-3170",
"resolutionType": "DUPLICATE",
"isReoccuring": false,
"finalRootCause": "Documentation",
"closingStatement": "Closing as non incident - Duplicate "
"dispositionType": "Approve, Release"
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response.1 . |
|
eventName | String | Required. The fully qualified name of the response event.agile-process-teams:close-compliance-exception-incident-response:v3 . |
|
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 thrown based on the error code. Valid values:
|
|
payload | – | null . |
|
id | String |
|
|
message | String |
|
|
aptBusinessObjectId | String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). |
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:close-compliance-exception-response:v3",
"ownerId": "62858857-a04e-4b90-9355-c51861160b69",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "aUjSqx-ijaRev"
},
"payload": {
"id": "907324d0-6630-4780-b98d-5450af0e9498",
"aptBusinessObjectId": "SRJCMP-3178",
"message": "complianceException closed successfully."
}
}
Errors
Element | Error Message | Description |
---|---|---|
authorization | User does not have permission to close incidents. | The error occurs if the user does not have the | permission.
id | Process ID is required. | The error occurs if the source is empty or null. |
resolutionType | Resolution Type is required. | The error occurs if the source is empty or null. |
resolutionType | Invalid Resolution Type, must be one of the supported values. | The error occurs if the source is not a valid value from the enumeration list. |
isReoccurring | Reoccurring Incident value must be True or False. | The error occurs if the source does not equal true or false . |
aptComment | Closing Statement is required. | The error occurs if the source is empty or null. |
aptComment | Closing Statement is greater than max length. |
The error occurs if the source exceeds the maximum length of 5000 characters. |
aptComment | Closing Statement visibility type must be Public or Internal. | The error occurs if the source is populated and visibilityType does not equal Public or Internal . |
addAttachment | Attachment file size is greater than max size. |
The error occurs if the source exceeds the maximum file size of 25MB. |
addAttachment | Attachment visibility type must be Public or Internal. | The error occurs if the source is populated and visibilityType does not equal Public or Internal . |
This app
Submit Compliance Exception Incident to Accountable Entity
Owners use the API to submit an existing compliance exception incident to the accountable entity specified in the incident accountableEntity. This cannot be undone.
Upon successful response:
- The Partner is notified of the incident on their network.
- The incident becomes visible to the Partner.
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The request header. | |
headerVersion | Integer | Required. The version identifier for the request.1 . |
|
eventName | String | Required. The fully qualified name of the request event.agile-process-teams:submit-compliance-exception-incident-to-partner:v1 . |
|
ownerId | String | Required. The identifier for the Owner company associated with the request. | |
appName | String | Required. The application that owns the event.agile-process-teams . |
|
processNetworkId | String |
|
|
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 | – |
|
|
id | String |
|
|
aptBusinessObjectID | String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345).. |
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:submit-to-entity:v1",
"ownerId": "66e73280-747d-4d5e-9dea-d20df3f3ff2b",
"processNetworkId": "014c005d-7c06-4613-8456-d0d58be49fab",
"appName": "agile-process-teams",
"dataspace": "default"
},
"payload": {
//"aptBusinessObjectId": "aptDR-2732"
"id": "10f06c77-729b-4fa3-8168-bd99432fdbd2"
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response.1 . |
|
eventName | String | Required. The fully qualified name of the response event.agile-process-teams:submit-compliance-exception-incident-to-partner-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 thrown based on the error code. Valid values:
|
|
payload | – | null . |
|
id | String |
|
|
message | String |
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:submit-to-entity:v1",
"ownerId": "66e73280-747d-4d5e-9dea-d20df3f3ff2b",
"processNetworkId": "014c005d-7c06-4613-8456-d0d58be49fab",
"appName": "agile-process-teams",
"dataspace": "default"
},
"payload": {
//"aptBusinessObjectId": "aptDR-2732"
"id": "10f06c77-729b-4fa3-8168-bd99432fdbd2"
}
}
Errors
Element | Error Messages | Description |
---|---|---|
authorization | User does not have permission to submit the incident to the partner. |
The error occurs if the user does not have the permission. |
id | Process ID is required. | The error occurs if the source is empty or null. |
partnerId | Partner is not a valid network node. | The error occurs if the source is not associated to the Owner company's network. |
This app
Reopen Compliance Exception Incident
Owners and Partners use this API to reopen a closed compliance exception incident. The response returns the identifier of the reopened incident. The system reopens the incident with all information intact, except the base state is updated from from Closed
to UnderInvestigation
. Reopened incidents cannot be transitioned back to the initial ToDo
base state.
Guidelines
Element | Type | Description | |||
---|---|---|---|---|---|
header | – | Required. The request header. | |||
headerVersion | Integer | Required. The version identifier for the request.1 . |
|||
eventName | String | Required. The fully qualified name of the request event.agile-process-teams:reopen-compliance-exception-incident:v3 . |
|||
ownerId | String | Required. The identifier for the Owner company associated with the request. | |||
appName | String | Required. The application that owns the event.agile-process-teams . |
|||
processNetworkId | String |
|
|||
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 | – |
|
|||
id | String |
|
|||
aptBusinessObjectID | String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). |
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:reopen-compliance-exception-incident:v3",
"ownerId": "{{comp1}}",
"processNetworkId": "{{comp1Pni}}",
"appName": "agile-process-teams",
"dataspace": "default"
},
"payload": {
"id": "907324d0-6630-4780-b98d-5450af0e9498",
"aptBusinessObjectId": "SRJCMP-3178"
}
}
Guidelines
Element | Type | Description | |
---|---|---|---|
header | – | Required. The response header. | |
headerVersion | Integer | Required. The version identifier for the response.1 . |
|
eventName | String | Required. The fully qualified name of the response event.agile-process-teams:reopen-compliance-exception-incident-response:v3 . |
|
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 thrown based on the error code. Valid values:
|
|
payload | – | null . |
|
id | String |
|
|
aptBusinessObjectID | String | The unique identifier TraceLink assigns to the incident (e.g. APT-12345). | |
message | String |
|
Example
{
"header": {
"headerVersion": 1,
"eventName": "agile-process-teams:reopen-compliance-exception-incident-response:v3",
"ownerId": "62858857-a04e-4b90-9355-c51861160b69",
"isErr": false,
"errCode": "200_OK",
"licensePlate": "oL788H-1aZH4z"
},
"payload": {
"id": "907324d0-6630-4780-b98d-5450af0e9498",
"aptBusinessObjectId": "SRJCMP-3178",
"message": "complianceException reopened successfully."
}
}
Errors
Element | Error Message | Description |
---|---|---|
authorization | User does not have permission to reopen incidents. | The error occurs if the user does not have the | permission.
id | Process ID is required. | The error occurs if the source is empty or null. |
aptComment | Comment is greater than max length. |
The error occurs if the source exceeds the maximum length of 5000 characters. |
aptComment | Comment visibility type must be Public or Internal. |
The error occurs if the source is populated and visibilityType does not equal |
addAttachment | Attachment file size is greater than max size. |
The error occurs if the source exceeds the maximum file size of 25MB. |
addAttachment | Attachment visibility type must be Public or Internal. | The error occurs if the source is populated and visibilityType does not equal Public or Internal . |
This app