allegro-api icon indicating copy to clipboard operation
allegro-api copied to clipboard

w odpowiedzi na /pricing/offer-fee-preview dostaje The HTTP method is not allowed

Open meridPL opened this issue 11 months ago • 0 comments

Dzień dobry,

Proszę o podpowiedź co źle robię. Wszystkie inne zasoby działają przy tej konfiguracji, a ten nie chce Ten zasób : /pricing/offer-fee-preview Wysłanie : POST

Taka odpowiedź:

{
    "errors": [
        {
            "code": "NotAllowedException",
            "message": "The HTTP method is not allowed",
            "details": null,
            "path": null,
            "userMessage": "An error occurred"
        }
    ]
}

Taki obiekt (testowo):

{
    "offer": {
        "name": "Przykładowa oferta",
        "category": {
            "id": "79419"
        },
        "product": null,
        "parameters": [
            {
                "id": "11323",
                "valuesIds": [
                    "11323_246514"
                ],
                "values": [],
                "rangeValue": null
            },
            {
                "id": "223489",
                "valuesIds": [],
                "values": [
                    "Autor"
                ],
                "rangeValue": null
            },
            {
                "id": "223541",
                "valuesIds": [
                    "223541_491585"
                ],
                "values": [],
                "rangeValue": null
            },
            {
                "id": "223545",
                "valuesIds": [],
                "values": [
                    "Sample"
                ],
                "rangeValue": null
            },
            {
                "id": "245669",
                "valuesIds": [],
                "values": [
                    "9780000000057"
                ],
                "rangeValue": null
            },
            {
                "id": "74",
                "valuesIds": [],
                "values": [
                    "2015"
                ],
                "rangeValue": null
            },
            {
                "id": "7773",
                "valuesIds": [
                    "7773_2"
                ],
                "values": [],
                "rangeValue": null
            }
        ],
        "customParameters": null,
        "ean": "9780000000057",
        "description": {
            "sections": [
                {
                    "items": [
                        {
                            "type": "TEXT",
                            "content": "<p>Pzykładowy opis</p>"
                        }
                    ]
                }
            ]
        },
        "compatibilityList": null,
        "tecdocSpecification": null,
        "images": [
            {
                "url": "https://a.allegroimg.allegrosandbox.pl/original/116421/ece7111d4b8fbbc4662ab92f84ce"
            }
        ],
        "sellingMode": {
            "format": "BUY_NOW",
            "price": {
                "amount": "50",
                "currency": "PLN"
            },
            "startingPrice": null,
            "minimalPrice": null,
            "netPrice": null
        },
        "tax": null,
        "stock": {
            "available": 1,
            "unit": "UNIT"
        },
        "publication": {
            "duration": null,
            "status": "ACTIVE",
            "startingAt": null,
            "endingAt": null,
            "endedBy": null,
            "republish": false
        },
        "delivery": {
            "shippingRates": {
                "id": "17221a3c-f4cf-4e47-953a-8e125013b014"
            },
            "handlingTime": "PT336H",
            "additionalInfo": "",
            "shipmentDate": null
        },
        "payments": {
            "invoice": "NO_INVOICE"
        },
        "discounts": null,
        "afterSalesServices": {
            "impliedWarranty": {
                "id": "f86078a6-9f42-4b76-9696-1e5c0646a60a"
            },
            "returnPolicy": {
                "id": "47101223-7236-4201-9779-316e6d10af2a"
            },
            "warranty": null
        },
        "additionalServices": null,
        "sizeTable": null,
        "fundraisingCampaign": null,
        "promotion": {
            "emphasized": true,
            "bold": false,
            "highlight": false,
            "departmentPage": false,
            "emphasizedHighlightBoldPackage": false
        },
        "location": {
            "countryCode": "PL",
            "province": "WIELKOPOLSKIE",
            "city": "Poznań",
            "postCode": "66-166"
        },
        "external": null,
        "attachments": [],
        "contact": null,
        "validation": {
            "errors": [],
            "warnings": [],
            "validatedAt": "2020-12-04T09:31:07.684Z"
        },
        "createdAt": "2020-10-01T05:44:23.000Z",
        "updatedAt": "2020-12-04T09:31:08.925Z"
    }
}

meridPL avatar Mar 20 '24 14:03 meridPL