Endpoint to be used to run the Production Approval Tests for one or more Waste Tracking IDs.
Changed onSubmit one or more Production Approval Test scenarios for validation.<br> Each scenario is validated independently. The response contains a result for every scenario submitted.<br> A 200 OK response means that the request was processed. It does not mean that every scenario passed. Check the status and message returned for each result.<br> The same Waste Tracking ID may be used for different scenario IDs, but each scenario ID may appear only once in a request.<br> Rejection scenarios C01 and H02 cannot be submitted through this endpoint because they do not generate Waste Tracking IDs.<br> This endpoint is available in the External Test environment only. It is not available in the Production environment.
Request
- Base URLhttps://waste-tracking.integration.api.defra.gov.uk
- URLhttps://waste-tracking.integration.api.defra.gov.uk/production-approval-tests
- AuthHTTP bearer
Request body
Example request
[
{
"scenarioId": "R01",
"wasteTrackingId": "25HRA0B2"
}
]Response
The Production Approval Test scenarios were processed successfully.
A result is returned for every scenario submitted. Review the status and message in each result to determine whether an individual scenario passed or failed.
Example response
{
"submissionId": "6a75b4bbe8624f6a79240d78",
"results": [
{
"scenarioId": "R01",
"wasteTrackingId": "26BHUT6U",
"status": "Pass",
"message": ""
},
{
"scenarioId": "R02",
"wasteTrackingId": "26BHUT6U",
"status": "Fail",
"message": "Expected more than 1 waste item for R02, found 1"
}
]
}Changes
- info
endpoint added
- info