curl --request POST \
--url https://api.voltview.co.uk/v1/billValidation/validateInvoice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filePath": "accounts/123456789/invoices/INV2024001.pdf"
}
'{
"filePath": "accounts/123456789/invoices/INV2024001.pdf",
"status": "passed",
"errors": []
}Bill Validation
Validate invoice
Validates an invoice against contract data and optional user-provided consumption data. Performs comprehensive validation including consumption matching, meter reading verification, and check against contract.
Validation Rules:
- Meter Reading Logic: Current reading must be ≥ previous reading
- Contract Matching: Invoice date must fall within contract period
- MPAN Matching: At least one MPAN must match between invoice and contract
Data Sources:
- Manual uploads from parseInvoice endpoint
- Invoices from Supplier Integration system
- User-provided consumption and meter reading data
POST
/
v1
/
billValidation
/
validateInvoice
curl --request POST \
--url https://api.voltview.co.uk/v1/billValidation/validateInvoice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filePath": "accounts/123456789/invoices/INV2024001.pdf"
}
'{
"filePath": "accounts/123456789/invoices/INV2024001.pdf",
"status": "passed",
"errors": []
}Optional
userConsumptionData can include active kWh, reactive kvarh, and apparent kVAh. If a register index and billed kWh disagree by a round factor, check the billing multiplier before treating it as a parse error.Authorizations
Body
application/json
Response
Validation completed - may return passed, failed, or pending status