Forum Discussion

bhatnajam's avatar
bhatnajam
Member
6 days ago

Time Billing invoices

Hello MYOB Team,

 

We are integrating with the AccountRight API and have a question regarding Time Billing invoices.

 

We enabled the company preference:

 

“I Include Items on Time Billing Invoices”

 

and from the MYOB UI we are successfully able to create a Time Billing invoice containing both:

 

1. Activity line

2. Item line

 

However, when we try to create the same invoice through:

 

`POST /Sale/Invoice/TimeBilling`

 

with mixed Activity + Item lines, we receive:

 

`OrderQuote_MixedLayoutLineTypes`

 

Our question is:

 

Does the AccountRight API officially support creating Time Billing invoices containing both Activity and Item lines when the “I Include Items on Time Billing Invoices” preference is enabled?

 

If supported:

 

1. Is there a required payload format for mixed lines?

2. Are there restrictions on Hours / Units fields?

3. Is this supported only via UI and read APIs, or also via POST create APIs?

 

Thank you.