Data Mart API - 2026-07-20
Location.paymentBy is now nullable
The deprecated paymentBy field on the Location type has changed from Int! to Int:
paymentBy: Int- returns the raw ERP payment by code (0= Due Date,1= Discount Date), andnullwhen the ERP holds no value.
The underlying ERP column is nullable, so the previous non-null declaration could not be guaranteed. In practice existing locations all carry a value; clients that read the deprecated paymentBy field should nevertheless handle null. The recommended field remains paymentByType: String, which is unchanged and returns "Due Date", "Discount Date", or null when the ERP holds no value or a value outside the known set.
The descriptions of both paymentBy and paymentByType have been updated accordingly.