cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BrandMPN Issue

Help! I am having an issue whenever I try to create an offer. Below is the error.

DEBUG:__main__:Publish Response (400): {"errors":[{"errorId":25002,"domain":"API_INVENTORY","subdomain":"Selling","category":"Request","message":"A user error has occurred. Eingabedaten für Tag <BrandMPN> sind ungültig oder fehlen. Bitte lesen Sie die API-Dokumentation.","parameters":[{"name":"0","value":"BrandMPN"}]}]}
ERROR:__main__:Failed to publish offer 656291527016 for SKU testsku0909. Response: {"errors":[{"errorId":25002,"domain":"API_INVENTORY","subdomain":"Selling","category":"Request","message":"A user error has occurred. Eingabedaten für Tag <BrandMPN> sind ungültig oder fehlen. Bitte lesen Sie die API-Dokumentation.","parameters":[{"name":"0","value":"BrandMPN"}]}]}

and here's the payload


    offer_payload = {
        "sku": sku,
        "marketplaceId": "EBAY_DE",
        "format": "FIXED_PRICE",
        "listingDescription": f"{title} - Hochwertiges Produkt.",
        "availableQuantity": quantity,
        "pricingSummary": {
            "price": {
                "value": str(price),
                "currency": "EUR"
            }
        },
        "categoryId": str(ebay_category),  
        "listingPolicies": {
            "paymentPolicyId": payment_policy_id,
            "returnPolicyId": return_policy_id,
            "fulfillmentPolicyId": fulfillment_policy_id
        },
        "merchantLocationKey": "DEFAULT",
        "tax": {"applyTax": False},
        "packageWeightAndSize": {
            "dimensions": {
                "height": 10,
                "width": 10,
                "length": 10,
                "unit": "INCH"
            },
            "weight": {
                "value": weight,
                "unit": "POUND"
            }
        },
        "merchantLocationKey": "DE_XXXXX",
        "postalCode": postal_code,
        "publishedState": "DRAFT",
        "product": {
            "title": title,  
            "brand": brand if brand else "Unbranded",  
            "aspects": {
                "Brand": [brand if brand else "Unbranded"],
                "MPN": ["Nicht zutreffend"]  
            }
        }
    }
Message 1 of 1
latest reply
0 REPLIES 0