Skip to content

Commit

Permalink
Add the error codes and the property codes
Browse files Browse the repository at this point in the history
  • Loading branch information
TaurusOlson committed Dec 16, 2019
1 parent e38f1b6 commit ee9d69e
Show file tree
Hide file tree
Showing 3 changed files with 380 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .konchrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ def strtime(date):
return datetime.datetime.strftime(date, '%Y-%m-%dT%H:%M:%S') if date else ""


@lru_cache(maxsize=128)
def error_codes():
with open("docs/error_codes.json") as f:
data = json.load(f)
return pd.DataFrame(data)


@lru_cache(maxsize=128)
def property_codes():
with open("docs/property_codes.json") as f:
data = json.load(f)
return pd.DataFrame(data)


def extract(response):
"""
Extract the individual elements from a response
Expand Down Expand Up @@ -375,6 +389,8 @@ konch.config({
'offer_filters': offer_filters,
'order_filters': order_filters,
'extract': extract,
'property_codes': property_codes,
'error_codes': error_codes,
},
"shell": "ipython",
"ipy_autoreload": True,
Expand Down
138 changes: 138 additions & 0 deletions docs/error_codes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
[
{
"code": 10,
"meaning": "Required field, please enter data"
},
{
"code": 11,
"meaning": "Incorrect data format, check the required format"
},
{
"code": 12,
"meaning": "Data incorrect length, check the required format"
},
{
"code": 13,
"meaning": "Non existent - Request its creation in the 'product creation' section of the seller interface"
},
{
"code": 14,
"meaning": "Product already known"
},
{
"code": 15,
"meaning": "Ask permission to sell this product to the seller support"
},
{
"code": 16,
"meaning": "Invalid key, check EAN"
},
{
"code": 17,
"meaning": "Incorrect value as greater than the maximum value, check the consistency of values"
},
{
"code": 17,
"meaning": "Incorrect value as lower than the minimum value, check the consistency of values"
},
{
"code": 18,
"meaning": "Not enough stock relative to pending orders"
},
{
"code": 19,
"meaning": "Incorrect value, price lower than or equal to \u20ac0"
},
{
"code": 20,
"meaning": "Incorrect value, reference price lower than 0,10\u20ac"
},
{
"code": 21,
"meaning": "Error occurred during integration"
},
{
"code": 23,
"meaning": "Incorrect value, reference price lower than the sale price"
},
{
"code": 24,
"meaning": "A offer already exists for this produit with another reference, impossible to modify, please use the old reference"
},
{
"code": 25,
"meaning": "Seller reference already used for another EAN or another produit condition. Please change your reference"
},
{
"code": 26,
"meaning": "End date/time earlier than Start date/time"
},
{
"code": 27,
"meaning": "Products with variations (size/colour): to be created for your seller account in the 'product creation'"
},
{
"code": 28,
"meaning": "Offer already submitted and awaiting processing"
},
{
"code": 29,
"meaning": "Price {0} is an amount lower than the eco part + DEA"
},
{
"code": 30,
"meaning": "Reference unknown. You must create your product before putting an offer, or put an offer on an existing product using the EAN"
},
{
"code": 31,
"meaning": "You have several products with the reference seller. Please use the EAN"
},
{
"code": 32,
"meaning": "Off (being activated), the offer is on hold, it will be published in the hour"
},
{
"code": 34,
"meaning": "Existing but not open to the marketplace. Please contact the sellersupport"
},
{
"code": 35,
"meaning": "Value greater than the permitted ceiling 30.00"
},
{
"code": 36,
"meaning": "This offer does not exist and can not be updated. You must first create"
},
{
"code": 39,
"meaning": "Fulfillment: Product dereferenced of Fulfillment with stock> 0. You must take all your products on our warehouse before reactivating this offer"
},
{
"code": 40,
"meaning": "Not configured - You must set the Mode in the section 'Your shipping choices' before entering the file data"
},
{
"code": 43,
"meaning": "Not accessible to your subscription"
},
{
"code": 44,
"meaning": "Thank you to first take back your stock ...."
},
{
"code": 45,
"meaning": "Non-salable only"
},
{
"code": 48,
"meaning": "Several eans match the product, please contact the account manager"
},
{
"code": 80,
"meaning": "Offer created"
},
{
"code": 90,
"meaning": "Offer updated"
}
]
226 changes: 226 additions & 0 deletions docs/property_codes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
[
{
"code": 0,
"meaning": ""
},
{
"code": 1,
"meaning": "EAN"
},
{
"code": 2,
"meaning": "Product status"
},
{
"code": 3,
"meaning": "Seller product reference"
},
{
"code": 4,
"meaning": "SKU"
},
{
"code": 5,
"meaning": "Stock"
},
{
"code": 6,
"meaning": "Price"
},
{
"code": 7,
"meaning": "VAT"
},
{
"code": 8,
"meaning": "Eco part"
},
{
"code": 9,
"meaning": "Min shipping time"
},
{
"code": 10,
"meaning": "Max shipping time"
},
{
"code": 11,
"meaning": "Shipping fee - Standard mode"
},
{
"code": 12,
"meaning": "Shipping fee - Tracked mode"
},
{
"code": 13,
"meaning": "Shipping fee - Registered mode"
},
{
"code": 14,
"meaning": "Offers comment"
},
{
"code": 15,
"meaning": "Additional Shipping fee - Standard mode"
},
{
"code": 16,
"meaning": "Additional Shipping fee - Tracked mode"
},
{
"code": 17,
"meaning": "Additional Shipping fee - Registered mode"
},
{
"code": 18,
"meaning": "Reference price"
},
{
"code": 19,
"meaning": "Promotion type"
},
{
"code": 20,
"meaning": "Promotion type - Start date"
},
{
"code": 21,
"meaning": "Promotion type - Start hour"
},
{
"code": 22,
"meaning": "Promotion type - End date"
},
{
"code": 23,
"meaning": "Package"
},
{
"code": 24,
"meaning": "Product"
},
{
"code": 25,
"meaning": "Promotion type - End Hour"
},
{
"code": 26,
"meaning": "Discount %"
},
{
"code": 27,
"meaning": "Sales Reference Price"
},
{
"code": 28,
"meaning": "Offer"
},
{
"code": 29,
"meaning": "Delivery charges - Mode Immediate Withdrawal"
},
{
"code": 30,
"meaning": "Additional Delivery Fee - Immediate Withdrawal Mode"
},
{
"code": 31,
"meaning": "DEA"
},
{
"code": 40,
"meaning": "Store delivery"
},
{
"code": 41,
"meaning": "Store delivery - Min shipping time"
},
{
"code": 42,
"meaning": "Store delivery - Max shipping time"
},
{
"code": 43,
"meaning": "Store delivery - shipping fee"
},
{
"code": 44,
"meaning": "Store delivery - Additional shipping fee"
},
{
"code": 45,
"meaning": "Home delivery"
},
{
"code": 46,
"meaning": "Lowest allowable price"
},
{
"code": 48,
"meaning": "Mondial Relay pick up - Min shipping time"
},
{
"code": 49,
"meaning": "Mondial Relay pick up - Shipping fee"
},
{
"code": 50,
"meaning": "Mondial Relay pick up - Shipping fee"
},
{
"code": 51,
"meaning": "Mondial Relay pick up - Additional shipping fee"
},
{
"code": 52,
"meaning": "Relais colis pick up"
},
{
"code": 53,
"meaning": "Relais colis pick up - Min shipping time"
},
{
"code": 54,
"meaning": "Relais colis pick up - Max shipping time"
},
{
"code": 55,
"meaning": "Relais colis pick up - Shipping fee"
},
{
"code": 56,
"meaning": "Relais colis pick up - Additional shipping fee"
},
{
"code": 57,
"meaning": "SoColissimo pick up"
},
{
"code": 58,
"meaning": "SoColissimo pick up - Min shipping time"
},
{
"code": 59,
"meaning": "SoColissimo pick up - Max shipping time"
},
{
"code": 60,
"meaning": "SoColissimo pick up - Shipping fee"
},
{
"code": 61,
"meaning": "SoColissimo pick up - Additional shipping fee"
},
{
"code": 62,
"meaning": "Packaging unit"
},
{
"code": 63,
"meaning": "Product packaging"
},
{
"code": 64,
"meaning": "Fullfilment"
}
]

0 comments on commit ee9d69e

Please sign in to comment.