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 '{
  "invoiceId": "<string>"
}'
{
  "documentId": "<string>",
  "status": "passed",
  "extractedData": {
    "invoiceId": "<string>",
    "supplierName": "<string>",
    "supplierAccountNumber": "<string>",
    "supplyType": "electricity",
    "invoiceNumber": "<string>",
    "customerName": "<string>",
    "mpanMprn": "<string>",
    "invoiceDate": "2023-12-25",
    "dueDate": "2023-12-25",
    "chargeStartDate": "2023-12-25",
    "chargeEndDate": "2023-12-25",
    "meterSerialNumber": "<string>",
    "siteAddress": "<string>",
    "paymentMethod": "<string>",
    "standingCharge": 123,
    "standingChargeType": "<string>",
    "cclRate": 123,
    "vatRate": 123,
    "readFromDate": "2023-12-25",
    "readFromType": "actual",
    "readToDate": "2023-12-25",
    "readToType": "actual",
    "consumption": 123,
    "dayConsumption": 123,
    "nightConsumption": 123,
    "unitRate": 123,
    "dayUnitRate": 123,
    "nightUnitRate": 123,
    "correctionFactor": 123,
    "calorificValue": 123,
    "totalUnitCharge": 123,
    "totalStandingCharge": 123,
    "capacityCharge": 123,
    "amountDueNetOfVat": 123,
    "vat": 123,
    "totalAmount": 123,
    "confidence": 123
  },
  "errors": [
    {
      "type": "consumptionMismatch",
      "description": "<string>",
      "expected": "<string>",
      "actual": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token obtained from /v1/requestToken endpoint

Body

application/json
invoiceId
string
required

Unique invoice identifier returned from the parseInvoice endpoint

Response

200
application/json
Validation completed
documentId
string
required

Unique identifier for the validated document in the system

status
enum<string>
required

Validation status

Available options:
passed,
failed,
pending
extractedData
object
required
errors
object[]