API Referencehmrc
Discard
RESTRICTED: requires the hmrc:read scope (hmrc:write for state-changing operations), granted after manual approval. Self Assessment operations are answered from records held in ac-co.ai and make no call to HMRC.
Requires hmrc:write. Deletes the unsent Basic PAYE Tools records of a preparation. Sends nothing to HMRC.
AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/hmrc/payrollFiling/discard" \ -H "Content-Type: application/json" \ -d '{ "body": { "preparationId": "78a1fbc3-56d1-4ef3-a425-e2e76d2b99bc" } }'{ "preparationId": "78a1fbc3-56d1-4ef3-a425-e2e76d2b99bc", "status": "discarded", "discardedSubmissionIds": [ -9007199254740991 ], "alreadyGoneSubmissionIds": [ -9007199254740991 ]}