2016-07-01 7 views
-1

私はeBay APIと@ davidtstadlerのSDKを使ってeBayのリスティングを改訂しています。ビジネスポリシーを使用したPHP eBay APIの改訂

私は、支払い方法、送料、返品にeBayビジネスポリシーを使用しています。 BusinessPoliciesManagementServiceを使用してビジネスポリシーIDを取得することはできますが、は、支払い、配送、返品にポリシーを使用するようにアイテムを修正するにはどうすればよいですか。

APIのマニュアルで例が見つかりません。

+0

ある[のように見える](https://github.com/davidtsadler/ebay-sdk-examples/blob/master/ business-policies-management/README.md)SDKでは、ビジネスポリシーを取得し、設定することはできません。 –

+0

私はそれらを設定したくありません - 私はアイテムをリストアップまたは改訂するときにそれらを使用したいと思います。 – paj

+0

ビジネスポリシーから返されたIDを使用して、アイテムの改訂/追加時にPaymentProfileID、ReturnProfileID、ShippingProfileIDフィールドに渡します。 http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddFixedPriceItem.html#Request.Item.SellerProfiles –

答えて

0

支払いのためのビジネスポリシーIDの設定をする正しい方法、返品と送料は

// Business PROFILES 
    $item->SellerProfiles = new Types\SellerProfilesType(); 

    // PAYMENT 
    $item->SellerProfiles->SellerPaymentProfile = new Types\SellerPaymentProfileType(); 
    $item->SellerProfiles->SellerPaymentProfile->PaymentProfileID = 1234567890; 
    // RETURNS 
    $item->SellerProfiles->SellerReturnProfile = new Types\SellerReturnProfileType(); 
    $item->SellerProfiles->SellerReturnProfile->ReturnProfileID = 1234567890; 
    // SHIPPING 
    $item->SellerProfiles->SellerShippingProfile = new Types\SellerShippingProfileType(); 
    $item->SellerProfiles->SellerShippingProfile->ShippingProfileName = 1234567890; 
関連する問題