BR-KSA-F-05: Prepayment issue time must be a valid hh:mm:ss time

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Warning: accepted with a warningConditional, see belowFields: KSA-29

Applies to cac:InvoiceLine/cac:DocumentReference/cbc:IssueTime (KSA-29, prepayment issue time). The executed check only requires a value castable as xs:time (e.g. 19:20:30 or 19:20:30Z); the published test additionally requires exactly 8 characters, which would reject the hh:mm:ssZ form the official text allows.

How to fix it

Write the time as hh:mm:ss, e.g. <cbc:IssueTime>19:20:30</cbc:IssueTime>.

ZATCA's official text

[BR-KSA-F-05]-Prepayment Issue Time (KSA-29) must be in the format: hh:mm:ss for time expressed in local time or hh:mm:ssZ for time expressed in UTC.(eg 19:20:30)
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

not(((string(.) castable as xs:time)))

Related rules

Validate your invoice against ZATCA's rules

Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.

Validate an invoice or try Matheel