allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
217 stars 39 forks source link

Express note #9859

Open tongalalal opened 2 months ago

tongalalal commented 2 months ago

Why did such an error occur when I used the interface https://api.{environment}/shipment-management/label to get the express sheet? {"errors":[{"code":"ERROR","message":"The object sent cannot be properly parsed","details":null,"path":"request","userMessage":"Nie mo rhena prawid? owo sparsowa; przes? anego obiektu","metadata":{}}]}. How can I solve this problem? I want to get this express receipt

Lukasz-Zurek commented 2 months ago

Please send me a trace-id or/and a full request.

tongalalal commented 2 months ago

3196654b5d96a43a this is my trace_id

Lukasz-Zurek commented 2 months ago

@tongalalal In your request body I see:

shipmentIds=12dac980-603b-11ef-bf5b-2798c64ba73d&pageSize=A6

and it should be:

{
  "shipmentIds": [
    "12dac980-603b-11ef-bf5b-2798c64ba73d"
  ],
  "pageSize": "A6"
}

So this is something wrong with converting to json on your side.