Invoice Creation API Timeouts

JeremyF
Experienced User
34 Posts
Experienced User
Experienced User

34Posts

4Kudos

3Solutions

Invoice Creation API Timeouts

Hi Developer Support,

 

Just like to offer a theory on a time out issue we have with creating Item Invoices on an contact that has a huge number of invoices against it. 

 

The contact has many thousands of sales invoices against it. 

 

When an invoice is created on this contact the API never seems to respond inside 30 seconds although the invoice is created in MYOB. 

 

Is the API server reading the entire contact sales transaction history each time it creates an invoice?

 

Cheers

 

jeremy

 

1 REPLY 1
Tana
MYOB Moderator
43 Posts
MYOB Moderator
MYOB Moderator

43Posts

92Kudos

3Solutions

Re: Invoice Creation API Timeouts

Hi there,

Apologise for the delayed response.

As we understand the API will pull the entire collection to filter through when called.

We recommend using Date Range filtering (Odata), Pagination and the accept-encoding: header to reduce the occurrence of time outs by reducing the amount of data coming through.

Here are some Support Documents that may help:
Digging into ODATA filters – Support for the MYOB family of SME product APIs
Headers (myob.com) - Encoding header

Retrieving Data (myob.com) - Pagination

If you are still having issues, please feel free to create a Support ticket here.

Kind regards


Thanks,
@Tana


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post