Could you please clarify why, during the onboarding test, an Error 400 shown in the attached image appeared
**if the invoice is standard:**after hashing the invoice hash using: fatoora -generatehash -invoice [name.xml], you should edit it manually in the first digestvalue tag which represents the invoice hash in the XML
if the invoice is simplified : sign the invoice using SDK through this command : fatoora -sign -invoice [name.xml]
this step will edit the invoice hash inside the XML automatically & will generate a new invoice with the suffix [_signed]
also you can use this command to generate the JSON API request to prevent the dismatch between the invoice hash in the API’s body request & xml :
fatoora -InvoiceRequest -Invoice [name.xml]
1- third error: VAT number in the CSID (Certificate) should be matched with the VAT number in the invoice of the seller (Company_ID)
2- first error: hash the invoice using SDK through this command : fatoora -generatehash -invoice [name.xml]
3-Second erro:r Clearance API only allow you to send standard invoices, please check the invoicetypecode tag inside the xml and make it start with 01
Note: if you want to send simplified invoices, you must use the reporting API & sign invoices from your end, as signing invoices only required for simplified invoices.