Merhaba Arkadaşlar;

PHP tabanlı bir alışveriş sitemizde N11'den indirdiğimiz dökümantasyon üzerinden soap entegrasyonu yapmaya çalışıyorum. Hem dökümantasyondaki içeriğe hem de konuyla ilgili github da bulduğum bir kaç örnek kodu da düzenleyerek oluşturduğum kodlama ne yaparsam yapayım sürekli bir attribute hatası veriyor.

Dökümantasyona göre attribute alanı zorunlu değil fakat dönen soap request'e göre "Marka" attribute zorunlu, kodu marka içerecek şekilde değiştirip attribute alanı eklesem de yine aynı hatayı da almaya devam ediyorum.

Konu ile ilgili yardımcı olabilecek, neyi atlamış olduğumu iletebilecek bir arkadaş varsa çok makbule geçer. Şimdiden teşekürler.

Referans örnek kod git hub link:
https://github.com/ahmetozalp/N11.co...ster/index.php

Mevcut Kod:

$saveProduct = $n11->SaveProduct(
    [
    'productSellerCode' => 'exp-111',
    'title' => 'Test Product',
    'subtitle' => 'Web service test ',
    'description' => 'test product detail',
    'attributes' =>
        [
            'attribute' => 
            [
                'name' => 'Marka',
                'value' => 'Deneme'
            ]
        ],
    'category' =>
        [
            'id' => 1000038
        ],
    'price' => 0.99,
    'currencyType' => 'TL',
    'images' =>
        [
            'image' =>
                [
                ]
        ],
    'saleStartDate' => '',
    'saleEndDate' => '',
    'productionDate' => '',
    'expirationDate' => '',
    'productCondition' => '1',
    'preparingDay' => '3',
    'discount' => 10,
    'shipmentTemplate' => 'Depo',
    'stockItems' =>
        [
            'stockItem' =>
                [
                    'quantity' => '5',
                    'sellerStockCode' => '324324',
                    'attributes' => 
                    [
                        'attribute' => 
                        [
                            'name' => 'Marka',
                            'value' => 'Deneme'
                        ]
                    ],
                    'optionPrice' => '0.99'
                ]
        ]
    ]
);
print_r($saveProduct);
Hata Kodu:

[status] => failure [errorCode] => SELLER_API.mandatoryAttributesInvalid [errorMessage] => Zorunlu olan özellikleri ürün özellikleri kısmında ve/veya sku özellikleri kısmında girmeniz gerekmektedir.
Özellik Adı : Marka, Özellik id : 354080105 [errorCategory] => SELLER_API