The specification does not specify array indexing in any way, shape, or form.
The vendor detail, date, and order ID number are in expected places in the array, but the array indexes of the subtotal and subsequent lines depend on the number of items detailed.