私は、あらゆる種類の API アプリケーションにまったく慣れていません。現在、インドの E-bay サイトに商品を出品するための出品アプリケーションを作成しています。使用されている API バージョンは 767 で、サンドボックスの URL はhttps://api.sandbox.ebay.com/wsapiです。eBay(バイヤー/セラー)用のサンドボックス アカウントと開発者アカウントを持っています。
次のエラーが表示されます: 1) 新しい消費税 / VAT ポリシーに従って、リストから消費税 / VAT が削除されました。アイテムは正常にリストされます。リストを修正して、すべて込みの価格を指定できます。2) 登録していないか、支払い方法の登録に問題がある。
ItemType type = new ItemType();
type.PaymentMethods = new BuyerPaymentMethodCodeTypeCollection();
type.PaymentMethods.Add(BuyerPaymentMethodCodeType.PaisaPayAccepted);
また、州ごとに課税を指定する必要がありますか? VAT と配送の詳細については、私のスニペットを次に示します。
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;
}
ご尽力いただきありがとうございます。