简体   繁体   English

eBay交易API addFixedPriceItem调用错误

[英]eBay Trading API addFixedPriceItem Call Error

I'm trying to make a call to addFixedPriceItem in NodeJS. 我正在尝试调用NodeJS中的addFixedPriceItem。 I'm using the NodeJS eBay API. 我正在使用NodeJS eBay API。 My code is the following: 我的代码如下:

var ebay = require('ebay-api');
ebay.ebayApiPostXmlRequest({
    serviceName: 'Trading',
    opType: 'AddFixedPriceItem',
    devName: myDevId,
    cert: myCertId,
    appName: myAppId,
    sandbox: true,
    title: title,
    params: {
        'authToken': myClientAuthToken,
        version: EBAY_API_VERSION,
        Item: {
            Country: 'EBAY-US', 
            Currency: 'USD',
            Description: description,
            ListingType: 'FixedPriceItem',
            PictureDetails: picturesArray,
            Quantity: '5',
            StartPrice: price
        },
    }
}, function (error, results) {
    if (error) {
        console.dir(error);
        process.exit(1);
    }
    console.dir(results);
});

Ultimately, I cannot seem to get it to call. 最终,我似乎无法打电话。 It's not a verification issue or anything, console is stating that No Item.Country exists, and No Item.Currency exists, although I have specifically placed these in my parameters. 这不是验证问题,也不是什么问题,控制台指出没有Item.Country存在,也没有Item.Currency存在,尽管我已将它们专门放置在参数中。 Any clue why this would occur? 任何线索为什么会发生这种情况?

If not, how could I make a call to this in nodeJS without this API? 如果没有,如何在没有此API的情况下在nodeJS中对此进行调用? I appreciate any help! 感谢您的帮助! :) :)

Your country code is wrong. 您的国家代码错误。 It should be 'US' or one of the other CountryCodeType 's. 它应该是'US'或其他CountryCodeType之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM