Correct New Sales
Through this entry point, SDH will receive the corrective creation of an invoice for which a rejection had previously been received from the administration.
It includes the following steps:
- Validation of the relevant administration rules.
- For TicketBAI: sending the Zuzendu correction to the administration and processing the response.
For Veri*Factu: invoice chaining and deferred delivery.
Call
Depending on the destination regulation of the invoice, the required fields of the SalesInvoice class must be completed.
Each regulation specifies the required fields for a correct format conversion.
- See required fields for Veri*Factu.
curl -X POST https://apitest.solmicrosdh.com/invoicing/correctnewsales \
--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",
...
}'
Result
Veri*Factu
For this regulation, the invoice is left pending delivery to the administration service, and SDH will deliver it later.
The result will be a VeriFactuResult object containing the following information:
SalesInvoiceId: Unique identifier of the invoice in SDH’s database.Hash: Invoice fingerprint.DateAndTime: Issue date of the invoice.PreviousSeries: Series of the invoice used for chaining.PreviousNumber: Number of the invoice used for chaining.PreviousDateAndTime: Date of the invoice used for chaining.DestinationStateDateAndTime: The date on which it was processed in SDH.- For the rest of the fields, see the result documentation.