Endpoint to verify if Invoice has been cleared

Is there any endpoint to verify if Invoice has been cleared using uuid?
I searched in chatgpt and it sent this link:
https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance/invoices/{uuid}
but response is 404

there is not . but you can try clearing it again . the api will return duplicate error if already cleared

How does the ZATCA determine that an invoice is duplicated — based on the UUID or the invoice hash?

based on the the invoice hash .