---
title: "Endpoint to be used to run the Production Approval Tests for one or more Waste Tracking IDs."
method: POST
path: "/production-approval-tests"
tags: ["production-approval-tests"]
---

# Endpoint to be used to run the Production Approval Tests for one or more Waste Tracking IDs.

`POST /production-approval-tests`

## Request

- Base URL: `https://waste-tracking.integration.api.defra.gov.uk`
- URL: `https://waste-tracking.integration.api.defra.gov.uk/production-approval-tests`
- Auth: HTTP bearer

Submit 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 body

- PatScenario[]
  - `scenarioId` 'R01' | 'R02' | 'R03' | 'R04' | 'R05' | 'R07' | 'C02' | 'B01' | 'P01' | 'H01' | 'H03' | 'X01', required: The identifier of the Production Approval Test scenario being submitted for validation.<br> The scenario identifier is included in the corresponding result returned by the API.<br> <p><font color="green"><b>Business Rules:</b></font></p> <ul> <li>The value must be one of the supported PAT scenario identifiers.</li> <li>Each <b>scenarioId</b> must appear only once within a request.</li> <li>Rejection scenarios C01 and H02 cannot be submitted because they do not generate a Waste Tracking ID.</li> </ul>
  - `wasteTrackingId` string, required: The waste tracking ID associated with the scenario. <p><font color="green"><b>Business Rules:</b></font></p> <ul> <li>The Waste Tracking ID must be supplied as a string.</li> <li>Only one Waste Tracking ID can be supplied for each scenario.</li> <li>The same Waste Tracking ID may be submitted for different scenarios.</li> <li>The Waste Tracking ID must exist and be available to the software provider submitting the request.</li> </ul>

## Response `200`

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.

- PatSubmissionResponse
  - `submissionId` string: A unique identifier for this PAT validation submission.<br> Treat this value as an opaque identifier. Do not attempt to derive information from its format.
  - `results` PatResult[]: The validation results for the submitted PAT scenarios.<br> One result is returned for each scenario in the request. Check the`status` and `message` for every result.
    - `scenarioId` 'R01' | 'R02' | 'R03' | 'R04' | 'R05' | 'R07' | 'C02' | 'B01' | 'P01' | 'H01' | 'H03' | 'X01': The identifier of the Production Approval Test scenario that was validated.
    - `wasteTrackingId` string: The Waste Tracking ID submitted for the Production Approval Test scenario.
    - `status` 'Pass' | 'Fail': The result of validating the receipt against the requirements of the PAT scenario.<br> - `Pass`: The receipt satisfies the scenario requirements.<br> - `Fail`: The receipt does not satisfy one or more scenario requirements.<br> Values are case-sensitive.
    - `message` string: Additional information about the validation result.<br> For a failed scenario, the message explains why the receipt did not satisfy the scenario requirements.<br> The value is an empty string when the scenario passes.

## Other responses

- `400`: The Production Approval Test request failed validation.
- `401`: Unauthorized. Authentication is required or the access token is missing, invalid or expired.

## Changes

- **2026-10-09** `f9a988559589`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/defra/apis/digital-waste-tracking-receipt-api/changes/production-approval-tests/post.md)

---

[API](https://skmtc.dev/defra/apis/digital-waste-tracking-receipt-api.md) - [All operations](https://skmtc.dev/defra/apis/digital-waste-tracking-receipt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/defra/apis/digital-waste-tracking-receipt-api/revisions/f6ed386177e0?raw)
