diff --git a/easypost/services/tracker_service.py b/easypost/services/tracker_service.py index 777652b..af81862 100644 --- a/easypost/services/tracker_service.py +++ b/easypost/services/tracker_service.py @@ -4,6 +4,7 @@ List, Optional, ) +from warnings import warn from easypost.constant import _FILTERS_KEY from easypost.models import Tracker @@ -61,7 +62,15 @@ def get_next_page( return self.all(**params) def create_list(self, trackers: List[Dict[str, Any]]) -> None: - """Create a list of Trackers.""" + """Create a list of Trackers. + + NOTE: This function is deprecated, use the create function instead. + """ + warn( + "This function is deprecated, use the create function instead.", + DeprecationWarning, + stacklevel=2, + ) url = f"{self._class_url(self._model_class)}/create_list" wrapped_params = {"trackers": trackers} diff --git a/examples b/examples index a073139..b9fde9b 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit a073139f81aa9c82e72bcc000a6c1a155050b1b9 +Subproject commit b9fde9bead7750256bc986802841ce7576eee0a4 diff --git a/tests/cassettes/test_order_buy.yaml b/tests/cassettes/test_order_buy.yaml index 441e3f4..b03fbcd 100644 --- a/tests/cassettes/test_order_buy.yaml +++ b/tests/cassettes/test_order_buy.yaml @@ -5,13 +5,8 @@ interactions: "country": "US", "email": "test@example.com", "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "shipments": [{"from_address": {"name": "Jack Sparrow", - "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": - "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": - "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": - 10, "width": 8, "height": 4, "weight": 15.4}}]}}' + "phone": "5555555555"}, "shipments": [{"parcel": {"weight": 10.2}}, {"parcel": + {"weight": 17.5}}]}}' headers: Accept: - '*/*' @@ -20,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '925' + - '501' Content-Type: - application/json authorization: @@ -31,163 +26,254 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:55Z", "updated_at": "2023-05-15T18:07:56Z", - "customs_info": null, "from_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": - "2023-05-15T18:07:55+00:00", "name": "Jack Sparrow", "company": null, "street1": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:41Z", + "updated_at": "2024-06-14T16:51:43Z", "customs_info": null, "from_address": + {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipments": [{"created_at": "2024-06-14T16:51:41Z", "is_return": false, + "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:41Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", + "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": + "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": - "2023-05-15T18:07:55+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_eb97896350a44a99a7311b8b46f24c4d", "parcel": {"id": "prcl_917cf75362fe447984f62a74d76a94a5", + "object": "Parcel", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_40e9f85e183a4fc991950df1d8452c49", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4d87d8a281d4441aa6496a230049a798", "object": "Rate", "created_at": + "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", + "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": + "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", "name": + "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:55Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:07:55Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_6a844103f34b11edbb9cac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_9aa57eaab7b74b92bbe465888a8431fe", - "parcel": {"id": "prcl_74bff50ca05b4fc49b6a5bec327747ec", "object": "Parcel", - "created_at": "2023-05-15T18:07:55Z", "updated_at": "2023-05-15T18:07:55Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_13e098de84ad41eb9ad1daba80e9718a", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9b653a64965642f4b9f404e132bfa810", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_138af6f573814e5e8e43c7f9319e3097", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "forms": [], "fees": [], "id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:41Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:41Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", + "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": + "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_eb97896350a44a99a7311b8b46f24c4d", "parcel": {"id": "prcl_8d95e55464df48a0bb1799df2877e485", + "object": "Parcel", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_84ded8d7a860438b99a0ef129009eb79", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0f675560d2b4ba59f9fe5774c9d33c3", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_23e0487de82b475eb599bc4464c7cb98", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_203ae1edd59347be96d2b075322b638a", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_69ef22b0358b40738e0f14131ec1ccd6", "object": "Rate", "created_at": + "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_bc1d9372deb74d29ac83fdd41764a70c", "object": "Rate", "created_at": + "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", + "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", + null, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": - "2023-05-15T18:07:55+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", + "object": "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": + "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", "name": + "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "object": "Shipment"}], "rates": [{"id": "rate_13e098de84ad41eb9ad1daba80e9718a", + {}}, "forms": [], "fees": [], "id": "shp_1e82d1e11edf44c598791abfa99eb186", + "object": "Shipment"}], "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9b653a64965642f4b9f404e132bfa810", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_138af6f573814e5e8e43c7f9319e3097", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_40e9f85e183a4fc991950df1d8452c49", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a0f675560d2b4ba59f9fe5774c9d33c3", "object": "Rate", "created_at": + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_9aa57eaab7b74b92bbe465888a8431fe", - "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d87d8a281d4441aa6496a230049a798", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_eb97896350a44a99a7311b8b46f24c4d", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '11092' + - '18372' content-type: - application/json; charset=utf-8 - etag: - - W/"a95174c5aebcd92ab6e9aac5e199dcde" expires: - '0' location: - - /api/v2/orders/order_9aa57eaab7b74b92bbe465888a8431fe + - /api/v2/orders/order_eb97896350a44a99a7311b8b46f24c4d pragma: - no-cache referrer-policy: @@ -198,27 +284,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d4646274fbe78751610024b6f3 + - 9a934139666c751de78b0a46000b0999 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.883475' + - '1.543781' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: @@ -242,136 +326,242 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/orders/order_9aa57eaab7b74b92bbe465888a8431fe/buy + uri: https://api.easypost.com/v2/orders/order_eb97896350a44a99a7311b8b46f24c4d/buy response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:55Z", "updated_at": "2023-05-15T18:07:56Z", - "customs_info": null, "from_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": - "2023-05-15T18:07:55+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": - "2023-05-15T18:07:56+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": - "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", - "zip": "90277-2506", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": - null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": - [], "details": null}, "delivery": {"success": true, "errors": [], "details": - {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "buyer_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:56+00:00", + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:41Z", + "updated_at": "2024-06-14T16:51:43Z", "customs_info": null, "from_address": + {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "buyer_address": + {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "return_address": - {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", "name": + {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": "Address", "created_at": + "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:55Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-06-14T16:51:41Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100104262210000459", "updated_at": "2023-05-15T18:07:57Z", + "tracking_code": "9400100110368051965214", "updated_at": "2024-06-14T16:51:44Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", + null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_9aa57eaab7b74b92bbe465888a8431fe", - "parcel": {"id": "prcl_74bff50ca05b4fc49b6a5bec327747ec", "object": "Parcel", - "created_at": "2023-05-15T18:07:55Z", "updated_at": "2023-05-15T18:07:55Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_001fab69feec4c8baaf9b9eef4335471", - "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T18:07:56Z", - "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20230515/a1a15d8d9387433dae5f99b38afac250.png", + {}}, "insurance": null, "order_id": "order_eb97896350a44a99a7311b8b46f24c4d", + "parcel": {"id": "prcl_917cf75362fe447984f62a74d76a94a5", "object": "Parcel", + "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": {"object": "PostageLabel", + "id": "pl_d9240893eec240a1b8577b4836e9c58a", "created_at": "2024-06-14T16:51:43Z", + "updated_at": "2024-06-14T16:51:44Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-06-14T16:51:43Z", "label_resolution": 300, "label_size": + "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240614/e89f3ba2ed1b4d42f19f08fc433f210760.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_13e098de84ad41eb9ad1daba80e9718a", "object": - "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9b653a64965642f4b9f404e132bfa810", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_138af6f573814e5e8e43c7f9319e3097", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", "object": + "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_40e9f85e183a4fc991950df1d8452c49", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", + "object": "Rate", "created_at": "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4d87d8a281d4441aa6496a230049a798", "object": "Rate", "created_at": + "2024-06-14T16:51:42Z", "updated_at": "2024-06-14T16:51:42Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_642520ed55ce4e08aa2ed90f6a3406e6", "object": "Tracker", + "mode": "test", "tracking_code": "9400100110368051965214", "status": "unknown", + "status_detail": "unknown", "created_at": "2024-06-14T16:51:44Z", "updated_at": + "2024-06-14T16:51:44Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier": "USPS", + "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": + "https://track.easypost.com/djE6dHJrXzY0MjUyMGVkNTVjZTRlMDhhYTJlZDkwZjZhMzQwNmU2"}, + "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", + "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": + 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", + "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": + [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": + true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": + "5.07000", "charged": true, "refunded": false}], "id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:41Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": "9434600110368051965230", "updated_at": "2024-06-14T16:51:44Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_eb97896350a44a99a7311b8b46f24c4d", + "parcel": {"id": "prcl_8d95e55464df48a0bb1799df2877e485", "object": "Parcel", + "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": {"object": "PostageLabel", + "id": "pl_1e0a2b1dcf794251a1dd113af503cf20", "created_at": "2024-06-14T16:51:44Z", + "updated_at": "2024-06-14T16:51:44Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2024-06-14T16:51:44Z", "label_resolution": 300, "label_size": + "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240614/e8d1cbf2c307ac41f9a28ecfefe47c5cd8.png", + "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": + null}, "rates": [{"id": "rate_84ded8d7a860438b99a0ef129009eb79", "object": + "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0f675560d2b4ba59f9fe5774c9d33c3", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_23e0487de82b475eb599bc4464c7cb98", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_203ae1edd59347be96d2b075322b638a", + "object": "Rate", "created_at": "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_69ef22b0358b40738e0f14131ec1ccd6", "object": "Rate", "created_at": + "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a0f675560d2b4ba59f9fe5774c9d33c3", - "object": "Rate", "created_at": "2023-05-15T18:07:56Z", "updated_at": "2023-05-15T18:07:56Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_bc1d9372deb74d29ac83fdd41764a70c", "object": "Rate", "created_at": + "2024-06-14T16:51:43Z", "updated_at": "2024-06-14T16:51:43Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", + "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_203ae1edd59347be96d2b075322b638a", + "object": "Rate", "created_at": "2024-06-14T16:51:44Z", "updated_at": "2024-06-14T16:51:44Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_f7828f8b71394cfebe52ff000217d53a", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210000459", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T18:07:57Z", "updated_at": - "2023-05-15T18:07:57Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier": "USPS", + "shp_1e82d1e11edf44c598791abfa99eb186", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_460905fa33154d29a62b179de1ccd9b4", "object": "Tracker", + "mode": "test", "tracking_code": "9434600110368051965230", "status": "unknown", + "status_detail": "unknown", "created_at": "2024-06-14T16:51:44Z", "updated_at": + "2024-06-14T16:51:44Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_1e82d1e11edf44c598791abfa99eb186", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2Y3ODI4ZjhiNzEzOTRjZmViZTUyZmYwMDAyMTdkNTNh"}, - "to_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:56+00:00", + "https://track.easypost.com/djE6dHJrXzQ2MDkwNWZhMzMxNTRkMjlhNjJiMTc5ZGUxY2NkOWI0"}, + "to_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": "Address", + "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_6a844103f34b11edbb9cac1f6bc72124", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:55+00:00", + 4, "return_address": {"id": "adr_600b64332a6e11ef8163ac1f6bc53342", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:41+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_6a82c2b0f34b11ed9339ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-15T18:07:55+00:00", "updated_at": "2023-05-15T18:07:56+00:00", + {}}, "buyer_address": {"id": "adr_600953d72a6e11efb00cac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:41+00:00", "updated_at": "2024-06-14T16:51:44+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, @@ -379,44 +569,48 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "6.07000", "charged": true, "refunded": false}], "id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "object": "Shipment"}], "rates": [{"id": "rate_13e098de84ad41eb9ad1daba80e9718a", + "6.26000", "charged": true, "refunded": false}], "id": "shp_1e82d1e11edf44c598791abfa99eb186", + "object": "Shipment"}], "rates": [{"id": "rate_3686f3e252d447cfa98ca8ebc2d08ce8", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9b653a64965642f4b9f404e132bfa810", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_138af6f573814e5e8e43c7f9319e3097", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_40e9f85e183a4fc991950df1d8452c49", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e23cf13e6b234c0a9b945cd195db6fe1", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_98fc798a93d24dea8102513ae82ca2dd", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a0f675560d2b4ba59f9fe5774c9d33c3", "object": "Rate", "created_at": + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e5c89c5cba394e418bdc05a04d239bf6", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_98fc798a93d24dea8102513ae82ca2dd", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_9aa57eaab7b74b92bbe465888a8431fe", - "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_9afcc08837eb40629c9217cad9b7d6b1", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d87d8a281d4441aa6496a230049a798", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9afcc08837eb40629c9217cad9b7d6b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_eb97896350a44a99a7311b8b46f24c4d", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '12588' + - '21121' content-type: - application/json; charset=utf-8 - etag: - - W/"73f418f3c11751d893cbb56abe0d0313" expires: - '0' pragma: @@ -434,20 +628,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d4646274fce78751610024b742 + - 9a934139666c751fe78b0a46000b0b7c x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.909304' + - '1.631412' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_create.yaml b/tests/cassettes/test_order_create.yaml index 33c1927..5008f36 100644 --- a/tests/cassettes/test_order_create.yaml +++ b/tests/cassettes/test_order_create.yaml @@ -5,13 +5,8 @@ interactions: "country": "US", "email": "test@example.com", "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "shipments": [{"from_address": {"name": "Jack Sparrow", - "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": - "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": - "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": - 10, "width": 8, "height": 4, "weight": 15.4}}]}}' + "phone": "5555555555"}, "shipments": [{"parcel": {"weight": 10.2}}, {"parcel": + {"weight": 17.5}}]}}' headers: Accept: - '*/*' @@ -20,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '925' + - '501' Content-Type: - application/json authorization: @@ -31,163 +26,254 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:13Z", "updated_at": "2023-05-15T18:07:14Z", - "customs_info": null, "from_address": {"id": "adr_517cda4df34b11eda6ffac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:13+00:00", "updated_at": - "2023-05-15T18:07:13+00:00", "name": "Jack Sparrow", "company": null, "street1": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:33Z", + "updated_at": "2024-06-14T16:51:35Z", "customs_info": null, "from_address": + {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", "object": + "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipments": [{"created_at": "2024-06-14T16:51:33Z", "is_return": false, + "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:33Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": + "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_517b4994f34b11eda1ae3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:13+00:00", "updated_at": - "2023-05-15T18:07:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_c125ca9307784d8ab68b72372b03d217", "parcel": {"id": "prcl_9d123f0b63094ebabd68af9a97fce61a", + "object": "Parcel", "created_at": "2024-06-14T16:51:33Z", "updated_at": "2024-06-14T16:51:33Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_ad9698588ba34f24a73e7b908f87e431", + "object": "Rate", "created_at": "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_835eb20253df48259ba44f0d2275a230", + "object": "Rate", "created_at": "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_1ed0a0715b674b26bf750a301421e4a2", "object": "Rate", "created_at": + "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_22c5633028284e76a6804de30c22f530", "object": "Rate", "created_at": + "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", + "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_f775e287d24446b7b1d4f1f7084fc095", "object": "Rate", "created_at": + "2024-06-14T16:51:34Z", "updated_at": "2024-06-14T16:51:34Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.88", "currency": "USD", + "retail_rate": "9.80", "retail_currency": "USD", "list_rate": "8.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": + "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_517b4994f34b11eda1ae3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:13+00:00", "updated_at": "2023-05-15T18:07:13+00:00", "name": + "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_517cda4df34b11eda6ffac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T18:07:13+00:00", "updated_at": "2023-05-15T18:07:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:13Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:07:13Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_517cda4df34b11eda6ffac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:13+00:00", "updated_at": "2023-05-15T18:07:13+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_d4c8a44c20fa4414b0cb68e578ab35a9", - "parcel": {"id": "prcl_f3698d5a6e4b40b4adc436cc763c3d38", "object": "Parcel", - "created_at": "2023-05-15T18:07:13Z", "updated_at": "2023-05-15T18:07:13Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0f04f896fc6f42b48abda9c0cab933ed", - "object": "Rate", "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": + {}}, "forms": [], "fees": [], "id": "shp_01097ce983a94b739d59628b52f9f779", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:33Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:33Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": + "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_c125ca9307784d8ab68b72372b03d217", "parcel": {"id": "prcl_13b77ef58f5e4400bce57c7c5c9308a6", + "object": "Parcel", "created_at": "2024-06-14T16:51:33Z", "updated_at": "2024-06-14T16:51:33Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c92e1aeae62741c789d90f2e481634b4", + "object": "Rate", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f01ce9c0d8e64c749c69140047285a22", - "object": "Rate", "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5c9125a1f014fe993f01fb17714f7f3", - "object": "Rate", "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_340bf1c54b3443909f0e354c7e371448", + "object": "Rate", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e69e359e15394c738aad56b0ad73eff3", "object": "Rate", "created_at": + "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_cb9c2b9251e24ca69618b43ee61e2100", "object": "Rate", "created_at": - "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_0da43f0d562348c291c98a4cace138b7", "object": "Rate", "created_at": + "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", + "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_42462c86c9c34bddb5f5cffffe0b7a4f", "object": "Rate", "created_at": + "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.91", "currency": "USD", + "retail_rate": "12.50", "retail_currency": "USD", "list_rate": "8.97", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_00156ee2b08b4c40bbc0ab21899b0582", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_517b4994f34b11eda1ae3cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:13+00:00", "updated_at": "2023-05-15T18:07:13+00:00", + null, "to_address": {"id": "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_517cda4df34b11eda6ffac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:13+00:00", "updated_at": - "2023-05-15T18:07:13+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5b38244d2a6e11ef9e843cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:33+00:00", "updated_at": + "2024-06-14T16:51:33+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_517b4994f34b11eda1ae3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:13+00:00", "updated_at": "2023-05-15T18:07:13+00:00", "name": + "adr_5b3363c72a6e11efad70ac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:33+00:00", "updated_at": "2024-06-14T16:51:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_3f2ab3f33f504ee086e60cd55d6667f6", - "object": "Shipment"}], "rates": [{"id": "rate_0f04f896fc6f42b48abda9c0cab933ed", + {}}, "forms": [], "fees": [], "id": "shp_00156ee2b08b4c40bbc0ab21899b0582", + "object": "Shipment"}], "rates": [{"id": "rate_ad9698588ba34f24a73e7b908f87e431", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_f01ce9c0d8e64c749c69140047285a22", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "7.15", "currency": "USD", "retail_rate": "10.20", "retail_currency": - "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_3f2ab3f33f504ee086e60cd55d6667f6", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5c9125a1f014fe993f01fb17714f7f3", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_835eb20253df48259ba44f0d2275a230", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", + "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1ed0a0715b674b26bf750a301421e4a2", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", "carrier": "USPS", "rate": "6.07", "currency": "USD", - "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3f2ab3f33f504ee086e60cd55d6667f6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_cb9c2b9251e24ca69618b43ee61e2100", "object": "Rate", "created_at": + "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_22c5633028284e76a6804de30c22f530", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": - "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": - "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - false, "est_delivery_days": null, "shipment_id": "shp_3f2ab3f33f504ee086e60cd55d6667f6", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_d4c8a44c20fa4414b0cb68e578ab35a9", - "object": "Order"}' + "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": + "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_01097ce983a94b739d59628b52f9f779", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f775e287d24446b7b1d4f1f7084fc095", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_01097ce983a94b739d59628b52f9f779", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_c125ca9307784d8ab68b72372b03d217", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '11092' + - '18372' content-type: - application/json; charset=utf-8 - etag: - - W/"1cb2a6b7f20b8ec98e65a417fe0ac51f" expires: - '0' location: - - /api/v2/orders/order_d4c8a44c20fa4414b0cb68e578ab35a9 + - /api/v2/orders/order_c125ca9307784d8ab68b72372b03d217 pragma: - no-cache referrer-policy: @@ -203,20 +289,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d0646274d1e78751240024a284 + - 9a93413d666c7515e78b0a42000b0094 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.790681' + - '1.876449' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_get_rates.yaml b/tests/cassettes/test_order_get_rates.yaml index f5bef30..a1d7e9f 100644 --- a/tests/cassettes/test_order_get_rates.yaml +++ b/tests/cassettes/test_order_get_rates.yaml @@ -5,13 +5,8 @@ interactions: "country": "US", "email": "test@example.com", "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "shipments": [{"from_address": {"name": "Jack Sparrow", - "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": - "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": - "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": - 10, "width": 8, "height": 4, "weight": 15.4}}]}}' + "phone": "5555555555"}, "shipments": [{"parcel": {"weight": 10.2}}, {"parcel": + {"weight": 17.5}}]}}' headers: Accept: - '*/*' @@ -20,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '925' + - '501' Content-Type: - application/json authorization: @@ -31,163 +26,254 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:16Z", - "customs_info": null, "from_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_52ee68eef34b11edac99ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:37Z", + "updated_at": "2024-06-14T16:51:38Z", "customs_info": null, "from_address": + {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", + {}}, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:15Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-06-14T16:51:37Z", "is_return": false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:07:15Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_52f0ce84f34b11eda78f3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:37Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_91a75b20226041348d9de7edf07471d0", "parcel": {"id": "prcl_dc600cd512fd431f86845b673e5988ca", + "object": "Parcel", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3182017060824864bdf0efe7be24eb1b", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d2a8e32c15d6430cb1dd220bf9ded63f", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b8f1ab432744d23b59e831d5752c13e", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_0cffbf229b104252b9af746f837e76f1", "object": "Rate", "created_at": + "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b5a25013c63d4ab2af728f6272e5774e", "object": "Rate", "created_at": + "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", + "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_21b9c37eea21450a8c9bcf7ee56e9ab3", - "parcel": {"id": "prcl_4c7a575b80604e2d9225a5acd2925870", "object": "Parcel", - "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e873488f0e4c43e7a5e9bb503cde1671", - "object": "Rate", "created_at": "2023-05-15T18:07:16Z", "updated_at": "2023-05-15T18:07:16Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "forms": [], "fees": [], "id": "shp_80279d23931641a884289c4d529446e0", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:37Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:37Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_91a75b20226041348d9de7edf07471d0", "parcel": {"id": "prcl_e41a68cdb6c44f2a8971d4158028c72c", + "object": "Parcel", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_212643ba6221471786a09bed77c98c82", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_840e09a074a54b25925a671bdbfbee03", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4b092046e07c4991a54db88617f17aca", - "object": "Rate", "created_at": "2023-05-15T18:07:16Z", "updated_at": "2023-05-15T18:07:16Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7bc2e73929524157b9b5fd7be5d3f8ba", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e9ad4d00035a4c9eb5da1f1f309297b6", + "object": "Rate", "created_at": "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_315e4bb5ca4a477d9fd836388b9f81a1", "object": "Rate", "created_at": - "2023-05-15T18:07:16Z", "updated_at": "2023-05-15T18:07:16Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9f26d202602f4c99bed1a4c3adfec4eb", "object": "Rate", "created_at": - "2023-05-15T18:07:16Z", "updated_at": "2023-05-15T18:07:16Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_92f43ef6fcec4933b55b11f064d39f36", "object": "Rate", "created_at": + "2024-06-14T16:51:38Z", "updated_at": "2024-06-14T16:51:38Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", + null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": + "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_78cfbe8400b84c929cb482a6520f032f", - "object": "Shipment"}], "rates": [{"id": "rate_e873488f0e4c43e7a5e9bb503cde1671", + {}}, "forms": [], "fees": [], "id": "shp_fa34c962e839466a9758f7a0f7def586", + "object": "Shipment"}], "rates": [{"id": "rate_3182017060824864bdf0efe7be24eb1b", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4b092046e07c4991a54db88617f17aca", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_d2a8e32c15d6430cb1dd220bf9ded63f", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_315e4bb5ca4a477d9fd836388b9f81a1", + "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b8f1ab432744d23b59e831d5752c13e", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9f26d202602f4c99bed1a4c3adfec4eb", "object": "Rate", "created_at": + "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", + "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_0cffbf229b104252b9af746f837e76f1", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_21b9c37eea21450a8c9bcf7ee56e9ab3", - "object": "Order"}' + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5a25013c63d4ab2af728f6272e5774e", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_91a75b20226041348d9de7edf07471d0", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '11092' + - '18372' content-type: - application/json; charset=utf-8 - etag: - - W/"d509ce4848e30e4d9a8ba34a8968d7e7" expires: - '0' location: - - /api/v2/orders/order_21b9c37eea21450a8c9bcf7ee56e9ab3 + - /api/v2/orders/order_91a75b20226041348d9de7edf07471d0 pragma: - no-cache referrer-policy: @@ -203,20 +289,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d1646274d3e787513d0024a3b3 + - 9a93413e666c7519e78b0a45000b051b x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.726503' + - '1.325916' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: @@ -236,150 +322,231 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_21b9c37eea21450a8c9bcf7ee56e9ab3/rates + uri: https://api.easypost.com/v2/orders/order_91a75b20226041348d9de7edf07471d0/rates response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:16Z", - "customs_info": null, "from_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_52ee68eef34b11edac99ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:37Z", + "updated_at": "2024-06-14T16:51:38Z", "customs_info": null, "from_address": + {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", + {}}, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:15Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-06-14T16:51:37Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2023-05-15T18:07:15Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-06-14T16:51:37Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": + {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_21b9c37eea21450a8c9bcf7ee56e9ab3", - "parcel": {"id": "prcl_4c7a575b80604e2d9225a5acd2925870", "object": "Parcel", - "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e6b05d55b26e41c898f27cc5a056cc93", - "object": "Rate", "created_at": "2023-05-15T18:07:17Z", "updated_at": "2023-05-15T18:07:17Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f816e28e6e4245b2b79e754d3629348f", - "object": "Rate", "created_at": "2023-05-15T18:07:17Z", "updated_at": "2023-05-15T18:07:17Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "insurance": null, "order_id": "order_91a75b20226041348d9de7edf07471d0", + "parcel": {"id": "prcl_dc600cd512fd431f86845b673e5988ca", "object": "Parcel", + "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_62bbbb46c7ad4008933f0d18886f151c", + "object": "Rate", "created_at": "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4c7cdf012861434e92a61f1fbf692b86", + "object": "Rate", "created_at": "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b0c8e9ee3d104fa8bcc66464336d3358", "object": "Rate", "created_at": + "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_9d161975ffef447d9dd1aca767e6a2d2", "object": "Rate", "created_at": + "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", + "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b5ab6b8b885f4b6c83a53c0b5d4b2129", "object": "Rate", "created_at": + "2024-06-14T16:51:40Z", "updated_at": "2024-06-14T16:51:40Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.88", "currency": "USD", + "retail_rate": "9.80", "retail_currency": "USD", "list_rate": "8.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "forms": [], "fees": [], "id": "shp_80279d23931641a884289c4d529446e0", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:37Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": null, "updated_at": "2024-06-14T16:51:37Z", "batch_id": null, + "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_91a75b20226041348d9de7edf07471d0", + "parcel": {"id": "prcl_e41a68cdb6c44f2a8971d4158028c72c", "object": "Parcel", + "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_68ad33cd49324cc29f5dd4f7a4d750f4", + "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f630e580e4a74ceb9990e81cd5fb0042", - "object": "Rate", "created_at": "2023-05-15T18:07:17Z", "updated_at": "2023-05-15T18:07:17Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2c622936a85a4184a018a6a178752326", + "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5131e9bd0dba4642aca3a2f70e5e6bb3", + "object": "Rate", "created_at": "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5329e0f3ba9c4f848ba956079e8f69b4", "object": "Rate", "created_at": - "2023-05-15T18:07:17Z", "updated_at": "2023-05-15T18:07:17Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_5d5a27a7bc794da2a28cd61e93935644", "object": "Rate", "created_at": + "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_195fcac90b9241099fb442a74bb167cc", "object": "Rate", "created_at": + "2024-06-14T16:51:41Z", "updated_at": "2024-06-14T16:51:41Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "37.20", "currency": "USD", + "retail_rate": "42.80", "retail_currency": "USD", "list_rate": "37.20", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_fa34c962e839466a9758f7a0f7def586", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", + null, "to_address": {"id": "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_52f0ce84f34b11eda78f3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:15+00:00", "updated_at": - "2023-05-15T18:07:15+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5d9625692a6e11ef9fdd3cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:37+00:00", "updated_at": + "2024-06-14T16:51:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_52ee68eef34b11edac99ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:15+00:00", "updated_at": "2023-05-15T18:07:15+00:00", "name": + "adr_5d921ec72a6e11efad95ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:37+00:00", "updated_at": "2024-06-14T16:51:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_78cfbe8400b84c929cb482a6520f032f", - "object": "Shipment"}], "rates": [{"id": "rate_e6b05d55b26e41c898f27cc5a056cc93", + {}}, "forms": [], "fees": [], "id": "shp_fa34c962e839466a9758f7a0f7def586", + "object": "Shipment"}], "rates": [{"id": "rate_62bbbb46c7ad4008933f0d18886f151c", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_f816e28e6e4245b2b79e754d3629348f", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "7.15", "currency": "USD", "retail_rate": "10.20", "retail_currency": - "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f630e580e4a74ceb9990e81cd5fb0042", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4c7cdf012861434e92a61f1fbf692b86", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", + "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_80279d23931641a884289c4d529446e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b0c8e9ee3d104fa8bcc66464336d3358", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "First", "carrier": "USPS", "rate": "6.07", "currency": "USD", - "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_78cfbe8400b84c929cb482a6520f032f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5329e0f3ba9c4f848ba956079e8f69b4", "object": "Rate", "created_at": + "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_9d161975ffef447d9dd1aca767e6a2d2", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Express", "carrier": - "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": - "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": - false, "est_delivery_days": null, "shipment_id": "shp_78cfbe8400b84c929cb482a6520f032f", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_21b9c37eea21450a8c9bcf7ee56e9ab3", - "object": "Order"}' + "USPS", "rate": "70.30", "currency": "USD", "retail_rate": "80.70", "retail_currency": + "USD", "list_rate": "70.30", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_80279d23931641a884289c4d529446e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5ab6b8b885f4b6c83a53c0b5d4b2129", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_80279d23931641a884289c4d529446e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_91a75b20226041348d9de7edf07471d0", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10103' + - '16526' content-type: - application/json; charset=utf-8 - etag: - - W/"ad042ca4cdc6ee2fb8a19781ce750dbd" expires: - '0' pragma: @@ -392,25 +559,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d1646274d4e787513d0024a41f + - 9a93413e666c751be78b0a45000b06a9 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb4nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.899111' + - '2.503888' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_lowest_rate.yaml b/tests/cassettes/test_order_lowest_rate.yaml index 1339616..0f66c76 100644 --- a/tests/cassettes/test_order_lowest_rate.yaml +++ b/tests/cassettes/test_order_lowest_rate.yaml @@ -5,13 +5,8 @@ interactions: "country": "US", "email": "test@example.com", "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "shipments": [{"from_address": {"name": "Jack Sparrow", - "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": - "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": - "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": - 10, "width": 8, "height": 4, "weight": 15.4}}]}}' + "phone": "5555555555"}, "shipments": [{"parcel": {"weight": 10.2}}, {"parcel": + {"weight": 17.5}}]}}' headers: Accept: - '*/*' @@ -20,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '925' + - '501' Content-Type: - application/json authorization: @@ -31,163 +26,254 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:18Z", "updated_at": "2023-05-15T18:07:19Z", - "customs_info": null, "from_address": {"id": "adr_54b71eabf34b11eda31dac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T18:07:18+00:00", "updated_at": - "2023-05-15T18:07:18+00:00", "name": "Jack Sparrow", "company": null, "street1": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:45Z", + "updated_at": "2024-06-14T16:51:47Z", "customs_info": null, "from_address": + {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipments": [{"created_at": "2024-06-14T16:51:45Z", "is_return": false, + "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:45Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", + "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": + "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_54b57d4bf34b11edaed03cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:18+00:00", "updated_at": - "2023-05-15T18:07:18+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_9e267ccf8e54444f870f831e80f93933", "parcel": {"id": "prcl_9df48eab7efd42489b3ca4d7f682cfa7", + "object": "Parcel", "created_at": "2024-06-14T16:51:45Z", "updated_at": "2024-06-14T16:51:45Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f7926ce57aa64292861e34e5fb516461", + "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", + "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": + "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9c91d583f9344c918f8266bd27a724d3", + "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_630dcc0179aa4dbab807736c96e8f240", + "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a8a4fbeec6394e50b7e0b40c338bccb0", + "object": "Rate", "created_at": "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_dffe8b9eec5648daae8301a609341c26", "object": "Rate", "created_at": + "2024-06-14T16:51:46Z", "updated_at": "2024-06-14T16:51:46Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", + "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": + "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_54b57d4bf34b11edaed03cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:18+00:00", "updated_at": "2023-05-15T18:07:18+00:00", "name": + "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_54b71eabf34b11eda31dac1f6bc72124", "object": - "Address", "created_at": "2023-05-15T18:07:18+00:00", "updated_at": "2023-05-15T18:07:18+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:18Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:07:18Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_54b71eabf34b11eda31dac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T18:07:18+00:00", "updated_at": "2023-05-15T18:07:18+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_1d2fa8779de344899437cf7d61a18653", - "parcel": {"id": "prcl_8ea621b8962f4e6dba1d93cb0f6b87f9", "object": "Parcel", - "created_at": "2023-05-15T18:07:18Z", "updated_at": "2023-05-15T18:07:18Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_86e5084cc3b041e2b6c5db7e4d900669", - "object": "Rate", "created_at": "2023-05-15T18:07:19Z", "updated_at": "2023-05-15T18:07:19Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_245df40281e04f538b28730cbd01c3cd", - "object": "Rate", "created_at": "2023-05-15T18:07:19Z", "updated_at": "2023-05-15T18:07:19Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8109c0a01597402a99271094ed5bb96b", - "object": "Rate", "created_at": "2023-05-15T18:07:19Z", "updated_at": "2023-05-15T18:07:19Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "forms": [], "fees": [], "id": "shp_68d9555320634c38beb2bd388e594e37", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:45Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:45Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", + "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": + "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_9e267ccf8e54444f870f831e80f93933", "parcel": {"id": "prcl_5c968711cc9f48b1b011004283aeaa20", + "object": "Parcel", "created_at": "2024-06-14T16:51:45Z", "updated_at": "2024-06-14T16:51:45Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_b4217b9798864d18a67b2176efeef38d", + "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2b2479bbca50441dbbe4517bf38fded9", + "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7c0e93e3f5564f9ab3e4b7d51cac76c3", - "object": "Rate", "created_at": "2023-05-15T18:07:19Z", "updated_at": "2023-05-15T18:07:19Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9805849118f346489371b1bf7182a1a5", + "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b568493fc89a47a484cfee8df55309b5", + "object": "Rate", "created_at": "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_8bdb273d397f41c29f0432e75941f366", "object": "Rate", "created_at": + "2024-06-14T16:51:47Z", "updated_at": "2024-06-14T16:51:47Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_6478f36289ca4671b5e4bff4760ed634", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_54b57d4bf34b11edaed03cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:18+00:00", "updated_at": "2023-05-15T18:07:18+00:00", + null, "to_address": {"id": "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": + "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_54b71eabf34b11eda31dac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T18:07:18+00:00", "updated_at": - "2023-05-15T18:07:18+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_621f61722a6e11efb13eac1f6bc539aa", + "object": "Address", "created_at": "2024-06-14T16:51:45+00:00", "updated_at": + "2024-06-14T16:51:45+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_54b57d4bf34b11edaed03cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:18+00:00", "updated_at": "2023-05-15T18:07:18+00:00", "name": + "adr_621d7d642a6e11efaff0ac1f6bc539ae", "object": "Address", "created_at": + "2024-06-14T16:51:45+00:00", "updated_at": "2024-06-14T16:51:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_05448c2a640e49b4bb71aba9943506d8", - "object": "Shipment"}], "rates": [{"id": "rate_86e5084cc3b041e2b6c5db7e4d900669", + {}}, "forms": [], "fees": [], "id": "shp_6478f36289ca4671b5e4bff4760ed634", + "object": "Shipment"}], "rates": [{"id": "rate_f7926ce57aa64292861e34e5fb516461", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_245df40281e04f538b28730cbd01c3cd", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_05448c2a640e49b4bb71aba9943506d8", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8109c0a01597402a99271094ed5bb96b", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_9c91d583f9344c918f8266bd27a724d3", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "13.79", "currency": "USD", "retail_rate": "22.30", "retail_currency": + "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_630dcc0179aa4dbab807736c96e8f240", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_05448c2a640e49b4bb71aba9943506d8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7c0e93e3f5564f9ab3e4b7d51cac76c3", "object": "Rate", "created_at": + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_a8a4fbeec6394e50b7e0b40c338bccb0", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_05448c2a640e49b4bb71aba9943506d8", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_1d2fa8779de344899437cf7d61a18653", - "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_68d9555320634c38beb2bd388e594e37", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dffe8b9eec5648daae8301a609341c26", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "11.33", "currency": + "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_68d9555320634c38beb2bd388e594e37", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_9e267ccf8e54444f870f831e80f93933", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '11092' + - '18372' content-type: - application/json; charset=utf-8 - etag: - - W/"6336f13e0faad97206c8240f19fc3d61" expires: - '0' location: - - /api/v2/orders/order_1d2fa8779de344899437cf7d61a18653 + - /api/v2/orders/order_9e267ccf8e54444f870f831e80f93933 pragma: - no-cache referrer-policy: @@ -203,20 +289,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2d4646274d6e787513f0024a559 + - 9a93413c666c7521e78b0a60000b0d82 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.876244' + - '2.165725' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_retrieve.yaml b/tests/cassettes/test_order_retrieve.yaml index ab96bbe..b160e5a 100644 --- a/tests/cassettes/test_order_retrieve.yaml +++ b/tests/cassettes/test_order_retrieve.yaml @@ -5,13 +5,8 @@ interactions: "country": "US", "email": "test@example.com", "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "shipments": [{"from_address": {"name": "Jack Sparrow", - "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "to_address": {"name": "Elizabeth Swan", "street1": - "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": - "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": - 10, "width": 8, "height": 4, "weight": 15.4}}]}}' + "phone": "5555555555"}, "shipments": [{"parcel": {"weight": 10.2}}, {"parcel": + {"weight": 17.5}}]}}' headers: Accept: - '*/*' @@ -20,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '925' + - '501' Content-Type: - application/json authorization: @@ -31,163 +26,254 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:15Z", - "customs_info": null, "from_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:35Z", + "updated_at": "2024-06-14T16:51:37Z", "customs_info": null, "from_address": + {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "shipments": [{"created_at": "2024-06-14T16:51:35Z", "is_return": false, + "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:35Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_521948cff34b11eda969ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_a33ebd4c336a43dd9d1c34c4b1366e97", "parcel": {"id": "prcl_466fcdbe430448e1a13fd0282dd45f21", + "object": "Parcel", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": + "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", "object": "Rate", "created_at": + "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", + "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_521948cff34b11eda969ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": + "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:14Z", "is_return": false, - "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:07:14Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_521a9d9bf34b11eda4433cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_99642987af7444139e44566e34cf698a", - "parcel": {"id": "prcl_ae2a719e67c84b41adad21483cd10343", "object": "Parcel", - "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_48082a55b5594cb1affe23b440eca468", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5d0106baa6d4d7ebd35ccb5c8651856", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f02c63983dca4fe1b52a9b474371d225", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "forms": [], "fees": [], "id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:35Z", "is_return": + false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2024-06-14T16:51:35Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_a33ebd4c336a43dd9d1c34c4b1366e97", "parcel": {"id": "prcl_de7a8f81b5a4472b8406ba4d7f27c06a", + "object": "Parcel", "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0f93bed45eab4a23a712f8f16301192b", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e0d7f38d0fd46fbbe37e1945cf0179a", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8d976f3bc3c0464a9493135baa4e435d", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d6602acef0a4824bbdfd80ecb7f5046", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd957d0a962846359fd34952043ba5df", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_77c94641dd024b83bfe4a6943d040506", "object": "Rate", "created_at": + "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_521948cff34b11eda969ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", + null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_521948cff34b11eda969ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": + "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "object": "Shipment"}], "rates": [{"id": "rate_48082a55b5594cb1affe23b440eca468", + {}}, "forms": [], "fees": [], "id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", + "object": "Shipment"}], "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b5d0106baa6d4d7ebd35ccb5c8651856", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f02c63983dca4fe1b52a9b474371d225", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8d976f3bc3c0464a9493135baa4e435d", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", + "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_99642987af7444139e44566e34cf698a", - "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '11092' + - '18372' content-type: - application/json; charset=utf-8 - etag: - - W/"bb29d2b77f6ec171591ac525cf012aeb" expires: - '0' location: - - /api/v2/orders/order_99642987af7444139e44566e34cf698a + - /api/v2/orders/order_a33ebd4c336a43dd9d1c34c4b1366e97 pragma: - no-cache referrer-policy: @@ -203,20 +289,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2cd646274d2e78751250024a309 + - 9a93413c666c7517e78b0a43000b0308 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.716187' + - '1.403581' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: @@ -236,150 +322,231 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_99642987af7444139e44566e34cf698a + uri: https://api.easypost.com/v2/orders/order_a33ebd4c336a43dd9d1c34c4b1366e97 response: body: - string: '{"mode": "test", "reference": null, "is_return": false, "options": - {"currency": "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": - "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": - "rate_error", "message": "Unauthorized. Please check credentials and try again"}, - {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:15Z", - "customs_info": null, "from_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_521948cff34b11eda969ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_521948cff34b11eda969ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": + "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "DhlEcs", + "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", + "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": + "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid + credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", + "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", + "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", + "message": "Invalid credentials"}], "created_at": "2024-06-14T16:51:35Z", + "updated_at": "2024-06-14T16:51:37Z", "customs_info": null, "from_address": + {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", "object": - "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", + {}}, "buyer_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2023-05-15T18:07:14Z", "is_return": false, + {}}, "shipments": [{"created_at": "2024-06-14T16:51:35Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2023-05-15T18:07:14Z", "batch_id": null, + "tracking_code": null, "updated_at": "2024-06-14T16:51:35Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": + {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_99642987af7444139e44566e34cf698a", - "parcel": {"id": "prcl_ae2a719e67c84b41adad21483cd10343", "object": "Parcel", - "created_at": "2023-05-15T18:07:14Z", "updated_at": "2023-05-15T18:07:14Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_48082a55b5594cb1affe23b440eca468", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5d0106baa6d4d7ebd35ccb5c8651856", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f02c63983dca4fe1b52a9b474371d225", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + {}}, "insurance": null, "order_id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", + "parcel": {"id": "prcl_466fcdbe430448e1a13fd0282dd45f21", "object": "Parcel", + "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.88", + "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": + "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8d976f3bc3c0464a9493135baa4e435d", - "object": "Rate", "created_at": "2023-05-15T18:07:15Z", "updated_at": "2023-05-15T18:07:15Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", + "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": + "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", + "object": "Rate", "created_at": "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": + "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.07", "currency": + "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": "5.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", "object": "Rate", "created_at": + "2024-06-14T16:51:36Z", "updated_at": "2024-06-14T16:51:36Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "33.10", "currency": "USD", + "retail_rate": "37.90", "retail_currency": "USD", "list_rate": "33.10", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_521948cff34b11eda969ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", + null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "usps_zone": 4, "return_address": {"id": "adr_521a9d9bf34b11eda4433cecef1b359e", - "object": "Address", "created_at": "2023-05-15T18:07:14+00:00", "updated_at": - "2023-05-15T18:07:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_521948cff34b11eda969ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T18:07:14+00:00", "updated_at": "2023-05-15T18:07:14+00:00", "name": + "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "object": "Shipment"}], "rates": [{"id": "rate_48082a55b5594cb1affe23b440eca468", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b5d0106baa6d4d7ebd35ccb5c8651856", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": - "USPS", "rate": "6.76", "currency": "USD", "retail_rate": "7.75", "retail_currency": - "USD", "list_rate": "7.75", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 5, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 5, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f02c63983dca4fe1b52a9b474371d225", + {}}, "forms": [], "fees": [], "id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "object": "Shipment"}, {"created_at": "2024-06-14T16:51:35Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", + "tracking_code": null, "updated_at": "2024-06-14T16:51:35Z", "batch_id": null, + "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", + "parcel": {"id": "prcl_de7a8f81b5a4472b8406ba4d7f27c06a", "object": "Parcel", + "created_at": "2024-06-14T16:51:35Z", "updated_at": "2024-06-14T16:51:35Z", + "length": null, "width": null, "height": null, "predefined_package": null, + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0f93bed45eab4a23a712f8f16301192b", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", + "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": + "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e0d7f38d0fd46fbbe37e1945cf0179a", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.91", + "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": + "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d6602acef0a4824bbdfd80ecb7f5046", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.26", + "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": + "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd957d0a962846359fd34952043ba5df", + "object": "Rate", "created_at": "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_77c94641dd024b83bfe4a6943d040506", "object": "Rate", "created_at": + "2024-06-14T16:51:37Z", "updated_at": "2024-06-14T16:51:37Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "6.26", "currency": + "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": "7.75", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_e8ae0d65758c4e6db2e483b3baa5cc43", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": + null, "to_address": {"id": "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": + "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "usps_zone": 4, "return_address": {"id": "adr_5c78653f2a6e11ef9f433cecef1b359e", + "object": "Address", "created_at": "2024-06-14T16:51:35+00:00", "updated_at": + "2024-06-14T16:51:35+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_5c7665582a6e11efae2eac1f6bc539aa", "object": "Address", "created_at": + "2024-06-14T16:51:35+00:00", "updated_at": "2024-06-14T16:51:35+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "forms": [], "fees": [], "id": "shp_e8ae0d65758c4e6db2e483b3baa5cc43", + "object": "Shipment"}], "rates": [{"id": "rate_d36ff10756194f0e88bf3f612b86b1e4", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "13.79", "currency": "USD", + "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_5ee497857f4d4f23ab5ed940ebc124c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_8d976f3bc3c0464a9493135baa4e435d", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "First", "carrier": "USPS", - "rate": "6.07", "currency": "USD", "retail_rate": "6.07", "retail_currency": - "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_eb170b0f530d46928e5f1911caa4f87b", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19353f69754a46069b879c2fde5deb07", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "First", "carrier": "USPS", "rate": "11.33", "currency": "USD", + "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7f2d07d094c740438f666afe3c51e8ae", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "ParcelSelect", "carrier": + "USPS", "rate": "11.33", "currency": "USD", "retail_rate": "17.50", "retail_currency": + "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_5ee497857f4d4f23ab5ed940ebc124c2", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_99642987af7444139e44566e34cf698a", - "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_7ebbd6c65c454034a5d82c738ff448e0", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b1903ca5290641778c5cc6421cfcb17e", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", + "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": + "shp_7ebbd6c65c454034a5d82c738ff448e0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_a33ebd4c336a43dd9d1c34c4b1366e97", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10103' + - '16526' content-type: - application/json; charset=utf-8 - etag: - - W/"3db3cbdf5d75954b0e0a2b57ac9dff56" expires: - '0' pragma: @@ -397,20 +564,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3f02a2cd646274d3e78751250024a36c + - 9a93413c666c7519e78b0a43000b04ae x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb3nuq 9d6131b01c + - extlb1nuq a97f7bac00 x-runtime: - - '0.119046' + - '0.157084' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202406132320-de9fa0c698-master x-xss-protection: - 1; mode=block status: diff --git a/tests/test_order.py b/tests/test_order.py index 33e60f4..6e2a89f 100644 --- a/tests/test_order.py +++ b/tests/test_order.py @@ -55,14 +55,14 @@ def test_order_lowest_rate(basic_order, test_client): # Test lowest rate with no filters lowest_rate = order.lowest_rate() - assert lowest_rate.service == "First" - assert lowest_rate.rate == "6.07" + assert lowest_rate.service == "GroundAdvantage" + assert lowest_rate.rate == "11.33" assert lowest_rate.carrier == "USPS" # Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowest_rate_service = order.lowest_rate(services=["Priority"]) assert lowest_rate_service.service == "Priority" - assert lowest_rate_service.rate == "7.15" + assert lowest_rate_service.rate == "13.79" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier)