LoginSignup
1

More than 5 years have passed since last update.

Yahoo商品登録API(editItem)のトラブル**"seller_id" is not specified**

Posted at

はじめまして。今Yahoo商品登録APIを使って、Yahooに商品登録作業をやっているものです。
Yahooの関連マニュアルに従い、POSTで以下のRequestを送っていますが、

post https://circus.shopping.yahooapis.jp/ShoppingWebService/V1/editItem?item_code=testcode001&name=testitemname&path=aaaa%3Abbbb%3Acccc&price=99999&product_category=2079&sale_price=99999&seller_id=sellid

以下のレスポンスが返ってきます。

<?xml version='1.0' encoding='UTF-8' ?>
<.Error>
<.Message>"seller_id" is not specified<./Message>
<.Code>px-04001<./Code>
<./Error>

送ったパラメータ内容は必須項目です。以下となります。
seller_id=>sellid,
item_code=>testcode001,
name=>testitemname,
path=aaaa:bbbb:cccc,
price=>99999,
original_price=99999,
念のためproduct_categoryも送っています
product_category=>2079

同じURLをGETで送ると、seller_idは通りますが、
今度必須項目がないレスポンスが返ってきます。

<?xml version="1.0" encoding="UTF-8"?>
<.ResultSet>
<.Result>
<.Status>NG<./Status>
<.Error>
<.Target>item_code<./Target>
<.Code>it-01013<./Code>
<.Message><![CDATA[商品コードは必須です。]]><./Message>
<./Error>
<.Error>
<.Target>path<./Target>
<.Code>it-01011<./Code>
<.Message><![CDATA[パスは必須です。]]><./Message>
<./Error>
<.Error>
<.Target>name<./Target>
<.Code>it-01012<./Code>
<.Message><![CDATA[商品名は必須です。]]><./Message>
<./Error>
<.Error>
<.Target>price<./Target>
<.Code>it-01015<./Code>
<.Message><![CDATA[通常販売価格は必須です。]]><./Message>
<./Error>
<./Result>
<./ResultSet>

**タグ内の’.’を無視してください。

こちらの投稿も拝見して
[Yconnect][商品一括更新API]SellerID is not specifiedとなります。
Content-Type: application/x-www-form-urlencodedを指定しましたが、同じエラーが返ってきます。

同じトラブルにあった方またはお分かりの方はいらっしゃいますでしょうか。
ご教授の程、よろしくお願いいたします。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1