API Reference

Stok-Fiyat Güncelleme Örnek İstek

Örnek İstek

Örnek istek Amazon mağazasında bulunan YNG-WTR-3 stok kodlu ürünün stok adedini 100, fiyatını 75.50₺ olarak güncelleyecek şekilde kurgulanmıştır.

curl -L -X PATCH 'https://sellingpartnerapi-eu.amazon.com/listings/2021-08-01/items/AO0WPKWDI17JQ/YNG-WTR-3?marketplaceIds=A33AVAJ2PDY3EV' \
-H 'x-amz-access-token: {{access-token}}' \
-H 'X-Amz-Security-Token: {{security-token}}' \
-H 'X-Amz-Date: {{request-date}}' \
-H 'Authorization: {{authorization}}' \
-H 'Content-Type: application/json' \
--data-raw '{
    "productType":"PRODUCT",
    "patches": [
        {
            "op": "replace",
            "path": "/attributes/fulfillment_availability",
            "value": [
                {
                    "fulfillment_channel_code": "DEFAULT",
                    "quantity": "100"
                }
            ]
        },
        {
            "op": "replace",
            "path": "/attributes/purchasable_offer",
            "value": [
                {
                    "currency": "TRY",
                    "our_price": [
                        {
                            "schedule": [
                                {
                                    "value_with_tax": 75.50
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
curl -L -X PATCH 'https://sellingpartnerapi-eu.amazon.com/listings/2021-08-01/items/AO0WPKWDI17JQ/YNG-WTR-3?marketplaceIds=A33AVAJ2PDY3EV' \
-H 'x-amz-access-token: {{access-token}}' \
-H 'X-Amz-Security-Token: {{security-token}}' \
-H 'X-Amz-Date: {{request-date}}' \
-H 'Authorization: {{authorization}}' \
-H 'Content-Type: application/json' \
--data-raw '{
    "productType": "PRODUCT",
    "patches": [
        {
            "op": "replace",
            "path": "/attributes/fulfillment_availability",
            "value": [
                {
                    "fulfillment_channel_code": "DEFAULT",
                    "quantity": "100"
                }
            ]
        }
    ]
}
curl -L -X PATCH 'https://sellingpartnerapi-eu.amazon.com/listings/2021-08-01/items/AO0WPKWDI17JQ/YNG-WTR-3?marketplaceIds=A33AVAJ2PDY3EV' \
-H 'x-amz-access-token: {{access-token}}' \
-H 'X-Amz-Security-Token: {{security-token}}' \
-H 'X-Amz-Date: {{request-date}}' \
-H 'Authorization: {{authorization}}' \
-H 'Content-Type: application/json' \
--data-raw '{
    "productType": "PRODUCT",
    "patches": [
        {
            "op": "replace",
            "path": "/attributes/purchasable_offer",
            "value": [
                {
                    "currency": "TRY",
                    "our_price": [
                        {
                            "schedule": [
                                {
                                    "value_with_tax": 75.50
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
{
    "sku": "B09VK5YVH6",
    "status": "ACCEPTED",
    "submissionId": "1b43a91ef4b943aeb633c71e38bf1020",
    "issues": []
}
{
    "errors": [
        {
            "code": "InvalidInput",
            "message": "Request has missing or invalid parameters and cannot be parsed.",
            "details": ""
        }
    ]
}
{
    "sku": "YNG-WTR-3",
    "summaries": [],
    "attributes": {
        "purchasable_offer": [
            {
                "currency": "TRY",
                "our_price": [
                    {
                        "schedule": [
                            {
                                "value_with_tax": 1.0
                            }
                        ]
                    }
                ],
                "marketplace_id": "A33AVAJ2PDY3EV"
            }
        ],
        "fulfillment_availability": [
            {
                "fulfillment_channel_code": "DEFAULT",
                "quantity": 100,
                "marketplace_id": "A33AVAJ2PDY3EV"
            }
        ],
        "main_product_image_locator": [
            {
                "media_location": "https://m.media-amazon.com/images/I/61bXWHtO3sL.jpg",
                "marketplace_id": "A33AVAJ2PDY3EV"
            }
        ],
        "other_product_image_locator_1": [
            {
                "media_location": "https://m.media-amazon.com/images/I/61z9egf+Y3L.jpg",
                "marketplace_id": "A33AVAJ2PDY3EV"
            }
        ],
        "other_product_image_locator_2": [
            {
                "media_location": "https://m.media-amazon.com/images/I/61bXWHtO3sL.jpg",
                "marketplace_id": "A33AVAJ2PDY3EV"
            }
        ]
    },
    "issues": [
        {
            "code": "13013",
            "message": "Hesabınızda bu güncellemeye karşılık gelen SKU'nun kaydı yok. Bu, genellikle SKU'nuzla ilgili başka sorunlar olduğunda meydana gelir.",
            "severity": "ERROR"
        }
    ],
    "offers": [],
    "fulfillmentAvailability": []
}
Doldurulması Gereken Güvenlik Parametreleri

Örnek isteği gönderip sonuç alabilmeniz için istek içerisinde bulunan ve aşağıda listesi verilen parametreleri doldurmanız gerekmektedir.

Güvenlik Parametreleri
{{access-token}}
{{security-token}}
{{request-date}}
{{authorization}}