0
我正在使用Magento Go的SOAP API V2創建客戶。當使用customerCustomerCreate時,值firstname,lastname,email和password都會成功傳入,但我似乎無法設置dob。我想也許這是一個日期格式問題,所以我嘗試了中間名,它也沒有設置。我沒有從API獲取任何錯誤響應,所以我不認爲我的值是無效的。我只是在創建的記錄中看不到他們。有沒有人經歷過這個?Magento Go SOAP API V2客戶創建不通過一些可選字段
$client = new SoapClient('http://...');
$session = $client->login('api_user', 'api_pass');
$result = $client->customerCustomerCreate($session, array(
'email' => '[email protected]',
'firstname' => 'First',
'lastname' => 'Last',
'middlename' => 'Middle',
'gender' => 1,
'password' => 'password',
'website_id' => 1,
'store_id' => 1,
'group_id' => 1,
));
$result = $client->customerCustomerInfo($session, $result);
var_dump($result);
結果,其中,中間名和性別缺少:
object(stdClass)#2 (11) {
["customer_id"]=> int(53)
["created_at"]=> string(19) "2012-10-19 15:32:24"
["updated_at"]=> string(19) "2012-10-19 15:32:24"
["store_id"]=> int(1)
["website_id"]=> int(1)
["created_in"]=> string(7) "English"
["email"]=> string(17) "[email protected]"
["firstname"]=> string(5) "First"
["lastname"]=> string(4) "Last"
["group_id"]=> int(1)
["password_hash"]=> string(67) "(password hash)"
}
聽起來更像是Magento Go支持的問題,而不是堆棧溢出。 –
看起來像一個錯誤。你可以在這裏提供你的API調用代碼嗎? – Zyava