jlevers / selling-partner-api

A PHP client library for Amazon's Selling Partner API
BSD 3-Clause "New" or "Revised" License
397 stars 185 forks source link

getEligibleShipmentServices Invalid value for enum #123

Closed plastic-craft closed 2 years ago

plastic-craft commented 2 years ago

On the latest version (v4.1.2), I am running into an issue calling the getEligibleShipmentServices operation. Here is my current code (with certain data obfuscated):

public function getEligibleShipmentServices($xmlBody) {
      $config = new \SellingPartnerApi\Configuration([
        "lwaClientId" => "<LWA client ID>",
        "lwaClientSecret" => "<LWA client secret>",
        "lwaRefreshToken" => "<LWA refresh token>",
        "awsAccessKeyId" => "<AWS access key ID>",
        "awsSecretAccessKey" => "<AWS secret access key>",
        "endpoint" => \SellingPartnerApi\Endpoint::NA
      ]);

      $apiInstance = new \SellingPartnerApi\Api\MerchantFulfillmentApi($config);

      // convert total weight from lbs to grams
      $weight = (string)$xmlBody->Customer->Order->Shipment->Package->TotalWeight;
      $weightFloat = floatval($xmlBody->Customer->Order->Shipment->Package->TotalWeight);
      $weightGrams = $weight * 453.59237;

      /* Get Eligible Shipment Services Request Model */
      $body = new \SellingPartnerApi\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest([
        "shipment_request_details" => new \SellingPartnerApi\Model\MerchantFulfillment\ShipmentRequestDetails([
          "amazon_order_id" => (string)$xmlBody->Customer->Order->Amazon->AmazonOrderID,
          "item_list" => [
            new \SellingPartnerApi\Model\MerchantFulfillment\FBMItem([
              "order_item_id" => (string)$xmlBody->Customer->Order->Item[0]->Amazon->OrderItemCode,
              "quantity" => intval($xmlBody->Customer->Order->Item[0]->Quantity)
            ])
          ],
          "ship_from_address" => new \SellingPartnerApi\Model\MerchantFulfillment\Address([
            "name" => "<Company Name>",
            "address_line1" => "<Address Line 1>",
            "email" => "<Email>",
            "city" => "<City>",
            "postal_code" => "<Postal Code>",
            "state_or_province_code" => "<State>",
            "country_code" => "<Country Code>",
            "phone" => "<Phone>"
          ]),
          "package_dimensions" => new \SellingPartnerApi\Model\MerchantFulfillment\PackageDimensions([
            "length" => doubleval($xmlBody->Customer->Order->Shipment->Package->Dimensions->Length),
            "width" => doubleval($xmlBody->Customer->Order->Shipment->Package->Dimensions->Width),
            "height" => doubleval($xmlBody->Customer->Order->Shipment->Package->Dimensions->Height),
            "unit" => "inches"
          ]),
          "weight" => new \SellingPartnerApi\Model\MerchantFulfillment\Weight([
            "value" => $weightGrams,
            "unit" => "g"
          ]),
          "shipping_service_options" => new \SellingPartnerApi\Model\MerchantFulfillment\ShippingServiceOptions([
            "delivery_experience" => "DeliveryConfirmationWithoutSignature",
            "carrier_will_pick_up" => false
          ])
        ])
      ]);

      error_log($body);

      $result = $apiInstance->getEligibleShipmentServices($body);
      error_log($result);
}

Using the following code, I am receiving the following error, despite the fact that the LabelFormat field is optional and not even present in the request body:

PHP Fatal error: Uncaught InvalidArgumentException: Invalid value for enum '\SellingPartnerApi\Model\MerchantFulfillment\LabelFormat', must be one of: 'PDF', 'PNG', 'ZPL203', 'ZPL300', 'ShippingServiceDefault' in /app/vendor/jlevers/selling-partner-api/lib/ObjectSerializer.php:345

I am able to receive a successful response in Postman using the exact same body, as shown here.

image

When changing the carrier_will_pick_up option to true and leaving everything else the same, the call is then successful however for my use case it has to be set to false.

jlevers commented 2 years ago

I'm guessing that this is because Amazon is sending you back a response where the available_format_options_for_label contains one or more label options that aren't in the enum they define in their JSON API models (which are what I use to generate this library).

Edit: actually, you can ignore what I said below -- if you could just show me the full JSON response from Postman, that would accomplish the same thing.

Could you go to vendor/jlevers/selling-partner-api/lib/Api/MerchantFulfillmentApi.php and dump out the contents of $responseBody right after this line?

https://github.com/jlevers/selling-partner-api/blob/5d79032d6b1ad77459defd3721b0c2379318a196/lib/Api/MerchantFulfillmentApi.php#L2020

plastic-craft commented 2 years ago

Here is the full JSON body from Postman. Just to double check, I dumped out the $responseBody contents and was receiving the same response back as well, but still getting the error. Based on what you said, it looks like all of the available_format_options_for_label are already in the enum as it is which is very strange.

Also, when specifying a label_format in the shipping_service_options, I am receiving the same error.

{
  "payload":{
    "ShippingServiceList":[
      {
        "ShippingServiceName":"USPS Priority Mail®",
        "CarrierName":"USPS",
        "ShippingServiceId":"USPS_PTP_PRI",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBcAAAAAAAAAD2pESOhKMUdbHsBUuP9Itwt77NtPG9LOVbPpbon2QP+GMaGT2SAHcRu59hiR0oEbNIkFf35LM+yhd0yIIeUZavJc0ButgbVIiV02H+27JnT1S/v+P0hHLhteICAu9u0oNMddVDa4zGpEK7n4DQHK4S",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-13T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-13T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":8.63
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"UPS 2nd Day Air",
        "CarrierName":"UPS",
        "ShippingServiceId":"UPS_PTP_2ND_DAY_AIR",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBhgAAAAAAAAAMsvx1Nfno0YVUFKFMEUnYkaBgk9bbmDg4VyhG+W1ljS7q02pei8DY8F71ZuYt/WtLKL6Vgycl0jLOqKp7PEQnC8Tx/TDJ4Fa5XwdC0wENKd5SbErBsmP71AoKHe6hONacEBF6eJ+AjWAHz+h48uTlJkkp9cXaxXatFxg9m3U9g1d+ZPBrmw==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":13.99
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"UPS 3 Day Select",
        "CarrierName":"UPS",
        "ShippingServiceId":"UPS_PTP_3DAY_SELECT",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBhgAAAAAAAADWi96AfIHkx4A4Ci8z5UZG/R7x/jn8pVJ+ZpwPa5mcJCs59MFIBwKUBz4CIgv2fL1VmOZQtopJf3J7X4f8labyK9a8kX1z+z4ZNwG7U+RgV56ujjR9YPSNk13ixlAjErS2rq+iM/59BrvHDGw8IQQwTFHx82dj+d5Ig/Aro8Kz4q4/dueSVA==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-12T07:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-12T07:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":12.31
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"UPS Next Day Air Saver",
        "CarrierName":"UPS",
        "ShippingServiceId":"UPS_PTP_NEXT_DAY_AIR_SAVER",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBjQAAAAAAAAAfB/3rjNK7ZEzH4oILS2VAzwD3jtGoZtzQ2Q93cKU04+zesqOfWJG8cCjtgHQ95GSm4zFtdSv+kvLUoP6CCGQ6nSxGWP43zECASuq3wEPgeTbMNfR32e8XXMu07XEWPS/NwnzvLyQAEtt6zfRYr4OsOf6A1nvLOUHAFWhIday9XPubcRMVBKIXtER9YTo=",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-10T07:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-10T07:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":31.88
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"UPS Next Day Air",
        "CarrierName":"UPS",
        "ShippingServiceId":"UPS_PTP_NEXT_DAY_AIR",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBhwAAAAAAAABqKVPF0fn9BNRidjeYrGmCpFKpJ7q9dg1Sek0ZvcpyruE84L/JO+GCQ1EYNveR07PZY6+m4u9oc+q34wSl1wC7XQmKLjj9CHFo1O5rxz92J+qSjklKFd2vX9naPbgN7wJINFeT3l4GyfHUAGujtJ14QRjSwcD416lWzHDTFr+hdGq+n1JI6BU=",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-09T20:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-09T20:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":37.88
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"UPS Ground",
        "CarrierName":"UPS",
        "ShippingServiceId":"UPS_PTP_GND",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBfgAAAAAAAAAgGprTfqd/p+1xALfOqRJc6ogbI1mDjKoO3osdaTvNKyZhHKi0BtHaDUxoiBVIF8H5LqCPimQ37eHZ9kjbRlqlV9O+45EBNa0G1tOUdiRoGyDfBgHzEDjqIceoGZCrHJnUDwxwoMbCigJdqmhNbpQ5bZUibUqsBpn9BPkF0Ac=",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-12T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-12T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":10.33
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"USPS Priority Mail® Large Flat Rate Box",
        "CarrierName":"USPS",
        "ShippingServiceId":"USPS_PTP_PRI_LFRB",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBdgAAAAAAAAAwM6ZGDLjtuPkGIwgRZULKd6+LGmrXSYPYtts6s0yQXf3Y/8K6Bw+hAWsCR+OPYtThrx5ptzwiYxRaBbqMiPwTZ1dQzeF3frtnv0O+sxO/55YZqcek9ds9PD8hJRJEbNjaCfpfe41LyMbp3Y13Sz7+B32Hfr1X",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-13T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-13T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":20.05
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"USPS Priority Mail Express®",
        "CarrierName":"USPS",
        "ShippingServiceId":"USPS_PTP_EXP",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBcQAAAAAAAAAZSU99efw0gDrhXmQMTKdFDUnL5PmOh+TwSgD+6Dq8xyDWgkYfmWUA26pM6j743yFpQdAYRnPmG4T1rB2K4S/2+/esseyFFU4C67xRPr/yZ4gcxFqvRKVK0UfMW4vkjJDTfV4Sl/amR5voNSNmOwIKjg==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":33.2
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx Priority Overnight®",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_PRIORITY_OVERNIGHT",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBkQAAAAAAAAAfm/0MNM5IdxNTquQk/iigSAFXJyYEqlreWdo85uA1mmQr6+0ak/GTl9hZ74OCxej+l3bdpu7mGP7NFnmGzGp1c9UPEQu8nnLlJPcNJ9BZkxBaBBsrADSIFF+c+XzNUqbyBTyQymitJ4iDnhWY2eLquIXqGJH+4pIL+a6bUNxYwrgNpGDJ38fyNMZOWyZYFBME",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-10T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-10T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":62.2
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx Standard Overnight®",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_STANDARD_OVERNIGHT",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBkAAAAAAAAAAL2Ew3FsGZj9RRcbMeQVtg1e47/5hx1GJSIzfe+QcuAWiuOwhDamrR7a30kxLa02Dpr1Rj7cDCHorWDjnZlBFDghpZahxRpJijp1fPCx4I5AQjoXYuQTQdHiVK2wlAjPpGbm1QZm57FFE86krn8/tEJEcg9bv60IaOMD76OFoi5ssJMesEuyBSb9/QlvjXPtY=",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-09T20:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-09T20:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":55.72
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx 2Day®A.M.",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_SECOND_DAY_AM",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBjAAAAAAAAACCpZoWuvM148zRtf89HAPAXludl5JmMKij21sjYKne3L5SAYn2R1+zs61JJEjS8aRpIgmOeXyJjRlAcw0gK8+KiCqm2DOyK2zYdaiEph21yg6jSAI0qYehrS+BEorHgzv0lswMVaR7nFL+COEa/4fFR3fMbBQeMfQ/AMTZl5/lcwPIE73YH1MdEz+O0A==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-10T13:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-10T13:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":34.2
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx 2Day®",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_SECOND_DAY",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBiQAAAAAAAADVNUPznH0FvtFD5EfvhqoX5RB3+yA60t/u/7RF0IkKXUlK8WTPneSLdWxV4c9npJrCrCDK2DSkvWhZqhV76LhIlLD5wSrIgb1yo1lSO3cLUJURpkNei8buuaR1KuBRHD6utwEC4MURPuDz6xRMwNFbcTTJOz0vAdWkyiwOIyv5wJh2tXMMNuIq7g==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-11T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":31.29
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx Express Saver®",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_EXPRESS_SAVER",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBjAAAAAAAAAA95pChwm64luIk9hkeG8+Q/v/mNKSJf1kvkZrdUwRhEO9oMTUvuwMNXaNX99MmDvZ+kc2t/OGrg4B260tr+pnX3ZN2FANRm7Z4K51bnAjxSXQubs2asQ1dNCcZDj9n/xEuPQc0yHygxobddVmxY48Gf0rkkFk6Zyy98g41e8ntt4a7kOyCVgsK4Dnfog==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-11T20:00:00Z",
        "LatestEstimatedDeliveryDate":"2021-11-11T20:00:00Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":28.22
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      },
      {
        "ShippingServiceName":"FedEx Home Delivery®",
        "CarrierName":"FEDEX",
        "ShippingServiceId":"FEDEX_PTP_HOME_DELIVERY",
        "ShippingServiceOfferId":"AAAAAAAAAADhhgquV/8uT1r3/2AlGrGBjAAAAAAAAAAxtE8a1GM3r9+MknZUM9OVJjlIw4J4UrZJ9uyYNiVrMJLVIgWkIT9UiDTfeGm/md6u3i0OG6cnzMnK6x06edVqWDOuj8W+tSvOg+jbHEdi9R1p/UEQKw7DPQgZ6S3qdo7D++BUXlE68nyP01x7Q5ADC26Rl8Rs8rq55Acsb0fZZNoon8S/Jalp1iBs+g==",
        "ShipDate":"2021-11-08T13:08:59Z",
        "EarliestEstimatedDeliveryDate":"2021-11-12T07:59:59Z",
        "LatestEstimatedDeliveryDate":"2021-11-12T07:59:59Z",
        "Rate":{
          "CurrencyCode":"USD",
          "Amount":22.41
        },
        "ShippingServiceOptions":{
          "DeliveryExperience":"DeliveryConfirmationWithoutSignature",
          "CarrierWillPickUp":false,
          "LabelFormat":""
        },
        "AvailableLabelFormats":[
          "ZPL203",
          "ShippingServiceDefault",
          "PDF",
          "PNG"
        ],
        "AvailableFormatOptionsForLabel":[
          {
            "LabelFormat":"ZPL203"
          },
          {
            "LabelFormat":"ShippingServiceDefault"
          },
          {
            "LabelFormat":"PDF"
          },
          {
            "LabelFormat":"PNG"
          }
        ]
      }
    ],
    "RejectedShippingServiceList":[
      {
        "CarrierName":"AMAZON_HORIZON",
        "ShippingServiceName":"Amazon Horizon-Standard-CN-US-NLB",
        "ShippingServiceId":"AMAZON_HORIZON_STANDARD_CN_US_NLB",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"AMAZON_HORIZON",
        "ShippingServiceName":"Amazon Horizon-Standard-CN-US-NLB",
        "ShippingServiceId":"AMAZON_HORIZON_STANDARD_CN_US_NLB",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post Ordinary Airmail",
        "ShippingServiceId":"CHINA_POST_AIRMAIL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post e-Courier Packet",
        "ShippingServiceId":"CHINA_POST_E_COURIER_PKT",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post e-Courier Packet (special)",
        "ShippingServiceId":"CHINA_POST_E_COURIER_PKT_SPCL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post e-Courier Priority",
        "ShippingServiceId":"CHINA_POST_E_COURIER_PRI",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post e-Courier Priority (special)",
        "ShippingServiceId":"CHINA_POST_E_COURIER_PRI_SPCL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post e-EMS",
        "ShippingServiceId":"CHINA_POST_E_EMS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post ePacket",
        "ShippingServiceId":"CHINA_POST_E_PACKET",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"CHINA_POST",
        "ShippingServiceName":"China Post Registered Airmail",
        "ShippingServiceId":"CHINA_POST_REGISTERED_AIRMAIL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"DHLECCN",
        "ShippingServiceName":"DHL Parcel International Direct Goods",
        "ShippingServiceId":"DHLECCN_PLG",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"DHLECCN",
        "ShippingServiceName":"DHL Parcel International Direct Standard",
        "ShippingServiceId":"DHLECCN_PLT",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"DHLMX",
        "ShippingServiceName":"DHL Express International",
        "ShippingServiceId":"DHLMX_PTP_PACKAGE_EXPRESS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"DYNAMEX",
        "ShippingServiceName":"TForce Same Day ",
        "ShippingServiceId":"DYNAMEX_PTP_SAME",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Express Saver® One Rate",
        "ShippingServiceId":"FEDEX_PTP_EXPRESS_SAVER_ONE_RATE",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Ground®",
        "ShippingServiceId":"FEDEX_PTP_GROUND",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Priority Overnight® One Rate",
        "ShippingServiceId":"FEDEX_PTP_PRIORITY_OVERNIGHT_ONE_RATE",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Priority Overnight® (Saturday)",
        "ShippingServiceId":"FEDEX_PTP_PRI_OVERNIGHT_SAT",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Priority Overnight® One Rate (Saturday)",
        "ShippingServiceId":"FEDEX_PTP_PRI_OVERN_ONE_R_SAT",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx 2Day®A.M. One Rate",
        "ShippingServiceId":"FEDEX_PTP_SECOND_DAY_AM_ONE_RATE",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"Fedex 2Day® One Rate",
        "ShippingServiceId":"FEDEX_PTP_SECOND_DAY_ONE_RATE",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx 2Day® (Saturday)",
        "ShippingServiceId":"FEDEX_PTP_SECOND_DAY_SAT",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"Fedex 2Day® One Rate (Saturday)",
        "ShippingServiceId":"FEDEX_PTP_SEC_DAY_ONE_RATE_SAT",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"FEDEX",
        "ShippingServiceName":"FedEx Standard Overnight® One Rate",
        "ShippingServiceId":"FEDEX_PTP_STANDARD_OVERNIGHT_ONE_RATE",
        "RejectionReasonCode":"EXCLUDED_FROM_CARRIER_RESPONSE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"HNC",
        "ShippingServiceName":"HNC VNUS Direct",
        "ShippingServiceId":"HNC_VNUS_DIRECT",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"IPARCEL",
        "ShippingServiceName":"UPS i-parcel International Select",
        "ShippingServiceId":"I_PARCEL_MFN_SELECT",
        "RejectionReasonCode":"CARRIER_NOT_ENABLED",
        "RejectionReasonMessage":"Carrier not enabled"
      },
      {
        "CarrierName":"ONTRAC",
        "ShippingServiceName":"OnTrac Ground",
        "ShippingServiceId":"ONTRAC_MFN_GROUND",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"SELF_DELIVERY",
        "ShippingServiceName":"SELF_DELIVERY_PTP_GROUND",
        "ShippingServiceId":"SELF_DELIVERY_PTP_GROUND",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Seller is not registered to use this shipping service."
      },
      {
        "CarrierName":"UPS",
        "ShippingServiceName":"UPS 2nd Day Air® (Saturday)",
        "ShippingServiceId":"UPS_PTP_2ND_DAY_AIR_SAT",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"UPS",
        "ShippingServiceName":"UPS Next Day Air® (Saturday)",
        "ShippingServiceId":"UPS_PTP_NEXT_DAY_AIR_SAT",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Bound Printed Matter",
        "ShippingServiceId":"USPS_PTP_BPM",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express®",
        "ShippingServiceId":"USPS_PTP_EXP_CUSTOMS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express® Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_EXP_FRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express International Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_EXP_FRE_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express International",
        "ShippingServiceId":"USPS_PTP_EXP_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express Legal Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_EXP_LFRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Express Padded Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_EXP_PFRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS First Class",
        "ShippingServiceId":"USPS_PTP_FC",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS First Class",
        "ShippingServiceId":"USPS_PTP_FC_CUSTOMS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS First Class International",
        "ShippingServiceId":"USPS_PTP_FC_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Media Mail",
        "ShippingServiceId":"USPS_PTP_MM",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Parcel Post",
        "ShippingServiceId":"USPS_PTP_PP",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Cubic®",
        "ShippingServiceId":"USPS_PTP_PRI_CUBIC",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail®",
        "ShippingServiceId":"USPS_PTP_PRI_CUSTOMS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail® Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_PRI_FRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail International Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_PRI_FRE_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail International",
        "ShippingServiceId":"USPS_PTP_PRI_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail® Large Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_LFRB_CUSTOMS",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail International Large Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_LFRB_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Legal Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_PRI_LFRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_MFRB",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail International Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_MFRB_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Padded Flat Rate Envelope",
        "ShippingServiceId":"USPS_PTP_PRI_PFRE",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Regional Rate Box A",
        "ShippingServiceId":"USPS_PTP_PRI_RA",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail Regional Rate Box B",
        "ShippingServiceId":"USPS_PTP_PRI_RB",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail® Small Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_SFRB",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Priority Mail International Small Flat Rate Box",
        "ShippingServiceId":"USPS_PTP_PRI_SFRB_INTL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"It is not an eligible ship method for this order."
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Economy Mail - General Cargo",
        "ShippingServiceId":"YW_AIR_ECONOMY_MAIL_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Economy Mail - Special Cargo",
        "ShippingServiceId":"YW_AIR_ECONOMY_MAIL_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air E-Packet - General Cargo",
        "ShippingServiceId":"YW_AIR_EPAKCET_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air E-Packet - Special Cargo",
        "ShippingServiceId":"YW_AIR_EPAKCET_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Registered Mail - General Cargo",
        "ShippingServiceId":"YW_AIR_REGISTER_MAIL_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Registered Mail - Special Cargo",
        "ShippingServiceId":"YW_AIR_REGISTER_MAIL_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Tracked Packet - General Cargo",
        "ShippingServiceId":"YW_AIR_TRACK_PACKET_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Air Tracked Packet - Special Cargo",
        "ShippingServiceId":"YW_AIR_TRACK_PACKET_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen Express Special Line - P",
        "ShippingServiceId":"YW_EXPRESS_SL_P",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen Express Special Line - T",
        "ShippingServiceId":"YW_EXPRESS_SL_T",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Untracked Packet - General Cargo",
        "ShippingServiceId":"YW_UNTRACKED_PACKET_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen YW Untracked Packet - Special Cargo",
        "ShippingServiceId":"YW_UNTRACKED_PACKET_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen Y-Post Ordinary Mail - General Cargo",
        "ShippingServiceId":"Y_POST_ORDINARY_MAIL_GENERAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen Y-Post Ordinary Mail - Special Cargo",
        "ShippingServiceId":"Y_POST_ORDINARY_MAIL_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YANWEN",
        "ShippingServiceName":"Yanwen Y-Post Registered Mail - Special Cargo",
        "ShippingServiceId":"Y_POST_REGISTER_MAIL_SPECIAL",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YUN",
        "ShippingServiceName":"Yun Express Global Direct Line -Tracked",
        "ShippingServiceId":"YUN_DIRECT_LINE_DDP_TRACKED",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YUN",
        "ShippingServiceName":"Yun Express Global Direct Line DDP-Untracked",
        "ShippingServiceId":"YUN_DIRECT_LINE_DDP_UNTRACK",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"YUN",
        "ShippingServiceName":"YunExpress General Cargo Direct Line DDP-Tracked",
        "ShippingServiceId":"YUN_DIRECT_LINE_DDU_TRACKED",
        "RejectionReasonCode":"INELIGIBLE",
        "RejectionReasonMessage":"Dimension violation"
      },
      {
        "CarrierName":"USPS",
        "ShippingServiceName":"USPS Parcel Select",
        "ShippingServiceId":"USPS_PTP_PSBN",
        "RejectionReasonCode":"DOES_NOT_MEET_PDD",
        "RejectionReasonMessage":"Does Not Meet Promised Delivery Date"
      }
    ],
    "TermsAndConditionsNotAcceptedCarrierList":[
      {
        "CarrierName":"DHLECCN"
      },
      {
        "CarrierName":"HNC"
      }
    ]
  }
}
jlevers commented 2 years ago

I think the issue is probably the empty string LabelFormat values in the ShippingServiceOptions object -- let me see if I can get that to parse to null instead of an empty string.

jlevers commented 2 years ago

Try installing v4.1.5 and let me know if that solves the problem :)

plastic-craft commented 2 years ago

Thank seems to have solved it. Thanks for your help! :+1: