YoannBuzenet / MBI-Front-End

React.js Stateless - Company software that allows shops to automatize their product sourcing by setting automatic buying price (on more than 20,000 products) depending on market trends. We provide data via our centralized API each React app can call, and then post it automatically on a marketplace through their API.
0 stars 0 forks source link

MKMAPI.js => envoyer le shortname de la condition au lieu de l'ID #36

Closed YoannBuzenet closed 4 years ago

YoannBuzenet commented 4 years ago

MKM definition Condition & language : https://api.cardmarket.com/ws/documentation/API_2.0:Stock Connecter au contexte

YoannBuzenet commented 4 years ago

pour construire ce XML de POST Sell request :

<?xml version="1.0" encoding="UTF-8" ?>
<request>
<article>
<idProduct>100569</idProduct>
<idLanguage>1</idLanguage>
<comments>Inserted through the API</comments>
<count>1</count>
<price>4</price>
<condition>EX</condition>
<isFoil>true</isFoil>
<isSigned>false</isSigned>
<isPlayset>false</isPlayset>
</article>
</request>
YoannBuzenet commented 4 years ago

MKM LanguageID Def :

1 - English 2 - French 3 - German 4 - Spanish 5 - Italian 6 - Simplified Chinese 7 - Japanese 8 - Portuguese 9 - Russian 10 - Korean 11 - Traditional Chinese

YoannBuzenet commented 4 years ago

MKM Condition def :

(source : https://api.cardmarket.com/ws/documentation/API_1.1:Stock)

MT - Mint NM - Near Mint (default value when not passed) EX - Excellent GD - Good LP - Light-played PL - Played PO - Poor

YoannBuzenet commented 4 years ago

Done - des constantes de définition permettant la translation de nos définitions à celles de MKM ont été crées dans MKMAPI.JS.