0
我对任何类型的API应用程序都是全新的。现在我正在创建一个列表应用程序来列出电子湾印度网站上的项目。 正在使用的API版本是767, 沙箱网址是https://api.sandbox.ebay.com/wsapi。 我有ebay(买方/卖方)和开发者帐户的沙箱帐户。ebay AddItem API调用问题
我收到错误消息: 1)销售税/增值税根据新的销售税/增值税政策从列表中删除。物品将成功上市,您可以修改上市以指定全包价格。 2)您没有注册或者您的付款方式注册有问题。
ItemType type = new ItemType();
type.PaymentMethods = new BuyerPaymentMethodCodeTypeCollection();
type.PaymentMethods.Add(BuyerPaymentMethodCodeType.PaisaPayAccepted);
我也必须指定每个州的税收吗? 增值税和送货细节,这里是我的代码片段:
private ShippingDetailsType getShippingDetails()
{
// Shipping details.
ShippingDetailsType sd = new ShippingDetailsType();
SalesTaxType salesTax = new SalesTaxType();
ReadSettings rs = new ReadSettings();
rs.GetSettings();
salesTax.SalesTaxPercent = 12f;
salesTax.SalesTaxState = "MH";
SalesTaxType s = new SalesTaxType();
salesTax.ShippingIncludedInTax = true;
salesTax.ShippingIncludedInTaxSpecified = true;
sd.ApplyShippingDiscount = true;
AmountType at = new AmountType();
at.Value = 2.8;
at.currencyID = CurrencyCodeType.INR;
sd.InsuranceFee = at;
sd.InsuranceOption = InsuranceOptionCodeType.NotOffered;
sd.PaymentInstructions = "These are my instructions.";
VATDetailsType vd = new VATDetailsType();
vd.BusinessSeller = false;
vd.BusinessSellerSpecified = false;
vd.RestrictedToBusiness = false;
vd.RestrictedToBusinessSpecified = false;
vd.VATID = "VATSNO1234567890";
vd.VATPercent = 12f;
vd.VATPercentSpecified = true;
vd.VATSite = "None";
sd.ShippingType = ShippingTypeCodeType.Flat;
//
ShippingServiceOptionsType st1 = new ShippingServiceOptionsType();
sd.SalesTax = salesTax;
st1.ShippingService = ShippingServiceCodeType.IN_Express.ToString();
at = new AmountType();
at.Value = 50;
at.currencyID = CurrencyCodeType.INR;
st1.ShippingServiceAdditionalCost = at;
at = new AmountType();
at.Value = 50;
at.currencyID = CurrencyCodeType.INR;
st1.ShippingServiceCost = at;
st1.ShippingServicePriority = 1;
at = new AmountType();
at.Value = 1.0;
at.currencyID = CurrencyCodeType.INR;
st1.ShippingInsuranceCost = at;
sd.ShippingServiceOptions = new ShippingServiceOptionsTypeCollection(new ShippingServiceOptionsType[] { st1 });
return sd;
}
谢谢你的努力。