Hello.
It is necessary to either refine the existing script (written in PHP) or write it in Python.
What the script currently does:
It uploads (transfers) orders from several Prom stores to one account https://hubber.pro/.
But it does this poorly: it does not transfer orders with Prom payment.
The algorithm of the script's operation (as I see it):
1. We receive all orders from all Prom.ua stores (there can be any number, Prom.ua provides an API key for operation)
2. We check each order for its presence on the Hubber account.
3. If the order is on Prom but not on Hubber, it needs to be created there in the status it has on Prom. (To avoid breaking the logic of the script, orders should be created even if canceled if they are not on Hubber. They should be created there as canceled immediately)
4. If the order is on Prom and on Hubber and the statuses are the same, then do nothing
5. If the statuses are different, check where the next status is. For example, if on Prom it is accepted and on Hubber it is already delivery, then change it on Prom to delivery. And if it is canceled on Prom, then cancel it on Hubber as well
6. There will be triggers (in the form of phone numbers) that the script should not transfer to Hubber (because these are fake orders for inflating ratings)