postmen / postmen-sdk-php

AfterShip Shipping (Postmen) API Client Library for PHP (USPS, FedEx, UPS, DHL and more)
https://www.aftership.com/postmen
10 stars 11 forks source link

Pass potential api response data to PostmenException. #27

Open d-ph opened 3 years ago

d-ph commented 3 years ago

This is needed in case an api call to the /rates endpoint returns error details in the response data itself, rather than in the "meta" hashmap. This is usually the case for the 4713 error code.