Hey guys, i am trying to write some code by myself for a custom application to synchronize the inventories between brickowl and bricklink.
I am trying to implement it to work like i have my own database as main storage and synchronize this database with the inventories to both platforms.
i wrote some code to use the xml file upload of bricklink and the inventory bulk api of brickowl to upload the inventory
but i ran into some problems:
1. i always loose some items, in bricklink there are always missing some items without throwing an error they were not inserted
2. it takes very long to finish this process because the bulk ednpoint of brickowl just supports 50 requests per bulk request so this takes for about 26000 lots about 520 bulk request with 50 requests each. The same for bricklink, the xml file upload officialy supports about 1000 lots (it works with 2000 too but takes very long) and the problem with the xml upload, i dont get a proper response which lot got which id. I need the lot ids of both platforms because if i late do some updates or deletes for some single lots i need the lot ids to manipulate them on each platform
I just wonder if some of you know how this could be done in a proper way to work better and maybe get this working for inserts/updates/deletes
Comments
You should only be uploading your inventory once, and then after that you update your existing inventory. You certainly should not delete and then re-upload your inventory as this will empty every customer cart in your store.
Also, to answer your question - the "proper way" of syncing is not to erase and reload every lot every time. It's to monitor inventories constantly and surgically correct discrepancies as soon as they occur. That way you're making 1, 2 or 3 lots changes and a time, not thousands.
?> catalog
Catalog
Primary: BrickLink
BrickLink
Book: 6776
Catalog: 4726
Gear: 18454
Instruction: 11707
Minifig: 16268
Original Box: 19358
Part: 81865
Set: 19357
Total: 178511
BrickOwl
Gear: 11190
Instruction: 11051
Minibuild: 1604
Minifig: 15362
Original Box: 15830
Part: 66233
Set: 18475
Sticker: 3865
Total: 143610
BrickScout
Book: 3748
Catalog: 5194
Gear: 10138
Instruction: 8314
Minifig: 14701
Original Box: 12644
Part: 107988
Set: 18558
Total: 181285
* Brickscout includes all colors, so +- 40K parts, I need to fix that.
J'ai un soucis j'aimerais ouvrir une boutique bricklink mais je n'arrive pas a transférer l'inventaire brickowl sur bricklink
Je télécharge l'inventaire brickowl en format XML et quand je veux l'ouvrir sur brickstock j'ai toujours un message d'erreur je ne sais plus comment faire...
Si quelqu'un a une solution...
Merci d'avance
Oui je veux bien de votre aide😊