Products
Simple and mixed packing products of the catalogue, including the interactive creation of a mixed packing product for a consignment
Create a simple product in the catalogue
Creates a new predefined simple product in the catalogue for later reuse in consignments. A product with a correctable error, such as a missing technical name, is created with newItemIsValid false and its problems in warnings; it can be read with GET /simpleProduct/{reference} and removed with DELETE /simpleProduct/{reference}.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerquery Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
simple Product
| accountCode required | string Customer account code identifying the tenant in the system. | ||||||||||||||||||||||||||||||||||||||||
| enabledDangerousGoodsRegulations required | Array of strings (DangerousGoodsRegulation) non-empty Items Enum: "Adr" "Imdg" "Iata" "Cfr49" List of dangerous goods regulations enabled for this product. | ||||||||||||||||||||||||||||||||||||||||
| reference required | string Unique reference of the product in the catalogue. | ||||||||||||||||||||||||||||||||||||||||
| isDangerousGood required | boolean Indicates whether the product is regulated as dangerous goods. | ||||||||||||||||||||||||||||||||||||||||
| isEnvironmentallyHazardous required | boolean Indicates whether the substance is environmentally hazardous (marine pollutant). | ||||||||||||||||||||||||||||||||||||||||
| isEmpty required | boolean Indicates whether the package is empty and uncleaned. | ||||||||||||||||||||||||||||||||||||||||
| physicalState required | string Enum: "Liquid" "Solid" "Gas" Physical state of the substance: Liquid, Solid or Gas. | ||||||||||||||||||||||||||||||||||||||||
| measureUnit required | string Enum: "Kg" "L" Measurement unit for quantities: Kg or L. | ||||||||||||||||||||||||||||||||||||||||
| pureMixOrSolution required | string Enum: "Pure" "Mix" "Solution" Indicates whether the substance is pure, a mixture or a solution. | ||||||||||||||||||||||||||||||||||||||||
| packageId required | integer Identifier of the outer package type from master data. | ||||||||||||||||||||||||||||||||||||||||
| hasInnerPackages required | boolean Indicates whether the outer package contains inner packages. | ||||||||||||||||||||||||||||||||||||||||
| productCode | string Internal product code assigned by the customer. | ||||||||||||||||||||||||||||||||||||||||
| productName | string Commercial name of the product. | ||||||||||||||||||||||||||||||||||||||||
| dangerousGoodId | integer Identifier of the dangerous good entry in master data. | ||||||||||||||||||||||||||||||||||||||||
object Technical names of the substance in different languages. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| mixOrSolutionPercentage | number Percentage of the dangerous component in the mixture or solution. | ||||||||||||||||||||||||||||||||||||||||
| flashPoint | number Closed-cup flash point of the substance, expressed in Celsius. For Class 3 it is checked against the packing group of the dangerous good in each enabled regulation (ADR 2.2.3.1.3, IMDG 2.3.2.6, IATA 3.3.2): a flash point of 23 °C or above with packing group II is rejected when strictPackingInstructionCheck is true and reported as a warning otherwise, and a flash point below 23 °C with packing group III is always reported as a warning, since it is only admissible for viscous substances. Under 49 CFR, which is not available yet, this behaviour will be described when it is. | ||||||||||||||||||||||||||||||||||||||||
| controlTemperature | number Control temperature in Celsius (ADR 5.4.1.2.3.1 / IMDG 5.4.1.5.4 and 5.4.1.5.5). Mandatory together with emergencyTemperature for temperature-controlled substances (UN 3111-3120, 3231-3240, 3533 and 3534); optional for stabilized substances that allow temperature control. Must be lower than emergencyTemperature. | ||||||||||||||||||||||||||||||||||||||||
| emergencyTemperature | number Emergency temperature in Celsius (ADR 5.4.1.2.3.1 / IMDG 5.4.1.5.4 and 5.4.1.5.5). Provided in pair with controlTemperature and strictly higher than it. | ||||||||||||||||||||||||||||||||||||||||
| density | number Density of the substance, expressed in kilograms per liter. Under ADR and IMDG it is needed to verify a quantity limit expressed in a unit other than the measure unit of the product, such as a limit in kilograms for a product declared in liters; without it, that limit is not verified and the response reports it as a warning (an error with strictPackingInstructionCheck). Under 49 CFR, which is not available yet, this behaviour will be described when it is. | ||||||||||||||||||||||||||||||||||||||||
| packageHomologationId | integer Identifier of the package UN homologation code from master data. Under ADR and IMDG, the net quantity and gross mass limits of the single or outer packaging are taken from the row of this homologation in the packing instruction: when it is omitted for a packaging that requires homologation, those limits are not verified and the response reports it as a warning (an error with strictPackingInstructionCheck). Under 49 CFR, which is not available yet, this behaviour will be described when it is. | ||||||||||||||||||||||||||||||||||||||||
| packingInstructionId | integer Identifier of the applicable packing instruction. Under ADR and IMDG it may be omitted: the packing instruction of the dangerous good that admits the declared packaging is then applied, and its quantity limits are checked. When none or several of them admit the packaging, none is applied and its quantity limits are not verified: with strictPackingInstructionCheck the request is rejected, naming the candidates when there are several, and otherwise the response reports it as a warning with the rule reference ADR 4.1.4 or IMDG 4.1.4. Under IATA, when omitted, it is deduced from the packaging and the net quantity. Under 49 CFR, which is not available yet, this behaviour will be described when it is. | ||||||||||||||||||||||||||||||||||||||||
| strictPackingInstructionCheck | boolean Optional. When true, the packing instruction must belong to the dangerous good and the packaging must be included in the packing instruction list for each enabled ADR or IMDG regulation: the homologation of the single or outer packaging and the inner packaging material. When absent or false, these verifications are not performed for ADR and IMDG. The IATA regulation applies this verification in all cases. Under ADR and IMDG, a quantity limit that cannot be verified because the request lacks the density (in a packing instruction or in the excepted quantity code) or the homologation of the packaging is reported as an error when true and as a warning otherwise; when true, a flash point that is not consistent with packing group II is also reported as an error instead of a warning. Not returned by any response: it is a write-time validation switch only and is not stored. When true and packingInstructionId is omitted for ADR or IMDG, the request is rejected when no packing instruction, or more than one, admits the declared packaging. Under 49 CFR, which is not available yet, this behaviour will be described when it is. | ||||||||||||||||||||||||||||||||||||||||
| imdgSegregationGroupId | integer Identifier of the IMDG segregation group of the substance (IMDG Code 3.1.4), or 255 for no segregation group. It applies to the IMDG Code only. When the entry of the Dangerous Goods List already assigns segregation groups, those apply and this value is ignored. Otherwise, when it is omitted, an entry that is not an N.O.S. entry is recorded without segregation group, and an N.O.S. entry is rejected, because the consignor has to state its group. | ||||||||||||||||||||||||||||||||||||||||
| unitaryQuantity | number Net quantity of substance per outer package. | ||||||||||||||||||||||||||||||||||||||||
| unitaryGrossQuantity | number Gross mass of one outer package, expressed in kilograms. | ||||||||||||||||||||||||||||||||||||||||
| unitaryQuantityExplosive | number Net explosive content per outer package, expressed in kilograms. | ||||||||||||||||||||||||||||||||||||||||
| fillingDegree | number Filling degree of the package, expressed as percentage. | ||||||||||||||||||||||||||||||||||||||||
| authorizations | string Authorizations or special provisions applicable to the transport. | ||||||||||||||||||||||||||||||||||||||||
| innerPackageMaterialId | integer Identifier of the inner package material from master data. | ||||||||||||||||||||||||||||||||||||||||
| innerPackagesNumber | integer Number of inner packages contained in each outer package. | ||||||||||||||||||||||||||||||||||||||||
| innerPackageQuantity | number Net quantity per inner package. | ||||||||||||||||||||||||||||||||||||||||
| innerPackageCapacity | number Capacity of each inner package, in litres (for aerosols, the capacity of the dispenser). It decides the IMDG stowage category of aerosols (SW22) and the statement of IMDG 5.4.1.5.8. | ||||||||||||||||||||||||||||||||||||||||
| innerPackageQuantityExplosive | number Net explosive content per inner package, expressed in kilograms. | ||||||||||||||||||||||||||||||||||||||||
object Radiological data. Mandatory when the product belongs to Class 7 (radioactive). Must be omitted for non-radioactive products. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| specialFeatures | string Enum: "IsExtraViscousAccordingAdr" "IsExtraViscousAccordingImdg" "IsSalvagePackage" Special features of the product transport mode. The extra viscous features apply to Class 3 substances under the corresponding regulation; the salvage packaging feature has no restriction. | ||||||||||||||||||||||||||||||||||||||||
Responses
201 Created
Created
Response Schema: application/json
| newItemId | integer Identifier assigned to the newly created item. | ||||||||||||||||||||||||||||||||||||||
| newItemIsValid | boolean Indicates whether the newly created item passed regulatory validation. | ||||||||||||||||||||||||||||||||||||||
| success | boolean Indicates whether the item creation completed successfully. | ||||||||||||||||||||||||||||||||||||||
| httpStatusCode | integer <int32> HTTP status code returned by the operation. | ||||||||||||||||||||||||||||||||||||||
| message | string Human-readable message describing the item creation result. | ||||||||||||||||||||||||||||||||||||||
| messageType | string Enum: "Information" "Warning" Severity classification of the message. | ||||||||||||||||||||||||||||||||||||||
| requestGuid | string Unique identifier of the request, returned for tracing purposes. | ||||||||||||||||||||||||||||||||||||||
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |||||||||||||||||||||||||||||||||||||||
Array [
] | |||||||||||||||||||||||||||||||||||||||
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Not found
Not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/simpleProduct
Request samples
{- "accountCode": "CO001",
"enabledDangerousGoodsRegulations": [
- "Adr"
],- "reference": "REF001",
- "productCode": "PROCOD001",
- "productName": "PRONAM001",
- "isDangerousGood": true,
- "dangerousGoodId": 2301,
"technicalNames": {
- "englishTechnicalName": "XYLENE AND BENZENE",
- "spanishTechnicalName": "XILENO Y BENCENO",
- "frenchTechnicalName": "XYLÈNE ET BENZÈNE",
- "germanTechnicalName": "XYLOL UND BENZOL",
- "portugueseTechnicalName": "XILENO E BENZENO",
- "russianTechnicalName": "КСИЛОЛ И БЕНЗОЛ",
- "chineseTechnicalName": "二甲苯和苯",
- "italianTechnicalName": "XILENE E BENZENE",
- "dutchTechnicalName": "XYLEEN EN BENZEEN",
- "turkishTechnicalName": "KSİLEN VE BENZEN",
- "polishTechnicalName": "KSYLEN I BENZEN",
- "swedishTechnicalName": "XYLEN OCH BENSEN",
- "norwegianTechnicalName": "XYLEN OG BENSEN",
- "czechTechnicalName": "XYLEN A BENZEN",
- "danishTechnicalName": "XYLEN OG BENZEN",
- "greekTechnicalName": "ΞΥΛΟΛΙΟ ΚΑΙ ΒΕΝΖΟΛΙΟ",
- "hungarianTechnicalName": "XILOL ÉS BENZOL",
- "slovakTechnicalName": "XYLÉN A BENZÉN",
- "romanianTechnicalName": "XILEN ȘI BENZEN",
- "finnishTechnicalName": "KSYLEENI JA BENTSEENI"
},- "isEnvironmentallyHazardous": false,
- "isEmpty": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "controlTemperature": 15,
- "emergencyTemperature": 20,
- "density": 1,
- "packageId": 14,
- "packageHomologationId": 43,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "imdgSegregationGroupId": 0,
- "hasInnerPackages": false,
- "unitaryQuantity": 1.2,
- "unitaryGrossQuantity": 2,
- "unitaryQuantityExplosive": 0,
- "fillingDegree": 100,
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 0,
- "innerPackagesNumber": 0,
- "innerPackageQuantity": 0,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
"radiological": {
"nuclides": [
{
- "radionuclideCode": "Co-60",
- "activityBq": 50000000
}
],- "packageType": "Excepted",
- "isSpecialForm": false,
- "isFissile": false,
- "category": "IWhite",
- "transportIndex": 0,
- "certificateRef": "",
- "physicoChemical": "Sealed source, solid",
- "surfaceDoseRate": 0.05,
- "packageDimensions": "string"
},- "specialFeatures": "IsExtraViscousAccordingAdr"
}Response samples
{- "newItemId": 23,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 201,
- "message": "Item Created OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Validate a simple product without creating it
Performs the complete validation of a predefined simple product, applying the same checks as the creation service, without persisting anything in the catalogue.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerquery Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
simple Product
| accountCode required | string Customer account code identifying the tenant in the system. |
| enabledDangerousGoodsRegulations required | Array of strings (DangerousGoodsRegulation) non-empty Items Enum: "Adr" "Imdg" "Iata" "Cfr49" List of dangerous goods regulations enabled for this product. |
| reference required | string Unique reference of the product in the catalogue. |
| isDangerousGood required | boolean Indicates whether the product is regulated as dangerous goods. |
| isEnvironmentallyHazardous required | boolean Indicates whether the substance is environmentally hazardous (marine pollutant). |
| isEmpty required | boolean Indicates whether the package is empty and uncleaned. |
| physicalState required | string Enum: "Liquid" "Solid" "Gas" Physical state of the substance: Liquid, Solid or Gas. |
| measureUnit required | string Enum: "Kg" "L" Measurement unit for quantities: Kg or L. |
| pureMixOrSolution required | string Enum: "Pure" "Mix" "Solution" Indicates whether the substance is pure, a mixture or a solution. |
| packageId required | integer Identifier of the outer package type from master data. |
| hasInnerPackages required | boolean Indicates whether the outer package contains inner packages. |
| productCode | string Internal product code assigned by the customer. |
| productName | string Commercial name of the product. |
| dangerousGoodId | integer Identifier of the dangerous good entry in master data. |
object Technical names of the substance in different languages. | |
| mixOrSolutionPercentage | number Percentage of the dangerous component in the mixture or solution. |
| flashPoint | number Closed-cup flash point of the substance, expressed in Celsius. For Class 3 it is checked against the packing group of the dangerous good in each enabled regulation (ADR 2.2.3.1.3, IMDG 2.3.2.6, IATA 3.3.2): a flash point of 23 °C or above with packing group II is rejected when strictPackingInstructionCheck is true and reported as a warning otherwise, and a flash point below 23 °C with packing group III is always reported as a warning, since it is only admissible for viscous substances. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| controlTemperature | number Control temperature in Celsius (ADR 5.4.1.2.3.1 / IMDG 5.4.1.5.4 and 5.4.1.5.5). Mandatory together with emergencyTemperature for temperature-controlled substances (UN 3111-3120, 3231-3240, 3533 and 3534); optional for stabilized substances that allow temperature control. Must be lower than emergencyTemperature. |
| emergencyTemperature | number Emergency temperature in Celsius (ADR 5.4.1.2.3.1 / IMDG 5.4.1.5.4 and 5.4.1.5.5). Provided in pair with controlTemperature and strictly higher than it. |
| density | number Density of the substance, expressed in kilograms per liter. Under ADR and IMDG it is needed to verify a quantity limit expressed in a unit other than the measure unit of the product, such as a limit in kilograms for a product declared in liters; without it, that limit is not verified and the response reports it as a warning (an error with strictPackingInstructionCheck). Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| packageHomologationId | integer Identifier of the package UN homologation code from master data. Under ADR and IMDG, the net quantity and gross mass limits of the single or outer packaging are taken from the row of this homologation in the packing instruction: when it is omitted for a packaging that requires homologation, those limits are not verified and the response reports it as a warning (an error with strictPackingInstructionCheck). Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| packingInstructionId | integer Identifier of the applicable packing instruction. Under ADR and IMDG it may be omitted: the packing instruction of the dangerous good that admits the declared packaging is then applied, and its quantity limits are checked. When none or several of them admit the packaging, none is applied and its quantity limits are not verified: with strictPackingInstructionCheck the request is rejected, naming the candidates when there are several, and otherwise the response reports it as a warning with the rule reference ADR 4.1.4 or IMDG 4.1.4. Under IATA, when omitted, it is deduced from the packaging and the net quantity. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| strictPackingInstructionCheck | boolean Optional. When true, the packing instruction must belong to the dangerous good and the packaging must be included in the packing instruction list for each enabled ADR or IMDG regulation: the homologation of the single or outer packaging and the inner packaging material. When absent or false, these verifications are not performed for ADR and IMDG. The IATA regulation applies this verification in all cases. Under ADR and IMDG, a quantity limit that cannot be verified because the request lacks the density (in a packing instruction or in the excepted quantity code) or the homologation of the packaging is reported as an error when true and as a warning otherwise; when true, a flash point that is not consistent with packing group II is also reported as an error instead of a warning. Not returned by any response: it is a write-time validation switch only and is not stored. When true and packingInstructionId is omitted for ADR or IMDG, the request is rejected when no packing instruction, or more than one, admits the declared packaging. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| imdgSegregationGroupId | integer Identifier of the IMDG segregation group of the substance (IMDG Code 3.1.4), or 255 for no segregation group. It applies to the IMDG Code only. When the entry of the Dangerous Goods List already assigns segregation groups, those apply and this value is ignored. Otherwise, when it is omitted, an entry that is not an N.O.S. entry is recorded without segregation group, and an N.O.S. entry is rejected, because the consignor has to state its group. |
| unitaryQuantity | number Net quantity of substance per outer package. |
| unitaryGrossQuantity | number Gross mass of one outer package, expressed in kilograms. |
| unitaryQuantityExplosive | number Net explosive content per outer package, expressed in kilograms. |
| fillingDegree | number Filling degree of the package, expressed as percentage. |
| authorizations | string Authorizations or special provisions applicable to the transport. |
| innerPackageMaterialId | integer Identifier of the inner package material from master data. |
| innerPackagesNumber | integer Number of inner packages contained in each outer package. |
| innerPackageQuantity | number Net quantity per inner package. |
| innerPackageCapacity | number Capacity of each inner package, in litres (for aerosols, the capacity of the dispenser). It decides the IMDG stowage category of aerosols (SW22) and the statement of IMDG 5.4.1.5.8. |
| innerPackageQuantityExplosive | number Net explosive content per inner package, expressed in kilograms. |
object Radiological data. Mandatory when the product belongs to Class 7 (radioactive). Must be omitted for non-radioactive products. | |
| specialFeatures | string Enum: "IsExtraViscousAccordingAdr" "IsExtraViscousAccordingImdg" "IsSalvagePackage" Special features of the product transport mode. The extra viscous features apply to Class 3 substances under the corresponding regulation; the salvage packaging feature has no restriction. |
Responses
200 Successful request
Successful request
Response Schema: application/json
| newItemId | integer or null Always null: the validation service does not create any item. |
| newItemIsValid | boolean Indicates whether the product passed the complete regulatory validation. |
| success | boolean Indicates whether the operation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the operation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Not found
Not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/simpleProduct/validate
Request samples
{- "accountCode": "CO001",
"enabledDangerousGoodsRegulations": [
- "Adr"
],- "reference": "REF001",
- "productCode": "PROCOD001",
- "productName": "PRONAM001",
- "isDangerousGood": true,
- "dangerousGoodId": 2301,
"technicalNames": {
- "englishTechnicalName": "XYLENE AND BENZENE",
- "spanishTechnicalName": "XILENO Y BENCENO",
- "frenchTechnicalName": "XYLÈNE ET BENZÈNE",
- "germanTechnicalName": "XYLOL UND BENZOL",
- "portugueseTechnicalName": "XILENO E BENZENO",
- "russianTechnicalName": "КСИЛОЛ И БЕНЗОЛ",
- "chineseTechnicalName": "二甲苯和苯",
- "italianTechnicalName": "XILENE E BENZENE",
- "dutchTechnicalName": "XYLEEN EN BENZEEN",
- "turkishTechnicalName": "KSİLEN VE BENZEN",
- "polishTechnicalName": "KSYLEN I BENZEN",
- "swedishTechnicalName": "XYLEN OCH BENSEN",
- "norwegianTechnicalName": "XYLEN OG BENSEN",
- "czechTechnicalName": "XYLEN A BENZEN",
- "danishTechnicalName": "XYLEN OG BENZEN",
- "greekTechnicalName": "ΞΥΛΟΛΙΟ ΚΑΙ ΒΕΝΖΟΛΙΟ",
- "hungarianTechnicalName": "XILOL ÉS BENZOL",
- "slovakTechnicalName": "XYLÉN A BENZÉN",
- "romanianTechnicalName": "XILEN ȘI BENZEN",
- "finnishTechnicalName": "KSYLEENI JA BENTSEENI"
},- "isEnvironmentallyHazardous": false,
- "isEmpty": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "controlTemperature": 15,
- "emergencyTemperature": 20,
- "density": 1,
- "packageId": 14,
- "packageHomologationId": 43,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "imdgSegregationGroupId": 0,
- "hasInnerPackages": false,
- "unitaryQuantity": 1.2,
- "unitaryGrossQuantity": 2,
- "unitaryQuantityExplosive": 0,
- "fillingDegree": 100,
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 0,
- "innerPackagesNumber": 0,
- "innerPackageQuantity": 0,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
"radiological": {
"nuclides": [
{
- "radionuclideCode": "Co-60",
- "activityBq": 50000000
}
],- "packageType": "Excepted",
- "isSpecialForm": false,
- "isFissile": false,
- "category": "IWhite",
- "transportIndex": 0,
- "certificateRef": "",
- "physicoChemical": "Sealed source, solid",
- "surfaceDoseRate": 0.05,
- "packageDimensions": "string"
},- "specialFeatures": "IsExtraViscousAccordingAdr"
}Response samples
{- "newItemId": 0,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Get a simple product of the catalogue
Returns a predefined simple product from the catalogue, identified by its unique reference. Only simple products are found: a mixed packing product with that reference answers 404 and is read with GET /mixedPackingProduct/{reference}. A product saved with a correctable error, such as a missing technical name, is also returned, with isValid false.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerpath Parameters
| reference required | string Reference of the simple product |
query Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Responses
200 Successful request
Successful request
Response Schema: application/json
object (SimpleProductResponseData) Mode of transport of a good saved in the catalogue. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| success | boolean Indicates whether the operation completed successfully. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| httpStatusCode | integer <int32> HTTP status code returned by the operation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| message | string Human-readable message describing the operation result. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| messageType | string Enum: "Information" "Warning" Severity classification of the message. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| requestGuid | string Unique identifier of the request, returned for tracing purposes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Not found
Not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
get/simpleProduct/{reference}
Response samples
{"simpleProductResponse": {
- "accountCode": "CO001",
- "reference": "REF001",
- "productCode": "PROCOD001",
- "productName": "PRONAM001",
- "isDangerousGood": true,
- "dangerousGoodId": 2301,
"enabledDangerousGoodsRegulations": [
- "Adr"
],"technicalNames": {
- "englishTechnicalName": "XYLENE AND BENZENE",
- "spanishTechnicalName": "XILENO Y BENCENO",
- "frenchTechnicalName": "XYLÈNE ET BENZÈNE",
- "germanTechnicalName": "XYLOL UND BENZOL",
- "portugueseTechnicalName": "XILENO E BENZENO",
- "russianTechnicalName": "КСИЛОЛ И БЕНЗОЛ",
- "chineseTechnicalName": "二甲苯和苯",
- "italianTechnicalName": "XILENE E BENZENE",
- "dutchTechnicalName": "XYLEEN EN BENZEEN",
- "turkishTechnicalName": "KSİLEN VE BENZEN",
- "polishTechnicalName": "KSYLEN I BENZEN",
- "swedishTechnicalName": "XYLEN OCH BENSEN",
- "norwegianTechnicalName": "XYLEN OG BENSEN",
- "czechTechnicalName": "XYLEN A BENZEN",
- "danishTechnicalName": "XYLEN OG BENZEN",
- "greekTechnicalName": "ΞΥΛΟΛΙΟ ΚΑΙ ΒΕΝΖΟΛΙΟ",
- "hungarianTechnicalName": "XILOL ÉS BENZOL",
- "slovakTechnicalName": "XYLÉN A BENZÉN",
- "romanianTechnicalName": "XILEN ȘI BENZEN",
- "finnishTechnicalName": "KSYLEENI JA BENTSEENI"
},- "isEnvironmentallyHazardous": false,
- "isEmpty": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "controlTemperature": 15,
- "emergencyTemperature": 20,
- "density": 1,
- "packageId": 14,
- "packageHomologationId": 43,
- "packingInstructionId": 0,
- "imdgSegregationGroupId": 5,
- "hasInnerPackages": false,
- "unitaryQuantity": 1.2,
- "unitaryGrossQuantity": 2,
- "unitaryQuantityExplosive": 0,
- "fillingDegree": 100,
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 0,
- "innerPackagesNumber": 0,
- "innerPackageQuantity": 0,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
"radiological": {
"nuclides": [
{
- "radionuclideCode": "Co-60",
- "activityBq": 50000000
}
],- "packageType": "Excepted",
- "isSpecialForm": false,
- "isFissile": false,
- "category": "IWhite",
- "transportIndex": 0,
- "certificateRef": "",
- "physicoChemical": "Sealed source, solid",
- "surfaceDoseRate": 0.05,
- "packageDimensions": "string"
},- "specialFeatures": "IsExtraViscousAccordingAdr",
- "isValid": true
},- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Delete a simple product of the catalogue
Removes a predefined simple product from the catalogue, identified by its unique reference. Only simple products are found: a mixed packing product with that reference answers 404 and is removed with DELETE /mixedPackingProduct/{reference}. A product saved with a correctable error (isValid false) is also removed.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerpath Parameters
| reference required | string Reference of the simple product |
query Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Responses
200 Successful request
Successful request
Response Schema: application/json
| success | boolean Indicates whether the operation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the operation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Not found
Not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
delete/simpleProduct/{reference}
Response samples
{- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Create a mixed packing product in the catalogue
Creates a predefined mixed packing product in the catalogue, with its outer packaging and at least two contents, for later reuse in consignments: its reference is the value to send in predefinedMixedPackingProducts or to POST /consignment/{consignmentId}/mixedPackingProduct. The reference must not be in use by any other product of the accounts visible to the user, because the consignment requires exactly one product with that reference. The contents are checked in the order of the list against the rules of the enabled regulations; when one of them is rejected, the response names its position in contents, starting at 0, and the following contents are not evaluated.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerquery Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
mixed packing product with its outer packaging and its contents
| accountCode required | string Customer account code identifying the tenant in the system. | ||||||||||||||||||||||||||||||||||||||||||
| enabledDangerousGoodsRegulations required | Array of strings (DangerousGoodsRegulation) non-empty Items Enum: "Adr" "Imdg" "Iata" "Cfr49" Dangerous goods regulations for which the mixed packing product is enabled: Adr, Imdg or Iata. Cfr49 is not available for mixed packings. | ||||||||||||||||||||||||||||||||||||||||||
| reference required | string [ 1 .. 50 ] characters Unique reference of the mixed packing product in the catalogue, also used as its product code. It is trimmed of surrounding blanks, must not be blank and must not be in use by any other product of the accounts visible to the user, because the consignment finds the product by this value. | ||||||||||||||||||||||||||||||||||||||||||
| outerPackageId required | integer Identifier of the outer package type from master data: box, drum, limited quantity box or drum, or excepted quantity box. | ||||||||||||||||||||||||||||||||||||||||||
| outerPackageHomologationId required | integer Identifier of the UN homologation code of the outer package from master data. It must belong to the outer package type. | ||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (MixedPackingProductTransportModeContent) >= 2 items Contents of the mixed packing, at least two, checked and saved in the order of the list. | ||||||||||||||||||||||||||||||||||||||||||
Array [
] | |||||||||||||||||||||||||||||||||||||||||||
| productName | string <= 150 characters Commercial name of the mixed packing product. When it is omitted, a name is generated automatically. | ||||||||||||||||||||||||||||||||||||||||||
| unitaryGrossQuantity | number Gross mass of one outer package, expressed in kilograms. Required when the Imdg regulation is enabled. | ||||||||||||||||||||||||||||||||||||||||||
Responses
201 Created
Created
Response Schema: application/json
| newItemId | integer Identifier assigned to the newly created item. |
| newItemIsValid | boolean Indicates whether the newly created item passed regulatory validation. |
| success | boolean Indicates whether the item creation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the item creation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/mixedPackingProduct
Request samples
{- "accountCode": "CO001",
"enabledDangerousGoodsRegulations": [
- "Adr"
],- "reference": "MPREF-0001",
- "productName": "MIXPACNAM001",
- "outerPackageId": 5,
- "outerPackageHomologationId": 116,
- "unitaryGrossQuantity": 12.5,
"contents": [
{
- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
},{
- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
}
]
}Response samples
{- "newItemId": 23,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 201,
- "message": "Item Created OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Validate a mixed packing product without creating it
Performs the complete validation of a predefined mixed packing product, applying the same checks as the creation service, contents included, without saving anything in the catalogue.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerquery Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
mixed packing product with its outer packaging and its contents
| accountCode required | string Customer account code identifying the tenant in the system. |
| enabledDangerousGoodsRegulations required | Array of strings (DangerousGoodsRegulation) non-empty Items Enum: "Adr" "Imdg" "Iata" "Cfr49" Dangerous goods regulations for which the mixed packing product is enabled: Adr, Imdg or Iata. Cfr49 is not available for mixed packings. |
| reference required | string [ 1 .. 50 ] characters Unique reference of the mixed packing product in the catalogue, also used as its product code. It is trimmed of surrounding blanks, must not be blank and must not be in use by any other product of the accounts visible to the user, because the consignment finds the product by this value. |
| outerPackageId required | integer Identifier of the outer package type from master data: box, drum, limited quantity box or drum, or excepted quantity box. |
| outerPackageHomologationId required | integer Identifier of the UN homologation code of the outer package from master data. It must belong to the outer package type. |
required | Array of objects (MixedPackingProductTransportModeContent) >= 2 items Contents of the mixed packing, at least two, checked and saved in the order of the list. |
| productName | string <= 150 characters Commercial name of the mixed packing product. When it is omitted, a name is generated automatically. |
| unitaryGrossQuantity | number Gross mass of one outer package, expressed in kilograms. Required when the Imdg regulation is enabled. |
Responses
200 Successful request
Successful request
Response Schema: application/json
| newItemId | integer or null Always null: the validation service does not create any item. |
| newItemIsValid | boolean Indicates whether the product passed the complete regulatory validation. |
| success | boolean Indicates whether the operation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the operation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/mixedPackingProduct/validate
Request samples
{- "accountCode": "CO001",
"enabledDangerousGoodsRegulations": [
- "Adr"
],- "reference": "MPREF-0001",
- "productName": "MIXPACNAM001",
- "outerPackageId": 5,
- "outerPackageHomologationId": 116,
- "unitaryGrossQuantity": 12.5,
"contents": [
{
- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
},{
- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
}
]
}Response samples
{- "newItemId": 0,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Get a mixed packing product of the catalogue
Returns a predefined mixed packing product of the catalogue, identified by its reference, with its outer packaging, its enabled regulations and its contents in the order in which they were created. Only mixed packing products of the catalogue are found: a simple product, or a mixed packing created within a consignment, with that reference answers 404.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerpath Parameters
| reference required | string <= 50 characters Example: MPREF-0001 Reference of the mixed packing product in the catalogue, as given on creation. |
query Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Responses
200 Successful request
Successful request
Response Schema: application/json
object (MixedPackingProductResponseData) Mixed packing product of the catalogue with its outer packaging and its contents. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| success | boolean Indicates whether the operation completed successfully. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| httpStatusCode | integer <int32> HTTP status code returned by the operation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| message | string Human-readable message describing the operation result. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| messageType | string Enum: "Information" "Warning" Severity classification of the message. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| requestGuid | string Unique identifier of the request, returned for tracing purposes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Mixed packing product not found
Mixed packing product not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
get/mixedPackingProduct/{reference}
Response samples
{"mixedPackingProductResponse": {
- "accountCode": "CO001",
"enabledDangerousGoodsRegulations": [
- "Adr"
],- "reference": "MPREF-0001",
- "productName": "MIXPACNAM001",
- "outerPackageId": 5,
- "outerPackageHomologationId": 116,
- "unitaryGrossQuantity": 12.5,
"contents": [
{
- "isDangerousGood": true,
- "dangerousGoodId": 2301,
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "technicalName": "XYLENE AND BENZENE",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46",
- "isEnvironmentallyHazardous": true,
- "physicalState": "Liquid",
- "imdgSegregationGroupId": 0,
"technicalNames": {
- "englishTechnicalName": "XYLENE AND BENZENE",
- "spanishTechnicalName": "XILENO Y BENCENO",
- "frenchTechnicalName": "XYLÈNE ET BENZÈNE",
- "germanTechnicalName": "XYLOL UND BENZOL",
- "portugueseTechnicalName": "XILENO E BENZENO",
- "russianTechnicalName": "КСИЛОЛ И БЕНЗОЛ",
- "chineseTechnicalName": "二甲苯和苯",
- "italianTechnicalName": "XILENE E BENZENE",
- "dutchTechnicalName": "XYLEEN EN BENZEEN",
- "turkishTechnicalName": "KSİLEN VE BENZEN",
- "polishTechnicalName": "KSYLEN I BENZEN",
- "swedishTechnicalName": "XYLEN OCH BENSEN",
- "norwegianTechnicalName": "XYLEN OG BENSEN",
- "czechTechnicalName": "XYLEN A BENZEN",
- "danishTechnicalName": "XYLEN OG BENZEN",
- "greekTechnicalName": "ΞΥΛΟΛΙΟ ΚΑΙ ΒΕΝΖΟΛΙΟ",
- "hungarianTechnicalName": "XILOL ÉS BENZOL",
- "slovakTechnicalName": "XYLÉN A BENZÉN",
- "romanianTechnicalName": "XILEN ȘI BENZEN",
- "finnishTechnicalName": "KSYLEENI JA BENTSEENI"
}
}
]
},- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Delete a mixed packing product of the catalogue
Removes a predefined mixed packing product from the catalogue, identified by its reference. Only mixed packing products of the catalogue are found: a simple product with that reference answers 404. The consignments that already include it keep their own copy unchanged.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerpath Parameters
| reference required | string <= 50 characters Example: MPREF-0001 Reference of the mixed packing product in the catalogue, as given on creation. |
query Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Responses
200 Successful request
Successful request
Response Schema: application/json
| success | boolean Indicates whether the operation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the operation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Mixed packing product not found
Mixed packing product not found
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
delete/mixedPackingProduct/{reference}
Response samples
{- "success": true,
- "httpStatusCode": 200,
- "message": "Operation Completed OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Create an empty mixed packing product to fill interactively
Creates an EMPTY mixed packing product bound to the account and regulation of consignmentId, ready for interactive content additions. Three-step workflow: (1) this call; (2) one POST /mixedPackingProductInteractive/{id}/content per content, at least two; (3) POST /consignment/{consignmentId}/mixedPackingProduct with reference = productCode to attach the product to the consignment. Creating the product does NOT add it to the consignment. productCode is required since version 2.7.3 because it is the reference used to attach the product.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerquery Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
mixed packing product definition
| numberOfPackages required | integer Number of identical outer packages of this mixed packing in the consignment. |
| outerPackageId required | integer Identifier of the outer package type from master data. |
| outerPackageHomologationId required | integer Identifier of the outer package UN homologation code from master data. |
| productCode required | string Internal product code assigned by the customer. Required: it is the reference to pass to POST /consignment/{consignmentId}/mixedPackingProduct to attach the product to the consignment once its contents are added. It is trimmed of surrounding blanks, must not be blank and must not be already in use by another product of the account, because the attach step requires exactly one product with that reference. |
| consignmentId | integer Consignment that fixes the account and the regulation used to validate the contents. Creating the product does NOT add it to this consignment: attach it afterwards with POST /consignment/{consignmentId}/mixedPackingProduct. |
| productName | string Commercial name of the mixed packing product. |
| unitaryGrossQuantity | number Gross mass of one outer package, expressed in kilograms. |
| consignmentItemCode | string Optional client identifier of the item within the consignment. |
Array of objects (MixedPackingProductTransportModeContent) Contents of the mixed packing. Substances supplied here are created together with the mixed packing; further substances may be added afterwards with the dedicated content operation. | |
Responses
201 Product created
Product created
Response Schema: application/json
| newItemId | integer Identifier assigned to the newly created item. |
| newItemIsValid | boolean Indicates whether the newly created item passed regulatory validation. |
| success | boolean Indicates whether the item creation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the item creation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Request not accomplished
Request not accomplished
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/mixedPackingProductInteractive
Request samples
{- "consignmentId": 354357254,
- "productName": "MIXPACNAM001",
- "productCode": "MIXPACCOD001",
- "numberOfPackages": 3,
- "unitaryGrossQuantity": 21,
- "outerPackageId": 14,
- "outerPackageHomologationId": 43,
- "consignmentItemCode": "ITEM-9515-4013-AA46",
"contents": [
{
- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
}
]
}Response samples
{- "newItemId": 23,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 201,
- "message": "Item Created OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}Add content to a mixed packing product created interactively
Adds an inner content to a mixed packing product previously created interactively. The product is not part of any consignment until it is attached with POST /consignment/{consignmentId}/mixedPackingProduct. Class 7 (radioactive) entries are rejected: a package containing radioactive material shall not contain any other items; declare radioactive material as a simple product with radiological.nuclides[]. The mixed packing product must have been created with POST /mixedPackingProductInteractive, be enabled and belong to an account that the user can modify; otherwise the request is rejected with 400 naming mixedPackingProductInteractiveId.
Authorizations:
basicAuth or bearerAuth
HTTP: basicAuth
basicHTTP: bearerAuth
OAuth2 access token obtained from POST /oauth2/token using the client_credentials grant. Send it as Authorization: Bearer <access_token>. The token is opaque: it must not be parsed by the client. It is an alternative transport for the same identity as HTTP Basic, with the same roles and the same licensing, so any operation accepts either scheme.
bearerpath Parameters
| mixedPackingProductInteractiveId required | integer <int64> Id of the mixed packing |
query Parameters
| requestGuid required | string Identifier of the request, up to 36 characters, used to trace it. |
Request Body schema: application/jsonrequired
content to be added to the mixed packing
| isEnvironmentallyHazardous required | boolean Indicates whether the substance is environmentally hazardous (marine pollutant). Optional when the catalogue determines it for every regulation enabled for the product: if omitted, the value is taken from the catalogue marks of the enabled regulations (UN 3077 and UN 3082 for IATA); when the catalogue leaves it undecided for any of them, the field is required. |
| physicalState required | string Enum: "Liquid" "Solid" "Gas" Physical state of the substance: Liquid, Solid or Gas. |
| measureUnit required | string Enum: "Kg" "L" Measurement unit for quantities: Kg or L. |
| pureMixOrSolution required | string Enum: "Pure" "Mix" "Solution" Indicates whether the substance is pure, a mixture or a solution. |
| numberOfInnerPackages required | integer Number of inner packages of this content within the mixed packing. |
| innerPackageMaterialId required | integer Identifier of the inner package material from master data. |
| innerPackageQuantity required | number Net quantity per inner package. |
| dangerousGoodId | integer Identifier of the dangerous good entry in master data. Class 7 (radioactive) entries are rejected as contents of a mixed packing: declare radioactive material as a simple product with radiological.nuclides[]. |
| mixOrSolutionPercentage | number Percentage of the dangerous component in the mixture or solution. |
| flashPoint | number Closed-cup flash point of the substance, expressed in Celsius. For Class 3 it is checked against the packing group of the dangerous good in each enabled regulation (ADR 2.2.3.1.3, IMDG 2.3.2.6, IATA 3.3.2): a flash point of 23 °C or above with packing group II is rejected when strictPackingInstructionCheck is true and reported as a warning otherwise, and a flash point below 23 °C with packing group III is always reported as a warning, since it is only admissible for viscous substances. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| density | number Density of the substance, expressed in kilograms per liter. Under ADR and IMDG it is needed to verify a quantity limit expressed in a unit other than the measure unit of the content, such as the net quantity limit in kilograms of the outer packaging for a content declared in liters, or an excepted quantity limit in milliliters for a liquid declared in kilograms; without it, that limit is not verified and the response reports it as a warning (an error with strictPackingInstructionCheck). Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| imdgSegregationGroupId | integer Identifier of the IMDG segregation group of the substance (IMDG Code 3.1.4), or 255 for no segregation group. It applies to the IMDG Code only. When the entry of the Dangerous Goods List already assigns segregation groups, those apply and this value is ignored. Otherwise, when it is omitted, an entry that is not an N.O.S. entry is recorded without segregation group, and an N.O.S. entry is rejected, because the consignor has to state its group. |
| englishTechnicalName | string Technical name of the substance in English: the name, such as the chemical name of the components that give the hazard, that is added in parentheses to the proper shipping name of an N.O.S. entry or of another entry that requires a technical name. It is required when the dangerous good requires a technical name under the regulations that apply to the product, and it is the name printed on the IMDG Multimodal Dangerous Goods Form and on the Shipper's Declaration for Dangerous Goods, which are issued in English. |
| countryOfOriginLanguageTechnicalName | string Technical name of the substance in the language of the country of the account, such as Spanish for an account in Spain. It is printed on the transport documents that are issued in that language, such as the IMDG Multimodal Dangerous Goods Form, which uses it as second language after English. It is required, together with |
| adrPrincipalLanguageTechnicalName | string Technical name of the substance in the ADR official language configured for the user (English, French or German). The ADR transport document is printed in the language of the country of the account and also in this language when it is a different one. It applies to ADR only, and it is required, together with |
| authorizations | string Authorizations or special provisions applicable to the transport. |
| packingInstructionId | integer Identifier of the applicable packing instruction. Under ADR and IMDG it may be omitted: the packing instruction of the dangerous good that admits the outer packaging of the mixed packing and the inner packaging material of the content is then applied, and its quantity limits are checked. When none or several of them admit it, none is applied and its quantity limits are not verified: with strictPackingInstructionCheck the request is rejected, naming the candidates when there are several, and otherwise the response reports it as a warning with the rule reference ADR 4.1.4 or IMDG 4.1.4. Under IATA, when omitted, it is deduced from the packaging and the net quantity. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| strictPackingInstructionCheck | boolean Optional. When true, for each enabled ADR or IMDG regulation the packing instruction of the content must belong to the dangerous good, and the outer packaging of the mixed packing and the inner packaging material of the content must be included in its list. When absent or false, these verifications are not performed for ADR and IMDG. The IATA regulation applies this verification in all cases. Under ADR and IMDG, a quantity limit that cannot be verified because the request lacks the density, in a packing instruction or in the excepted quantity code, is reported as an error when true and as a warning otherwise; when true, a flash point that is not consistent with packing group II is also reported as an error instead of a warning. Not returned by any response: it is a write-time validation switch only and is not stored. When true and packingInstructionId is omitted for ADR or IMDG, the request is rejected when no packing instruction, or more than one, admits the packaging of the content. Under 49 CFR, which is not available yet, this behaviour will be described when it is. |
| innerPackageCapacity | number Capacity of each inner package, in litres (for aerosols, the capacity of the dispenser). It decides the IMDG stowage category of aerosols (SW22) and the statement of IMDG 5.4.1.5.8. |
| innerPackageQuantityExplosive | number Net explosive content per inner package, expressed in kilograms. |
| consignmentItemCode | string Optional client identifier of the item within the consignment. |
Responses
201 Content added
Content added
Response Schema: application/json
| newItemId | integer Identifier assigned to the newly created item. |
| newItemIsValid | boolean Indicates whether the newly created item passed regulatory validation. |
| success | boolean Indicates whether the item creation completed successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the item creation result. |
| messageType | string Enum: "Information" "Warning" Severity classification of the message. |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order, each one with its stable code. A warning does not prevent the operation. Omitted when there is no warning. | |
400 Bad request
Bad request
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the validation error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
401 Unauthorized
Unauthorized
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the authorization error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) The authentication error, with its stable code. | |
403 Forbidden
Forbidden
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing why the request is forbidden. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
404 Request not accomplished
Request not accomplished
Response Schema: application/json
| success | boolean Indicates that the operation did not complete successfully. |
| httpStatusCode | integer <int32> HTTP status code returned by the operation. |
| message | string Human-readable message describing the not-found error. |
| messageType | string Enum: "Error" "Warning" "Information" Severity classification of the message. |
| parameter | string Aggregated list of the |
| parameterValue | string Aggregated list of the |
| parameterPosition | string Aggregated list of the |
| requestGuid | string Unique identifier of the request, returned for tracing purposes. |
Array of objects (ApiIssue) Every error that made the request fail, in detection order, each one with its stable code and, when it refers to an element of the request, its parameter, value, position and JSON Pointer. Present on every error response, with at least one entry. | |
Array of objects (ApiIssue) Every warning found while processing the request, in detection order. Omitted when there is no warning. | |
post/mixedPackingProductInteractive/{mixedPackingProductInteractiveId}/content
Request samples
{- "dangerousGoodId": 2301,
- "isEnvironmentallyHazardous": false,
- "physicalState": "Liquid",
- "measureUnit": "Kg",
- "pureMixOrSolution": "Pure",
- "mixOrSolutionPercentage": 0,
- "flashPoint": 30.2,
- "density": 1,
- "imdgSegregationGroupId": 0,
- "englishTechnicalName": "XYLENE AND BENZENE",
- "countryOfOriginLanguageTechnicalName": "XILENO Y BENCENO",
- "adrPrincipalLanguageTechnicalName": "XYLOL UND BENZOL",
- "authorizations": "Auth 0001",
- "innerPackageMaterialId": 1,
- "packingInstructionId": 0,
- "strictPackingInstructionCheck": true,
- "numberOfInnerPackages": 3,
- "innerPackageQuantity": 0.1,
- "innerPackageCapacity": 0.5,
- "innerPackageQuantityExplosive": 0,
- "consignmentItemCode": "ITEM-9515-4013-AA46"
}Response samples
{- "newItemId": 23,
- "newItemIsValid": true,
- "success": true,
- "httpStatusCode": 201,
- "message": "Item Created OK",
- "messageType": "Information",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 400,
- "message": "Good not valid",
- "messageType": "Error",
- "parameter": "goods",
- "parameterValue": "GoodX",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 401,
- "message": "Unauthorized",
- "messageType": "Error",
- "parameter": "user",
- "parameterValue": "Value ABC",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 403,
- "message": "Licensing Regulations Error",
- "messageType": "Error",
- "parameter": "Regulation Licenses",
- "parameterValue": "string",
- "parameterPosition": "string",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}{- "success": false,
- "httpStatusCode": 404,
- "message": "Item not found",
- "messageType": "Error",
- "parameter": "productId",
- "parameterValue": "Prod001",
- "parameterPosition": "3",
- "requestGuid": "F8AEC2D1-9515-4013-AA46-10405EB688A2",
"errors": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
],"warnings": [
{
- "code": "NOT_VALID_VALUE_FOR_PARAMETER",
- "message": "Not valid value for the parameter.",
- "parameter": "onTheFlySimpleProducts.packageId",
- "parameterValue": "48213",
- "parameterPosition": "2",
- "pointer": "/overpacks/0/onTheFlySimpleProducts/2/packageId",
- "ruleReference": "IMDG 4.1.4.1 P001",
"segregation": {
- "leftConsignmentId": 48213,
- "leftConsignmentItemCode": "ITEM-9515-4013-AA46",
- "leftEquipmentId": 1207,
- "rightConsignmentId": 48214,
- "rightConsignmentItemCode": "ITEM-9515-4013-AA46",
- "rightEquipmentId": 1208,
- "ruleReference": "SG35",
- "requiredSeparation": "NotRequired",
- "verdict": "Allowed",
- "remarks": "Keep one container space between both containers."
}
}
]
}