How to return payment_schedule field from Purchase Invoice

When creating a Purchase Invoice a user can pass the payment_schedule, but how does one get back this field when using filters and fields parameters.

NB: I am specifically asking how to do this using filters so that all purchase invoices come back with their respective payment_schedules

I keep getting the error: pymysql.err.OperationalError: (1054, "Unknown column ‘payment_schedule’ in ‘field list’")