Sales Returns For the the invoice that being issued to Zatca?

how should i make it ?
is it has a specific API ?
what is the steps to make sure it done ?
what is the response of the API?

The credit note (invoice type 381) will use the same reporting API or clearance API. First, please specify how you currently send your invoices.

@khalifullah
i manage to integrate zatca phase to in my system generate the invoice in xml and send it
i need to know the xml invoice for return and what is the response after send it