Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Due Date for Sales Invoices must be between 1 and 31 when set to the following

Started by Michael Sickler -   in API Endpoints

I'm trying to create an invoice for a UK customer and from June 1st began getting this error:

Due Date for Sales Invoices must be between 1 and 31 when set to the following (or current) month.

The Contact record looks like this:
<Contact>
<ContactID>{guid}</ContactID>
<ContactStatus>ACTIVE</ContactStatus>
<Name>QC Sales</Name>
<Addresses>
<Address>
<AddressType>STREET</AddressType>
</Address>
<Address>
<AddressType>POBOX</AddressType>
</Address>
</Addresses>
<Phones>
<Phone>
<PhoneType>DDI</PhoneType>
</Phone>
<Phone>
<PhoneType>DEFAULT</PhoneType>
</Phone>
<Phone>
<PhoneType>FAX</PhoneType>
</Phone>
<Phone>
<PhoneType>MOBILE</PhoneType>
</Phone>
</Phones>
<IsSupplier>false</IsSupplier>
<IsCustomer>true</IsCustomer>
<PaymentTerms>
<Bills>
<Day>0</Day>
<Type>OFCURRENTMONTH</Type>
</Bills>
<Sales>
<Day>0</Day>
<Type>OFCURRENTMONTH</Type>
</Sales>
</PaymentTerms>
</Contact>