allegro / allegro-api

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

Pobieranie etykiety dla utworzonej przesyłki - dziwny pdf. #7402

Closed DawidSmuga closed 1 year ago

DawidSmuga commented 1 year ago

Używam allegro sandbox, po poprawnym utworzeniu przesyłki chce pobrać etykietę i dostaje takie coś:

obraz

W czym może być problem?

response po utworzeniu :

object(stdClass)[40]
  public 'id' => string '8889abe4-7a2f-457c-94dc-f1b062e82a50' (length=36)
  public 'input' => 
    object(stdClass)[41]
      public 'serviceId' => string '0aafb43c-e66a-46ec-9cc4-29bb39ebb483' (length=36)
      public 'label' => 
        object(stdClass)[44]
          public 'sender' => 
            object(stdClass)[42]
              public 'name' => string 'GOcreate' (length=8)
              public 'company' => string 'GOcreate' (length=8)
              public 'address' => 
                object(stdClass)[43]
                  public 'street' => string 'Czapliniecka' (length=12)
                  public 'postCode' => string '97-400' (length=6)
                  public 'city' => string 'Bełchatów' (length=11)
                  public 'county' => null
                  public 'countryCode' => null
              public 'email' => string 'test@gocreate.pl' (length=16)
              public 'phone' => string '123456789' (length=9)
          public 'fileFormat' => string 'PDF' (length=3)
          public 'referenceNumber' => string '123456' (length=6)
      public 'receiver' => 
        object(stdClass)[45]
          public 'name' => string '222' (length=3)
          public 'company' => null
          public 'address' => 
            object(stdClass)[46]
              public 'street' => string 'aaa' (length=3)
              public 'postCode' => string '97-400' (length=6)
              public 'city' => string 'aaa' (length=3)
              public 'county' => null
              public 'countryCode' => null
          public 'pointId' => string 'AL014EP1' (length=8)
          public 'email' => string 'rzlhxgg7pg+61c6ad092@user.allegrogroup.pl' (length=41)
          public 'phone' => string '+48 784 525 134' (length=15)
      public 'pickup' => 
        object(stdClass)[47]
          public 'name' => string 'AL014EP1' (length=8)
          public 'company' => null
          public 'address' => 
            object(stdClass)[48]
              public 'street' => string 'Sikorskiego 52' (length=14)
              public 'postCode' => string '97-300' (length=6)
              public 'city' => string 'Piotrków Trybunalski' (length=21)
              public 'county' => null
              public 'countryCode' => null
          public 'pointId' => null
          public 'email' => null
          public 'phone' => string '123123123' (length=9)
      public 'items' => 
        array (size=1)
          0 => 
            object(stdClass)[53]
              public 'dimensions' => 
                object(stdClass)[50]
                  public 'height' => 
                    object(stdClass)[49]
                      public 'value' => string '20' (length=2)
                      public 'unit' => string 'CENTIMETER' (length=10)
                  public 'width' => 
                    object(stdClass)[51]
                      public 'value' => string '20' (length=2)
                      public 'unit' => string 'CENTIMETER' (length=10)
                  public 'depth' => 
                    object(stdClass)[52]
                      public 'value' => string '20' (length=2)
                      public 'unit' => string 'CENTIMETER' (length=10)
              public 'weight' => 
                object(stdClass)[54]
                  public 'value' => string '12' (length=2)
                  public 'unit' => string 'KILOGRAM' (length=8)
              public 'description' => string 'Pufa dziergana pleciona dmuchana morski błękit' (length=48)
              public 'value' => 
                object(stdClass)[55]
                  public 'amount' => string '22.00' (length=5)
                  public 'currency' => string 'PLN' (length=3)
              public 'type' => string 'PACKAGE' (length=7)
      public 'type' => string 'PACKAGE' (length=7)
      public 'additionalServices' => null

response po sprawdzeniu statusu:

  public 'id' => string '8889abe4-7a2f-457c-94dc-f1b062e82a50' (length=36)
  public 'parcelId' => string 'db30102d-4ae4-4b54-8ca2-dda20b6207e2' (length=36)
  public 'status' => string 'SUCCESS' (length=7)
  public 'errors' => 
    array (size=0)
      empty

response po pobraniu etykiety to string

header("Content-type:application/pdf");
echo $getLabel;

i wyświetla się to co na screenie. Jeśli to pomoże to wybrany kurier to allegro one.

Lukasz-Zurek commented 1 year ago

Nie jest to błąd. W ten sposób prezentujemy etykietę na środowisku testowym.

DawidSmuga commented 1 year ago

Okej, dzięki za szybką odpowiedź :)

stale[bot] commented 1 year ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.