Invalid document structure ("schedule" is not a permitted key., [] is not an object., "instalments" wasn't supplied.)