cfdibills.verifiers.verify
- cfdibills.verifiers.verify(cfdi: Optional[Union[cfdibills.schemas.cfdi33.CFDI33, cfdibills.schemas.cfdi40.CFDI40]] = None, uuid: Optional[str] = None, rfc_emisor: Optional[str] = None, rfc_receptor: Optional[str] = None, total_facturado: Optional[float] = None) cfdibills.api.SATConsultaResponse[source]
Verifies a bill’s status with the SAT. The bill can be given as a
CFDI33or as its details (uuid, rfc_emisor, rfc_receptor, total_facturado).When the
CFDI33is present, no other detail is used to query the SAT’s web service. If theCFDI33is not present, then all the other details must be provided.- Parameters
cfdi (CFDI33) – CFDI v3.3 object to check. Details are overriden by this argument when passed.
uuid (str) – UUID of the CFDI to check (if details are given).
rfc_emisor (str) – RFC of the issuer of the CFDI to check (if details are given).
rfc_receptor (str) – RFC of the recipient of the CFDI to check (if details are given).
total_facturado (str) – Total amount of money billed in the CFDI to check (if details are given).
- Returns
Status of the CFDI as verified by SAT.
- Return type
- Raises
ValueError – When no CFDI is provided or there are missing details.