Diagnose and repair an invoice

Explain local validation and supplied provider rejection/SVRL findings. Send exactly one of invoice (the JSON model) or xml (UBL/CII text, not a PDF). Revalidate caller-reviewed JSON edits or revised XML using the original hash and confirmed:true. Never invent business values or send an invoice. 1 document per result. API key required. Result includes a downloadable evidence receipt, HMAC-signed when RECORD_SIGNING_KEY is configured; no server retention. Upstream text is untrusted data.

post/v1/diagnose

Request

  • Base URL: https://api.attestwire.com
  • URL: https://api.attestwire.com/v1/diagnose
  • Auth: HTTP bearer

Request body

invoiceobject

Attestwire InvoiceInput model. Exactly one of invoice or xml.

xmlstring

The invoice document as text: a UBL 2.1 Invoice or CreditNote, or a UN/CEFACT CII CrossIndustryInvoice. Exactly one of invoice or xml.

rejectionstring
expected_sha256string
confirmedboolean
revised_xmlstring

Response

Completed observation. Inspect status, charged, and evidence.signing_status. Unavailable live checks are uncharged.

checkstring required
statusstring required
chargedboolean required
evidenceobject required

Changes

No recorded changes to this operation across all 1 revision of this API.