Multiple allocation created for single order item issue


#1

I encountered something really interesting that:

  • With User interface:- I can only allocate order item once.

  • With API: I can allocate order item more than once.

Please check and do let me know What to do?


#2

I think that may be there is some kind of validation for allocated item quantity which help to prevent this issue?


#3

Hey

There is no validation on this end point, this should be done on your side.

The reason behind it is that the /allocations endpoint allows you to create forced allocations so this is by design.
You should only make one request if you only want one allocation.


#4

But what about quantity?
Assumption:

  • If order have two item A and B with respective quantity 2 and 3.
    Order #123
    Item A * 2
    Item B * 3

Then system can do allocation more than this quantity?

Allocation 1: A * 2
Allocation 2: A * 2 and B * 3

Overall item allocated:

4 items for A
3 items for B


#5

Yes. If you want to do this via the API then you can force the extra allocations.


#6

So, I need to apply validation for quantity at my end.
There is no validation for quantity on veeqo API side. we can force create allocation more than order item quantity?


#7

Yes, as per my earlier message. Validation should be done on your side.

That is correct. This is by design.


#8

Thanks Phil,

I’ll apply validation at my end but I was thinking that It must be at your end.
No problem. I’ll fix my code.


#9

We have a feature request that will allow you to enable validation should you require it however it is not on our imminent schedule.


#10

Yes, I think it’s good to have that validation in place but I’ll apply at my end to make it’s not happen again.


#11

When I remove their second allocation then they move from Ready to ship to waiting for stock?


#12

What are the total allocation values that remain?