joshbmarshall / auspost

Australia Post API for PHP
MIT License
5 stars 2 forks source link

Issues manifesting a big order. #3

Open hirani89 opened 2 years ago

hirani89 commented 2 years ago

Hi @joshbmarshall, I've now been using this library for quite some time. It's working really well for me.

But every now and then I need to manifest (createOrder) several shipments.

I have noticed that any order greater than 50 shipments does manifest on the auspost side but returns with an error and order id as None.

And when I go to my auspost portal, the shipments have been manifested.

So it looks like the issue can be either the size of the response being too big (given the size of the pdf will be larger) or the time taken for auspost to process and generate a pdf is very long

joshbmarshall commented 2 years ago

According to their api docs https://developers.auspost.com.au/apis/shipping-and-tracking/reference/create-order-from-shipments the limit is 2000 shipments in the manifest. So from that, you shouldn't have to split up a manifest into 50 shipments but it's something you could do. Have you got a snapshot of what is returned from auspost to see what their error response is?