Check New Sales
Through this entry point, SDH will receive a new invoice for creation in order to validate the administration’s validation rules prior to the invoice being registered.
This entry point can be used to verify that the invoice data is valid before performing the invoice chaining and sending it to the administration.
Call
Depending on the destination regulation of the invoice, the required fields of the SalesInvoice class must be filled in.
Each regulation specifies which fields are required for a correct conversion of the format.
- See required fields for Veri*Factu.
curl -X POST https://apitest.solmicrosdh.com/invoicing/checknewsales \
--cert /ruta/al/certificado.pfx \
--cert-type P12 \
--pass mypfxpassword \
-H "Content-Type: application/json" \
-H "CompanyId: guid-unico-empresa" \
-H "InstallationId: guid-unico-instalacion" \
-d '{
"series": "string",
"number": "string",
"dateAndTime": "datetime",
...
}'