The Dangerous Goods API provides the ability to determine if certain materials, such as dangerous goods or hazardous materials, can be shipped with UPS. The API's two endpoints - Chemical Reference Data and Acceptance Audit Precheck, help perform pre-checks before shipping any dangerous goods.
Chemical Reference Data
The Chemical Reference Data endpoint of the Dangerous Goods API allows shippers look up hazardous material reference information by ID number and shipping name of the specified regulated good.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "ChemicalReferenceDataRequest": {
- "IDNumber": "UN1088",
- "ProperShippingName": "Acetal",
- "ShipperNumber": "Your Shipper Number"
}
}
- 200
- 400
- 401
- 403
- 429
{- "ChemicalReferenceDataResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ChemicalData": [
- {
- "ChemicalDetail": {
- "RegulationSet": "strin",
- "IDNumber": "string",
- "HazardousMaterialsDescription": "string",
- "ClassDivisionNumber": "string",
- "SubRiskClass": "string",
- "PackagingGroupType": "string",
- "SpecialPermit": "stri",
- "TechnicalNameRequiredIndicator": "s",
- "AdditionalShippingInformationRequiredIndicator": "s",
- "TunnelRestrictionCode": "string",
- "TransportCategory": "s",
- "TransportMultiplierQuantity": "s",
- "ChannelTunnelAcceptedIndicator": "s",
- "ChemicalType": "stringstringstringstrings",
- "CAToUSShipmentAllowedIndicator": "s"
}, - "ProperShippingNameDetail": {
- "ProperShippingName": [ ]
}, - "PackageQuantityLimitDetail": [
- {
- "PackageQuantityLimitTypeCode": "string",
- "Quantity": "stringstringstr",
- "UOM": "string",
- "PackagingInstructionCode": "string"
}
]
}
]
}
}
Acceptance Audit Pre-check
Enables shippers perform pre-checks before shipping dangerous goods using the chemical record identifier and the commodity's regulated level code.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (AcceptanceAuditPreCheckRequest) <= 1 Dangerous Goods Utility Request container for Acceptance Audit Pre-check. | ||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "AcceptanceAuditPreCheckRequest": {
- "Request": {
- "RequestOption": "Request",
- "TransactionReference": {
- "CustomerContext": ""
}
}, - "OriginRecordTransactionTimestamp": " ",
- "Shipment": {
- "ShipperNumber": " ",
- "ShipFromAddress": {
- "AddressLine": "226 ELMWOOD AVE",
- "City": "BOGOTA",
- "StateProvinceCode": "NJ",
- "PostalCode": "7603",
- "CountryCode": "US"
}, - "ShipToAddress": {
- "AddressLinde": "MY STREET 11",
- "City": "DIEGEM",
- "StateProvinceCode": " ",
- "PostalCode": "1831",
- "CountryCode": "BE"
}, - "Service": {
- "Code": "01",
- "Description": "GROUND "
}, - "RegulationSet": "IATA",
- "Package": {
- "PackageIdentifier": "12",
- "PackageWeight": {
- "Weight": "12",
- "UnitOfMeasurement": {
- "Code": "KGS",
- "Description": "KILOS"
}
}, - "QValue": "0",
- "OverPackedIndicator": "I",
- "TransportationMode": "PAX",
- "EmergencyContact": "SELF",
- "ChemicalRecord": {
- "ChemicalRecordIdentifier": "12",
- "ReportableQuantity": "RQ",
- "ClassDivisionNumber": "3",
- "SubRiskClass": " ",
- "IDNumber": "UN2621",
- "PackagingGroupType": "III",
- "Quantity": "10",
- "UOM": "KGS",
- "PackagingInstructionCode": "Y344",
- "ProperShippingName": "ACETYL METHYL CARBINOL",
- "TechnicalName": " ",
- "AdditionalDescription": "N",
- "PackagingType": "Fiberboard Box",
- "HazardLabelRequired": "LABEL IT",
- "PackagingTypeQuantity": "22",
- "CommodityRegulatedLevelCode": "LQ",
- "TransportCategory": "3",
- "TunnelRestrictionCode": "1"
}
}
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "AcceptanceAuditPreCheckResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "AlertDetail": [
- {
- "Code": "string",
- "Description": "string",
- "ElementLevelInformation": {
- "Level": "s",
- "ElementIdentifier": [
- {
- "Code": null,
- "Value": null
}
]
}
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ShipperNumber": "string",
- "Service": {
- "Code": "string"
}, - "RegulationSet": "strin",
- "PackageResults": [
- {
- "PackageIdentifier": "strin",
- "AccessibleIndicator": "s",
- "EuropeBUIndicator": "s",
- "ChemicalRecordResults": [
- {
- "ChemicalRecordIdentifier": "str",
- "ADRPoints": "stri",
- "TransportCategory": "s",
- "TunnelRestrictionCode": "string",
- "ADRUnits": "strings"
}
]
}
]
}
}
Chemical Reference DataDeprecated
The Chemical Reference Data endpoint of the Dangerous Goods API allows shippers look up hazardous material reference information by ID number and shipping name of the specified regulated good.
path Parameters
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (ChemicalReferenceDataRequest) <= 1 Dangerous Goods Utility Request container for Chemical Reference Data. | ||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "ChemicalReferenceDataRequest": {
- "IDNumber": "UN1088",
- "ProperShippingName": "Acetal",
- "ShipperNumber": "Your Shipper Number"
}
}
- 200
- 400
- 401
- 403
- 429
{- "ChemicalReferenceDataResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ChemicalData": [
- {
- "ChemicalDetail": {
- "RegulationSet": "strin",
- "IDNumber": "string",
- "HazardousMaterialsDescription": "string",
- "ClassDivisionNumber": "string",
- "SubRiskClass": "string",
- "PackagingGroupType": "string",
- "SpecialPermit": "stri",
- "TechnicalNameRequiredIndicator": "s",
- "AdditionalShippingInformationRequiredIndicator": "s",
- "TunnelRestrictionCode": "string",
- "TransportCategory": "s",
- "TransportMultiplierQuantity": "s",
- "ChannelTunnelAcceptedIndicator": "s",
- "ChemicalType": "stringstringstringstrings",
- "CAToUSShipmentAllowedIndicator": "s"
}, - "ProperShippingNameDetail": {
- "ProperShippingName": [ ]
}, - "PackageQuantityLimitDetail": [
- {
- "PackageQuantityLimitTypeCode": "string",
- "Quantity": "stringstringstr",
- "UOM": "string",
- "PackagingInstructionCode": "string"
}
]
}
]
}
}
Acceptance Audit Pre-checkDeprecated
Enables shippers perform pre-checks before shipping dangerous goods using the chemical record identifier and the commodity's regulated level code.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (AcceptanceAuditPreCheckRequest) <= 1 Dangerous Goods Utility Request container for Acceptance Audit Pre-check. | ||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "AcceptanceAuditPreCheckRequest": {
- "Request": {
- "RequestOption": "Request",
- "TransactionReference": {
- "CustomerContext": ""
}
}, - "OriginRecordTransactionTimestamp": " ",
- "Shipment": {
- "ShipperNumber": " ",
- "ShipFromAddress": {
- "AddressLine": "226 ELMWOOD AVE",
- "City": "BOGOTA",
- "StateProvinceCode": "NJ",
- "PostalCode": "7603",
- "CountryCode": "US"
}, - "ShipToAddress": {
- "AddressLinde": "MY STREET 11",
- "City": "DIEGEM",
- "StateProvinceCode": " ",
- "PostalCode": "1831",
- "CountryCode": "BE"
}, - "Service": {
- "Code": "01",
- "Description": "GROUND "
}, - "RegulationSet": "IATA",
- "Package": {
- "PackageIdentifier": "12",
- "PackageWeight": {
- "Weight": "12",
- "UnitOfMeasurement": {
- "Code": "KGS",
- "Description": "KILOS"
}
}, - "QValue": "0",
- "OverPackedIndicator": "I",
- "TransportationMode": "PAX",
- "EmergencyContact": "SELF",
- "ChemicalRecord": {
- "ChemicalRecordIdentifier": "12",
- "ReportableQuantity": "RQ",
- "ClassDivisionNumber": "3",
- "SubRiskClass": " ",
- "IDNumber": "UN2621",
- "PackagingGroupType": "III",
- "Quantity": "10",
- "UOM": "KGS",
- "PackagingInstructionCode": "Y344",
- "ProperShippingName": "ACETYL METHYL CARBINOL",
- "TechnicalName": " ",
- "AdditionalDescription": "N",
- "PackagingType": "Fiberboard Box",
- "HazardLabelRequired": "LABEL IT",
- "PackagingTypeQuantity": "22",
- "CommodityRegulatedLevelCode": "LQ",
- "TransportCategory": "3",
- "TunnelRestrictionCode": "1"
}
}
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "AcceptanceAuditPreCheckResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "AlertDetail": [
- {
- "Code": "string",
- "Description": "string",
- "ElementLevelInformation": {
- "Level": "s",
- "ElementIdentifier": [
- {
- "Code": null,
- "Value": null
}
]
}
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ShipperNumber": "string",
- "Service": {
- "Code": "string"
}, - "RegulationSet": "strin",
- "PackageResults": [
- {
- "PackageIdentifier": "strin",
- "AccessibleIndicator": "s",
- "EuropeBUIndicator": "s",
- "ChemicalRecordResults": [
- {
- "ChemicalRecordIdentifier": "str",
- "ADRPoints": "stri",
- "TransportCategory": "s",
- "TunnelRestrictionCode": "string",
- "ADRUnits": "strings"
}
]
}
]
}
}