ebay AddItem API调用存在问题
我对任何类型的API应用程序都是全新的。 现在我正在创建一个列表应用程序来列出电子湾印度网站上的项目。 正在使用的API版本是767,沙箱网址是https://api.sandbox.ebay.com/wsapi。 我有ebay(买家/卖家)和开发者帐户的沙箱帐户。
我收到错误消息: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;
}
感谢你的努力。
所以,从Ebay的.IN
网站。 http://pages.ebay.in/help/sell/new-sales-tax-policy.html您需要修改您的商家信息以包含总价(全包)。
明智的代码:
// Before you assign the Item's price
allInclusiveItemPrice = itemPrice * VAT; // Sales tax also if needed
Then set the item.price = allInclusiveItemPrice //BuyItNowPrice or Auction price
我不确定如何确定印度的税率是否会起作用。
也
2)您没有注册或者您的付款方式注册有问题。
可能是一个问题。 我不确定错误在这种情况下意味着什么。