From b70489ac4c33ef36d0adcd0b5e5f727eda1ce972 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Thu, 30 Nov 2023 15:11:16 -0700 Subject: [PATCH] [chore] Remove carbon offset (#423) - Remove `withCarbonOffset` parameter for shipment creation and buy functions - Remove `carbon_offset` property of `Rate` object - Remove carbon offset unit tests, TypeScript definitions - Remove old cassettes, re-record as needed --- CHANGELOG.md | 4 +- examples | 2 +- src/models/rate.js | 1 - src/services/shipment_service.js | 19 +- .../recording.har | 146 ++++---- .../recording.har | 26 +- .../recording.har | 66 ++-- .../recording.har | 116 +++---- .../buys-a-pickup_1934475561/recording.har | 108 +++--- .../cancels-a-pickup_4207662041/recording.har | 138 ++++---- .../creates-a-pickup_320342919/recording.har | 76 ++-- .../recording.har | 84 ++--- .../recording.har | 112 +++--- .../retrieves-a-rate_3801249961/recording.har | 72 ++-- .../creates-a-refund_2084766157/recording.har | 100 +++--- .../recording.har | 68 ++-- .../recording.har | 100 +++--- .../recording.har | 324 ------------------ .../recording.har | 78 ++--- .../recording.har | 82 ++--- .../buys-a-shipment_3413405727/recording.har | 82 +++-- .../recording.har | 118 +++---- .../recording.har | 171 --------- .../recording.har | 40 +-- .../recording.har | 40 +-- .../recording.har | 40 +-- .../recording.har | 40 +-- .../recording.har | 76 ++-- .../recording.har | 44 +-- .../recording.har | 72 ++-- .../recording.har | 76 ++-- .../recording.har | 70 ++-- .../recording.har | 324 ------------------ .../recording.har | 70 ++-- .../recording.har | 76 ++-- .../recording.har | 70 ++-- .../recording.har | 72 ++-- .../recording.har | 72 ++-- .../recording.har | 80 ++--- .../recording.har | 324 ------------------ .../recording.har | 74 ++-- .../recording.har | 72 ++-- .../recording.har | 70 ++-- test/helpers/fixture.js | 4 +- test/services/batch.test.js | 2 +- test/services/shipment.test.js | 58 +--- types/Fee/FeeType.d.ts | 7 +- types/Rate/Rate.d.ts | 6 - types/Shipment/Shipment.d.ts | 20 +- 49 files changed, 1235 insertions(+), 2757 deletions(-) delete mode 100644 test/cassettes/Shipment-Service_2987889512/buy-a-shipment-with-carbon-offset_4260710690/recording.har delete mode 100644 test/cassettes/Shipment-Service_2987889512/create-a-shipment-with-carbon-offset_989550468/recording.har delete mode 100644 test/cassettes/Shipment-Service_2987889512/one-call-buy-a-shipment-with-carbon-offset_2667011568/recording.har delete mode 100644 test/cassettes/Shipment-Service_2987889512/rerate-a-shipment-with-carbon-offset_4123560847/recording.har diff --git a/CHANGELOG.md b/CHANGELOG.md index c12b7886b..4ed593a94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # CHANGELOG -## NEXT +## Next Release (Major Version) +- Remove `withCarbonOffset` parameter from shipment create and buy functions +- Remove `carbon_offset` property of `Rate` object - Fixes a pagination issue by passing along additional params used when fetching first page ## v6.8.2 (2023-10-20) diff --git a/examples b/examples index 915ca3532..3d6fafc97 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit 915ca3532291611dc4a8ac431e5ed81bc870277d +Subproject commit 3d6fafc97707ed911794f54b2028e16c0f1c8f91 diff --git a/src/models/rate.js b/src/models/rate.js index 76d5e47a7..a63e8b4aa 100644 --- a/src/models/rate.js +++ b/src/models/rate.js @@ -7,7 +7,6 @@ import EasyPostObject from './easypost_object'; */ export default class Rate extends EasyPostObject { static billing_type; - static carbon_offset; static carrier_account_id; static carrier; static currency; diff --git a/src/services/shipment_service.js b/src/services/shipment_service.js index 1236b38a3..5dcecddd8 100644 --- a/src/services/shipment_service.js +++ b/src/services/shipment_service.js @@ -11,15 +11,13 @@ export default (easypostClient) => * Create a {@link Shipment shipment}. * See {@link https://www.easypost.com/docs/api/node#create-a-shipment EasyPost API Documentation} for more information. * @param {Object} params - The parameters to create a shipment with. - * @param {boolean} withCarbonOffset - Whether to include a carbon offset for the shipment. * @returns {Shipment} - The created shipment. */ - static async create(params, withCarbonOffset = false) { + static async create(params) { const url = 'shipments'; const wrappedParams = { shipment: params, - carbon_offset: withCarbonOffset, }; return this._create(url, wrappedParams); @@ -31,17 +29,10 @@ export default (easypostClient) => * @param {string} id - The ID of the shipment to purchase. * @param {Rate} rate - The rate to purchase the shipment with. * @param {number|null} [insuranceAmount] - The amount of insurance to purchase for the shipment. - * @param {boolean} [withCarbonOffset] - Whether to purchase a carbon offset for the shipment. * @param {string|null} [endShipperId] - The ID of the end shipper to purchase the shipment with. * @returns {Shipment} - The purchased shipment. */ - static async buy( - id, - rate, - insuranceAmount = null, - withCarbonOffset = false, - endShipperId = null, - ) { + static async buy(id, rate, insuranceAmount = null, endShipperId = null) { let rateId = rate; if (typeof rate === 'object') { @@ -54,7 +45,6 @@ export default (easypostClient) => rate: { id: rateId, }, - carbon_offset: withCarbonOffset, }; if (insuranceAmount) { @@ -98,12 +88,11 @@ export default (easypostClient) => * Regenerate {@link Rate rates} for a {@link Shipment shipment}. * See {@link https://www.easypost.com/docs/api/node#regenerate-rates-for-a-shipment EasyPost API Documentation} for more information. * @param {string} id - The ID of the shipment to regenerate rates for. - * @param {boolean} withCarbonOffset - Whether to include a carbon offset for the shipment. * @returns {Shipment} - The shipment with regenerated rates. */ - static async regenerateRates(id, withCarbonOffset = false) { + static async regenerateRates(id) { const url = `shipments/${id}/rerate`; - const wrappedParams = { carbon_offset: withCarbonOffset }; + const wrappedParams = {}; try { const response = await easypostClient._post(url, wrappedParams); diff --git a/test/cassettes/Batch-Service_3950244400/adds-and-removes-shipments-from-a-batch_444431701/recording.har b/test/cassettes/Batch-Service_3950244400/adds-and-removes-shipments-from-a-batch_444431701/recording.har index 52441fea9..44b1fad6e 100644 --- a/test/cassettes/Batch-Service_3950244400/adds-and-removes-shipments-from-a-batch_444431701/recording.har +++ b/test/cassettes/Batch-Service_3950244400/adds-and-removes-shipments-from-a-batch_444431701/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2294, + "bodySize": 2312, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2294, - "text": "{\"created_at\":\"2023-09-06T17:44:39Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258923124\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_0d5b6a0e4cdd11eeaad5ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:44:39+00:00\",\"updated_at\":\"2023-09-06T17:44:39+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_4a032df1321d4230ace72e4b082004bc\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ea84dffaa3845f082e8992394b1e7ca\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:44:39Z\",\"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/20230906/e8fefd5d49108e457090db61ce1742d6b5.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_48796ac2022d43d9a1e29d076f13efa0\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fffec53b7a904c49a270759ca7349af6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c74fb1eb9eb741028e66cd09983f9cf5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3a1f05bcb32c46c5baa5a908605eb8e5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5d86d69b13854811895a11662e2e74d6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3a1f05bcb32c46c5baa5a908605eb8e5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0e404329f3654f199a279db729aa18b4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_263cc267333248c7b04194e88583c110\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923124\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:44:39Z\",\"updated_at\":\"2023-09-06T17:44:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_0e404329f3654f199a279db729aa18b4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzI2M2NjMjY3MzMzMjQ4YzdiMDQxOTRlODg1ODNjMTEw\"},\"to_address\":{\"id\":\"adr_0d593eb34cdd11eea65bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:44:39+00:00\",\"updated_at\":\"2023-09-06T17:44:39+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_0d5b6a0e4cdd11eeaad5ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:44:39+00:00\",\"updated_at\":\"2023-09-06T17:44:39+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_0d593eb34cdd11eea65bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:44:39+00:00\",\"updated_at\":\"2023-09-06T17:44:39+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_0e404329f3654f199a279db729aa18b4\",\"object\":\"Shipment\"}" + "size": 2312, + "text": "{\"created_at\":\"2023-11-30T21:55:38Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287419265\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_32af7fc18fcb11ee94c2ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:38+00:00\",\"updated_at\":\"2023-11-30T21:55:38+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_7413c58c80b14139a495b3d13e9c9395\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0f18aa2317774b35bb0ee6d2bd7b8211\",\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:55:39Z\",\"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/20231130/e8ae470199cabd487b920fbe06b6d852f0.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b8e4f619b9b64e8caaa0fba9b0a281a7\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6f863a8f13d249619ba567c6ef177b16\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_040cab46ce134f2fad7770df49377e17\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a123e715c746495480f76e61f81ab33c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9300fb5ee00d4a06b1d9d4e2096bdb7b\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:38Z\",\"updated_at\":\"2023-11-30T21:55:38Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a123e715c746495480f76e61f81ab33c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9106816348e0431783186a4800c56cb3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_1b7765a1194b41cfbc961aaf9125139a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287419265\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_9106816348e0431783186a4800c56cb3\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzFiNzc2NWExMTk0YjQxY2ZiYzk2MWFhZjkxMjUxMzlh\"},\"to_address\":{\"id\":\"adr_32acde548fcb11ee9ecfac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:38+00:00\",\"updated_at\":\"2023-11-30T21:55:38+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_32af7fc18fcb11ee94c2ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:38+00:00\",\"updated_at\":\"2023-11-30T21:55:38+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_32acde548fcb11ee9ecfac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:38+00:00\",\"updated_at\":\"2023-11-30T21:55:38+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_9106816348e0431783186a4800c56cb3\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8ba87e79afea8001cc673" + "value": "02ef1916656904daf0229ed80035e597" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_0e404329f3654f199a279db729aa18b4" + "value": "/api/v2/shipments/shp_9106816348e0431783186a4800c56cb3" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"55aa096dc6a4ef60b9ed17dbb360a8c4\"" - }, { "name": "x-runtime", - "value": "0.990070" + "value": "0.965063" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_0e404329f3654f199a279db729aa18b4", + "redirectURL": "/api/v2/shipments/shp_9106816348e0431783186a4800c56cb3", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:44:38.589Z", - "time": 1393, + "startedDateTime": "2023-11-30T21:55:38.223Z", + "time": 1262, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1393 + "wait": 1262 } }, { - "_id": "f8fec3054a31b18a6c4b008c78dbd90b", + "_id": "455f0344f3539cbf3cb217d5af4a913a", "_order": 0, "cache": {}, "request": { - "bodySize": 2, + "bodySize": 12, "cookies": [], "headers": [ { @@ -186,31 +182,31 @@ }, { "name": "content-length", - "value": 2 + "value": 12 }, { "name": "host", "value": "api.easypost.com" } ], - "headersSize": 386, + "headersSize": 387, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{}" + "text": "{\"batch\":{}}" }, "queryString": [], "url": "https://api.easypost.com/v2/batches" }, "response": { - "bodySize": 324, + "bodySize": 331, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 324, - "text": "{\"id\":\"batch_2b75ec50069148db8dd9b5210fb55377\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2023-09-06T17:44:40Z\",\"updated_at\":\"2023-09-06T17:44:40Z\",\"scan_form\":null,\"shipments\":[],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" + "size": 331, + "text": "{\"id\":\"batch_db3e565773104a5dbd789ebb9d8c58fe\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"scan_form\":null,\"shipments\":[],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8ba88e79afea9001cc6e2" + "value": "32e015f6656904dbf43e7b0a0032aec6" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"4d3ed8b03ad9810d4f0ede498170ab34\"" - }, { "name": "x-runtime", - "value": "0.051793" + "value": "0.075244" }, { "name": "content-encoding", @@ -276,19 +268,23 @@ }, { "name": "x-node", - "value": "bigweb36nuq" + "value": "bigweb43nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +295,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 728, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:44:39.987Z", - "time": 638, + "startedDateTime": "2023-11-30T21:55:39.490Z", + "time": 447, "timings": { "blocked": -1, "connect": -1, @@ -314,11 +310,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 638 + "wait": 447 } }, { - "_id": "812dfc953b698e3595e556c8b9a19b87", + "_id": "1379ee32b9a99c4484feef275c90c333", "_order": 0, "cache": {}, "request": { @@ -352,18 +348,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipments\":[{\"id\":\"shp_0e404329f3654f199a279db729aa18b4\"}]}" + "text": "{\"shipments\":[{\"id\":\"shp_9106816348e0431783186a4800c56cb3\"}]}" }, "queryString": [], - "url": "https://api.easypost.com/v2/batches/batch_2b75ec50069148db8dd9b5210fb55377/add_shipments" + "url": "https://api.easypost.com/v2/batches/batch_db3e565773104a5dbd789ebb9d8c58fe/add_shipments" }, "response": { - "bodySize": 435, + "bodySize": 432, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 435, - "text": "{\"id\":\"batch_2b75ec50069148db8dd9b5210fb55377\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2023-09-06T17:44:40Z\",\"updated_at\":\"2023-09-06T17:44:40Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100105440258923124\",\"id\":\"shp_0e404329f3654f199a279db729aa18b4\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" + "size": 432, + "text": "{\"id\":\"batch_db3e565773104a5dbd789ebb9d8c58fe\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"created\",\"num_shipments\":1,\"reference\":null,\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:39Z\",\"scan_form\":null,\"shipments\":[{\"batch_status\":\"postage_purchased\",\"batch_message\":null,\"reference\":null,\"tracking_code\":\"9400100105442287419265\",\"id\":\"shp_9106816348e0431783186a4800c56cb3\"}],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":1,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" }, "cookies": [], "headers": [ @@ -393,7 +389,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8ba89e79afeaa001cc71a" + "value": "32e015f3656904dcf43052b10032af18" }, { "name": "cache-control", @@ -411,13 +407,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"25d80f125021e95acb15625c88c668e1\"" - }, { "name": "x-runtime", - "value": "0.044452" + "value": "0.048881" }, { "name": "content-encoding", @@ -429,11 +421,11 @@ }, { "name": "x-node", - "value": "bigweb40nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -441,7 +433,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -452,14 +444,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:44:40.629Z", - "time": 685, + "startedDateTime": "2023-11-30T21:55:39.942Z", + "time": 180, "timings": { "blocked": -1, "connect": -1, @@ -467,11 +459,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 685 + "wait": 180 } }, { - "_id": "43db2408963c56a26b158c8055c80022", + "_id": "0627164180cd84f397e7fffe7e5db390", "_order": 0, "cache": {}, "request": { @@ -505,10 +497,10 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipments\":[{\"id\":\"shp_0e404329f3654f199a279db729aa18b4\"}]}" + "text": "{\"shipments\":[{\"id\":\"shp_9106816348e0431783186a4800c56cb3\"}]}" }, "queryString": [], - "url": "https://api.easypost.com/v2/batches/batch_2b75ec50069148db8dd9b5210fb55377/remove_shipments" + "url": "https://api.easypost.com/v2/batches/batch_db3e565773104a5dbd789ebb9d8c58fe/remove_shipments" }, "response": { "bodySize": 332, @@ -516,7 +508,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 332, - "text": "{\"id\":\"batch_2b75ec50069148db8dd9b5210fb55377\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2023-09-06T17:44:40Z\",\"updated_at\":\"2023-09-06T17:44:41Z\",\"scan_form\":null,\"shipments\":[],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" + "text": "{\"id\":\"batch_db3e565773104a5dbd789ebb9d8c58fe\",\"object\":\"Batch\",\"mode\":\"test\",\"state\":\"purchased\",\"num_shipments\":0,\"reference\":null,\"created_at\":\"2023-11-30T21:55:39Z\",\"updated_at\":\"2023-11-30T21:55:40Z\",\"scan_form\":null,\"shipments\":[],\"status\":{\"created\":0,\"queued_for_purchase\":0,\"creation_failed\":0,\"postage_purchased\":0,\"postage_purchase_failed\":0},\"pickup\":null,\"label_url\":null}" }, "cookies": [], "headers": [ @@ -546,7 +538,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8ba89e79afeab001cc757" + "value": "32e015f7656904dcf43d6a670032af3d" }, { "name": "cache-control", @@ -564,13 +556,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"a80655b50afcfa6b3b8f48d63a6bb318\"" - }, { "name": "x-runtime", - "value": "0.039664" + "value": "0.050165" }, { "name": "content-encoding", @@ -582,11 +570,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -594,7 +582,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -605,14 +593,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:44:41.319Z", - "time": 417, + "startedDateTime": "2023-11-30T21:55:40.127Z", + "time": 196, "timings": { "blocked": -1, "connect": -1, @@ -620,7 +608,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 417 + "wait": 196 } } ], diff --git a/test/cassettes/Error-Service_386538342/pulls-out-error-properties-of-an-API-error_2733221812/recording.har b/test/cassettes/Error-Service_386538342/pulls-out-error-properties-of-an-API-error_2733221812/recording.har index b519c5b4e..edbf87bf4 100644 --- a/test/cassettes/Error-Service_386538342/pulls-out-error-properties-of-an-API-error_2733221812/recording.har +++ b/test/cassettes/Error-Service_386538342/pulls-out-error-properties-of-an-API-error_2733221812/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ee1474db837fe5a510b7695e31a2d2f6", + "_id": "9549ce6455e0881656f5ef3cf1eca93b", "_order": 0, "cache": {}, "request": { - "bodySize": 23, + "bodySize": 2, "cookies": [], "headers": [ { @@ -29,20 +29,20 @@ }, { "name": "content-length", - "value": 23 + "value": 2 }, { "name": "host", "value": "api.easypost.com" } ], - "headersSize": 389, + "headersSize": 388, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"carbon_offset\":false}" + "text": "{}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49c64f8baa8e79b0244001cd1d0" + "value": "32e015f965690261f41e473900308c5d" }, { "name": "cache-control", @@ -103,7 +103,7 @@ }, { "name": "x-runtime", - "value": "0.036476" + "value": "0.036607" }, { "name": "content-encoding", @@ -115,11 +115,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -127,7 +127,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -144,8 +144,8 @@ "status": 422, "statusText": "Unprocessable Entity" }, - "startedDateTime": "2023-09-06T17:45:12.619Z", - "time": 412, + "startedDateTime": "2023-11-30T21:45:04.631Z", + "time": 394, "timings": { "blocked": -1, "connect": -1, @@ -153,7 +153,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 412 + "wait": 394 } } ], diff --git a/test/cassettes/Insurance-Service_1251316388/creates-an-insurance-object_4069302148/recording.har b/test/cassettes/Insurance-Service_1251316388/creates-an-insurance-object_4069302148/recording.har index 34827aeba..4b6ad2a1e 100644 --- a/test/cassettes/Insurance-Service_1251316388/creates-an-insurance-object_4069302148/recording.har +++ b/test/cassettes/Insurance-Service_1251316388/creates-an-insurance-object_4069302148/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,7 +42,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" @@ -53,7 +53,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 2311, - "text": "{\"created_at\":\"2023-09-06T17:45:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258923605\",\"updated_at\":\"2023-09-06T17:45:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2d1615e34cdd11eeba52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:32+00:00\",\"updated_at\":\"2023-09-06T17:45:32+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f7dd800424f045b08e6d1f0f8ae56a7e\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d0432b9720074dad90a48e34cce4120b\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:33Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:45:32Z\",\"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/20230906/e89e4355c3f9ff42309ecb1185bad40c4c.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_bdca9a0ce4014a7f811ac702148053f9\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fcd515c21cf24258bdc1498f959f210c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6441ee982c474750a500404b8a8a0fe2\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7c0c11c5e4c746aa9ff54290e8083231\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ea087f51aa064a9ab8eb4ca2dddef072\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6441ee982c474750a500404b8a8a0fe2\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:32Z\",\"updated_at\":\"2023-09-06T17:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_03bd55f7768c4617813f46b31dfc6750\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_c76b46a6dc754674864953f557db156f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923605\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:45:33Z\",\"updated_at\":\"2023-09-06T17:45:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_03bd55f7768c4617813f46b31dfc6750\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2M3NmI0NmE2ZGM3NTQ2NzQ4NjQ5NTNmNTU3ZGIxNTZm\"},\"to_address\":{\"id\":\"adr_2d1410834cdd11eebe91ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:32+00:00\",\"updated_at\":\"2023-09-06T17:45:32+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_2d1615e34cdd11eeba52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:32+00:00\",\"updated_at\":\"2023-09-06T17:45:32+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_2d1410834cdd11eebe91ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:32+00:00\",\"updated_at\":\"2023-09-06T17:45:32+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_03bd55f7768c4617813f46b31dfc6750\",\"object\":\"Shipment\"}" + "text": "{\"created_at\":\"2023-11-30T21:45:05Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416462\",\"updated_at\":\"2023-11-30T21:45:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_b9436f688fc911ee8f45ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:05+00:00\",\"updated_at\":\"2023-11-30T21:45:05+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_810ddcf5cc5544aa8a1f377261858ebc\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0a1959621e4148458a49cac01eb972d9\",\"created_at\":\"2023-11-30T21:45:06Z\",\"updated_at\":\"2023-11-30T21:45:06Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:06Z\",\"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/20231130/e841613d50aac0466fbe82a0f420c00da4.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_d8ef0d1e1ce841cdbdeeab47ff09f925\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_82a68b1f1b1f4952bdbde687402716f3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_98915e299b534a9f8da372b6175e2be3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_de0437021d534699a5d805de7b7310c8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8463a5eabf4e4d008b7c56c326d8a37a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:05Z\",\"updated_at\":\"2023-11-30T21:45:05Z\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_98915e299b534a9f8da372b6175e2be3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:06Z\",\"updated_at\":\"2023-11-30T21:45:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4203a7a63aec45438e24ea58547bef58\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9f4756fcf41f45fcb14904d87b563861\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416462\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:06Z\",\"updated_at\":\"2023-11-30T21:45:06Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4203a7a63aec45438e24ea58547bef58\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzlmNDc1NmZjZjQxZjQ1ZmNiMTQ5MDRkODdiNTYzODYx\"},\"to_address\":{\"id\":\"adr_b9409c3c8fc911ee8f42ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:05+00:00\",\"updated_at\":\"2023-11-30T21:45:05+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_b9436f688fc911ee8f45ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:05+00:00\",\"updated_at\":\"2023-11-30T21:45:05+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_b9409c3c8fc911ee8f42ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:05+00:00\",\"updated_at\":\"2023-11-30T21:45:05+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4203a7a63aec45438e24ea58547bef58\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8babce79b0283001cd90d" + "value": "32e015f965690261f02106c000308ca2" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_03bd55f7768c4617813f46b31dfc6750" + "value": "/api/v2/shipments/shp_4203a7a63aec45438e24ea58547bef58" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"57be0e41ab72922d70e0d94448562a9c\"" - }, { "name": "x-runtime", - "value": "1.161847" + "value": "1.270951" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb39nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_03bd55f7768c4617813f46b31dfc6750", + "redirectURL": "/api/v2/shipments/shp_4203a7a63aec45438e24ea58547bef58", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:45:31.783Z", - "time": 1627, + "startedDateTime": "2023-11-30T21:45:05.124Z", + "time": 1404, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1627 + "wait": 1404 } }, { - "_id": "7729d4ddec319731476fbbc9337763ee", + "_id": "e2a5fbeb9a67c80c6734d06fa68784b4", "_order": 0, "cache": {}, "request": { @@ -199,7 +195,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"insurance\":{\"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\"},\"carrier\":\"USPS\",\"amount\":\"100\",\"tracking_code\":\"9400100105440258923605\"}}" + "text": "{\"insurance\":{\"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\"},\"carrier\":\"USPS\",\"amount\":\"100\",\"tracking_code\":\"9400100105442287416462\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/insurances" @@ -210,7 +206,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 1658, - "text": "{\"id\":\"ins_b99e575de4e246389ba783830e9cb791\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_2dfee4e24cdd11eebad6ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:33+00:00\",\"updated_at\":\"2023-09-06T17:45:33+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\"}}}},\"from_address\":{\"id\":\"adr_2e043b9b4cdd11ee85dd3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:33+00:00\",\"updated_at\":\"2023-09-06T17:45:33+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_c76b46a6dc754674864953f557db156f\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923605\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:45:33Z\",\"updated_at\":\"2023-09-06T17:45:33Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:45:33Z\",\"shipment_id\":\"shp_03bd55f7768c4617813f46b31dfc6750\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:45:33Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:22:33Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrX2M3NmI0NmE2ZGM3NTQ2NzQ4NjQ5NTNmNTU3ZGIxNTZm\",\"fees\":[]},\"tracking_code\":\"9400100105440258923605\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-09-06T17:45:33Z\",\"updated_at\":\"2023-09-06T17:45:33Z\"}" + "text": "{\"id\":\"ins_bd5fbbaf525e4b9884b4cd690f4309bf\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_ba25321b8fc911ee9ac5ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:06+00:00\",\"updated_at\":\"2023-11-30T21:45:06+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\"}}}},\"from_address\":{\"id\":\"adr_ba2a8eb78fc911ee8fbfac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:06+00:00\",\"updated_at\":\"2023-11-30T21:45:06+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_9f4756fcf41f45fcb14904d87b563861\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416462\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:06Z\",\"updated_at\":\"2023-11-30T21:45:06Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:06Z\",\"shipment_id\":\"shp_4203a7a63aec45438e24ea58547bef58\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:06Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:06Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzlmNDc1NmZjZjQxZjQ1ZmNiMTQ5MDRkODdiNTYzODYx\",\"fees\":[]},\"tracking_code\":\"9400100105442287416462\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-11-30T21:45:06Z\",\"updated_at\":\"2023-11-30T21:45:07Z\"}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49764f8babde79b0284001cd9a6" + "value": "02ef191a65690262f3f980ce0033b4b5" }, { "name": "cache-control", @@ -256,19 +252,15 @@ }, { "name": "location", - "value": "/api/v2/insurances/ins_b99e575de4e246389ba783830e9cb791" + "value": "/api/v2/insurances/ins_bd5fbbaf525e4b9884b4cd690f4309bf" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"01ab68dbc1cfd2a9160e9f5a24574dc9\"" - }, { "name": "x-runtime", - "value": "0.162816" + "value": "0.235848" }, { "name": "content-encoding", @@ -284,7 +276,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -292,7 +284,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +295,14 @@ "value": "close" } ], - "headersSize": 821, + "headersSize": 777, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/insurances/ins_b99e575de4e246389ba783830e9cb791", + "redirectURL": "/api/v2/insurances/ins_bd5fbbaf525e4b9884b4cd690f4309bf", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:45:33.416Z", - "time": 746, + "startedDateTime": "2023-11-30T21:45:06.533Z", + "time": 377, "timings": { "blocked": -1, "connect": -1, @@ -318,7 +310,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 746 + "wait": 377 } } ], diff --git a/test/cassettes/Insurance-Service_1251316388/retrieves-an-insurance-object_1368608920/recording.har b/test/cassettes/Insurance-Service_1251316388/retrieves-an-insurance-object_1368608920/recording.har index 03b1edf1b..9df626c80 100644 --- a/test/cassettes/Insurance-Service_1251316388/retrieves-an-insurance-object_1368608920/recording.har +++ b/test/cassettes/Insurance-Service_1251316388/retrieves-an-insurance-object_1368608920/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2330, + "bodySize": 2326, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2330, - "text": "{\"created_at\":\"2023-09-06T17:45:34Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258923643\",\"updated_at\":\"2023-09-06T17:45:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2e78056c4cdd11eebb18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:34+00:00\",\"updated_at\":\"2023-09-06T17:45:34+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_38d8915888974476bd7451034d101aef\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_59651647f09b43ddacec15882dbf18a5\",\"created_at\":\"2023-09-06T17:45:35Z\",\"updated_at\":\"2023-09-06T17:45:35Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:45:35Z\",\"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/20230906/e81c4a800245e246aea92498a55d0f86ae.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0dbfe456546c447bbdf897f577c6a6bd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_75c61777304f48ac9f977866cf5733fd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0343950733bf47b3a0dc071db8f2083b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_dd89389fe8f6486caee984006b741f43\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fbd3e7742f6c48ea8e8c6cc78d85a389\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:34Z\",\"updated_at\":\"2023-09-06T17:45:34Z\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_0343950733bf47b3a0dc071db8f2083b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:45:35Z\",\"updated_at\":\"2023-09-06T17:45:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f8007efc6c204717a23b9e9099a0abcb\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_f9c91a4aa2f84c6eb0bff50e291e9589\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923643\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:45:35Z\",\"updated_at\":\"2023-09-06T17:45:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f8007efc6c204717a23b9e9099a0abcb\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Y5YzkxYTRhYTJmODRjNmViMGJmZjUwZTI5MWU5NTg5\"},\"to_address\":{\"id\":\"adr_2e70cfe24cdd11eebb14ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:34+00:00\",\"updated_at\":\"2023-09-06T17:45:35+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_2e78056c4cdd11eebb18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:34+00:00\",\"updated_at\":\"2023-09-06T17:45:34+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_2e70cfe24cdd11eebb14ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:34+00:00\",\"updated_at\":\"2023-09-06T17:45:35+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f8007efc6c204717a23b9e9099a0abcb\",\"object\":\"Shipment\"}" + "size": 2326, + "text": "{\"created_at\":\"2023-11-30T21:45:07Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416486\",\"updated_at\":\"2023-11-30T21:45:08Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_ba55997f8fc911ee8fd5ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:07+00:00\",\"updated_at\":\"2023-11-30T21:45:07+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_1899882ec6374c72a21048275001066d\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3481f57ef3b643cbbdb818aeb90db274\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:08Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:07Z\",\"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/20231130/e8d3ba20783eab4889812a9140d90d0051.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_34341bb5496e418f87613e0b850e7f82\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a44be283585d4a8aaff5a7c6f450c788\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4dee08574ad04952b49c28a04f5a8dad\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b4f70dfb20f141f29c97a88f270a017c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_aca514b24c2e4d65ba4c1606ffdcb7bd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_4dee08574ad04952b49c28a04f5a8dad\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:07Z\",\"updated_at\":\"2023-11-30T21:45:07Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_89d83d537c814c1cabcd5f1e106f961c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416486\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:08Z\",\"updated_at\":\"2023-11-30T21:45:08Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg5ZDgzZDUzN2M4MTRjMWNhYmNkNWYxZTEwNmY5NjFj\"},\"to_address\":{\"id\":\"adr_ba523c198fc911ee94163cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:07+00:00\",\"updated_at\":\"2023-11-30T21:45:07+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_ba55997f8fc911ee8fd5ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:07+00:00\",\"updated_at\":\"2023-11-30T21:45:07+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_ba523c198fc911ee94163cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:07+00:00\",\"updated_at\":\"2023-11-30T21:45:07+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49764f8babee79b0285001cda00" + "value": "02ef191665690263f409dac30033b52b" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_f8007efc6c204717a23b9e9099a0abcb" + "value": "/api/v2/shipments/shp_dbbe75181e0341e1bf99ff9a00dbbc7f" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"44ef6ba142e9714d6adf0466f5ce0963\"" - }, { "name": "x-runtime", - "value": "1.385180" + "value": "1.078755" }, { "name": "content-encoding", @@ -123,19 +119,23 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb32nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +146,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 794, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_f8007efc6c204717a23b9e9099a0abcb", + "redirectURL": "/api/v2/shipments/shp_dbbe75181e0341e1bf99ff9a00dbbc7f", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:45:34.176Z", - "time": 1795, + "startedDateTime": "2023-11-30T21:45:06.922Z", + "time": 1215, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +161,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1795 + "wait": 1215 } }, { - "_id": "4acbc719b4705018ed7d2c7dab999fed", + "_id": "2b35b1de1b23f366da00157323943d4d", "_order": 0, "cache": {}, "request": { @@ -199,18 +199,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"insurance\":{\"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\"},\"carrier\":\"USPS\",\"amount\":\"100\",\"tracking_code\":\"9400100105440258923643\"}}" + "text": "{\"insurance\":{\"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\"},\"carrier\":\"USPS\",\"amount\":\"100\",\"tracking_code\":\"9400100105442287416486\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/insurances" }, "response": { - "bodySize": 1651, + "bodySize": 1642, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1651, - "text": "{\"id\":\"ins_9a043280c1104f359cf2cafac0b10133\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_2f8787534cdd11eebbbcac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:36+00:00\",\"updated_at\":\"2023-09-06T17:45:36+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\"}}}},\"from_address\":{\"id\":\"adr_2f8c96754cdd11ee8024ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:36+00:00\",\"updated_at\":\"2023-09-06T17:45:36+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_f9c91a4aa2f84c6eb0bff50e291e9589\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923643\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:45:35Z\",\"updated_at\":\"2023-09-06T17:45:36Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:45:35Z\",\"shipment_id\":\"shp_f8007efc6c204717a23b9e9099a0abcb\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:45:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:22:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Y5YzkxYTRhYTJmODRjNmViMGJmZjUwZTI5MWU5NTg5\",\"fees\":[]},\"tracking_code\":\"9400100105440258923643\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-09-06T17:45:36Z\",\"updated_at\":\"2023-09-06T17:45:36Z\"}" + "size": 1642, + "text": "{\"id\":\"ins_1b6b73a0644548409015d9af53ba37f3\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_bb105a858fc911ee9b61ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:08+00:00\",\"updated_at\":\"2023-11-30T21:45:08+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\"}}}},\"from_address\":{\"id\":\"adr_bb16011f8fc911ee9b64ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:08+00:00\",\"updated_at\":\"2023-11-30T21:45:08+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":\"\",\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_89d83d537c814c1cabcd5f1e106f961c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416486\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:08Z\",\"updated_at\":\"2023-11-30T21:45:08Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:08Z\",\"shipment_id\":\"shp_dbbe75181e0341e1bf99ff9a00dbbc7f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:08Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:08Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg5ZDgzZDUzN2M4MTRjMWNhYmNkNWYxZTEwNmY5NjFj\",\"fees\":[]},\"tracking_code\":\"9400100105442287416486\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-11-30T21:45:08Z\",\"updated_at\":\"2023-11-30T21:45:08Z\"}" }, "cookies": [], "headers": [ @@ -240,7 +240,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8bac0e79b0286001cdaae" + "value": "32e015fa65690264f42d844b00308fa6" }, { "name": "cache-control", @@ -256,19 +256,15 @@ }, { "name": "location", - "value": "/api/v2/insurances/ins_9a043280c1104f359cf2cafac0b10133" + "value": "/api/v2/insurances/ins_1b6b73a0644548409015d9af53ba37f3" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"49b5375b1b070aee8deed43bc56c6d6c\"" - }, { "name": "x-runtime", - "value": "0.218825" + "value": "0.184811" }, { "name": "content-encoding", @@ -280,19 +276,23 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb32nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +303,14 @@ "value": "close" } ], - "headersSize": 821, + "headersSize": 795, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/insurances/ins_9a043280c1104f359cf2cafac0b10133", + "redirectURL": "/api/v2/insurances/ins_1b6b73a0644548409015d9af53ba37f3", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:45:35.978Z", - "time": 601, + "startedDateTime": "2023-11-30T21:45:08.141Z", + "time": 329, "timings": { "blocked": -1, "connect": -1, @@ -318,11 +318,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 601 + "wait": 329 } }, { - "_id": "468bbb9373b92406bc6c8562590a912a", + "_id": "8cfb21fa75ff4f115a832e373fe45e07", "_order": 0, "cache": {}, "request": { @@ -350,15 +350,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/insurances/ins_9a043280c1104f359cf2cafac0b10133" + "url": "https://api.easypost.com/v2/insurances/ins_1b6b73a0644548409015d9af53ba37f3" }, "response": { - "bodySize": 1396, + "bodySize": 1395, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1396, - "text": "{\"id\":\"ins_9a043280c1104f359cf2cafac0b10133\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_2f8787534cdd11eebbbcac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:36+00:00\",\"updated_at\":\"2023-09-06T17:45:36+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\"}}}},\"from_address\":{\"id\":\"adr_2f8c96754cdd11ee8024ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:45:36+00:00\",\"updated_at\":\"2023-09-06T17:45:36+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_2bfe6ef0be1748c8b5ced0395e79aad4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923643\",\"status\":\"error\",\"status_detail\":null,\"created_at\":\"2023-09-06T17:45:36Z\",\"updated_at\":\"2023-09-06T17:45:36Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007\",\"description\":\"\",\"status\":\"error\",\"status_detail\":null,\"datetime\":\"2023-09-06T17:45:36Z\",\"source\":\"ProcessingError\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}}],\"carrier_detail\":null,\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzJiZmU2ZWYwYmUxNzQ4YzhiNWNlZDAzOTVlNzlhYWQ0\",\"fees\":[]},\"tracking_code\":\"9400100105440258923643\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-09-06T17:45:36Z\",\"updated_at\":\"2023-09-06T17:45:36Z\"}" + "size": 1395, + "text": "{\"id\":\"ins_1b6b73a0644548409015d9af53ba37f3\",\"object\":\"Insurance\",\"mode\":\"test\",\"reference\":null,\"status\":\"pending\",\"amount\":\"100.00000\",\"provider\":\"easypost\",\"provider_id\":null,\"to_address\":{\"id\":\"adr_bb105a858fc911ee9b61ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:08+00:00\",\"updated_at\":\"2023-11-30T21:45:08+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\"}}}},\"from_address\":{\"id\":\"adr_bb16011f8fc911ee9b64ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:08+00:00\",\"updated_at\":\"2023-11-30T21:45:08+00:00\",\"name\":\"JACK SPARROW\",\"company\":null,\"street1\":\"388 TOWNSEND ST APT 20\",\"street2\":null,\"city\":\"SAN FRANCISCO\",\"state\":\"CA\",\"zip\":\"94107-1670\",\"country\":\"US\",\"phone\":\"\",\"email\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":true,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{\"zip4\":{\"success\":true,\"errors\":[],\"details\":null},\"delivery\":{\"success\":true,\"errors\":[],\"details\":{\"latitude\":37.77551,\"longitude\":-122.39697,\"time_zone\":\"America/Los_Angeles\"}}}},\"shipment_id\":null,\"tracker\":{\"id\":\"trk_3026c0bf5c97471a9a8e4afe0af4a6f3\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416486\",\"status\":\"error\",\"status_detail\":null,\"created_at\":\"2023-11-30T21:45:08Z\",\"updated_at\":\"2023-11-30T21:45:08Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":null,\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007\",\"description\":\"\",\"status\":\"error\",\"status_detail\":null,\"datetime\":\"2023-11-30T21:45:08Z\",\"source\":\"ProcessingError\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}}],\"carrier_detail\":null,\"finalized\":true,\"is_return\":false,\"public_url\":\"https://track.easypost.com/djE6dHJrXzMwMjZjMGJmNWM5NzQ3MWE5YThlNGFmZTBhZjRhNmYz\",\"fees\":[]},\"tracking_code\":\"9400100105442287416486\",\"fee\":{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false},\"messages\":[],\"created_at\":\"2023-11-30T21:45:08Z\",\"updated_at\":\"2023-11-30T21:45:08Z\"}" }, "cookies": [], "headers": [ @@ -388,7 +388,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49a64f8bac0e79b0287001cdaeb" + "value": "32e015fa65690264f42e1d1400309007" }, { "name": "cache-control", @@ -406,13 +406,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"b8c8db8e15b1938dde880864f1c6f7cc\"" - }, { "name": "x-runtime", - "value": "1.239816" + "value": "0.541063" }, { "name": "content-encoding", @@ -424,11 +420,11 @@ }, { "name": "x-node", - "value": "bigweb38nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -436,7 +432,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -447,14 +443,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:45:36.586Z", - "time": 1740, + "startedDateTime": "2023-11-30T21:45:08.476Z", + "time": 698, "timings": { "blocked": -1, "connect": -1, @@ -462,7 +458,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1740 + "wait": 698 } } ], diff --git a/test/cassettes/Pickup-Service_2981084322/buys-a-pickup_1934475561/recording.har b/test/cassettes/Pickup-Service_2981084322/buys-a-pickup_1934475561/recording.har index 865689d77..f2e441eb2 100644 --- a/test/cassettes/Pickup-Service_2981084322/buys-a-pickup_1934475561/recording.har +++ b/test/cassettes/Pickup-Service_2981084322/buys-a-pickup_1934475561/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2316, + "bodySize": 2304, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2316, - "text": "{\"created_at\":\"2023-09-06T17:46:21Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924114\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4a9c2f7d4cdd11eebd15ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:21+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_fff94c04756c48d3bcadd1eebb43b582\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_983a79fe80a945b6a56dd15f22c4710d\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:22Z\",\"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/20230906/e8966676b6546443a78f91314ca84c2809.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5d6d17ffe3244301897929363d8555dd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_87fb4c3e7b584cdc9bc3eaafe78bbe14\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a125b61745a4435f8d0f4569b28f4850\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_46039d88b10941be9db3a9bdaac2b371\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7ab01d43bfe64912b677fde40e16c8ec\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a125b61745a4435f8d0f4569b28f4850\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_e542bdb94a634e9bbb70f74df6c7e907\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924114\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_093726726e884a1eb8112422fd1f1868\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2U1NDJiZGI5NGE2MzRlOWJiYjcwZjc0ZGY2YzdlOTA3\"},\"to_address\":{\"id\":\"adr_4a985bb34cdd11eebd14ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:22+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4a9c2f7d4cdd11eebd15ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:21+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_4a985bb34cdd11eebd14ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:22+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_093726726e884a1eb8112422fd1f1868\",\"object\":\"Shipment\"}" + "size": 2304, + "text": "{\"created_at\":\"2023-11-30T21:45:14Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416561\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_be5bdac78fc911ee9257ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_d126d49e085d4d59991b31909d99a4c1\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_5dc7115eb9e14bd384b9f266b37a4000\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:14Z\",\"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/20231130/e84218b738e4954c8b9baa14a5a592255b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_487a2ee9a083421091385eaa7a799fa0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45: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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5d45a3b2c8e6412abe7a1ac81aa57622\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_dfce53710b384410b8878fbae4f760b0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c0cb2f49459f4913ba650331fadf8c00\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_82be8376a4934161a9dbd792598306f8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c0cb2f49459f4913ba650331fadf8c00\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_6c90ec9e477547f795a1be9ce3eea314\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416561\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:15Z\",\"updated_at\":\"2023-11-30T21:45:15Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c472a01f10e74891b22c81a1444a22f9\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZjOTBlYzllNDc3NTQ3Zjc5NWExYmU5Y2UzZWVhMzE0\"},\"to_address\":{\"id\":\"adr_be5915fc8fc911ee9d4bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45:14+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_be5bdac78fc911ee9257ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"buyer_address\":{\"id\":\"adr_be5915fc8fc911ee9d4bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45:14+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c472a01f10e74891b22c81a1444a22f9\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8baede79b02e6001cebbf" + "value": "32e015f665690269f41a5acc003095e1" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_093726726e884a1eb8112422fd1f1868" + "value": "/api/v2/shipments/shp_c472a01f10e74891b22c81a1444a22f9" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"01069bbffe713e8510e19e6ea4250521\"" - }, { "name": "x-runtime", - "value": "1.012671" + "value": "1.146872" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_093726726e884a1eb8112422fd1f1868", + "redirectURL": "/api/v2/shipments/shp_c472a01f10e74891b22c81a1444a22f9", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:21.411Z", - "time": 1399, + "startedDateTime": "2023-11-30T21:45:13.671Z", + "time": 1287, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1399 + "wait": 1287 } }, { - "_id": "40b657b507f4f5ef912a2c981987f19b", + "_id": "db1c0b1cf03ae14d274cba505ed0d590", "_order": 0, "cache": {}, "request": { - "bodySize": 7899, + "bodySize": 7895, "cookies": [], "headers": [ { @@ -186,7 +182,7 @@ }, { "name": "content-length", - "value": 7899 + "value": 7895 }, { "name": "host", @@ -199,7 +195,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-09-10\",\"max_datetime\":\"2023-09-10\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-09-06T17:46:21Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924114\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4a9c2f7d4cdd11eebd15ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:21+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_fff94c04756c48d3bcadd1eebb43b582\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_983a79fe80a945b6a56dd15f22c4710d\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:22Z\",\"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/20230906/e8966676b6546443a78f91314ca84c2809.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5d6d17ffe3244301897929363d8555dd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_87fb4c3e7b584cdc9bc3eaafe78bbe14\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a125b61745a4435f8d0f4569b28f4850\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_46039d88b10941be9db3a9bdaac2b371\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7ab01d43bfe64912b677fde40e16c8ec\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:21Z\",\"updated_at\":\"2023-09-06T17:46:21Z\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a125b61745a4435f8d0f4569b28f4850\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_093726726e884a1eb8112422fd1f1868\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_e542bdb94a634e9bbb70f74df6c7e907\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924114\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:22Z\",\"updated_at\":\"2023-09-06T17:46:22Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_093726726e884a1eb8112422fd1f1868\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2U1NDJiZGI5NGE2MzRlOWJiYjcwZjc0ZGY2YzdlOTA3\"},\"to_address\":{\"id\":\"adr_4a985bb34cdd11eebd14ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:22+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4a9c2f7d4cdd11eebd15ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:21+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_4a985bb34cdd11eebd14ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:21+00:00\",\"updated_at\":\"2023-09-06T17:46:22+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_093726726e884a1eb8112422fd1f1868\",\"object\":\"Shipment\"}}}" + "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-12-05\",\"max_datetime\":\"2023-12-05\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-11-30T21:45:14Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416561\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_be5bdac78fc911ee9257ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_d126d49e085d4d59991b31909d99a4c1\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_5dc7115eb9e14bd384b9f266b37a4000\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:14Z\",\"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/20231130/e84218b738e4954c8b9baa14a5a592255b.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_487a2ee9a083421091385eaa7a799fa0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45: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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5d45a3b2c8e6412abe7a1ac81aa57622\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_dfce53710b384410b8878fbae4f760b0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c0cb2f49459f4913ba650331fadf8c00\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_82be8376a4934161a9dbd792598306f8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c0cb2f49459f4913ba650331fadf8c00\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:14Z\",\"updated_at\":\"2023-11-30T21:45:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c472a01f10e74891b22c81a1444a22f9\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_6c90ec9e477547f795a1be9ce3eea314\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416561\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:15Z\",\"updated_at\":\"2023-11-30T21:45:15Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c472a01f10e74891b22c81a1444a22f9\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZjOTBlYzllNDc3NTQ3Zjc5NWExYmU5Y2UzZWVhMzE0\"},\"to_address\":{\"id\":\"adr_be5915fc8fc911ee9d4bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45:14+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_be5bdac78fc911ee9257ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"buyer_address\":{\"id\":\"adr_be5915fc8fc911ee9d4bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:13+00:00\",\"updated_at\":\"2023-11-30T21:45:14+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c472a01f10e74891b22c81a1444a22f9\",\"object\":\"Shipment\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/pickups" @@ -210,7 +206,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 744, - "text": "{\"id\":\"pickup_5407fd8fab4d441f92881dec1b53d825\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:45Z\",\"updated_at\":\"2023-09-06T17:49:45Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c42b5fc34cdd11ee98403cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:45+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:46Z\",\"updated_at\":\"2023-09-06T17:49:46Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_5407fd8fab4d441f92881dec1b53d825\",\"id\":\"pickuprate_6e2e2c3fb7be497c93a3312cd378d416\",\"object\":\"PickupRate\"}]}" + "text": "{\"id\":\"pickup_f062a8ba67d941628c02f4318ff33069\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:55Z\",\"updated_at\":\"2023-11-30T21:57:55Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_8438eee18fcb11ee85b5ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:55+00:00\",\"updated_at\":\"2023-11-30T21:57: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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:56Z\",\"updated_at\":\"2023-11-30T21:57:56Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f062a8ba67d941628c02f4318ff33069\",\"id\":\"pickuprate_b499d7cb3d82413c908e68c735f80936\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bbb9e79b0ac1001d4ce7" + "value": "32e015f765690563f3f7d367003323b2" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"0ba39513c03c59617977e8557646c663\"" - }, { "name": "x-runtime", - "value": "0.713426" + "value": "0.680660" }, { "name": "content-encoding", @@ -276,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:45.391Z", - "time": 1090, + "startedDateTime": "2023-11-30T21:57:55.180Z", + "time": 827, "timings": { "blocked": -1, "connect": -1, @@ -314,11 +306,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1090 + "wait": 827 } }, { - "_id": "dfdd6ee380c4ecb7cef555b7c52eafe2", + "_id": "b30ed7a37c09cec24b56351eb2f95962", "_order": 0, "cache": {}, "request": { @@ -355,15 +347,15 @@ "text": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}" }, "queryString": [], - "url": "https://api.easypost.com/v2/pickups/pickup_5407fd8fab4d441f92881dec1b53d825/buy" + "url": "https://api.easypost.com/v2/pickups/pickup_f062a8ba67d941628c02f4318ff33069/buy" }, "response": { - "bodySize": 760, + "bodySize": 764, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 760, - "text": "{\"id\":\"pickup_5407fd8fab4d441f92881dec1b53d825\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:45Z\",\"updated_at\":\"2023-09-06T17:49:47Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63354072\",\"address\":{\"id\":\"adr_c42b5fc34cdd11ee98403cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:45+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:46Z\",\"updated_at\":\"2023-09-06T17:49:46Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_5407fd8fab4d441f92881dec1b53d825\",\"id\":\"pickuprate_6e2e2c3fb7be497c93a3312cd378d416\",\"object\":\"PickupRate\"}]}" + "size": 764, + "text": "{\"id\":\"pickup_f062a8ba67d941628c02f4318ff33069\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:55Z\",\"updated_at\":\"2023-11-30T21:57:57Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63780682\",\"address\":{\"id\":\"adr_8438eee18fcb11ee85b5ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:55+00:00\",\"updated_at\":\"2023-11-30T21:57: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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:56Z\",\"updated_at\":\"2023-11-30T21:57:56Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f062a8ba67d941628c02f4318ff33069\",\"id\":\"pickuprate_b499d7cb3d82413c908e68c735f80936\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -393,7 +385,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7c64f8bbbae79b0ac2001d4d73" + "value": "02ef191565690564f450978c003669c8" }, { "name": "cache-control", @@ -411,13 +403,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"fd01da83cda6970b77ba5d64cffcdc4b\"" - }, { "name": "x-runtime", - "value": "0.931185" + "value": "0.983383" }, { "name": "content-encoding", @@ -429,23 +417,19 @@ }, { "name": "x-node", - "value": "bigweb43nuq" + "value": "bigweb31nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -456,14 +440,14 @@ "value": "close" } ], - "headersSize": 772, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:46.492Z", - "time": 1378, + "startedDateTime": "2023-11-30T21:57:56.018Z", + "time": 1132, "timings": { "blocked": -1, "connect": -1, @@ -471,7 +455,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1378 + "wait": 1132 } } ], diff --git a/test/cassettes/Pickup-Service_2981084322/cancels-a-pickup_4207662041/recording.har b/test/cassettes/Pickup-Service_2981084322/cancels-a-pickup_4207662041/recording.har index c78e8ed1f..f95f9e6a3 100644 --- a/test/cassettes/Pickup-Service_2981084322/cancels-a-pickup_4207662041/recording.har +++ b/test/cassettes/Pickup-Service_2981084322/cancels-a-pickup_4207662041/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2330, + "bodySize": 2318, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2330, - "text": "{\"created_at\":\"2023-09-06T17:46:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924152\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4d5276724cdd11eebe2bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f2ddba1ef4ef4d8ba9d2b6b5c6086c76\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c7c04cf8710145bd8f80fba42b06093c\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:26Z\",\"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/20230906/e89188191ca1f94d5681c67c818e0557de.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7522af604768433da863795f15b22c6c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_acc5c8e99c9b4d4a9230493bd60ec1f1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_dd83758b598c4d3b94b3d7f9b0c5a05e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_736d27fe439b4112867dcebac55f978f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_56c10835c657438e94206f8da814e159\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_acc5c8e99c9b4d4a9230493bd60ec1f1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:27Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_46c699dca8f54dd0a29bf71ce19a8379\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924152\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:27Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzQ2YzY5OWRjYThmNTRkZDBhMjliZjcxY2UxOWE4Mzc5\"},\"to_address\":{\"id\":\"adr_4d4f9e574cdd11ee92ccac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4d5276724cdd11eebe2bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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_4d4f9e574cdd11ee92ccac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b9cf8f165eba40489c09f35eeb83bd2a\",\"object\":\"Shipment\"}" + "size": 2318, + "text": "{\"created_at\":\"2023-11-30T21:45:15Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416585\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bf79e3cc8fc911ee9d52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"insurance\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_8e35057b26d0447c9fe0daf1a37e016b\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:15Z\",\"updated_at\":\"2023-11-30T21:45:15Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a5ebd87766314c0b8a81980b68c0f97c\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:16Z\",\"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/20231130/e8cc007c2073784421a48532f6386b3703.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_19bcaf19e67943ecb7f678faffb89973\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45: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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1e75548422b9471e8b4d6f20e62be7cb\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9c5bbb8313544f5ba50ff21b4890b153\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a476401b67e849a292b22c70bde85be2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_444f93a7cc5447e895a440621e26b1ed\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a476401b67e849a292b22c70bde85be2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7ac1dbf827a14a9c97eadb3a8f5eeeec\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416585\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdhYzFkYmY4MjdhMTRhOWM5N2VhZGIzYThmNWVlZWVj\"},\"to_address\":{\"id\":\"adr_bf7797b58fc911ee931eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45:16+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_bf79e3cc8fc911ee9d52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"buyer_address\":{\"id\":\"adr_bf7797b58fc911ee931eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45:16+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_3d339f5b765e4e2eb2334ae980e3ff9e\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8baf2e79b02e9001cedae" + "value": "32e015f36569026bf44f7b08003097e7" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_b9cf8f165eba40489c09f35eeb83bd2a" + "value": "/api/v2/shipments/shp_3d339f5b765e4e2eb2334ae980e3ff9e" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"6cfeb57ac289836bcc2da5004d54aee3\"" - }, { "name": "x-runtime", - "value": "1.221428" + "value": "1.032440" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb33nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_b9cf8f165eba40489c09f35eeb83bd2a", + "redirectURL": "/api/v2/shipments/shp_3d339f5b765e4e2eb2334ae980e3ff9e", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:25.954Z", - "time": 1730, + "startedDateTime": "2023-11-30T21:45:15.560Z", + "time": 1165, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1730 + "wait": 1165 } }, { - "_id": "55776fe43fc57e6b3ffc3b9589c51958", + "_id": "bada882f6bc69469383bb70104506954", "_order": 0, "cache": {}, "request": { - "bodySize": 7899, + "bodySize": 7895, "cookies": [], "headers": [ { @@ -186,7 +182,7 @@ }, { "name": "content-length", - "value": 7899 + "value": 7895 }, { "name": "host", @@ -199,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-09-10\",\"max_datetime\":\"2023-09-10\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-09-06T17:46:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924152\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_4d5276724cdd11eebe2bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_f2ddba1ef4ef4d8ba9d2b6b5c6086c76\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_c7c04cf8710145bd8f80fba42b06093c\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:26Z\",\"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/20230906/e89188191ca1f94d5681c67c818e0557de.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7522af604768433da863795f15b22c6c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_acc5c8e99c9b4d4a9230493bd60ec1f1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_dd83758b598c4d3b94b3d7f9b0c5a05e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_736d27fe439b4112867dcebac55f978f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_56c10835c657438e94206f8da814e159\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:26Z\",\"updated_at\":\"2023-09-06T17:46:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_acc5c8e99c9b4d4a9230493bd60ec1f1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:27Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_46c699dca8f54dd0a29bf71ce19a8379\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924152\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:27Z\",\"updated_at\":\"2023-09-06T17:46:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b9cf8f165eba40489c09f35eeb83bd2a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzQ2YzY5OWRjYThmNTRkZDBhMjliZjcxY2UxOWE4Mzc5\"},\"to_address\":{\"id\":\"adr_4d4f9e574cdd11ee92ccac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_4d5276724cdd11eebe2bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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_4d4f9e574cdd11ee92ccac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:26+00:00\",\"updated_at\":\"2023-09-06T17:46:26+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b9cf8f165eba40489c09f35eeb83bd2a\",\"object\":\"Shipment\"}}}" + "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-12-05\",\"max_datetime\":\"2023-12-05\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-11-30T21:45:15Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416585\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bf79e3cc8fc911ee9d52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"insurance\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_8e35057b26d0447c9fe0daf1a37e016b\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:15Z\",\"updated_at\":\"2023-11-30T21:45:15Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a5ebd87766314c0b8a81980b68c0f97c\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:16Z\",\"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/20231130/e8cc007c2073784421a48532f6386b3703.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_19bcaf19e67943ecb7f678faffb89973\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45: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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1e75548422b9471e8b4d6f20e62be7cb\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9c5bbb8313544f5ba50ff21b4890b153\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a476401b67e849a292b22c70bde85be2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_444f93a7cc5447e895a440621e26b1ed\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_a476401b67e849a292b22c70bde85be2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7ac1dbf827a14a9c97eadb3a8f5eeeec\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416585\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:16Z\",\"updated_at\":\"2023-11-30T21:45:16Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_3d339f5b765e4e2eb2334ae980e3ff9e\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdhYzFkYmY4MjdhMTRhOWM5N2VhZGIzYThmNWVlZWVj\"},\"to_address\":{\"id\":\"adr_bf7797b58fc911ee931eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45:16+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_bf79e3cc8fc911ee9d52ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":{}},\"buyer_address\":{\"id\":\"adr_bf7797b58fc911ee931eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:15+00:00\",\"updated_at\":\"2023-11-30T21:45:16+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_3d339f5b765e4e2eb2334ae980e3ff9e\",\"object\":\"Shipment\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/pickups" }, "response": { - "bodySize": 736, + "bodySize": 744, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 736, - "text": "{\"id\":\"pickup_f6b3898880494306b061affa977e7436\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:48Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c5ab424c4cdd11ee900cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:48+00:00\",\"updated_at\":\"2023-09-06T17:49:48+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:48Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f6b3898880494306b061affa977e7436\",\"id\":\"pickuprate_5c7b4193e04c4c18afe1e0bdb31b3bdc\",\"object\":\"PickupRate\"}]}" + "size": 744, + "text": "{\"id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:57Z\",\"updated_at\":\"2023-11-30T21:57:57Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_856913588fcb11ee81503cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:57+00:00\",\"updated_at\":\"2023-11-30T21:57:57+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:58Z\",\"updated_at\":\"2023-11-30T21:57:58Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"id\":\"pickuprate_23617d3f7868417c87077ce987cb07d7\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bbbce79b0ac3001d4e0b" + "value": "02ef191865690565f42fc1f100366ac2" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"9bd9979eb3fa08c1a2c8bb73ce4a37ad\"" - }, { "name": "x-runtime", - "value": "0.718832" + "value": "0.966667" }, { "name": "content-encoding", @@ -280,7 +272,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:47.893Z", - "time": 1216, + "startedDateTime": "2023-11-30T21:57:57.171Z", + "time": 1118, "timings": { "blocked": -1, "connect": -1, @@ -314,11 +306,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1216 + "wait": 1118 } }, { - "_id": "569f9fa1232e5d3be209006c628c469c", + "_id": "d187db8e8a583eb4642f50d008818fe5", "_order": 0, "cache": {}, "request": { @@ -355,15 +347,15 @@ "text": "{\"carrier\":\"USPS\",\"service\":\"NextDay\"}" }, "queryString": [], - "url": "https://api.easypost.com/v2/pickups/pickup_f6b3898880494306b061affa977e7436/buy" + "url": "https://api.easypost.com/v2/pickups/pickup_71ce8945565644f2a6dea068cf3240c4/buy" }, "response": { - "bodySize": 760, + "bodySize": 764, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 760, - "text": "{\"id\":\"pickup_f6b3898880494306b061affa977e7436\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:50Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63354074\",\"address\":{\"id\":\"adr_c5ab424c4cdd11ee900cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:48+00:00\",\"updated_at\":\"2023-09-06T17:49:48+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:48Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f6b3898880494306b061affa977e7436\",\"id\":\"pickuprate_5c7b4193e04c4c18afe1e0bdb31b3bdc\",\"object\":\"PickupRate\"}]}" + "size": 764, + "text": "{\"id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:57Z\",\"updated_at\":\"2023-11-30T21:57:59Z\",\"mode\":\"test\",\"status\":\"scheduled\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63780684\",\"address\":{\"id\":\"adr_856913588fcb11ee81503cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:57+00:00\",\"updated_at\":\"2023-11-30T21:57:57+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:58Z\",\"updated_at\":\"2023-11-30T21:57:58Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"id\":\"pickuprate_23617d3f7868417c87077ce987cb07d7\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -393,7 +385,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bbbde79b0ac4001d4e86" + "value": "02ef191565690566f4509fc300366ba5" }, { "name": "cache-control", @@ -411,13 +403,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"3763a20d043e0355ed4545bc1adee48c\"" - }, { "name": "x-runtime", - "value": "0.831203" + "value": "0.958152" }, { "name": "content-encoding", @@ -429,11 +417,11 @@ }, { "name": "x-node", - "value": "bigweb40nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -441,7 +429,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -452,14 +440,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:49.118Z", - "time": 1231, + "startedDateTime": "2023-11-30T21:57:58.297Z", + "time": 1109, "timings": { "blocked": -1, "connect": -1, @@ -467,11 +455,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1231 + "wait": 1109 } }, { - "_id": "f5584f88658d22703836495fa53a66bb", + "_id": "5dbc7a07e339565ff84174e9e7279721", "_order": 0, "cache": {}, "request": { @@ -508,15 +496,15 @@ "text": "{}" }, "queryString": [], - "url": "https://api.easypost.com/v2/pickups/pickup_f6b3898880494306b061affa977e7436/cancel" + "url": "https://api.easypost.com/v2/pickups/pickup_71ce8945565644f2a6dea068cf3240c4/cancel" }, "response": { - "bodySize": 756, + "bodySize": 764, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 756, - "text": "{\"id\":\"pickup_f6b3898880494306b061affa977e7436\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:51Z\",\"mode\":\"test\",\"status\":\"canceled\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63354074\",\"address\":{\"id\":\"adr_c5ab424c4cdd11ee900cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:48+00:00\",\"updated_at\":\"2023-09-06T17:49:48+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:48Z\",\"updated_at\":\"2023-09-06T17:49:48Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_f6b3898880494306b061affa977e7436\",\"id\":\"pickuprate_5c7b4193e04c4c18afe1e0bdb31b3bdc\",\"object\":\"PickupRate\"}]}" + "size": 764, + "text": "{\"id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:57Z\",\"updated_at\":\"2023-11-30T21:58:00Z\",\"mode\":\"test\",\"status\":\"canceled\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":\"WTC63780684\",\"address\":{\"id\":\"adr_856913588fcb11ee81503cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:57+00:00\",\"updated_at\":\"2023-11-30T21:57:57+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:58Z\",\"updated_at\":\"2023-11-30T21:57:58Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_71ce8945565644f2a6dea068cf3240c4\",\"id\":\"pickuprate_23617d3f7868417c87077ce987cb07d7\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -546,7 +534,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bbbee79b0ac6001d4efb" + "value": "02ef191a65690567f40b11d200366cb2" }, { "name": "cache-control", @@ -564,13 +552,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"f6e55a817858c6be57f8e6334a9ed166\"" - }, { "name": "x-runtime", - "value": "0.884853" + "value": "0.836052" }, { "name": "content-encoding", @@ -582,11 +566,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -594,7 +578,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -605,14 +589,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:50.353Z", - "time": 1521, + "startedDateTime": "2023-11-30T21:57:59.410Z", + "time": 975, "timings": { "blocked": -1, "connect": -1, @@ -620,7 +604,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1521 + "wait": 975 } } ], diff --git a/test/cassettes/Pickup-Service_2981084322/creates-a-pickup_320342919/recording.har b/test/cassettes/Pickup-Service_2981084322/creates-a-pickup_320342919/recording.har index 1e502a8bc..a9493aa11 100644 --- a/test/cassettes/Pickup-Service_2981084322/creates-a-pickup_320342919/recording.har +++ b/test/cassettes/Pickup-Service_2981084322/creates-a-pickup_320342919/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2312, + "bodySize": 2323, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2312, - "text": "{\"created_at\":\"2023-09-06T17:46:13Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258923995\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_45e55ab94cdd11eebb6dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_819aac3c8fff4889b0a9a34a853bb40f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:13Z\",\"updated_at\":\"2023-09-06T17:46:13Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_db2237a6d2b94915aa74d3102ea78b98\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:14Z\",\"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/20230906/e83aaf58070be948788ac412cdbeda7a68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c328d1d80f91455a83bb363b4d7a9a33\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46: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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b7da53ae2a274c7a8a1038a9f964e28d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6abede482d8149d3b271502263e2dc9f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5ccde2b7e8df485f89f148aa9c0c3e11\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1bc058be946d4873a8c0359500709f96\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_5ccde2b7e8df485f89f148aa9c0c3e11\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_d41fdee1e59b450faf5a71bae9700039\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923995\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Q0MWZkZWUxZTU5YjQ1MGZhZjVhNzFiYWU5NzAwMDM5\"},\"to_address\":{\"id\":\"adr_45e2db244cdd11ee897aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46:14+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_45e55ab94cdd11eebb6dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46: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\":{}},\"buyer_address\":{\"id\":\"adr_45e2db244cdd11ee897aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46:14+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b8b0d105dce44b2d8cfd0e6a80edd336\",\"object\":\"Shipment\"}" + "size": 2323, + "text": "{\"created_at\":\"2023-11-30T21:45:09Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416509\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bbc0e7f28fc911ee95033cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_0e6a439c00b6411c8ca889ef0cc2f3ed\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4370173293e141ada1abb1d97aa82849\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:10Z\",\"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/20231130/e8a0c3b4fc5cbd4e36a367bec4df6b0512.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9833ddb7c55449d3bfd475bec01600bf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1120886b59b748cf8ce759de8fea0224\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_21218363e63a45cfb8f22f4d5c6bd654\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8a8dcfc764644d1d80f18e5d6668c134\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_417f384e3fd24339b74f03fb9c1a7373\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1120886b59b748cf8ce759de8fea0224\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_aa68dd2fa9324c1091a9b7cd19dc2f6d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416509\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_176f2c8faea3444a9d507e5cdde983fd\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FhNjhkZDJmYTkzMjRjMTA5MWE5YjdjZDE5ZGMyZjZk\"},\"to_address\":{\"id\":\"adr_bbb909a98fc911ee909dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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_bbc0e7f28fc911ee95033cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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_bbb909a98fc911ee909dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_176f2c8faea3444a9d507e5cdde983fd\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49d64f8bae5e79b02c4001ce85d" + "value": "32e015f465690265f3f8f42f003090c4" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_b8b0d105dce44b2d8cfd0e6a80edd336" + "value": "/api/v2/shipments/shp_176f2c8faea3444a9d507e5cdde983fd" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"458aee57db385f89583b73d0b1d0c835\"" - }, { "name": "x-runtime", - "value": "1.075555" + "value": "1.293787" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb34nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_b8b0d105dce44b2d8cfd0e6a80edd336", + "redirectURL": "/api/v2/shipments/shp_176f2c8faea3444a9d507e5cdde983fd", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:13.508Z", - "time": 1463, + "startedDateTime": "2023-11-30T21:45:09.277Z", + "time": 1427, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1463 + "wait": 1427 } }, { - "_id": "6cd4e2449f2d546c843a20f3cbf972c0", + "_id": "3f271ebac472a3699fae86dbaac99704", "_order": 0, "cache": {}, "request": { - "bodySize": 7899, + "bodySize": 7895, "cookies": [], "headers": [ { @@ -186,7 +182,7 @@ }, { "name": "content-length", - "value": 7899 + "value": 7895 }, { "name": "host", @@ -199,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-09-10\",\"max_datetime\":\"2023-09-10\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-09-06T17:46:13Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258923995\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_45e55ab94cdd11eebb6dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_819aac3c8fff4889b0a9a34a853bb40f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:13Z\",\"updated_at\":\"2023-09-06T17:46:13Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_db2237a6d2b94915aa74d3102ea78b98\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:14Z\",\"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/20230906/e83aaf58070be948788ac412cdbeda7a68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c328d1d80f91455a83bb363b4d7a9a33\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46: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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b7da53ae2a274c7a8a1038a9f964e28d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6abede482d8149d3b271502263e2dc9f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5ccde2b7e8df485f89f148aa9c0c3e11\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1bc058be946d4873a8c0359500709f96\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_5ccde2b7e8df485f89f148aa9c0c3e11\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_d41fdee1e59b450faf5a71bae9700039\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258923995\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:14Z\",\"updated_at\":\"2023-09-06T17:46:14Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b8b0d105dce44b2d8cfd0e6a80edd336\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2Q0MWZkZWUxZTU5YjQ1MGZhZjVhNzFiYWU5NzAwMDM5\"},\"to_address\":{\"id\":\"adr_45e2db244cdd11ee897aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46:14+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_45e55ab94cdd11eebb6dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46: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\":{}},\"buyer_address\":{\"id\":\"adr_45e2db244cdd11ee897aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:13+00:00\",\"updated_at\":\"2023-09-06T17:46:14+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b8b0d105dce44b2d8cfd0e6a80edd336\",\"object\":\"Shipment\"}}}" + "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-12-05\",\"max_datetime\":\"2023-12-05\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-11-30T21:45:09Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416509\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_bbc0e7f28fc911ee95033cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_0e6a439c00b6411c8ca889ef0cc2f3ed\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_4370173293e141ada1abb1d97aa82849\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:10Z\",\"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/20231130/e8a0c3b4fc5cbd4e36a367bec4df6b0512.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9833ddb7c55449d3bfd475bec01600bf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1120886b59b748cf8ce759de8fea0224\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_21218363e63a45cfb8f22f4d5c6bd654\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8a8dcfc764644d1d80f18e5d6668c134\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_417f384e3fd24339b74f03fb9c1a7373\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:09Z\",\"updated_at\":\"2023-11-30T21:45:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1120886b59b748cf8ce759de8fea0224\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_176f2c8faea3444a9d507e5cdde983fd\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_aa68dd2fa9324c1091a9b7cd19dc2f6d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416509\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:10Z\",\"updated_at\":\"2023-11-30T21:45:10Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_176f2c8faea3444a9d507e5cdde983fd\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2FhNjhkZDJmYTkzMjRjMTA5MWE5YjdjZDE5ZGMyZjZk\"},\"to_address\":{\"id\":\"adr_bbb909a98fc911ee909dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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_bbc0e7f28fc911ee95033cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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_bbb909a98fc911ee909dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:09+00:00\",\"updated_at\":\"2023-11-30T21:45:09+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_176f2c8faea3444a9d507e5cdde983fd\",\"object\":\"Shipment\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/pickups" }, "response": { - "bodySize": 740, + "bodySize": 744, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 740, - "text": "{\"id\":\"pickup_20f50490fdff405d8a6e27500ef50286\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:42Z\",\"updated_at\":\"2023-09-06T17:49:42Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c27508a94cdd11ee8e0cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:42+00:00\",\"updated_at\":\"2023-09-06T17:49:42+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:43Z\",\"updated_at\":\"2023-09-06T17:49:43Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_20f50490fdff405d8a6e27500ef50286\",\"id\":\"pickuprate_72e4cc131af84be7b8032f0901197239\",\"object\":\"PickupRate\"}]}" + "size": 744, + "text": "{\"id\":\"pickup_d332e9c622dc41b296904afaafedbd91\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:52Z\",\"updated_at\":\"2023-11-30T21:57:52Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_82b41f608fcb11eebff03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:52+00:00\",\"updated_at\":\"2023-11-30T21:57:52+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:53Z\",\"updated_at\":\"2023-11-30T21:57:53Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_d332e9c622dc41b296904afaafedbd91\",\"id\":\"pickuprate_174bcfb9fda44f48a726b683c078cb51\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7c64f8bbb6e79b0aa7001d4ba2" + "value": "02ef191765690560f407c76900366692" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"014e307df85045ac913ebabfdd62c5be\"" - }, { "name": "x-runtime", - "value": "0.797222" + "value": "0.818588" }, { "name": "content-encoding", @@ -276,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb39nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:42.508Z", - "time": 1263, + "startedDateTime": "2023-11-30T21:57:52.599Z", + "time": 1004, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1263 + "wait": 1004 } } ], diff --git a/test/cassettes/Pickup-Service_2981084322/gets-the-lowest-rate_906620131/recording.har b/test/cassettes/Pickup-Service_2981084322/gets-the-lowest-rate_906620131/recording.har index 0b6f21cb0..21a48b6cf 100644 --- a/test/cassettes/Pickup-Service_2981084322/gets-the-lowest-rate_906620131/recording.har +++ b/test/cassettes/Pickup-Service_2981084322/gets-the-lowest-rate_906620131/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2290, + "bodySize": 2314, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2290, - "text": "{\"created_at\":\"2023-09-06T17:46:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924206\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_50ae20fa4cdd11ee9456ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:32+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_341027b3f74f4b928a192012e5b2175b\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3162367fb0c54f4a973505f3f171b679\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:32Z\",\"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/20230906/e89975caa391a74266a802eeaf27ce245d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_941b9ea4620f4cc0afeab7e7035ac40a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f4ea600323864deb9d2f1c932f3c404d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_295b549302d6496f87eaa54c270b5c30\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_feee0b178b0f41a78ad69ae0e49c405a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8dadb314918346d3beb18f00860acfa1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_feee0b178b0f41a78ad69ae0e49c405a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_200c399f680945e79d3b77e2366dea8e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924206\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzIwMGMzOTlmNjgwOTQ1ZTc5ZDNiNzdlMjM2NmRlYThl\"},\"to_address\":{\"id\":\"adr_50ab60de4cdd11ee9455ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:31+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_50ae20fa4cdd11ee9456ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:32+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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_50ab60de4cdd11ee9455ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:31+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_88b1fa6787f544b4a6e5aa77aadaadaa\",\"object\":\"Shipment\"}" + "size": 2314, + "text": "{\"created_at\":\"2023-11-30T21:45:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416592\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c08cb6848fc911ee9e1fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_61c6023df3e64fc3b2918194e57b7b14\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ccb91f963c534ccab7d68b5fa7c03d3d\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:18Z\",\"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/20231130/e87b9f7f52df0049f4b1adcda727e49fb9.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ac43a7c6046f4df094ef345e811b067c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_090dd009b03f4426b9d776a40d88991f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_14a48cb0f0f044c9a70d6626165cbbe2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_42534cae04a94564bd0917f11e4387e8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4e59638aaf654262a60a8bfe38f932a7\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45: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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_14a48cb0f0f044c9a70d6626165cbbe2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9dc4dc608b6e4b44801030c0cfd951b4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416592\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzlkYzRkYzYwOGI2ZTRiNDQ4MDEwMzBjMGNmZDk1MWI0\"},\"to_address\":{\"id\":\"adr_c08a53f58fc911ee9e1eac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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_c08cb6848fc911ee9e1fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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_c08a53f58fc911ee9e1eac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d06fee2f9d884a4fb4d055bcc2d064fe\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49c64f8baf7e79b02ed001cefce" + "value": "32e015f46569026df4084a8800309a1c" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_88b1fa6787f544b4a6e5aa77aadaadaa" + "value": "/api/v2/shipments/shp_d06fee2f9d884a4fb4d055bcc2d064fe" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"76601605e50683dcada5885844e82e8a\"" - }, { "name": "x-runtime", - "value": "1.074111" + "value": "1.145569" }, { "name": "content-encoding", @@ -123,19 +119,23 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb43nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +146,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 794, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_88b1fa6787f544b4a6e5aa77aadaadaa", + "redirectURL": "/api/v2/shipments/shp_d06fee2f9d884a4fb4d055bcc2d064fe", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:31.586Z", - "time": 1467, + "startedDateTime": "2023-11-30T21:45:17.344Z", + "time": 1480, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +161,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1467 + "wait": 1480 } }, { - "_id": "d421408a3ffdc4c9563b7e517d255240", + "_id": "21d1d3ce28e836bc4b03fc002f90e44a", "_order": 0, "cache": {}, "request": { - "bodySize": 7899, + "bodySize": 7895, "cookies": [], "headers": [ { @@ -186,7 +186,7 @@ }, { "name": "content-length", - "value": 7899 + "value": 7895 }, { "name": "host", @@ -199,18 +199,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-09-10\",\"max_datetime\":\"2023-09-10\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-09-06T17:46:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924206\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_50ae20fa4cdd11ee9456ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:32+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_341027b3f74f4b928a192012e5b2175b\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3162367fb0c54f4a973505f3f171b679\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:32Z\",\"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/20230906/e89975caa391a74266a802eeaf27ce245d.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_941b9ea4620f4cc0afeab7e7035ac40a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f4ea600323864deb9d2f1c932f3c404d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_295b549302d6496f87eaa54c270b5c30\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_feee0b178b0f41a78ad69ae0e49c405a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8dadb314918346d3beb18f00860acfa1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_feee0b178b0f41a78ad69ae0e49c405a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_200c399f680945e79d3b77e2366dea8e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924206\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:32Z\",\"updated_at\":\"2023-09-06T17:46:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_88b1fa6787f544b4a6e5aa77aadaadaa\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzIwMGMzOTlmNjgwOTQ1ZTc5ZDNiNzdlMjM2NmRlYThl\"},\"to_address\":{\"id\":\"adr_50ab60de4cdd11ee9455ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:31+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_50ae20fa4cdd11ee9456ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:32+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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_50ab60de4cdd11ee9455ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:31+00:00\",\"updated_at\":\"2023-09-06T17:46:32+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_88b1fa6787f544b4a6e5aa77aadaadaa\",\"object\":\"Shipment\"}}}" + "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-12-05\",\"max_datetime\":\"2023-12-05\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-11-30T21:45:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416592\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c08cb6848fc911ee9e1fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_61c6023df3e64fc3b2918194e57b7b14\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ccb91f963c534ccab7d68b5fa7c03d3d\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:18Z\",\"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/20231130/e87b9f7f52df0049f4b1adcda727e49fb9.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ac43a7c6046f4df094ef345e811b067c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_090dd009b03f4426b9d776a40d88991f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_14a48cb0f0f044c9a70d6626165cbbe2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_42534cae04a94564bd0917f11e4387e8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4e59638aaf654262a60a8bfe38f932a7\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:17Z\",\"updated_at\":\"2023-11-30T21:45: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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_14a48cb0f0f044c9a70d6626165cbbe2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9dc4dc608b6e4b44801030c0cfd951b4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416592\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:18Z\",\"updated_at\":\"2023-11-30T21:45:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_d06fee2f9d884a4fb4d055bcc2d064fe\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzlkYzRkYzYwOGI2ZTRiNDQ4MDEwMzBjMGNmZDk1MWI0\"},\"to_address\":{\"id\":\"adr_c08a53f58fc911ee9e1eac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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_c08cb6848fc911ee9e1fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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_c08a53f58fc911ee9e1eac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:17+00:00\",\"updated_at\":\"2023-11-30T21:45:17+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_d06fee2f9d884a4fb4d055bcc2d064fe\",\"object\":\"Shipment\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/pickups" }, "response": { - "bodySize": 736, + "bodySize": 744, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 736, - "text": "{\"id\":\"pickup_37e80280e472446aa1db23b43ef4bf22\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:52Z\",\"updated_at\":\"2023-09-06T17:49:52Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c80cbc704cdd11ee93c0ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:52+00:00\",\"updated_at\":\"2023-09-06T17:49:52+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:52Z\",\"updated_at\":\"2023-09-06T17:49:52Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_37e80280e472446aa1db23b43ef4bf22\",\"id\":\"pickuprate_128d33e05ce5458faa8e0b00b23cd543\",\"object\":\"PickupRate\"}]}" + "size": 744, + "text": "{\"id\":\"pickup_99cd689a4f044f87910ab9ca32d0156c\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:58:00Z\",\"updated_at\":\"2023-11-30T21:58:00Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_8755b1e28fcb11ee8892ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:58:00+00:00\",\"updated_at\":\"2023-11-30T21:58:00+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:58:01Z\",\"updated_at\":\"2023-11-30T21:58:01Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_99cd689a4f044f87910ab9ca32d0156c\",\"id\":\"pickuprate_efacb6c509974033aaf00d4a156bacf8\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +240,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bbc0e79b0ac7001d4f8d" + "value": "02ef191a65690568f0205cdb00366da5" }, { "name": "cache-control", @@ -258,13 +258,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"3c8992fe52cf612ec99ab7c9e0d2c170\"" - }, { "name": "x-runtime", - "value": "0.727183" + "value": "0.722174" }, { "name": "content-encoding", @@ -276,23 +272,19 @@ }, { "name": "x-node", - "value": "bigweb43nuq" + "value": "bigweb34nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +295,14 @@ "value": "close" } ], - "headersSize": 772, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:51.896Z", - "time": 1206, + "startedDateTime": "2023-11-30T21:58:00.406Z", + "time": 863, "timings": { "blocked": -1, "connect": -1, @@ -318,7 +310,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1206 + "wait": 863 } } ], diff --git a/test/cassettes/Pickup-Service_2981084322/retrieves-a-pickup_3320623723/recording.har b/test/cassettes/Pickup-Service_2981084322/retrieves-a-pickup_3320623723/recording.har index 86759ff68..9f8447b97 100644 --- a/test/cassettes/Pickup-Service_2981084322/retrieves-a-pickup_3320623723/recording.har +++ b/test/cassettes/Pickup-Service_2981084322/retrieves-a-pickup_3320623723/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2311, + "bodySize": 2298, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2311, - "text": "{\"created_at\":\"2023-09-06T17:46:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924022\",\"updated_at\":\"2023-09-06T17:46:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_47d18c534cdd11ee95ca3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_7fd2c4aca53c4886aef41a80c08ab02c\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d068f1647ffc41498d4abca75ba942ce\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:17Z\",\"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/20230906/e8b579eb621a2642b4adbc30ded2e285b3.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_96417cb40a364d458340bd84f7b40a42\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46: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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f6469a11127c4b06a08441c147141805\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bd2b19fdccd24892ac2085d93f918d25\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_790d06e37b0b444f9206dbd26b89e90f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fdef45c02f124562b247b6c08e437298\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_790d06e37b0b444f9206dbd26b89e90f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3824dce65b00411e9a0f64ff9f1b7614\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924022\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:18Z\",\"updated_at\":\"2023-09-06T17:46:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM4MjRkY2U2NWIwMDQxMWU5YTBmNjRmZjlmMWI3NjE0\"},\"to_address\":{\"id\":\"adr_47cf09274cdd11ee8eefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_47d18c534cdd11ee95ca3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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_47cf09274cdd11ee8eefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_73ca8748278b4e35bc254f50cc8a3b2a\",\"object\":\"Shipment\"}" + "size": 2298, + "text": "{\"created_at\":\"2023-11-30T21:55:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287419289\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_34261ab58fcb11ee9e2bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_1080f25e28734f4591b358791f3eedbc\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_84436229ec1f477d801a074029388eb5\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:55:41Z\",\"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/20231130/e8fd77d6f2549b40df87e140605e47ceb6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_668bd10c12214eff9fe57e744c5aad8d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3cb3cb62f8784502b4bc34d8dab77015\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36cb7deab23845fb8698d16117a96d76\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d42c87463d854ca99bd5f9c52adb9db0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d1c7d36bb9bd495995bfbfd2196aa66c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d42c87463d854ca99bd5f9c52adb9db0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3ad3144516c84c5db594dd96b9f930fc\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287419289\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:55:42Z\",\"updated_at\":\"2023-11-30T21:55:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b421960c584846cab7beb983c3e90a29\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNhZDMxNDQ1MTZjODRjNWRiNTk0ZGQ5NmI5ZjkzMGZj\"},\"to_address\":{\"id\":\"adr_3423fdba8fcb11ee9f73ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55:41+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_34261ab58fcb11ee9e2bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55: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_3423fdba8fcb11ee9f73ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55:41+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b421960c584846cab7beb983c3e90a29\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8bae9e79b02c7001ce9c6" + "value": "02ef191c656904ddf02326f80035e7c3" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_73ca8748278b4e35bc254f50cc8a3b2a" + "value": "/api/v2/shipments/shp_b421960c584846cab7beb983c3e90a29" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"6a64f4a7cb192b79318f3a48c5e46e96\"" - }, { "name": "x-runtime", - "value": "1.074870" + "value": "0.991102" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb36nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_73ca8748278b4e35bc254f50cc8a3b2a", + "redirectURL": "/api/v2/shipments/shp_b421960c584846cab7beb983c3e90a29", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:16.738Z", - "time": 1459, + "startedDateTime": "2023-11-30T21:55:40.834Z", + "time": 1322, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1459 + "wait": 1322 } }, { - "_id": "7cb24ed3779139ec0178e60d2670351a", + "_id": "b124b8e8400fac487fab4a05b897f070", "_order": 0, "cache": {}, "request": { - "bodySize": 7899, + "bodySize": 7895, "cookies": [], "headers": [ { @@ -186,7 +182,7 @@ }, { "name": "content-length", - "value": 7899 + "value": 7895 }, { "name": "host", @@ -199,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-09-10\",\"max_datetime\":\"2023-09-10\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-09-06T17:46:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924022\",\"updated_at\":\"2023-09-06T17:46:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_47d18c534cdd11ee95ca3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_7fd2c4aca53c4886aef41a80c08ab02c\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d068f1647ffc41498d4abca75ba942ce\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:17Z\",\"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/20230906/e8b579eb621a2642b4adbc30ded2e285b3.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_96417cb40a364d458340bd84f7b40a42\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46: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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f6469a11127c4b06a08441c147141805\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bd2b19fdccd24892ac2085d93f918d25\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_790d06e37b0b444f9206dbd26b89e90f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fdef45c02f124562b247b6c08e437298\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_790d06e37b0b444f9206dbd26b89e90f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:17Z\",\"updated_at\":\"2023-09-06T17:46:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3824dce65b00411e9a0f64ff9f1b7614\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924022\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:18Z\",\"updated_at\":\"2023-09-06T17:46:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_73ca8748278b4e35bc254f50cc8a3b2a\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzM4MjRkY2U2NWIwMDQxMWU5YTBmNjRmZjlmMWI3NjE0\"},\"to_address\":{\"id\":\"adr_47cf09274cdd11ee8eefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_47d18c534cdd11ee95ca3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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_47cf09274cdd11ee8eefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:17+00:00\",\"updated_at\":\"2023-09-06T17:46:17+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_73ca8748278b4e35bc254f50cc8a3b2a\",\"object\":\"Shipment\"}}}" + "text": "{\"pickup\":{\"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\"},\"min_datetime\":\"2023-12-05\",\"max_datetime\":\"2023-12-05\",\"instructions\":\"Pickup at front door\",\"shipment\":{\"created_at\":\"2023-11-30T21:55:41Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287419289\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_34261ab58fcb11ee9e2bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_1080f25e28734f4591b358791f3eedbc\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_84436229ec1f477d801a074029388eb5\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:55:41Z\",\"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/20231130/e8fd77d6f2549b40df87e140605e47ceb6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_668bd10c12214eff9fe57e744c5aad8d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3cb3cb62f8784502b4bc34d8dab77015\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36cb7deab23845fb8698d16117a96d76\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d42c87463d854ca99bd5f9c52adb9db0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d1c7d36bb9bd495995bfbfd2196aa66c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d42c87463d854ca99bd5f9c52adb9db0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:55:41Z\",\"updated_at\":\"2023-11-30T21:55:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b421960c584846cab7beb983c3e90a29\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3ad3144516c84c5db594dd96b9f930fc\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287419289\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:55:42Z\",\"updated_at\":\"2023-11-30T21:55:42Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_b421960c584846cab7beb983c3e90a29\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNhZDMxNDQ1MTZjODRjNWRiNTk0ZGQ5NmI5ZjkzMGZj\"},\"to_address\":{\"id\":\"adr_3423fdba8fcb11ee9f73ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55:41+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_34261ab58fcb11ee9e2bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55: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_3423fdba8fcb11ee9f73ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:55:41+00:00\",\"updated_at\":\"2023-11-30T21:55:41+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_b421960c584846cab7beb983c3e90a29\",\"object\":\"Shipment\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/pickups" }, "response": { - "bodySize": 736, + "bodySize": 740, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 736, - "text": "{\"id\":\"pickup_e24c7af3673746239573cb3683008f9d\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:44Z\",\"updated_at\":\"2023-09-06T17:49:44Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c33854ac4cdd11ee8e8cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:44+00:00\",\"updated_at\":\"2023-09-06T17:49:44+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:44Z\",\"updated_at\":\"2023-09-06T17:49:44Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_e24c7af3673746239573cb3683008f9d\",\"id\":\"pickuprate_5e030c7d91e74ad89210dd57cc0bb27c\",\"object\":\"PickupRate\"}]}" + "size": 740, + "text": "{\"id\":\"pickup_53db5ec0284843a38cf9ac0b2c30a47a\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:53Z\",\"updated_at\":\"2023-11-30T21:57:53Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_834b206c8fcb11eebcacac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:53+00:00\",\"updated_at\":\"2023-11-30T21:57:53+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:55Z\",\"updated_at\":\"2023-11-30T21:57:55Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_53db5ec0284843a38cf9ac0b2c30a47a\",\"id\":\"pickuprate_b3a73139f63349ae8a21fabbe3d01028\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bbb8e79b0aa8001d4c3c" + "value": "02ef191a65690561f42fc6d50036678b" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"947f3bf13a22b44547b8721837f06d65\"" - }, { "name": "x-runtime", - "value": "0.720423" + "value": "1.171701" }, { "name": "content-encoding", @@ -276,19 +268,23 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb32nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +295,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 728, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:43.789Z", - "time": 1117, + "startedDateTime": "2023-11-30T21:57:53.629Z", + "time": 1313, "timings": { "blocked": -1, "connect": -1, @@ -314,11 +310,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1117 + "wait": 1313 } }, { - "_id": "f474e5d16d4b1de15a5ec150183b3533", + "_id": "1e900c804011ae78ba158a75ca7c7ebd", "_order": 0, "cache": {}, "request": { @@ -346,15 +342,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/pickups/pickup_e24c7af3673746239573cb3683008f9d" + "url": "https://api.easypost.com/v2/pickups/pickup_53db5ec0284843a38cf9ac0b2c30a47a" }, "response": { - "bodySize": 736, + "bodySize": 740, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 736, - "text": "{\"id\":\"pickup_e24c7af3673746239573cb3683008f9d\",\"object\":\"Pickup\",\"created_at\":\"2023-09-06T17:49:44Z\",\"updated_at\":\"2023-09-06T17:49:44Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-09-10T00:00:00Z\",\"max_datetime\":\"2023-09-10T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_c33854ac4cdd11ee8e8cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:44+00:00\",\"updated_at\":\"2023-09-06T17:49:44+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-09-06T17:49:44Z\",\"updated_at\":\"2023-09-06T17:49:44Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_e24c7af3673746239573cb3683008f9d\",\"id\":\"pickuprate_5e030c7d91e74ad89210dd57cc0bb27c\",\"object\":\"PickupRate\"}]}" + "size": 740, + "text": "{\"id\":\"pickup_53db5ec0284843a38cf9ac0b2c30a47a\",\"object\":\"Pickup\",\"created_at\":\"2023-11-30T21:57:53Z\",\"updated_at\":\"2023-11-30T21:57:53Z\",\"mode\":\"test\",\"status\":\"unknown\",\"reference\":null,\"min_datetime\":\"2023-12-05T00:00:00Z\",\"max_datetime\":\"2023-12-05T00:00:00Z\",\"is_account_address\":false,\"instructions\":\"Pickup at front door\",\"messages\":[],\"confirmation\":null,\"address\":{\"id\":\"adr_834b206c8fcb11eebcacac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:57:53+00:00\",\"updated_at\":\"2023-11-30T21:57:53+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\":{}},\"carrier_accounts\":[],\"pickup_rates\":[{\"mode\":\"test\",\"service\":\"NextDay\",\"rate\":\"0.00\",\"currency\":\"USD\",\"created_at\":\"2023-11-30T21:57:55Z\",\"updated_at\":\"2023-11-30T21:57:55Z\",\"carrier\":\"USPS\",\"pickup_id\":\"pickup_53db5ec0284843a38cf9ac0b2c30a47a\",\"id\":\"pickuprate_b3a73139f63349ae8a21fabbe3d01028\",\"object\":\"PickupRate\"}]}" }, "cookies": [], "headers": [ @@ -384,7 +380,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8164f8bbb9e79b0aa9001d4cb6" + "value": "32e015f365690563f41d940500332383" }, { "name": "cache-control", @@ -402,13 +398,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"947f3bf13a22b44547b8721837f06d65\"" - }, { "name": "x-runtime", - "value": "0.059480" + "value": "0.046936" }, { "name": "content-encoding", @@ -420,11 +412,11 @@ }, { "name": "x-node", - "value": "bigweb42nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -432,7 +424,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -443,14 +435,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:44.916Z", - "time": 432, + "startedDateTime": "2023-11-30T21:57:54.949Z", + "time": 188, "timings": { "blocked": -1, "connect": -1, @@ -458,7 +450,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 432 + "wait": 188 } } ], diff --git a/test/cassettes/Rate-Service_2756950372/retrieves-a-rate_3801249961/recording.har b/test/cassettes/Rate-Service_2756950372/retrieves-a-rate_3801249961/recording.har index ef7bada6a..a49629379 100644 --- a/test/cassettes/Rate-Service_2756950372/retrieves-a-rate_3801249961/recording.har +++ b/test/cassettes/Rate-Service_2756950372/retrieves-a-rate_3801249961/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1532, + "bodySize": 1531, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1532, - "text": "{\"created_at\":\"2023-09-06T17:46:34Z\",\"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-09-06T17:46:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_525232614cdd11eebf8dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:34+00:00\",\"updated_at\":\"2023-09-06T17:46:34+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\":null,\"parcel\":{\"id\":\"prcl_6630d78670624b07b8473d4e0f402821\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:34Z\",\"updated_at\":\"2023-09-06T17:46:34Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_bc05fe372de44d70871b5a96226d4cff\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0f53584e43864f6f940d178e04a7c641\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_822c1347b5e7452c83517b3a1acab398\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1e8b71a14f964bb7bb56df204df05991\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8bda48737ee34fc89c7e90709fc694c9\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_524f8d414cdd11ee9bef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:34+00:00\",\"updated_at\":\"2023-09-06T17:46:34+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_525232614cdd11eebf8dac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:34+00:00\",\"updated_at\":\"2023-09-06T17:46:34+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_524f8d414cdd11ee9bef3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:34+00:00\",\"updated_at\":\"2023-09-06T17:46:34+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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"object\":\"Shipment\"}" + "size": 1531, + "text": "{\"created_at\":\"2023-11-30T21:45:19Z\",\"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-11-30T21:45:19Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c1c0d5ea8fc911ee94c0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:19+00:00\",\"updated_at\":\"2023-11-30T21:45:19+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\":null,\"parcel\":{\"id\":\"prcl_0698f5680d2a4dd2821a7ffa1101bf45\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:19Z\",\"updated_at\":\"2023-11-30T21:45:19Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_f4f3287328cc47c4baf19bae2e9e38b4\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:19Z\",\"updated_at\":\"2023-11-30T21:45: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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_29dc15aa2b7e487984cb0509d273bbb2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:19Z\",\"updated_at\":\"2023-11-30T21:45:19Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8a78f73688a645e6aa6ccb6ea21db447\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_802354049d24405ba69fab6488d683bf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_248c9a5b91a14478b6b2cb088d5af2e1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c1bd83918fc911ee9fb9ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:19+00:00\",\"updated_at\":\"2023-11-30T21:45:19+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_c1c0d5ea8fc911ee94c0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:19+00:00\",\"updated_at\":\"2023-11-30T21:45:19+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_c1bd83918fc911ee9fb9ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:19+00:00\",\"updated_at\":\"2023-11-30T21:45:19+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_6926906bf93f4f2d9f19e752fdb5396d\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49b64f8bafae79b0308001cf0c9" + "value": "32e015f36569026ff43f17cc00309c25" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_5f25cc65fc984ddbbc637ff4d419ce2e" + "value": "/api/v2/shipments/shp_6926906bf93f4f2d9f19e752fdb5396d" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"5e900e842f7070489260bef82ed90188\"" - }, { "name": "x-runtime", - "value": "1.377171" + "value": "0.525294" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_5f25cc65fc984ddbbc637ff4d419ce2e", + "redirectURL": "/api/v2/shipments/shp_6926906bf93f4f2d9f19e752fdb5396d", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:34.349Z", - "time": 1768, + "startedDateTime": "2023-11-30T21:45:19.252Z", + "time": 661, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1768 + "wait": 661 } }, { - "_id": "4b86406cf19871a286b3908f97625971", + "_id": "5ffc8cf90e0a90dda0178d0d01a28a19", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/rates/rate_bc05fe372de44d70871b5a96226d4cff" + "url": "https://api.easypost.com/v2/rates/rate_f4f3287328cc47c4baf19bae2e9e38b4" }, "response": { - "bodySize": 436, + "bodySize": 432, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 436, - "text": "{\"id\":\"rate_bc05fe372de44d70871b5a96226d4cff\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:36Z\",\"updated_at\":\"2023-09-06T17:46:36Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_5f25cc65fc984ddbbc637ff4d419ce2e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}" + "size": 432, + "text": "{\"id\":\"rate_f4f3287328cc47c4baf19bae2e9e38b4\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:19Z\",\"updated_at\":\"2023-11-30T21:45: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_6926906bf93f4f2d9f19e752fdb5396d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49c64f8bafce79b0309001cf160" + "value": "32e015f865690270f4194f2e00309ce5" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"c3e94737861bb2b385075a61b991f3af\"" - }, { "name": "x-runtime", - "value": "0.219618" + "value": "0.133157" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:46:36.122Z", - "time": 675, + "startedDateTime": "2023-11-30T21:45:19.919Z", + "time": 284, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 675 + "wait": 284 } } ], diff --git a/test/cassettes/Refund-Service_2387004908/creates-a-refund_2084766157/recording.har b/test/cassettes/Refund-Service_2387004908/creates-a-refund_2084766157/recording.har index 319259c7e..43a9f36c0 100644 --- a/test/cassettes/Refund-Service_2387004908/creates-a-refund_2084766157/recording.har +++ b/test/cassettes/Refund-Service_2387004908/creates-a-refund_2084766157/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2310, + "bodySize": 2323, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2310, - "text": "{\"created_at\":\"2023-09-06T17:46:46Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924312\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_59097a3e4cdd11ee984eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_87bdfc71ad844f399a7f05cea38a2c2b\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_78bfb1f77d434fafa2e8860047b008e8\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:46Z\",\"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/20230906/e8cc29951528934e08b728db9333e7c469.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c6de997ee7f474c9419fc78339b8fbb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_394430170c7142c68ad375d2e3e2e116\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_466ec0a023f24dc7bb0fd386be1f3215\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_89a91a37fd10482795ddd7c2c7c4f344\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5100f14449954150a9d68ca44900e214\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_394430170c7142c68ad375d2e3e2e116\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_5a43e8cde1684fbdad639a12ca73a38a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924312\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:46:47Z\",\"updated_at\":\"2023-09-06T17:46:47Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f3cc059fd7ab4742b5aa100723bace81\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzVhNDNlOGNkZTE2ODRmYmRhZDYzOWExMmNhNzNhMzhh\"},\"to_address\":{\"id\":\"adr_5906a8854cdd11ee9488ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_59097a3e4cdd11ee984eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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_5906a8854cdd11ee9488ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f3cc059fd7ab4742b5aa100723bace81\",\"object\":\"Shipment\"}" + "size": 2323, + "text": "{\"created_at\":\"2023-11-30T21:45:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416608\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c249ea4e8fc911ee951aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_69024926427d4cd9a84a9485318c2d5a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_469a6810d0b4400194c894a0d56b8189\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:21Z\",\"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/20231130/e8d3eb08ec1dbe43dfbeb99df5a690a124.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_52288cc6ca5145b29400f5c6b59288a5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_90b90b89231f4200b35f3620be8a21d8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fd577b5a69354718a184b703ef20e3d5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cae26abc50e9485b9822c5ffac4fa123\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9ea6855473344a6fbf6b26f30683a47e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fd577b5a69354718a184b703ef20e3d5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_47cd4057869a48caa475b7e14b5046a4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416608\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_5f040cf55305422982667f7cb1917e73\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzQ3Y2Q0MDU3ODY5YTQ4Y2FhNDc1YjdlMTRiNTA0NmE0\"},\"to_address\":{\"id\":\"adr_c247b8758fc911ee9f37ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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_c249ea4e8fc911ee951aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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_c247b8758fc911ee9f37ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_5f040cf55305422982667f7cb1917e73\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49b64f8bb05e79b0623001cf4c9" + "value": "32e015f665690270f408430d00309d52" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_f3cc059fd7ab4742b5aa100723bace81" + "value": "/api/v2/shipments/shp_5f040cf55305422982667f7cb1917e73" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"ac4318c3e569796db8119c59187e0a8b\"" - }, { "name": "x-runtime", - "value": "1.109340" + "value": "1.175570" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb38nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_f3cc059fd7ab4742b5aa100723bace81", + "redirectURL": "/api/v2/shipments/shp_5f040cf55305422982667f7cb1917e73", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:45.614Z", - "time": 1501, + "startedDateTime": "2023-11-30T21:45:20.286Z", + "time": 1304, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1501 + "wait": 1304 } }, { - "_id": "c1464ac23560ae38167816004c369a32", + "_id": "bbc0c14a75d09d99a76ca35b52e74312", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_f3cc059fd7ab4742b5aa100723bace81" + "url": "https://api.easypost.com/v2/shipments/shp_5f040cf55305422982667f7cb1917e73" }, "response": { - "bodySize": 2684, + "bodySize": 2707, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2684, - "text": "{\"created_at\":\"2023-09-06T17:46:46Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924312\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_59097a3e4cdd11ee984eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_87bdfc71ad844f399a7f05cea38a2c2b\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_78bfb1f77d434fafa2e8860047b008e8\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:46:46Z\",\"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/20230906/e8cc29951528934e08b728db9333e7c469.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c6de997ee7f474c9419fc78339b8fbb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_394430170c7142c68ad375d2e3e2e116\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_466ec0a023f24dc7bb0fd386be1f3215\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_89a91a37fd10482795ddd7c2c7c4f344\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5100f14449954150a9d68ca44900e214\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_394430170c7142c68ad375d2e3e2e116\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:46Z\",\"updated_at\":\"2023-09-06T17:46:46Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f3cc059fd7ab4742b5aa100723bace81\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_5a43e8cde1684fbdad639a12ca73a38a\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924312\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:46:47Z\",\"updated_at\":\"2023-09-06T17:46:47Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:46:47Z\",\"shipment_id\":\"shp_f3cc059fd7ab4742b5aa100723bace81\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:46:47Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:23:47Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzVhNDNlOGNkZTE2ODRmYmRhZDYzOWExMmNhNzNhMzhh\"},\"to_address\":{\"id\":\"adr_5906a8854cdd11ee9488ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_59097a3e4cdd11ee984eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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_5906a8854cdd11ee9488ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:46+00:00\",\"updated_at\":\"2023-09-06T17:46:46+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f3cc059fd7ab4742b5aa100723bace81\",\"object\":\"Shipment\"}" + "size": 2707, + "text": "{\"created_at\":\"2023-11-30T21:45:20Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416608\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c249ea4e8fc911ee951aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_69024926427d4cd9a84a9485318c2d5a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_469a6810d0b4400194c894a0d56b8189\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:21Z\",\"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/20231130/e8d3eb08ec1dbe43dfbeb99df5a690a124.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_52288cc6ca5145b29400f5c6b59288a5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_90b90b89231f4200b35f3620be8a21d8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fd577b5a69354718a184b703ef20e3d5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cae26abc50e9485b9822c5ffac4fa123\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9ea6855473344a6fbf6b26f30683a47e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:20Z\",\"updated_at\":\"2023-11-30T21:45:20Z\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fd577b5a69354718a184b703ef20e3d5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5f040cf55305422982667f7cb1917e73\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_47cd4057869a48caa475b7e14b5046a4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416608\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:21Z\",\"updated_at\":\"2023-11-30T21:45:21Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:21Z\",\"shipment_id\":\"shp_5f040cf55305422982667f7cb1917e73\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:21Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:21Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzQ3Y2Q0MDU3ODY5YTQ4Y2FhNDc1YjdlMTRiNTA0NmE0\"},\"to_address\":{\"id\":\"adr_c247b8758fc911ee9f37ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_c249ea4e8fc911ee951aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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_c247b8758fc911ee9f37ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:20+00:00\",\"updated_at\":\"2023-11-30T21:45:20+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_5f040cf55305422982667f7cb1917e73\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49764f8bb07e79b0624001cf565" + "value": "32e015f765690271f42bddfe00309eab" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"2c1bdcf07d6e68263d11cce01cca9f13\"" - }, { "name": "x-runtime", - "value": "0.160930" + "value": "0.384759" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb38nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:46:47.118Z", - "time": 539, + "startedDateTime": "2023-11-30T21:45:21.596Z", + "time": 522, "timings": { "blocked": -1, "connect": -1, @@ -305,11 +297,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 539 + "wait": 522 } }, { - "_id": "3f974e13d909998f08c832c07a9f4eed", + "_id": "967459347ff3deb929db6288805f9d19", "_order": 0, "cache": {}, "request": { @@ -343,7 +335,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100105440258924312\"]}}" + "text": "{\"refund\":{\"carrier\":\"USPS\",\"tracking_codes\":[\"9400100105442287416608\"]}}" }, "queryString": [], "url": "https://api.easypost.com/v2/refunds" @@ -354,7 +346,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 316, - "text": "[{\"id\":\"rfnd_68e631a111924127863ed41f0d80f649\",\"object\":\"Refund\",\"created_at\":\"2023-09-06T17:46:48Z\",\"updated_at\":\"2023-09-06T17:46:48Z\",\"tracking_code\":\"9400100105440258924312\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_f3cc059fd7ab4742b5aa100723bace81\"}]" + "text": "[{\"id\":\"rfnd_aa64bfea2f3440059d12599afbd8adff\",\"object\":\"Refund\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"tracking_code\":\"9400100105442287416608\",\"confirmation_number\":null,\"status\":\"submitted\",\"carrier\":\"USPS\",\"shipment_id\":\"shp_5f040cf55305422982667f7cb1917e73\"}]" }, "cookies": [], "headers": [ @@ -384,7 +376,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49d64f8bb08e79b0625001cf598" + "value": "32e015fa65690272f022064100309f39" }, { "name": "cache-control", @@ -402,13 +394,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"5d872fb479a0c8081996c38fa7beecdf\"" - }, { "name": "x-runtime", - "value": "0.080282" + "value": "0.090078" }, { "name": "content-encoding", @@ -420,11 +408,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -432,7 +420,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -443,14 +431,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:47.664Z", - "time": 467, + "startedDateTime": "2023-11-30T21:45:22.125Z", + "time": 239, "timings": { "blocked": -1, "connect": -1, @@ -458,7 +446,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 467 + "wait": 239 } } ], diff --git a/test/cassettes/ScanForm-Service_1241997233/creates-a-scanform_355573720/recording.har b/test/cassettes/ScanForm-Service_1241997233/creates-a-scanform_355573720/recording.har index d60e90d58..397859c00 100644 --- a/test/cassettes/ScanForm-Service_1241997233/creates-a-scanform_355573720/recording.har +++ b/test/cassettes/ScanForm-Service_1241997233/creates-a-scanform_355573720/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2312, + "bodySize": 2323, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2312, - "text": "{\"created_at\":\"2023-10-13T18:34:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440269751884\",\"updated_at\":\"2023-10-13T18:34:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_2748089f69f711eebefdac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:33+00:00\",\"updated_at\":\"2023-10-13T18:34: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_e4891afd301a4779a92d429dbe8294c8\",\"object\":\"Parcel\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_730a1d85642b429581d1253751c3f7db\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-10-13T18:34:33Z\",\"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/20231013/e8851dae2b9ff44684a44850238cb94527.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_ad2429be50c342da9817d4625da9d44a\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a80dc417dc654837bea5a39745271fff\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3beae70068464854b1d21c33771ae6cb\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6315423a1d504625afc8cd6dbd98cbac\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e9379b9905bd4560bb88dc611a8718df\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_3beae70068464854b1d21c33771ae6cb\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:33Z\",\"updated_at\":\"2023-10-13T18:34:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7eff4528851e470ca8b666d5b1e08d55\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_25d43ba6801a41059d23aa556a0a4218\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440269751884\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-10-13T18:34:34Z\",\"updated_at\":\"2023-10-13T18:34:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_7eff4528851e470ca8b666d5b1e08d55\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzI1ZDQzYmE2ODAxYTQxMDU5ZDIzYWE1NTZhMGE0MjE4\"},\"to_address\":{\"id\":\"adr_2745e10c69f711ee85bcac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:33+00:00\",\"updated_at\":\"2023-10-13T18:34:33+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_2748089f69f711eebefdac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:33+00:00\",\"updated_at\":\"2023-10-13T18:34: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_2745e10c69f711ee85bcac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:33+00:00\",\"updated_at\":\"2023-10-13T18:34:33+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_7eff4528851e470ca8b666d5b1e08d55\",\"object\":\"Shipment\"}" + "size": 2323, + "text": "{\"created_at\":\"2023-11-30T21:45:22Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416639\",\"updated_at\":\"2023-11-30T21:45:23Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c397b9738fc911eea009ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:22+00:00\",\"updated_at\":\"2023-11-30T21:45:22+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_1df137b2ea1f4b5db21e470138b9c3b1\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_1056ea821c0d412d9ea18250446d3630\",\"created_at\":\"2023-11-30T21:45:23Z\",\"updated_at\":\"2023-11-30T21:45:23Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:23Z\",\"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/20231130/e85d23c606743a43c1bb129e2d1100a826.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5f0c570e3dc543c69985fd9e3756dcbb\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3ff570ee7d694056b8bc1d58c9c1399f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_765fb5cbd2924e8da299e144958826a8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_246adffc62be4d10a6f6388a3fee2508\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e09a037c16f4430a9fa8d537901e3c8f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:22Z\",\"updated_at\":\"2023-11-30T21:45:22Z\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_765fb5cbd2924e8da299e144958826a8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:23Z\",\"updated_at\":\"2023-11-30T21:45:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_179249bf936246c9b7a2cfe9e7056541\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7ef098ec8f1c472193cf679dc72f03bd\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416639\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:23Z\",\"updated_at\":\"2023-11-30T21:45:23Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_179249bf936246c9b7a2cfe9e7056541\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdlZjA5OGVjOGYxYzQ3MjE5M2NmNjc5ZGM3MmYwM2Jk\"},\"to_address\":{\"id\":\"adr_c39546a98fc911eea0dbac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:22+00:00\",\"updated_at\":\"2023-11-30T21:45:23+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_c397b9738fc911eea009ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:22+00:00\",\"updated_at\":\"2023-11-30T21:45:22+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_c39546a98fc911eea0dbac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:22+00:00\",\"updated_at\":\"2023-11-30T21:45:23+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_179249bf936246c9b7a2cfe9e7056541\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "d1103ecc65298db9e787557e00428559" + "value": "32e015f665690272f41d261100309f88" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_7eff4528851e470ca8b666d5b1e08d55" + "value": "/api/v2/shipments/shp_179249bf936246c9b7a2cfe9e7056541" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"7e84ed5ba3e87535b4f304f5e436d7c6\"" - }, { "name": "x-runtime", - "value": "1.094506" + "value": "1.090493" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202310131642-4269ac0aea-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 5a08ab70b2, intlb1wdc 5a08ab70b2, extlb3wdc 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 842, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_7eff4528851e470ca8b666d5b1e08d55", + "redirectURL": "/api/v2/shipments/shp_179249bf936246c9b7a2cfe9e7056541", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-10-13T18:34:32.504Z", - "time": 1692, + "startedDateTime": "2023-11-30T21:45:22.444Z", + "time": 1244, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1692 + "wait": 1244 } }, { - "_id": "7bfb46cf83b2fcf26066a36f9679f409", + "_id": "9e18bc74d1bbdad42188789af67f865d", "_order": 0, "cache": {}, "request": { @@ -199,7 +195,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"scan_form\":{\"shipments\":[{\"id\":\"shp_7eff4528851e470ca8b666d5b1e08d55\"}]}}" + "text": "{\"scan_form\":{\"shipments\":[{\"id\":\"shp_179249bf936246c9b7a2cfe9e7056541\"}]}}" }, "queryString": [], "url": "https://api.easypost.com/v2/scan_forms" @@ -210,7 +206,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 720, - "text": "{\"id\":\"sf_22783dd088924dcdbb76dba74a8dd753\",\"object\":\"ScanForm\",\"created_at\":\"2023-10-13T18:34:34Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"tracking_codes\":[\"9400100105440269751884\"],\"address\":{\"id\":\"adr_2748089f69f711eebefdac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:33+00:00\",\"updated_at\":\"2023-10-13T18:34: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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231013/e88650e445d38e43949687120c229ce6e0.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_dd97473a66e3486bb119c9b71dcc7bd7\",\"confirmation\":null}" + "text": "{\"id\":\"sf_ca18629e7c1e4bdb9c7cbda3fa8fcce1\",\"object\":\"ScanForm\",\"created_at\":\"2023-11-30T21:45:23Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"tracking_codes\":[\"9400100105442287416639\"],\"address\":{\"id\":\"adr_c397b9738fc911eea009ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:22+00:00\",\"updated_at\":\"2023-11-30T21:45:22+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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e8cdd79978558d4711bb2e991a88d65fdd.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_107649ee932f4bfca2d461db79c049f8\",\"confirmation\":null}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "27fa231c65298dbae787557f01741c10" + "value": "32e015f865690273f440b9ad0030a0a8" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"2dfba4cb86494a2ffc11e856baf944e3\"" - }, { "name": "x-runtime", - "value": "0.331012" + "value": "0.331947" }, { "name": "content-encoding", @@ -276,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202310131642-4269ac0aea-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 5a08ab70b2, intlb2wdc 5a08ab70b2, extlb4wdc 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 776, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-13T18:34:34.201Z", - "time": 843, + "startedDateTime": "2023-11-30T21:45:23.694Z", + "time": 477, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 843 + "wait": 477 } } ], diff --git a/test/cassettes/ScanForm-Service_1241997233/retrieves-a-scanform_3128791796/recording.har b/test/cassettes/ScanForm-Service_1241997233/retrieves-a-scanform_3128791796/recording.har index 5eed0e7fb..d2fbdcb9e 100644 --- a/test/cassettes/ScanForm-Service_1241997233/retrieves-a-scanform_3128791796/recording.har +++ b/test/cassettes/ScanForm-Service_1241997233/retrieves-a-scanform_3128791796/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2320, + "bodySize": 2334, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2320, - "text": "{\"created_at\":\"2023-10-13T18:34:35Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440269751907\",\"updated_at\":\"2023-10-13T18:34:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_28c0510f69f711ee867cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_629052e493744e2b89558d5b908a6a0c\",\"object\":\"Parcel\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_562d6d16995c491f8ebac167c280397e\",\"created_at\":\"2023-10-13T18:34:36Z\",\"updated_at\":\"2023-10-13T18:34:36Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-10-13T18:34:36Z\",\"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/20231013/e86ca2759a4f57461b8538366f481565f1.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7512e98b3b8a4a5fac402bbca244b0e0\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cae624c94a32436b9acb0b01608e1b4a\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7acab044b365466e85092184babd5034\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8d05af5902a34409b61ca95b439da8db\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1a967693318d4e8598d0e09275c14860\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:35Z\",\"updated_at\":\"2023-10-13T18:34:35Z\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7acab044b365466e85092184babd5034\",\"object\":\"Rate\",\"created_at\":\"2023-10-13T18:34:36Z\",\"updated_at\":\"2023-10-13T18:34:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3c7d50335467439fa0613bc30d17981d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440269751907\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-10-13T18:34:36Z\",\"updated_at\":\"2023-10-13T18:34:36Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_a6325095016d4b3e9a2f23b535cf12f6\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNjN2Q1MDMzNTQ2NzQzOWZhMDYxM2JjMzBkMTc5ODFk\"},\"to_address\":{\"id\":\"adr_28be5ef169f711ee8679ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34:36+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_28c0510f69f711ee867cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34: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_28be5ef169f711ee8679ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34:36+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_a6325095016d4b3e9a2f23b535cf12f6\",\"object\":\"Shipment\"}" + "size": 2334, + "text": "{\"created_at\":\"2023-11-30T21:45:24Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416646\",\"updated_at\":\"2023-11-30T21:45:25Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c4a0b3d88fc911ee9ac93cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_51f93943c3de481c912395e277744423\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_8a4eaa8ec4b340cdb00a831c6c903897\",\"created_at\":\"2023-11-30T21:45:25Z\",\"updated_at\":\"2023-11-30T21:45:25Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:25Z\",\"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/20231130/e8da4190a28fb54980a872770303dd8bfd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_9fe9caa5de5c4135b9f3b162d070e06f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a6414beb490847d28d46606051628588\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f3f5033159344f25808199e384c62214\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d534b2dc13c24a94933adc050bcd214f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c092f0700ec34742be7984a552c9fcb5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:24Z\",\"updated_at\":\"2023-11-30T21:45:24Z\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_f3f5033159344f25808199e384c62214\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:25Z\",\"updated_at\":\"2023-11-30T21:45:25Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7b5514dfc9354460b4babd7d9020eaf4\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416646\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:25Z\",\"updated_at\":\"2023-11-30T21:45:25Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_4c1920c210b84e5e84f615ed433f8fbf\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdiNTUxNGRmYzkzNTQ0NjBiNGJhYmQ3ZDkwMjBlYWY0\"},\"to_address\":{\"id\":\"adr_c49e0a8b8fc911eea095ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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_c4a0b3d88fc911ee9ac93cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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_c49e0a8b8fc911eea095ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_4c1920c210b84e5e84f615ed433f8fbf\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "27fa231965298dbbe787558001741c4f" + "value": "32e015f665690274f41e29940030a12a" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_a6325095016d4b3e9a2f23b535cf12f6" + "value": "/api/v2/shipments/shp_4c1920c210b84e5e84f615ed433f8fbf" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"56eb1da48c8926199f4a44de23ca80c9\"" - }, { "name": "x-runtime", - "value": "1.158992" + "value": "1.184924" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb40nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202310131642-4269ac0aea-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 5a08ab70b2, intlb2wdc 5a08ab70b2, extlb4wdc 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 842, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_a6325095016d4b3e9a2f23b535cf12f6", + "redirectURL": "/api/v2/shipments/shp_4c1920c210b84e5e84f615ed433f8fbf", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-10-13T18:34:35.058Z", - "time": 1686, + "startedDateTime": "2023-11-30T21:45:24.183Z", + "time": 1334, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1686 + "wait": 1334 } }, { - "_id": "c3eb6652a7efcdd1ebd4ec6ad48fb363", + "_id": "9efce78ce9b5ad30c20d49113ab9934e", "_order": 0, "cache": {}, "request": { @@ -199,7 +195,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"scan_form\":{\"shipments\":[{\"id\":\"shp_a6325095016d4b3e9a2f23b535cf12f6\"}]}}" + "text": "{\"scan_form\":{\"shipments\":[{\"id\":\"shp_4c1920c210b84e5e84f615ed433f8fbf\"}]}}" }, "queryString": [], "url": "https://api.easypost.com/v2/scan_forms" @@ -210,7 +206,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 720, - "text": "{\"id\":\"sf_b9815e9d96cd4d84b4a0204f98f76e45\",\"object\":\"ScanForm\",\"created_at\":\"2023-10-13T18:34:37Z\",\"updated_at\":\"2023-10-13T18:34:37Z\",\"tracking_codes\":[\"9400100105440269751907\"],\"address\":{\"id\":\"adr_28c0510f69f711ee867cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34: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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231013/e872b9a561fe6c45dcb506c95f11535c39.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_012cf5bdbc6248a8872d680540c0995c\",\"confirmation\":null}" + "text": "{\"id\":\"sf_5f3d49f09ec44eb59ab72f5fd0486cc9\",\"object\":\"ScanForm\",\"created_at\":\"2023-11-30T21:45:25Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"tracking_codes\":[\"9400100105442287416646\"],\"address\":{\"id\":\"adr_c4a0b3d88fc911ee9ac93cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e854ab5749ff46446c8b477bdac79960e6.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a8fbc6bf966e4ec7984227e3c790a609\",\"confirmation\":null}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "27fa231965298dbde787558101741cd4" + "value": "32e015f465690275f01fd4960030a2e1" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"b89c49ce0655fe84771ec3d71724f0c0\"" - }, { "name": "x-runtime", - "value": "0.399578" + "value": "0.294607" }, { "name": "content-encoding", @@ -276,19 +268,23 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb43nuq" }, { "name": "x-version-label", - "value": "easypost-202310131642-4269ac0aea-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb1nuq 5a08ab70b2, intlb2wdc 5a08ab70b2, extlb4wdc 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +295,14 @@ "value": "close" } ], - "headersSize": 776, + "headersSize": 728, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-13T18:34:36.749Z", - "time": 895, + "startedDateTime": "2023-11-30T21:45:25.522Z", + "time": 443, "timings": { "blocked": -1, "connect": -1, @@ -314,11 +310,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 895 + "wait": 443 } }, { - "_id": "f53f3d0377ca88677fdd522a2064cfc9", + "_id": "8ebddf84566dd054c64cffd980f75056", "_order": 0, "cache": {}, "request": { @@ -346,7 +342,7 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/scan_forms/sf_b9815e9d96cd4d84b4a0204f98f76e45" + "url": "https://api.easypost.com/v2/scan_forms/sf_5f3d49f09ec44eb59ab72f5fd0486cc9" }, "response": { "bodySize": 720, @@ -354,7 +350,7 @@ "encoding": "base64", "mimeType": "application/json; charset=utf-8", "size": 720, - "text": "{\"id\":\"sf_b9815e9d96cd4d84b4a0204f98f76e45\",\"object\":\"ScanForm\",\"created_at\":\"2023-10-13T18:34:37Z\",\"updated_at\":\"2023-10-13T18:34:37Z\",\"tracking_codes\":[\"9400100105440269751907\"],\"address\":{\"id\":\"adr_28c0510f69f711ee867cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-10-13T18:34:35+00:00\",\"updated_at\":\"2023-10-13T18:34: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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231013/e872b9a561fe6c45dcb506c95f11535c39.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_012cf5bdbc6248a8872d680540c0995c\",\"confirmation\":null}" + "text": "{\"id\":\"sf_5f3d49f09ec44eb59ab72f5fd0486cc9\",\"object\":\"ScanForm\",\"created_at\":\"2023-11-30T21:45:25Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"tracking_codes\":[\"9400100105442287416646\"],\"address\":{\"id\":\"adr_c4a0b3d88fc911ee9ac93cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:24+00:00\",\"updated_at\":\"2023-11-30T21:45:24+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\":{}},\"status\":\"created\",\"message\":null,\"form_url\":\"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e854ab5749ff46446c8b477bdac79960e6.pdf\",\"form_file_type\":null,\"batch_id\":\"batch_a8fbc6bf966e4ec7984227e3c790a609\",\"confirmation\":null}" }, "cookies": [], "headers": [ @@ -384,7 +380,7 @@ }, { "name": "x-ep-request-uuid", - "value": "27fa231c65298dbee787558201741d02" + "value": "32e015f665690276f43fa4d20030a34e" }, { "name": "cache-control", @@ -402,13 +398,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"b89c49ce0655fe84771ec3d71724f0c0\"" - }, { "name": "x-runtime", - "value": "0.027948" + "value": "0.033149" }, { "name": "content-encoding", @@ -420,11 +412,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb36nuq" }, { "name": "x-version-label", - "value": "easypost-202310131642-4269ac0aea-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -432,7 +424,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 5a08ab70b2, intlb1wdc 5a08ab70b2, extlb4wdc 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -443,14 +435,14 @@ "value": "close" } ], - "headersSize": 776, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-13T18:34:37.648Z", - "time": 546, + "startedDateTime": "2023-11-30T21:45:25.969Z", + "time": 179, "timings": { "blocked": -1, "connect": -1, @@ -458,7 +450,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 546 + "wait": 179 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/buy-a-shipment-with-carbon-offset_4260710690/recording.har b/test/cassettes/Shipment-Service_2987889512/buy-a-shipment-with-carbon-offset_4260710690/recording.har deleted file mode 100644 index 69a0d3e84..000000000 --- a/test/cassettes/Shipment-Service_2987889512/buy-a-shipment-with-carbon-offset_4260710690/recording.har +++ /dev/null @@ -1,324 +0,0 @@ -{ - "log": { - "_recordingName": "Shipment Service/buy a shipment with carbon offset", - "creator": { - "comment": "persister:fs", - "name": "Polly.JS", - "version": "6.0.5" - }, - "entries": [ - { - "_id": "ce19edc764fe594a157f58fc1fb18011", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 473, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 473 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 390, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments" - }, - "response": { - "bodySize": 1516, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 1516, - "text": "{\"created_at\":\"2023-09-06T17:49:56Z\",\"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-09-06T17:49:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cacc3df34cdd11ee9296ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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\":null,\"parcel\":{\"id\":\"prcl_9fd1f819718d47528efcb4bc1934d52f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_6c3d748dca1d4463be4af3d7c7bfc43f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f88e84344fc445b7998be18585e40bbd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_504fd010a41b4c1baaa31183987398b1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_378f3f50062148ce8cfddfd10f44a79a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_63fe8a0b376b49849a631fe4970ebd56\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_caca2c5a4cdd11ee9295ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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_cacc3df34cdd11ee9296ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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_caca2c5a4cdd11ee9295ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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_c55706a9c1f0414e8dddc895afb6e9ff\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b8264f8bbc4e79b0aca001d5185" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "location", - "value": "/api/v2/shipments/shp_c55706a9c1f0414e8dddc895afb6e9ff" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"58363d72b0ceccc5269c66fd0b4022c0\"" - }, - { - "name": "x-runtime", - "value": "1.301142" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb41nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 820, - "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_c55706a9c1f0414e8dddc895afb6e9ff", - "status": 201, - "statusText": "Created" - }, - "startedDateTime": "2023-09-06T17:49:56.493Z", - "time": 1728, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1728 - } - }, - { - "_id": "252df6e350ae104764c808ff13b7b170", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 76, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 76 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 430, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"rate\":{\"id\":\"rate_6c3d748dca1d4463be4af3d7c7bfc43f\"},\"carbon_offset\":true}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_c55706a9c1f0414e8dddc895afb6e9ff/buy" - }, - "response": { - "bodySize": 2374, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 2374, - "text": "{\"created_at\":\"2023-09-06T17:49:56Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258925975\",\"updated_at\":\"2023-09-06T17:49:59Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cacc3df34cdd11ee9296ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_9fd1f819718d47528efcb4bc1934d52f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_a8f80ed91fa346ec8e28ddc3ab323266\",\"created_at\":\"2023-09-06T17:49:59Z\",\"updated_at\":\"2023-09-06T17:49:59Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:49:59Z\",\"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/20230906/e86ca0b122900745628545d22b26c5f322.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6c3d748dca1d4463be4af3d7c7bfc43f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_f88e84344fc445b7998be18585e40bbd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_504fd010a41b4c1baaa31183987398b1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_378f3f50062148ce8cfddfd10f44a79a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_63fe8a0b376b49849a631fe4970ebd56\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:58Z\",\"updated_at\":\"2023-09-06T17:49:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_6c3d748dca1d4463be4af3d7c7bfc43f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:59Z\",\"updated_at\":\"2023-09-06T17:49:59Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7976ebb5a470490490043cc9d976a001\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258925975\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:49:59Z\",\"updated_at\":\"2023-09-06T17:49:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c55706a9c1f0414e8dddc895afb6e9ff\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzc5NzZlYmI1YTQ3MDQ5MDQ5MDA0M2NjOWQ5NzZhMDAx\"},\"to_address\":{\"id\":\"adr_caca2c5a4cdd11ee9295ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:58+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_cacc3df34cdd11ee9296ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:56+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_caca2c5a4cdd11ee9295ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:56+00:00\",\"updated_at\":\"2023-09-06T17:49:58+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c55706a9c1f0414e8dddc895afb6e9ff\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bbc6e79b0ae2001d522e" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"6970353feebb25430bee73d3a3de19d7\"" - }, - { - "name": "x-runtime", - "value": "1.318845" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb34nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 754, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2023-09-06T17:49:58.226Z", - "time": 1739, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1739 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-end_shipper_id_3098977158/recording.har b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-end_shipper_id_3098977158/recording.har index e304bca7d..26e90578c 100644 --- a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-end_shipper_id_3098977158/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-end_shipper_id_3098977158/recording.har @@ -161,11 +161,11 @@ } }, { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -182,7 +182,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -195,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1536, + "bodySize": 1534, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1536, - "text": "{\"created_at\":\"2023-09-06T17:48:29Z\",\"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-09-06T17:48:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_96d0cc174cdd11eeb9baac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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\":null,\"parcel\":{\"id\":\"prcl_0af3b5b86c924901a56191d458f7d467\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:29Z\",\"updated_at\":\"2023-09-06T17:48:29Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_46aa545fd65f4d1ab3cf448748b474d6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5a4734b4a33240fea58995a5703fb48c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d303d9a59f42406ea1162dc607852605\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36bdabedec0744068d3e05e5f65e592c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_77559416ed6c4736915cdb52854ed293\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_96ce0cc84cdd11ee80213cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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_96d0cc174cdd11eeb9baac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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_96ce0cc84cdd11ee80213cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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_363c7b265d9141148431c51a98a88028\",\"object\":\"Shipment\"}" + "size": 1534, + "text": "{\"created_at\":\"2023-11-30T21:47:17Z\",\"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-11-30T21:47:17Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_07e88a388fca11eeba40ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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\":null,\"parcel\":{\"id\":\"prcl_9c94cb4ac5764cafa56d4d30d51971d7\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8cfb92fd1bad4bc0adc16c3a3c1ad46e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_59a16f67badf496ab57c1114963fbde6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_db46df8e70b84400ba6af69e1e125c9d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9f4c47f40ad54496987a0d2ea23dbfb1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fdf0336adc9e484394a462c291647fb8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47: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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_07e59f138fca11ee8495ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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_07e88a388fca11eeba40ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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_07e59f138fca11ee8495ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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_56be3eca4c8f42d593e8a216e7a3bd34\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -236,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bb6de79b072e001d2d4e" + "value": "32e015f4656902e5f40c258f00310758" }, { "name": "cache-control", @@ -252,19 +252,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_363c7b265d9141148431c51a98a88028" + "value": "/api/v2/shipments/shp_56be3eca4c8f42d593e8a216e7a3bd34" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"be9c60feab3efe4f749594535d5a00ec\"" - }, { "name": "x-runtime", - "value": "3.534425" + "value": "0.328849" }, { "name": "content-encoding", @@ -280,7 +276,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +284,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +295,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_363c7b265d9141148431c51a98a88028", + "redirectURL": "/api/v2/shipments/shp_56be3eca4c8f42d593e8a216e7a3bd34", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:48:29.285Z", - "time": 3944, + "startedDateTime": "2023-11-30T21:47:17.065Z", + "time": 464, "timings": { "blocked": -1, "connect": -1, @@ -314,15 +310,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 3944 + "wait": 464 } }, { - "_id": "07e1a76283181d13794a604b1214ed9a", + "_id": "8904386105e5b8092d579e62be50ec7e", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 55, "cookies": [], "headers": [ { @@ -339,31 +335,31 @@ }, { "name": "content-length", - "value": 131 + "value": 55 }, { "name": "host", "value": "api.easypost.com" } ], - "headersSize": 431, + "headersSize": 430, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"rate\":{\"id\":\"rate_5a4734b4a33240fea58995a5703fb48c\"},\"carbon_offset\":null,\"end_shipper_id\":\"es_d87d24f1781543b6b515b370db8dde27\"}" + "text": "{\"rate\":{\"id\":\"rate_59a16f67badf496ab57c1114963fbde6\"}}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_363c7b265d9141148431c51a98a88028/buy" + "url": "https://api.easypost.com/v2/shipments/shp_56be3eca4c8f42d593e8a216e7a3bd34/buy" }, "response": { - "bodySize": 2342, + "bodySize": 2338, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2342, - "text": "{\"created_at\":\"2023-09-06T17:48:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258925500\",\"updated_at\":\"2023-09-06T17:48:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_96d0cc174cdd11eeb9baac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_0af3b5b86c924901a56191d458f7d467\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:29Z\",\"updated_at\":\"2023-09-06T17:48:29Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_5d2f321bfe914f00b6366704e7fc0883\",\"created_at\":\"2023-09-06T17:48:34Z\",\"updated_at\":\"2023-09-06T17:48:34Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:48:34Z\",\"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/20230906/e86ea0718cf0c24575b47baeb01819e7bc.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_46aa545fd65f4d1ab3cf448748b474d6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5a4734b4a33240fea58995a5703fb48c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d303d9a59f42406ea1162dc607852605\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36bdabedec0744068d3e05e5f65e592c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_77559416ed6c4736915cdb52854ed293\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:33Z\",\"updated_at\":\"2023-09-06T17:48:33Z\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_5a4734b4a33240fea58995a5703fb48c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:34Z\",\"updated_at\":\"2023-09-06T17:48:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_363c7b265d9141148431c51a98a88028\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_deed4362277f4ff0924fbd23d55e35dc\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258925500\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:48:34Z\",\"updated_at\":\"2023-09-06T17:48:34Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_363c7b265d9141148431c51a98a88028\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RlZWQ0MzYyMjc3ZjRmZjA5MjRmYmQyM2Q1NWUzNWRj\"},\"to_address\":{\"id\":\"adr_96ce0cc84cdd11ee80213cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:33+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_96d0cc174cdd11eeb9baac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:29+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_96ce0cc84cdd11ee80213cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:29+00:00\",\"updated_at\":\"2023-09-06T17:48:33+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_363c7b265d9141148431c51a98a88028\",\"object\":\"Shipment\"}" + "size": 2338, + "text": "{\"created_at\":\"2023-11-30T21:47:17Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287417292\",\"updated_at\":\"2023-11-30T21:47:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_07e88a388fca11eeba40ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_9c94cb4ac5764cafa56d4d30d51971d7\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_78453d663f04454580c14ab75fe18635\",\"created_at\":\"2023-11-30T21:47:18Z\",\"updated_at\":\"2023-11-30T21:47:18Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:47:18Z\",\"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/20231130/e87f4be4c966e14897b57b3c1a3f9d0aaa.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8cfb92fd1bad4bc0adc16c3a3c1ad46e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_59a16f67badf496ab57c1114963fbde6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_db46df8e70b84400ba6af69e1e125c9d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9f4c47f40ad54496987a0d2ea23dbfb1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47:17Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fdf0336adc9e484394a462c291647fb8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:17Z\",\"updated_at\":\"2023-11-30T21:47: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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_59a16f67badf496ab57c1114963fbde6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:47:18Z\",\"updated_at\":\"2023-11-30T21:47:18Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_b09e45c355c4419c993234d958a9359c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287417292\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:47:18Z\",\"updated_at\":\"2023-11-30T21:47:18Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_56be3eca4c8f42d593e8a216e7a3bd34\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2IwOWU0NWMzNTVjNDQxOWM5OTMyMzRkOTU4YTkzNTlj\"},\"to_address\":{\"id\":\"adr_07e59f138fca11ee8495ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:18+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_07e88a388fca11eeba40ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:17+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_07e59f138fca11ee8495ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:47:17+00:00\",\"updated_at\":\"2023-11-30T21:47:18+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_56be3eca4c8f42d593e8a216e7a3bd34\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -393,7 +389,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bb71e79b0746001d2ee3" + "value": "32e015f7656902e5f43d61e7003107f6" }, { "name": "cache-control", @@ -411,13 +407,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"0f305cc2b7e636e8b04f11e705f2efdd\"" - }, { "name": "x-runtime", - "value": "0.926800" + "value": "0.935816" }, { "name": "content-encoding", @@ -429,11 +421,11 @@ }, { "name": "x-node", - "value": "bigweb42nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -441,7 +433,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -452,14 +444,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:48:33.234Z", - "time": 1426, + "startedDateTime": "2023-11-30T21:47:17.535Z", + "time": 1077, "timings": { "blocked": -1, "connect": -1, @@ -467,7 +459,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1426 + "wait": 1077 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-insuranceAmount_1751540137/recording.har b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-insuranceAmount_1751540137/recording.har index fa68c2bc5..de7a658dd 100644 --- a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-insuranceAmount_1751540137/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment-with-insuranceAmount_1751540137/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1527, + "bodySize": 1520, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1527, - "text": "{\"created_at\":\"2023-09-06T17:48:22Z\",\"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-09-06T17:48:22Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_92b805f54cdd11ee941aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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\":null,\"parcel\":{\"id\":\"prcl_57f643329cc04426bed369edd4c98083\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:22Z\",\"updated_at\":\"2023-09-06T17:48:22Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_8bc35eec2edb445ca47f7a604d0bbc3b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_25024942579542cebfc494a718001412\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d48a9757cdd54cbf9c5709b749a89746\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5f12a289c7314f3f8237b1a364992056\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0a12a0e8b9c84dc49a738eafef3188ca\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_92b60c1c4cdd11eebde43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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_92b805f54cdd11ee941aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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_92b60c1c4cdd11eebde43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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_7f80a83b7fb440c7b97584cffdb782f6\",\"object\":\"Shipment\"}" + "size": 1520, + "text": "{\"created_at\":\"2023-11-30T21:45:57Z\",\"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-11-30T21:45:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d884581d8fc911eeabd0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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\":null,\"parcel\":{\"id\":\"prcl_05e75f1757fb42a1a17b35b7279f8f5b\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:57Z\",\"updated_at\":\"2023-11-30T21:45:57Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c59868d7bc474160b99f59b2c012e1a6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_80771de208f84b7e9f21913b171bfbf8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_abc7e1a8ba684375a57e6372bc997429\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4eb0b85beb044debad84b60c950529dc\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a7fd1ca845034811a0c3f324d3512f7c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d8582cfb8fc911eea1a0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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_d884581d8fc911eeabd0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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_d8582cfb8fc911eea1a0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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_65af40080df147b4a6774706b8c124d4\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7d64f8bb66e79b072b001d2a40" + "value": "32e015f965690295f41bfc080030bf44" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_7f80a83b7fb440c7b97584cffdb782f6" + "value": "/api/v2/shipments/shp_65af40080df147b4a6774706b8c124d4" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"cb017783f9ac673c485eb154f38e36b7\"" - }, { "name": "x-runtime", - "value": "4.623147" + "value": "0.708151" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb42nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_7f80a83b7fb440c7b97584cffdb782f6", + "redirectURL": "/api/v2/shipments/shp_65af40080df147b4a6774706b8c124d4", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:48:22.406Z", - "time": 5089, + "startedDateTime": "2023-11-30T21:45:57.295Z", + "time": 839, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 5089 + "wait": 839 } }, { - "_id": "44df7b14c66501f74bb72251ea46bf5c", + "_id": "cc3dd1f40dded9c4c028b6399adbf110", "_order": 0, "cache": {}, "request": { - "bodySize": 93, + "bodySize": 71, "cookies": [], "headers": [ { @@ -186,7 +182,7 @@ }, { "name": "content-length", - "value": 93 + "value": 71 }, { "name": "host", @@ -199,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"rate\":{\"id\":\"rate_d48a9757cdd54cbf9c5709b749a89746\"},\"carbon_offset\":false,\"insurance\":100}" + "text": "{\"rate\":{\"id\":\"rate_abc7e1a8ba684375a57e6372bc997429\"},\"insurance\":100}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_7f80a83b7fb440c7b97584cffdb782f6/buy" + "url": "https://api.easypost.com/v2/shipments/shp_65af40080df147b4a6774706b8c124d4/buy" }, "response": { - "bodySize": 2330, + "bodySize": 2319, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2330, - "text": "{\"created_at\":\"2023-09-06T17:48:22Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258925432\",\"updated_at\":\"2023-09-06T17:48:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_92b805f54cdd11ee941aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_57f643329cc04426bed369edd4c98083\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:22Z\",\"updated_at\":\"2023-09-06T17:48:22Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_0ecd2eefb76d412099c9b87c842d63bb\",\"created_at\":\"2023-09-06T17:48:28Z\",\"updated_at\":\"2023-09-06T17:48:28Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:48:28Z\",\"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/20230906/e84edd6ad48c8c4cf7807096d5954304e0.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_8bc35eec2edb445ca47f7a604d0bbc3b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_25024942579542cebfc494a718001412\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d48a9757cdd54cbf9c5709b749a89746\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5f12a289c7314f3f8237b1a364992056\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0a12a0e8b9c84dc49a738eafef3188ca\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:27Z\",\"updated_at\":\"2023-09-06T17:48:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d48a9757cdd54cbf9c5709b749a89746\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:28Z\",\"updated_at\":\"2023-09-06T17:48:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_127cae914f314b35aaf0688c40895a74\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258925432\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:48:28Z\",\"updated_at\":\"2023-09-06T17:48:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_7f80a83b7fb440c7b97584cffdb782f6\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzEyN2NhZTkxNGYzMTRiMzVhYWYwNjg4YzQwODk1YTc0\"},\"to_address\":{\"id\":\"adr_92b60c1c4cdd11eebde43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:28+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_92b805f54cdd11ee941aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:22+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_92b60c1c4cdd11eebde43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:22+00:00\",\"updated_at\":\"2023-09-06T17:48:28+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_7f80a83b7fb440c7b97584cffdb782f6\",\"object\":\"Shipment\"}" + "size": 2319, + "text": "{\"created_at\":\"2023-11-30T21:45:57Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416844\",\"updated_at\":\"2023-11-30T21:45:59Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d884581d8fc911eeabd0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_05e75f1757fb42a1a17b35b7279f8f5b\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:57Z\",\"updated_at\":\"2023-11-30T21:45:57Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2d9ac2afdf99450d85c111dafd25f410\",\"created_at\":\"2023-11-30T21:45:59Z\",\"updated_at\":\"2023-11-30T21:45:59Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:59Z\",\"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/20231130/e8d604718632274f94bf2da12d362b7a68.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c59868d7bc474160b99f59b2c012e1a6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_80771de208f84b7e9f21913b171bfbf8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_abc7e1a8ba684375a57e6372bc997429\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4eb0b85beb044debad84b60c950529dc\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a7fd1ca845034811a0c3f324d3512f7c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:58Z\",\"updated_at\":\"2023-11-30T21:45:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_abc7e1a8ba684375a57e6372bc997429\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:59Z\",\"updated_at\":\"2023-11-30T21:45:59Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_65af40080df147b4a6774706b8c124d4\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_defd18b2cebc477f890413bc48af59fa\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416844\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:59Z\",\"updated_at\":\"2023-11-30T21:45:59Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_65af40080df147b4a6774706b8c124d4\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2RlZmQxOGIyY2ViYzQ3N2Y4OTA0MTNiYzQ4YWY1OWZh\"},\"to_address\":{\"id\":\"adr_d8582cfb8fc911eea1a0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:58+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_d884581d8fc911eeabd0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:57+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_d8582cfb8fc911eea1a0ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:57+00:00\",\"updated_at\":\"2023-11-30T21:45:58+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_65af40080df147b4a6774706b8c124d4\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8164f8bb6be79b072c001d2c79" + "value": "32e015f665690296f01f48770030bfe0" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"f6f3738edcf2b9746808a53c6053f009\"" - }, { "name": "x-runtime", - "value": "0.914204" + "value": "1.006984" }, { "name": "content-encoding", @@ -276,23 +268,19 @@ }, { "name": "x-node", - "value": "bigweb43nuq" + "value": "bigweb36nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +291,14 @@ "value": "close" } ], - "headersSize": 772, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:48:27.500Z", - "time": 1326, + "startedDateTime": "2023-11-30T21:45:58.139Z", + "time": 1171, "timings": { "blocked": -1, "connect": -1, @@ -318,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1326 + "wait": 1171 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment_3413405727/recording.har b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment_3413405727/recording.har index 3f5988134..6f17733e1 100644 --- a/test/cassettes/Shipment-Service_2987889512/buys-a-shipment_3413405727/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/buys-a-shipment_3413405727/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1958, + "bodySize": 1954, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1958, - "text": "{\"created_at\":\"2023-09-06T17:47:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:06Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_ea9e2aef00d74ed1bcb725b3cbe05f5d\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_806368050775416690427420ae34c06b\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_650af5284cdd11ee855aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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\":null,\"parcel\":{\"id\":\"prcl_80509313133e48d48c1eea69c47124ca\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_6765e8f38a164b63ba3b78bb7791546b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_84ffd51ba3694b25befb965ae1634661\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fe53977ef5304e9f829916e348c3e8a6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_225b65613f3f45e8868feacab27798d5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_59d4e1f3c8d54be7b4a9b471516c371f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_650845084cdd11ee9b18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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_650af5284cdd11ee855aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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_650845084cdd11ee9b18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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_0395f25a5f0842529e7aa08371d70399\",\"object\":\"Shipment\"}" + "size": 1954, + "text": "{\"created_at\":\"2023-11-30T21:45:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_58ff3f84b78f4196ae030b1c5bc04820\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_09933e4601164fb1b0c483456c4da850\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c7acf7888fc911eea270ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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\":null,\"parcel\":{\"id\":\"prcl_da12541097f24ff09d75c1d9881c829e\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_0d727e592e2d42b5aba369323e6bd045\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3fa1611571ba42a3a7bef141c4312401\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bd4cdb2b564f4a4aadc4ed1d36e70d64\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eb31cdecd936494581998eca3aabcc33\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ee493cd2a3e340709d47f7bed41542e5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c7aa7a828fc911ee9858ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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_c7acf7888fc911eea270ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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_c7aa7a828fc911ee9858ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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_04ebafa553c4497a885350c3bebf38cc\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49b64f8bb1ae79b06aa001cfb6f" + "value": "32e015f565690279f3f5aa450030a681" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_0395f25a5f0842529e7aa08371d70399" + "value": "/api/v2/shipments/shp_04ebafa553c4497a885350c3bebf38cc" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"f8e9f6e087d8f0270b078e8263fa077a\"" - }, { "name": "x-runtime", - "value": "0.770759" + "value": "0.423439" }, { "name": "content-encoding", @@ -123,19 +119,23 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb32nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, + { + "name": "x-canary", + "value": "direct" + }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +146,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 794, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_0395f25a5f0842529e7aa08371d70399", + "redirectURL": "/api/v2/shipments/shp_04ebafa553c4497a885350c3bebf38cc", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:05.760Z", - "time": 1158, + "startedDateTime": "2023-11-30T21:45:29.294Z", + "time": 572, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +161,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1158 + "wait": 572 } }, { - "_id": "7ff3668c2a0aa43f37da4f4f890842f3", + "_id": "f285de26d7a15341142789061471f02f", "_order": 0, "cache": {}, "request": { - "bodySize": 77, + "bodySize": 55, "cookies": [], "headers": [ { @@ -186,7 +186,7 @@ }, { "name": "content-length", - "value": 77 + "value": 55 }, { "name": "host", @@ -199,18 +199,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"rate\":{\"id\":\"rate_fe53977ef5304e9f829916e348c3e8a6\"},\"carbon_offset\":false}" + "text": "{\"rate\":{\"id\":\"rate_bd4cdb2b564f4a4aadc4ed1d36e70d64\"}}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_0395f25a5f0842529e7aa08371d70399/buy" + "url": "https://api.easypost.com/v2/shipments/shp_04ebafa553c4497a885350c3bebf38cc/buy" }, "response": { - "bodySize": 2762, + "bodySize": 2766, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2762, - "text": "{\"created_at\":\"2023-09-06T17:47:06Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924497\",\"updated_at\":\"2023-09-06T17:47:08Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_ea9e2aef00d74ed1bcb725b3cbe05f5d\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_806368050775416690427420ae34c06b\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_650af5284cdd11ee855aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_80509313133e48d48c1eea69c47124ca\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_f262d02e7f5b4c08afe04942f61fce3c\",\"created_at\":\"2023-09-06T17:47:07Z\",\"updated_at\":\"2023-09-06T17:47:07Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:07Z\",\"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/20230906/e8565b768505dd4538bf9903287296f153.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_6765e8f38a164b63ba3b78bb7791546b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_84ffd51ba3694b25befb965ae1634661\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fe53977ef5304e9f829916e348c3e8a6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_225b65613f3f45e8868feacab27798d5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_59d4e1f3c8d54be7b4a9b471516c371f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:06Z\",\"updated_at\":\"2023-09-06T17:47:06Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_fe53977ef5304e9f829916e348c3e8a6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:07Z\",\"updated_at\":\"2023-09-06T17:47:07Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0395f25a5f0842529e7aa08371d70399\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_1d02e110fcea4a6e8ff173710b867501\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924497\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:08Z\",\"updated_at\":\"2023-09-06T17:47:08Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_0395f25a5f0842529e7aa08371d70399\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzFkMDJlMTEwZmNlYTRhNmU4ZmYxNzM3MTBiODY3NTAx\"},\"to_address\":{\"id\":\"adr_650845084cdd11ee9b18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:07+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_650af5284cdd11ee855aac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:06+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_650845084cdd11ee9b18ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:06+00:00\",\"updated_at\":\"2023-09-06T17:47:07+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_0395f25a5f0842529e7aa08371d70399\",\"object\":\"Shipment\"}" + "size": 2766, + "text": "{\"created_at\":\"2023-11-30T21:45:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416691\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_58ff3f84b78f4196ae030b1c5bc04820\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_09933e4601164fb1b0c483456c4da850\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c7acf7888fc911eea270ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_da12541097f24ff09d75c1d9881c829e\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_11ce4ffa60ce407f8306886f39697a47\",\"created_at\":\"2023-11-30T21:45:30Z\",\"updated_at\":\"2023-11-30T21:45:30Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:30Z\",\"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/20231130/e819438b4698f44d37978a79a7ac32ab88.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0d727e592e2d42b5aba369323e6bd045\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3fa1611571ba42a3a7bef141c4312401\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bd4cdb2b564f4a4aadc4ed1d36e70d64\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eb31cdecd936494581998eca3aabcc33\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ee493cd2a3e340709d47f7bed41542e5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_bd4cdb2b564f4a4aadc4ed1d36e70d64\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:30Z\",\"updated_at\":\"2023-11-30T21:45:30Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_04ebafa553c4497a885350c3bebf38cc\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_3ef47b58e62a4857b8a73a042481c20d\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416691\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_04ebafa553c4497a885350c3bebf38cc\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzNlZjQ3YjU4ZTYyYTQ4NTdiOGE3M2EwNDI0ODFjMjBk\"},\"to_address\":{\"id\":\"adr_c7aa7a828fc911ee9858ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:30+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_c7acf7888fc911eea270ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:29+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_c7aa7a828fc911ee9858ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:29+00:00\",\"updated_at\":\"2023-11-30T21:45:30+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_04ebafa553c4497a885350c3bebf38cc\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -240,7 +240,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49b64f8bb1be79b06c2001cfbde" + "value": "32e015f36569027af42bda290030a706" }, { "name": "cache-control", @@ -258,13 +258,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"50374a443a4de7b373dfeebe1eba6bdc\"" - }, { "name": "x-runtime", - "value": "0.889712" + "value": "1.002214" }, { "name": "content-encoding", @@ -276,11 +272,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +284,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +295,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:06.923Z", - "time": 1454, + "startedDateTime": "2023-11-30T21:45:29.871Z", + "time": 1161, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +310,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1454 + "wait": 1161 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/converts-the-label-format-of-a-shipment_4034441427/recording.har b/test/cassettes/Shipment-Service_2987889512/converts-the-label-format-of-a-shipment_4034441427/recording.har index 01271460d..f46a85b28 100644 --- a/test/cassettes/Shipment-Service_2987889512/converts-the-label-format-of-a-shipment_4034441427/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/converts-the-label-format-of-a-shipment_4034441427/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1952, + "bodySize": 1955, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1952, - "text": "{\"created_at\":\"2023-09-06T17:47:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:18Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d9f483e9c4fe49f08cd2c67ff1bc15d3\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_005be63c353d4bc5b9fe27d2e2f16578\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":null,\"parcel\":{\"id\":\"prcl_a778af32dfcb484eb6b016e8ec40e61f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_2890bb98b97f42fe85f9c66afc3c1be6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_261b3adf717e47ef838b4e614c89121e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b28c461940514e31a9747def31022f69\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36dee43a498f45a5a540e7ea64ddf337\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":{}},\"buyer_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_8452279079f544139abc0838723b2a8f\",\"object\":\"Shipment\"}" + "size": 1955, + "text": "{\"created_at\":\"2023-11-30T21:45:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:32Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_7d2bf3f2ff3349149f8507376ac51b9e\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_6953c3d682e04738adf58ccec61219ac\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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\":null,\"parcel\":{\"id\":\"prcl_57546dcf1ba148c8ae8c83c440585b32\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_d28207c54c5f41a48428e2a285bc9440\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b7bef525c67447d6841ce66e8e65c81c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_213e980aeb4f4c31b1acb7d2947b4a3e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86b26339bb7f4defb2a66595267c4eee\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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_63c40aa5523e4126916da19b7d5c6d00\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8bb26e79b06c7001cffd4" + "value": "32e015f66569027cf45138ed0030a941" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_8452279079f544139abc0838723b2a8f" + "value": "/api/v2/shipments/shp_63c40aa5523e4126916da19b7d5c6d00" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"d5fc2c8f05a61dfb6abe16f3b46aa7a2\"" - }, { "name": "x-runtime", - "value": "4.556043" + "value": "0.339299" }, { "name": "content-encoding", @@ -123,23 +119,19 @@ }, { "name": "x-node", - "value": "bigweb32nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -150,14 +142,14 @@ "value": "close" } ], - "headersSize": 838, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_8452279079f544139abc0838723b2a8f", + "redirectURL": "/api/v2/shipments/shp_63c40aa5523e4126916da19b7d5c6d00", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:18.391Z", - "time": 4998, + "startedDateTime": "2023-11-30T21:45:32.157Z", + "time": 701, "timings": { "blocked": -1, "connect": -1, @@ -165,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 4998 + "wait": 701 } }, { - "_id": "6d83015508266a6094f2a70c2ceab42a", + "_id": "200630e2260ce71ed1e2ce321fb18345", "_order": 0, "cache": {}, "request": { - "bodySize": 77, + "bodySize": 55, "cookies": [], "headers": [ { @@ -190,7 +182,7 @@ }, { "name": "content-length", - "value": 77 + "value": 55 }, { "name": "host", @@ -203,18 +195,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"rate\":{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\"},\"carbon_offset\":false}" + "text": "{\"rate\":{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\"}}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_8452279079f544139abc0838723b2a8f/buy" + "url": "https://api.easypost.com/v2/shipments/shp_63c40aa5523e4126916da19b7d5c6d00/buy" }, "response": { - "bodySize": 2755, + "bodySize": 2762, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2755, - "text": "{\"created_at\":\"2023-09-06T17:47:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924671\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d9f483e9c4fe49f08cd2c67ff1bc15d3\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_005be63c353d4bc5b9fe27d2e2f16578\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_a778af32dfcb484eb6b016e8ec40e61f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_cc49568797eb40fbba7dd85f4c437d3b\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:24Z\",\"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/20230906/e8d48ba629f7854995830aed3bccdfa249.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_2890bb98b97f42fe85f9c66afc3c1be6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_261b3adf717e47ef838b4e614c89121e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b28c461940514e31a9747def31022f69\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36dee43a498f45a5a540e7ea64ddf337\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_a1fa3a6949b248c1ba96d5169beda967\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924671\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8452279079f544139abc0838723b2a8f\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2ExZmEzYTY5NDliMjQ4YzFiYTk2ZDUxNjliZWRhOTY3\"},\"to_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47:23+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":{}},\"buyer_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47:23+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8452279079f544139abc0838723b2a8f\",\"object\":\"Shipment\"}" + "size": 2762, + "text": "{\"created_at\":\"2023-11-30T21:45:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416714\",\"updated_at\":\"2023-11-30T21:45:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_7d2bf3f2ff3349149f8507376ac51b9e\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_6953c3d682e04738adf58ccec61219ac\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_57546dcf1ba148c8ae8c83c440585b32\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fa7799788fe94b659b95e0c8495a4285\",\"created_at\":\"2023-11-30T21:45:34Z\",\"updated_at\":\"2023-11-30T21:45:35Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:34Z\",\"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/20231130/e84de942f8e73448438c1d8d364d999e9e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_d28207c54c5f41a48428e2a285bc9440\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b7bef525c67447d6841ce66e8e65c81c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_213e980aeb4f4c31b1acb7d2947b4a3e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86b26339bb7f4defb2a66595267c4eee\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:34Z\",\"updated_at\":\"2023-11-30T21:45:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_85d679d89075471fb0b348860a048187\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416714\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:35Z\",\"updated_at\":\"2023-11-30T21:45:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_63c40aa5523e4126916da19b7d5c6d00\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzg1ZDY3OWQ4OTA3NTQ3MWZiMGIzNDg4NjBhMDQ4MTg3\"},\"to_address\":{\"id\":\"adr_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:33+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_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:33+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_63c40aa5523e4126916da19b7d5c6d00\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -244,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8bb2be79b06c8001d018e" + "value": "32e015f56569027df40a89b30030a9d8" }, { "name": "cache-control", @@ -262,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"45e98def236c328404af81746edfb9d9\"" - }, { "name": "x-runtime", - "value": "0.956528" + "value": "2.083671" }, { "name": "content-encoding", @@ -280,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb33nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -292,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:23.395Z", - "time": 1426, + "startedDateTime": "2023-11-30T21:45:32.863Z", + "time": 2251, "timings": { "blocked": -1, "connect": -1, @@ -318,11 +306,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1426 + "wait": 2251 } }, { - "_id": "ae210b484a0afc9455f152046634e71b", + "_id": "13e13a45bdd862f89919610b52d51741", "_order": 0, "cache": {}, "request": { @@ -355,15 +343,15 @@ "value": "ZPL" } ], - "url": "https://api.easypost.com/v2/shipments/shp_8452279079f544139abc0838723b2a8f/label?file_format=ZPL" + "url": "https://api.easypost.com/v2/shipments/shp_63c40aa5523e4126916da19b7d5c6d00/label?file_format=ZPL" }, "response": { - "bodySize": 3170, + "bodySize": 3178, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 3170, - "text": "{\"created_at\":\"2023-09-06T17:47:18Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924671\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_d9f483e9c4fe49f08cd2c67ff1bc15d3\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_005be63c353d4bc5b9fe27d2e2f16578\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_a778af32dfcb484eb6b016e8ec40e61f\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:18Z\",\"updated_at\":\"2023-09-06T17:47:18Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_cc49568797eb40fbba7dd85f4c437d3b\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:26Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:24Z\",\"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/20230906/e8d48ba629f7854995830aed3bccdfa249.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20230906/5c8ea0aa0db349b4a935cd2364030395.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_2890bb98b97f42fe85f9c66afc3c1be6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_261b3adf717e47ef838b4e614c89121e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b28c461940514e31a9747def31022f69\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36dee43a498f45a5a540e7ea64ddf337\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:23Z\",\"updated_at\":\"2023-09-06T17:47:23Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_bab666dd679e4c80a8d3331110815ea8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8452279079f544139abc0838723b2a8f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_a1fa3a6949b248c1ba96d5169beda967\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924671\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:47:24Z\",\"updated_at\":\"2023-09-06T17:47:24Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:47:24Z\",\"shipment_id\":\"shp_8452279079f544139abc0838723b2a8f\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:47:24Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:24:24Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrX2ExZmEzYTY5NDliMjQ4YzFiYTk2ZDUxNjliZWRhOTY3\"},\"to_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47:23+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_6c9440014cdd11eea96f3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":{}},\"buyer_address\":{\"id\":\"adr_6c91c5314cdd11ee9f60ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:18+00:00\",\"updated_at\":\"2023-09-06T17:47:23+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8452279079f544139abc0838723b2a8f\",\"object\":\"Shipment\"}" + "size": 3178, + "text": "{\"created_at\":\"2023-11-30T21:45:32Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416714\",\"updated_at\":\"2023-11-30T21:45:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_7d2bf3f2ff3349149f8507376ac51b9e\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_6953c3d682e04738adf58ccec61219ac\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_57546dcf1ba148c8ae8c83c440585b32\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fa7799788fe94b659b95e0c8495a4285\",\"created_at\":\"2023-11-30T21:45:34Z\",\"updated_at\":\"2023-11-30T21:45:36Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:34Z\",\"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/20231130/e84de942f8e73448438c1d8d364d999e9e.png\",\"label_pdf_url\":null,\"label_zpl_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231130/b7e360f8c4a141f596adaec898fd72bc.zpl\",\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_d28207c54c5f41a48428e2a285bc9440\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b7bef525c67447d6841ce66e8e65c81c\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_213e980aeb4f4c31b1acb7d2947b4a3e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86b26339bb7f4defb2a66595267c4eee\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_eac631a0b88241caa80d1b1fbc8aa0b2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:34Z\",\"updated_at\":\"2023-11-30T21:45:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_63c40aa5523e4126916da19b7d5c6d00\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_85d679d89075471fb0b348860a048187\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416714\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:35Z\",\"updated_at\":\"2023-11-30T21:45:35Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:35Z\",\"shipment_id\":\"shp_63c40aa5523e4126916da19b7d5c6d00\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:35Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzg1ZDY3OWQ4OTA3NTQ3MWZiMGIzNDg4NjBhMDQ4MTg3\"},\"to_address\":{\"id\":\"adr_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:33+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_c96701ec8fc911ee9d3b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:32+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_c96469988fc911eea3ecac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:32+00:00\",\"updated_at\":\"2023-11-30T21:45:33+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_63c40aa5523e4126916da19b7d5c6d00\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -393,7 +381,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8bb2de79b06c9001d021f" + "value": "32e015f66569027ff441d16e0030abdf" }, { "name": "cache-control", @@ -411,13 +399,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"55b284f980bc6b0a12e36adcfc39a4ff\"" - }, { "name": "x-runtime", - "value": "1.380631" + "value": "1.606500" }, { "name": "content-encoding", @@ -429,23 +413,19 @@ }, { "name": "x-node", - "value": "bigweb43nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -456,14 +436,14 @@ "value": "close" } ], - "headersSize": 772, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:24.827Z", - "time": 1837, + "startedDateTime": "2023-11-30T21:45:35.119Z", + "time": 1758, "timings": { "blocked": -1, "connect": -1, @@ -471,7 +451,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1837 + "wait": 1758 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/create-a-shipment-with-carbon-offset_989550468/recording.har b/test/cassettes/Shipment-Service_2987889512/create-a-shipment-with-carbon-offset_989550468/recording.har deleted file mode 100644 index 65c672b5e..000000000 --- a/test/cassettes/Shipment-Service_2987889512/create-a-shipment-with-carbon-offset_989550468/recording.har +++ /dev/null @@ -1,171 +0,0 @@ -{ - "log": { - "_recordingName": "Shipment Service/create a shipment with carbon offset", - "creator": { - "comment": "persister:fs", - "name": "Polly.JS", - "version": "6.0.5" - }, - "entries": [ - { - "_id": "930c2ada284501be6027f61489036d96", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 472, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 472 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 390, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":true}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments" - }, - "response": { - "bodySize": 1571, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 1571, - "text": "{\"created_at\":\"2023-09-06T17:49:55Z\",\"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-09-06T17:49:55Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c9d945374cdd11ee9b223cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:55+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":null,\"parcel\":{\"id\":\"prcl_cbe9160b03cf4262b3a58b83e1f07edc\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:49:55Z\",\"updated_at\":\"2023-09-06T17:49:55Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_c5d8db1ae0be4f19a3a74272be76afd5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_717cf90a3afb4619b99a9d3f71b5119c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_6cdad398fdec484c81198c73a81d1bc5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_717cf90a3afb4619b99a9d3f71b5119c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_049770bd0b8d4102a06899c3b276fdfe\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_717cf90a3afb4619b99a9d3f71b5119c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_eb6f8b542fb04fd1828a09b29b1b89bc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_717cf90a3afb4619b99a9d3f71b5119c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_15391b204628461f91761db7ef9fbefe\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:56Z\",\"updated_at\":\"2023-09-06T17:49: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_717cf90a3afb4619b99a9d3f71b5119c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c9d6d0964cdd11ee9b203cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:55+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_c9d945374cdd11ee9b223cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:55+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":{}},\"buyer_address\":{\"id\":\"adr_c9d6d0964cdd11ee9b203cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:49:55+00:00\",\"updated_at\":\"2023-09-06T17:49: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\":\"\",\"mode\":\"test\",\"carrier_facility\":null,\"residential\":null,\"federal_tax_id\":null,\"state_tax_id\":null,\"verifications\":{}},\"forms\":[],\"fees\":[],\"id\":\"shp_717cf90a3afb4619b99a9d3f71b5119c\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bbc3e79b0ac9001d50e4" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "location", - "value": "/api/v2/shipments/shp_717cf90a3afb4619b99a9d3f71b5119c" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"f03066ed222eb0200d1f770bfac53808\"" - }, - { - "name": "x-runtime", - "value": "1.124064" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb40nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 820, - "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_717cf90a3afb4619b99a9d3f71b5119c", - "status": 201, - "statusText": "Created" - }, - "startedDateTime": "2023-09-06T17:49:54.905Z", - "time": 1578, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1578 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-when-only-IDs-are-used_3469201880/recording.har b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-when-only-IDs-are-used_3469201880/recording.har index b5efc9257..a6304d183 100644 --- a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-when-only-IDs-are-used_3469201880/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-when-only-IDs-are-used_3469201880/recording.har @@ -479,11 +479,11 @@ } }, { - "_id": "87d487860fb3962fe828e8d58bf26688", + "_id": "00d74f6bde7fc4838d69e6c18514f6da", "_order": 0, "cache": {}, "request": { - "bodySize": 212, + "bodySize": 190, "cookies": [], "headers": [ { @@ -500,7 +500,7 @@ }, { "name": "content-length", - "value": 212 + "value": 190 }, { "name": "host", @@ -513,18 +513,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"from_address\":{\"id\":\"adr_608d2f814cdd11ee9c1eac1f6bc539aa\"},\"to_address\":{\"id\":\"adr_60d39e334cdd11eea2ea3cecef1b359e\"},\"parcel\":{\"id\":\"prcl_468b564bcbf74ea58d1f683bb32b905c\"}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"from_address\":{\"id\":\"adr_608d2f814cdd11ee9c1eac1f6bc539aa\"},\"to_address\":{\"id\":\"adr_60d39e334cdd11eea2ea3cecef1b359e\"},\"parcel\":{\"id\":\"prcl_468b564bcbf74ea58d1f683bb32b905c\"}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1552, + "bodySize": 1568, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1552, - "text": "{\"created_at\":\"2023-09-06T17:47:00Z\",\"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-09-06T17:47:00Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_608d2f814cdd11ee9c1eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:58+00:00\",\"updated_at\":\"2023-09-06T17:46:58+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\":null,\"parcel\":{\"id\":\"prcl_468b564bcbf74ea58d1f683bb32b905c\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:59Z\",\"updated_at\":\"2023-09-06T17:46:59Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a9af1fd504ca4b29830ec31ecb45616e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:00Z\",\"updated_at\":\"2023-09-06T17:47:00Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_e9cc2c96181348419eb0308e6a74d2ce\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7c2ef1a993654975996bb5881c8d8436\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:00Z\",\"updated_at\":\"2023-09-06T17:47:00Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e9cc2c96181348419eb0308e6a74d2ce\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b938dc5677754dde8bf57f9cd0ed1782\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:00Z\",\"updated_at\":\"2023-09-06T17:47:00Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e9cc2c96181348419eb0308e6a74d2ce\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ae3c2189db2947a48aeafcc387ded205\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:00Z\",\"updated_at\":\"2023-09-06T17:47:00Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e9cc2c96181348419eb0308e6a74d2ce\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0585f9d1effa4b25a8387b78b798e594\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:00Z\",\"updated_at\":\"2023-09-06T17:47:00Z\",\"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_e9cc2c96181348419eb0308e6a74d2ce\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_60d39e334cdd11eea2ea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:59+00:00\",\"updated_at\":\"2023-09-06T17:46:59+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_608d2f814cdd11ee9c1eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:58+00:00\",\"updated_at\":\"2023-09-06T17:46:58+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_60d39e334cdd11eea2ea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:59+00:00\",\"updated_at\":\"2023-09-06T17:46:59+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_e9cc2c96181348419eb0308e6a74d2ce\",\"object\":\"Shipment\"}" + "size": 1568, + "text": "{\"created_at\":\"2023-11-30T21:45:28Z\",\"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-11-30T21:45:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_608d2f814cdd11ee9c1eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:58+00:00\",\"updated_at\":\"2023-09-06T17:46:58+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\":null,\"parcel\":{\"id\":\"prcl_468b564bcbf74ea58d1f683bb32b905c\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:59Z\",\"updated_at\":\"2023-09-06T17:46:59Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_10d3852e2eb54cd4a0ec0f5ec5f66919\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_55971c96c5f74400972bb2456005395e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_12a390c4717746aa968f9471788cf895\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_55971c96c5f74400972bb2456005395e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_851a8a1c9e454335aab68413748cddfe\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_55971c96c5f74400972bb2456005395e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3db7b9bfd8174f6e845fee9b35fe00a9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"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_55971c96c5f74400972bb2456005395e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b5160681be09463bb0bcf28155f20ff8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_55971c96c5f74400972bb2456005395e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_60d39e334cdd11eea2ea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:59+00:00\",\"updated_at\":\"2023-09-06T17:46:59+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_608d2f814cdd11ee9c1eac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:58+00:00\",\"updated_at\":\"2023-09-06T17:46:58+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_60d39e334cdd11eea2ea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:59+00:00\",\"updated_at\":\"2023-09-06T17:46:59+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_55971c96c5f74400972bb2456005395e\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -554,7 +554,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49764f8bb13e79b06a2001cf972" + "value": "32e015f965690278f4425e330030a557" }, { "name": "cache-control", @@ -570,19 +570,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_e9cc2c96181348419eb0308e6a74d2ce" + "value": "/api/v2/shipments/shp_55971c96c5f74400972bb2456005395e" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"5cc9e3099be0bd124088191884af0498\"" - }, { "name": "x-runtime", - "value": "0.957858" + "value": "0.282013" }, { "name": "content-encoding", @@ -594,11 +590,11 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -606,7 +602,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -617,14 +613,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_e9cc2c96181348419eb0308e6a74d2ce", + "redirectURL": "/api/v2/shipments/shp_55971c96c5f74400972bb2456005395e", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:59.582Z", - "time": 1383, + "startedDateTime": "2023-11-30T21:45:28.035Z", + "time": 422, "timings": { "blocked": -1, "connect": -1, @@ -632,7 +628,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1383 + "wait": 422 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-empty-or-null-objects-and-arrays_3556538065/recording.har b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-empty-or-null-objects-and-arrays_3556538065/recording.har index bbbf64854..ec84c6345 100644 --- a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-empty-or-null-objects-and-arrays_3556538065/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-empty-or-null-objects-and-arrays_3556538065/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "6f41436cea6773c57e399146895b5cff", + "_id": "4aefbfca5f7c89856da2d2c2c4942536", "_order": 0, "cache": {}, "request": { - "bodySize": 521, + "bodySize": 499, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 521 + "value": 499 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":[],\"options\":null,\"reference\":\"\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":[],\"options\":null,\"reference\":\"\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1524, + "bodySize": 1519, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1524, - "text": "{\"created_at\":\"2023-09-06T17:46:56Z\",\"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-09-06T17:46:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5f139d4d4cdd11ee8384ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:56+00:00\",\"updated_at\":\"2023-09-06T17:46:56+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\":null,\"parcel\":{\"id\":\"prcl_aa6706fea20d4c32bcfc418436e9eaa3\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46:56Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_32d1f421b13745dcb809f14052d87af5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46:56Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_9cf851b6fca54fa1ae6662ef35fed205\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8ad63f50551a4334a1d8528da59f843a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46:56Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9cf851b6fca54fa1ae6662ef35fed205\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0b1b6c51880644b2a7b2918b2acf53d7\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46:56Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9cf851b6fca54fa1ae6662ef35fed205\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_68a54a3842a6415fad1ba315f6bc91a6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46:56Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_9cf851b6fca54fa1ae6662ef35fed205\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_84942813b1294fa182dcfd578b976e45\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:56Z\",\"updated_at\":\"2023-09-06T17:46: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_9cf851b6fca54fa1ae6662ef35fed205\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5f119d924cdd11ee9b3bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:56+00:00\",\"updated_at\":\"2023-09-06T17:46:56+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_5f139d4d4cdd11ee8384ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:56+00:00\",\"updated_at\":\"2023-09-06T17:46:56+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_5f119d924cdd11ee9b3bac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:56+00:00\",\"updated_at\":\"2023-09-06T17:46:56+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_9cf851b6fca54fa1ae6662ef35fed205\",\"object\":\"Shipment\"}" + "size": 1519, + "text": "{\"created_at\":\"2023-11-30T21:45:27Z\",\"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-11-30T21:45:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c649d7bb8fc911eea1a3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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\":null,\"parcel\":{\"id\":\"prcl_c1362e1c1e6b4c5e9f8d4652171d5dfe\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9187bc1c81dc42a89ab4b82b0ba9bb09\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"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_92b02dbb5e534274977082f31490863e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4abd25ec83174d9d92c07afe365a61e9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_92b02dbb5e534274977082f31490863e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3395d4c594ae4695a98907de19bd10b9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_92b02dbb5e534274977082f31490863e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_640641baedf14ff790bc8e13e0875137\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_92b02dbb5e534274977082f31490863e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cac74ed02fb14fc5828f70de739c2d0b\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_92b02dbb5e534274977082f31490863e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c64701208fc911ee9bbe3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_c649d7bb8fc911eea1a3ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_c64701208fc911ee9bbe3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_92b02dbb5e534274977082f31490863e\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8bb10e79b0683001cf813" + "value": "32e015f665690276f41a6fe90030a403" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_9cf851b6fca54fa1ae6662ef35fed205" + "value": "/api/v2/shipments/shp_92b02dbb5e534274977082f31490863e" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"1be32e68d2e5363b0da8e2f6b3f69b81\"" - }, { "name": "x-runtime", - "value": "0.796248" + "value": "0.620510" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb36nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_9cf851b6fca54fa1ae6662ef35fed205", + "redirectURL": "/api/v2/shipments/shp_92b02dbb5e534274977082f31490863e", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:55.746Z", - "time": 1221, + "startedDateTime": "2023-11-30T21:45:26.672Z", + "time": 758, "timings": { "blocked": -1, "connect": -1, @@ -161,7 +157,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1221 + "wait": 758 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-tax_identifiers_2190110005/recording.har b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-tax_identifiers_2190110005/recording.har index 99bc1774d..ddc90f80d 100644 --- a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-tax_identifiers_2190110005/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment-with-tax_identifiers_2190110005/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "6d9e05b3a425fe960ce04cffc4b95e1e", + "_id": "d27a259de57ecee952594cb906dfd8c7", "_order": 0, "cache": {}, "request": { - "bodySize": 574, + "bodySize": 552, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 574 + "value": 552 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id_type\":\"IOSS\",\"tax_id\":\"12345\",\"issuing_country\":\"GB\"}]},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id_type\":\"IOSS\",\"tax_id\":\"12345\",\"issuing_country\":\"GB\"}]}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1590, + "bodySize": 1602, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1590, - "text": "{\"created_at\":\"2023-09-06T17:46:57Z\",\"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-09-06T17:46:57Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_5fd01c594cdd11ee9bbeac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:57+00:00\",\"updated_at\":\"2023-09-06T17:46:57+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\":null,\"parcel\":{\"id\":\"prcl_830df48d30344ce0a19da3faa55d5164\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:57Z\",\"updated_at\":\"2023-09-06T17:46:57Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_27398016b48148279ed1b328711da166\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:58Z\",\"updated_at\":\"2023-09-06T17:46:58Z\",\"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_eea012d59f12422da881c277f66d8f3c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_23ba01a31b554fb5a8676138736e7b0b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:58Z\",\"updated_at\":\"2023-09-06T17:46:58Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_eea012d59f12422da881c277f66d8f3c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_53939a94970a4db7830fa1681a2432ae\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:58Z\",\"updated_at\":\"2023-09-06T17:46:58Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eea012d59f12422da881c277f66d8f3c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b0a990c8e1aa49179c87e63a0e48e62f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:58Z\",\"updated_at\":\"2023-09-06T17:46:58Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eea012d59f12422da881c277f66d8f3c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_2268be0aa0a44259a3d209a04257993a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:58Z\",\"updated_at\":\"2023-09-06T17:46:58Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eea012d59f12422da881c277f66d8f3c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5fcd62344cdd11ee9bb8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:57+00:00\",\"updated_at\":\"2023-09-06T17:46:57+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_5fd01c594cdd11ee9bbeac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:57+00:00\",\"updated_at\":\"2023-09-06T17:46:57+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_5fcd62344cdd11ee9bb8ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:57+00:00\",\"updated_at\":\"2023-09-06T17:46:57+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_eea012d59f12422da881c277f66d8f3c\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}" + "size": 1602, + "text": "{\"created_at\":\"2023-11-30T21:45:27Z\",\"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-11-30T21:45:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_c690c9448fc911ee97bbac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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\":null,\"parcel\":{\"id\":\"prcl_ba2ab23876134b04a08dae5795beb54a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:27Z\",\"updated_at\":\"2023-11-30T21:45:27Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_5171cd7f5b7444fb9e3a36ce99d80228\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"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_8ee75da9d3f847b1b93606f9d050829c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_465252119bb84e8bba78fc8943c05d9d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8ee75da9d3f847b1b93606f9d050829c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4d110486b936476eb2470757a5486242\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8ee75da9d3f847b1b93606f9d050829c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_38499ed35ddc47038d1a1b58e42ac768\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8ee75da9d3f847b1b93606f9d050829c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7643c3a776ec44d3a2fb260b00a84e22\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8ee75da9d3f847b1b93606f9d050829c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c68ce6d88fc911ee9bdf3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_c690c9448fc911ee97bbac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_c68ce6d88fc911ee9bdf3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:27+00:00\",\"updated_at\":\"2023-11-30T21:45:27+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_8ee75da9d3f847b1b93606f9d050829c\",\"object\":\"Shipment\",\"tax_identifiers\":[{\"entity\":\"SENDER\",\"tax_id\":\"HIDDEN\",\"tax_id_type\":\"IOSS\",\"issuing_country\":\"GB\"}]}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49d64f8bb11e79b0684001cf87f" + "value": "32e015f565690277f40afc280030a4be" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_eea012d59f12422da881c277f66d8f3c" + "value": "/api/v2/shipments/shp_8ee75da9d3f847b1b93606f9d050829c" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"11eaf0c839cddf0b87bed27df363d381\"" - }, { "name": "x-runtime", - "value": "0.825999" + "value": "0.442728" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb31nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_eea012d59f12422da881c277f66d8f3c", + "redirectURL": "/api/v2/shipments/shp_8ee75da9d3f847b1b93606f9d050829c", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:56.975Z", - "time": 1262, + "startedDateTime": "2023-11-30T21:45:27.440Z", + "time": 572, "timings": { "blocked": -1, "connect": -1, @@ -161,7 +157,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1262 + "wait": 572 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment_2399399653/recording.har b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment_2399399653/recording.har index 0cfe2f5c3..60c70e7a0 100644 --- a/test/cassettes/Shipment-Service_2987889512/creates-a-shipment_2399399653/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/creates-a-shipment_2399399653/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1971, + "bodySize": 1958, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1971, - "text": "{\"created_at\":\"2023-09-06T17:46:54Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:46:54Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_bff5a3827f4c46379166106f95088d34\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:46:54Z\",\"updated_at\":\"2023-09-06T17:46:54Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_cbaa652de52d44ab9e7ff1550e360c67\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:46:54Z\",\"updated_at\":\"2023-09-06T17:46:54Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_5e27917d4cdd11eea15c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:54+00:00\",\"updated_at\":\"2023-09-06T17:46:54+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\":null,\"parcel\":{\"id\":\"prcl_02e3a076075d47d9a75600ec4d5800d0\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:46:54Z\",\"updated_at\":\"2023-09-06T17:46:54Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e0ec950e62134b8bbaae74005545aa26\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:55Z\",\"updated_at\":\"2023-09-06T17:46:55Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_77126b65f0c84899b0875f9b8ae544a1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ab32b93569394794a88250f089b508db\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:55Z\",\"updated_at\":\"2023-09-06T17:46:55Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_77126b65f0c84899b0875f9b8ae544a1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c0e25bb4bcab4fba926d68240e4e284b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:55Z\",\"updated_at\":\"2023-09-06T17:46:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_77126b65f0c84899b0875f9b8ae544a1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_238863d0898341d8925f957ecddd8a3c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:55Z\",\"updated_at\":\"2023-09-06T17:46:55Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_77126b65f0c84899b0875f9b8ae544a1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6062b9a89af44fbea4ed86f62334e920\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:46:55Z\",\"updated_at\":\"2023-09-06T17:46:55Z\",\"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_77126b65f0c84899b0875f9b8ae544a1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_5e228b044cdd11ee9709ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:54+00:00\",\"updated_at\":\"2023-09-06T17:46:54+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_5e27917d4cdd11eea15c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:54+00:00\",\"updated_at\":\"2023-09-06T17:46:54+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_5e228b044cdd11ee9709ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:46:54+00:00\",\"updated_at\":\"2023-09-06T17:46:54+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_77126b65f0c84899b0875f9b8ae544a1\",\"object\":\"Shipment\"}" + "size": 1958, + "text": "{\"created_at\":\"2023-11-30T21:45:26Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:26Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_c4fda3eb14b9425e8b4b971fc0eb8d25\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_bbddd947eb2245078d21ab17f7df7400\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c5d194948fc911ee9b833cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:26+00:00\",\"updated_at\":\"2023-11-30T21:45:26+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\":null,\"parcel\":{\"id\":\"prcl_268a7763e8c44c1ab0e329ad1c0edf90\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_3a8934a49e1248f684ce7224bd30c2a0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_efd0a836aeae411fbdfcef1aab712e1a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_10952e05d38444fdbf02d7c551933341\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f4f8fe577ced45ff9bd929c7d2e66111\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fec58875532447b99ca60de76c317ffc\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:26Z\",\"updated_at\":\"2023-11-30T21:45:26Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c5cf6d948fc911ee974bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:26+00:00\",\"updated_at\":\"2023-11-30T21:45:26+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_c5d194948fc911ee9b833cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:26+00:00\",\"updated_at\":\"2023-11-30T21:45:26+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_c5cf6d948fc911ee974bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:26+00:00\",\"updated_at\":\"2023-11-30T21:45:26+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_ab9fe569fe7f4c1eaa933a992cb2599c\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49964f8bb0ee79b0680001cf796" + "value": "32e015f465690276f40b808c0030a395" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_77126b65f0c84899b0875f9b8ae544a1" + "value": "/api/v2/shipments/shp_ab9fe569fe7f4c1eaa933a992cb2599c" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"7ed4f81a8358de7022e20c73da686eae\"" - }, { "name": "x-runtime", - "value": "1.090290" + "value": "0.328373" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb33nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_77126b65f0c84899b0875f9b8ae544a1", + "redirectURL": "/api/v2/shipments/shp_ab9fe569fe7f4c1eaa933a992cb2599c", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:46:54.169Z", - "time": 1570, + "startedDateTime": "2023-11-30T21:45:26.182Z", + "time": 481, "timings": { "blocked": -1, "connect": -1, @@ -161,7 +157,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1570 + "wait": 481 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/generates-a-form-for-a-shipment_1612844164/recording.har b/test/cassettes/Shipment-Service_2987889512/generates-a-form-for-a-shipment_1612844164/recording.har index 928eb2d4d..442706cea 100644 --- a/test/cassettes/Shipment-Service_2987889512/generates-a-form-for-a-shipment_1612844164/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/generates-a-form-for-a-shipment_1612844164/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2312, + "bodySize": 2318, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2312, - "text": "{\"created_at\":\"2023-09-06T17:47:47Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924930\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7db055894cdd11eeabefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb39fa613f774aa4ae604f90174dfede\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ec58dd8ad0f64daf9efe3c606c9f31f0\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:48Z\",\"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/20230906/e87cabf27916b14f32a821154cb66db384.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_722f496e3acc472faf2d1586540eaefc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a1a218ad9659401595e4ac6aaccef241\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ba46cf4c048e4c469248b5e757834de0\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_086070ebd65e4842889fa4831b0a8549\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_631a52a0c77e424081b28fcddf26e6bc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_086070ebd65e4842889fa4831b0a8549\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9908d378424443abb1ddf01d8e0be44c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924930\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_bd24f79f246148f0a846f941a4a76639\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzk5MDhkMzc4NDI0NDQzYWJiMWRkZjAxZDhlMGJlNDRj\"},\"to_address\":{\"id\":\"adr_7dada1a44cdd11eea8a0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_7db055894cdd11eeabefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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_7dada1a44cdd11eea8a0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bd24f79f246148f0a846f941a4a76639\",\"object\":\"Shipment\"}" + "size": 2318, + "text": "{\"created_at\":\"2023-11-30T21:45:51Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416813\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d47e1a2e8fc911ee9f88ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_030f4213cb744a63baf54b5f64f9974e\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_066ee35567ad4c94a2518f2c89a09504\",\"created_at\":\"2023-11-30T21:45:55Z\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:55Z\",\"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/20231130/e8c9de71cff5f14ca88db8ad87082becf6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7de0588815824cf4aec51827d06ef1c6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_625d9003643b46708d64cb5268bb65c3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_320ca4a1a58543d8af412dd41120f5c2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_38837127412847baa26ecf208e89d457\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_faae1f9a6bc945b48c9c4a9b2abfa738\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_38837127412847baa26ecf208e89d457\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:55Z\",\"updated_at\":\"2023-11-30T21:45:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9c3a635b7b7c4175b3ce85480a182efb\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416813\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:56Z\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_f4b0061e866547dab2123dce331162aa\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzljM2E2MzViN2I3YzQxNzViM2NlODU0ODBhMTgyZWZi\"},\"to_address\":{\"id\":\"adr_d47ba6428fc911ee9f87ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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_d47e1a2e8fc911ee9f88ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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_d47ba6428fc911ee9f87ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f4b0061e866547dab2123dce331162aa\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7d64f8bb43e79b070b001d1d2b" + "value": "32e015f36569028ef40b880c0030b9a0" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_bd24f79f246148f0a846f941a4a76639" + "value": "/api/v2/shipments/shp_f4b0061e866547dab2123dce331162aa" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"23fa9930cf237ce223345a95de2d194d\"" - }, { "name": "x-runtime", - "value": "1.068046" + "value": "5.388991" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb36nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_bd24f79f246148f0a846f941a4a76639", + "redirectURL": "/api/v2/shipments/shp_f4b0061e866547dab2123dce331162aa", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:47.121Z", - "time": 1460, + "startedDateTime": "2023-11-30T21:45:50.680Z", + "time": 5529, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1460 + "wait": 5529 } }, { - "_id": "f6d3822dbf6e9511b4d0930ea9248277", + "_id": "6d349764a22ad5cc911df58ba5d952c0", "_order": 0, "cache": {}, "request": { @@ -202,15 +198,15 @@ "text": "{\"form\":{\"barcode\":\"RMA12345678900\",\"line_items\":[{\"product\":{\"title\":\"Square Reader\",\"barcode\":\"855658003251\"},\"units\":8}],\"type\":\"return_packing_slip\"}}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_bd24f79f246148f0a846f941a4a76639/forms" + "url": "https://api.easypost.com/v2/shipments/shp_f4b0061e866547dab2123dce331162aa/forms" }, "response": { - "bodySize": 2840, + "bodySize": 2843, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2840, - "text": "{\"created_at\":\"2023-09-06T17:47:47Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924930\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7db055894cdd11eeabefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_eb39fa613f774aa4ae604f90174dfede\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_ec58dd8ad0f64daf9efe3c606c9f31f0\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:48Z\",\"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/20230906/e87cabf27916b14f32a821154cb66db384.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_722f496e3acc472faf2d1586540eaefc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a1a218ad9659401595e4ac6aaccef241\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ba46cf4c048e4c469248b5e757834de0\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_086070ebd65e4842889fa4831b0a8549\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_631a52a0c77e424081b28fcddf26e6bc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:47Z\",\"updated_at\":\"2023-09-06T17:47:47Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_086070ebd65e4842889fa4831b0a8549\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bd24f79f246148f0a846f941a4a76639\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9908d378424443abb1ddf01d8e0be44c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924930\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:47:48Z\",\"updated_at\":\"2023-09-06T17:47:48Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:47:48Z\",\"shipment_id\":\"shp_bd24f79f246148f0a846f941a4a76639\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:47:48Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:24:48Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzk5MDhkMzc4NDI0NDQzYWJiMWRkZjAxZDhlMGJlNDRj\"},\"to_address\":{\"id\":\"adr_7dada1a44cdd11eea8a0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_7db055894cdd11eeabefac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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_7dada1a44cdd11eea8a0ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:47+00:00\",\"updated_at\":\"2023-09-06T17:47:47+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\"}}}},\"forms\":[{\"object\":\"Form\",\"id\":\"form_186023f8ac5445358954872bb674a607\",\"created_at\":\"2023-09-06T17:47:49Z\",\"updated_at\":\"2023-09-06T17:47:49Z\",\"mode\":\"test\",\"form_type\":\"return_packing_slip\",\"form_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20230906/fdb6a4e1d8104337b8773b219dcfbcfe.pdf\",\"submitted_electronically\":null}],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_bd24f79f246148f0a846f941a4a76639\",\"object\":\"Shipment\"}" + "size": 2843, + "text": "{\"created_at\":\"2023-11-30T21:45:51Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416813\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d47e1a2e8fc911ee9f88ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_030f4213cb744a63baf54b5f64f9974e\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_066ee35567ad4c94a2518f2c89a09504\",\"created_at\":\"2023-11-30T21:45:55Z\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:55Z\",\"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/20231130/e8c9de71cff5f14ca88db8ad87082becf6.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_7de0588815824cf4aec51827d06ef1c6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_625d9003643b46708d64cb5268bb65c3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_320ca4a1a58543d8af412dd41120f5c2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_38837127412847baa26ecf208e89d457\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_faae1f9a6bc945b48c9c4a9b2abfa738\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:51Z\",\"updated_at\":\"2023-11-30T21:45:51Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_38837127412847baa26ecf208e89d457\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:55Z\",\"updated_at\":\"2023-11-30T21:45:55Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_f4b0061e866547dab2123dce331162aa\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_9c3a635b7b7c4175b3ce85480a182efb\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416813\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:56Z\",\"updated_at\":\"2023-11-30T21:45:56Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:56Z\",\"shipment_id\":\"shp_f4b0061e866547dab2123dce331162aa\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:56Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:56Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzljM2E2MzViN2I3YzQxNzViM2NlODU0ODBhMTgyZWZi\"},\"to_address\":{\"id\":\"adr_d47ba6428fc911ee9f87ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_d47e1a2e8fc911ee9f88ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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_d47ba6428fc911ee9f87ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:51+00:00\",\"updated_at\":\"2023-11-30T21:45:51+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\"}}}},\"forms\":[{\"object\":\"Form\",\"id\":\"form_19d8703a697f4e5fadd4af09586d0750\",\"created_at\":\"2023-11-30T21:45:56Z\",\"updated_at\":\"2023-11-30T21:45:57Z\",\"mode\":\"test\",\"form_type\":\"return_packing_slip\",\"form_url\":\"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231130/906a0716b2ce465cada76480d2611bd7.pdf\",\"submitted_electronically\":null}],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_f4b0061e866547dab2123dce331162aa\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bb44e79b070c001d1dc3" + "value": "32e015f565690294f3f8d7280030be49" }, { "name": "cache-control", @@ -256,19 +252,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_bd24f79f246148f0a846f941a4a76639/forms/return_packing_slip" + "value": "/api/v2/shipments/shp_f4b0061e866547dab2123dce331162aa/forms/return_packing_slip" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"88ed5a794d03ac450e9cd772407b1c33\"" - }, { "name": "x-runtime", - "value": "0.652162" + "value": "0.757558" }, { "name": "content-encoding", @@ -280,11 +272,11 @@ }, { "name": "x-node", - "value": "bigweb42nuq" + "value": "bigweb33nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -292,7 +284,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -303,14 +295,14 @@ "value": "close" } ], - "headersSize": 846, + "headersSize": 802, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_bd24f79f246148f0a846f941a4a76639/forms/return_packing_slip", + "redirectURL": "/api/v2/shipments/shp_f4b0061e866547dab2123dce331162aa/forms/return_packing_slip", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:48.587Z", - "time": 1120, + "startedDateTime": "2023-11-30T21:45:56.214Z", + "time": 1072, "timings": { "blocked": -1, "connect": -1, @@ -318,7 +310,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1120 + "wait": 1072 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-rate_906620131/recording.har b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-rate_906620131/recording.har index 32c73bb61..9a6e3781d 100644 --- a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-rate_906620131/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-rate_906620131/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1940, + "bodySize": 1974, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1940, - "text": "{\"created_at\":\"2023-09-06T17:47:33Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:33Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_da27f084b2e44454aa8aa5eca518dce2\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:33Z\",\"updated_at\":\"2023-09-06T17:47:33Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_5bdf047f12ff4d09b4a1a30b19869997\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:33Z\",\"updated_at\":\"2023-09-06T17:47:33Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_752160404cdd11eeaddd3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:33+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":null,\"parcel\":{\"id\":\"prcl_0eff06465b254cdb8b1f3c2cd1186a33\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:33Z\",\"updated_at\":\"2023-09-06T17:47:33Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_34790354c8f046d498a8b434c1fb8ca1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"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_8578c024f63f4c1eb0bb17bec44b5532\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3c02cdbc4aeb46ad9a3ba1a7140cc8f5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8578c024f63f4c1eb0bb17bec44b5532\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_afe10783990145a7bbc0613d36480b15\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8578c024f63f4c1eb0bb17bec44b5532\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_56a66c2f053e4aa6b5dea228052b47ca\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8578c024f63f4c1eb0bb17bec44b5532\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c49fc7f35d5f42ddac0505618c0e897c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8578c024f63f4c1eb0bb17bec44b5532\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_751f58b74cdd11eeadda3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:33+00:00\",\"updated_at\":\"2023-09-06T17:47: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_752160404cdd11eeaddd3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:33+00:00\",\"updated_at\":\"2023-09-06T17:47: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_751f58b74cdd11eeadda3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:33+00:00\",\"updated_at\":\"2023-09-06T17:47: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_8578c024f63f4c1eb0bb17bec44b5532\",\"object\":\"Shipment\"}" + "size": 1974, + "text": "{\"created_at\":\"2023-11-30T21:45:44Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:44Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_f4794516c54f4f37be0671c7123d9f7b\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:44Z\",\"updated_at\":\"2023-11-30T21:45:44Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_80d26ca210d044dc89132384429d7f70\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:44Z\",\"updated_at\":\"2023-11-30T21:45:44Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_d0bfd2348fc911eea17a3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:44+00:00\",\"updated_at\":\"2023-11-30T21:45:44+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\":null,\"parcel\":{\"id\":\"prcl_15d7a0e388544a3f9b4eecb2dfc81059\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:44Z\",\"updated_at\":\"2023-11-30T21:45:44Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_4d40db3394034136be66b1a4ec2c1dab\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a828639a986d48e987ea8df1c9392963\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_fd190968cfc14e0e80e898ae874ca4c0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a828639a986d48e987ea8df1c9392963\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_46d87ab8ad5b43089f62b73a5e6961b5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_a828639a986d48e987ea8df1c9392963\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d7e753b693d3411f878dd92beabad8bd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"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_a828639a986d48e987ea8df1c9392963\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_df2f7d88e2414129a20e41e95ba46593\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_a828639a986d48e987ea8df1c9392963\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d0bd32988fc911ee9d7eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:44+00:00\",\"updated_at\":\"2023-11-30T21:45:44+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_d0bfd2348fc911eea17a3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:44+00:00\",\"updated_at\":\"2023-11-30T21:45:44+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_d0bd32988fc911ee9d7eac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:44+00:00\",\"updated_at\":\"2023-11-30T21:45:44+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_a828639a986d48e987ea8df1c9392963\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8bb35e79b06e7001d04ed" + "value": "32e015f665690288f02182810030b3e5" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_8578c024f63f4c1eb0bb17bec44b5532" + "value": "/api/v2/shipments/shp_a828639a986d48e987ea8df1c9392963" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"a8aa7fa79b97e87e68b76a8e3c286190\"" - }, { "name": "x-runtime", - "value": "0.942629" + "value": "0.398491" }, { "name": "content-encoding", @@ -123,23 +119,19 @@ }, { "name": "x-node", - "value": "bigweb32nuq" + "value": "bigweb41nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -150,14 +142,14 @@ "value": "close" } ], - "headersSize": 838, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_8578c024f63f4c1eb0bb17bec44b5532", + "redirectURL": "/api/v2/shipments/shp_a828639a986d48e987ea8df1c9392963", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:32.748Z", - "time": 1397, + "startedDateTime": "2023-11-30T21:45:44.516Z", + "time": 540, "timings": { "blocked": -1, "connect": -1, @@ -165,7 +157,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1397 + "wait": 540 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate-from-a-list-of-smartRates_633846746/recording.har b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate-from-a-list-of-smartRates_633846746/recording.har index 96c97bebc..1b0c0de3b 100644 --- a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate-from-a-list-of-smartRates_633846746/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate-from-a-list-of-smartRates_633846746/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1535, + "bodySize": 1516, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1535, - "text": "{\"created_at\":\"2023-09-06T17:47:40Z\",\"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-09-06T17:47:40Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_79a7b35a4cdd11eea99cac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:40+00:00\",\"updated_at\":\"2023-09-06T17:47:40+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\":null,\"parcel\":{\"id\":\"prcl_7a264a4b047d46e19fa6de35fef44d07\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:40Z\",\"updated_at\":\"2023-09-06T17:47:40Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_509b655985204246b67d5354736371b5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:41Z\",\"updated_at\":\"2023-09-06T17:47:41Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_af1f21fe8b774be7afe8c69b8e5bb668\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0f5a5d36ad514799b0d686a9fb410b91\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:41Z\",\"updated_at\":\"2023-09-06T17:47:41Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_af1f21fe8b774be7afe8c69b8e5bb668\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_51c5b48c7f92401c8b7251f79b508004\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:41Z\",\"updated_at\":\"2023-09-06T17:47:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_af1f21fe8b774be7afe8c69b8e5bb668\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_eddc16a154d64f11891079c8c8087055\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:41Z\",\"updated_at\":\"2023-09-06T17:47:41Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_af1f21fe8b774be7afe8c69b8e5bb668\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0ae972139242436baace35bde1d1c7a9\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:41Z\",\"updated_at\":\"2023-09-06T17:47:41Z\",\"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_af1f21fe8b774be7afe8c69b8e5bb668\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_79a53a154cdd11eea655ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:40+00:00\",\"updated_at\":\"2023-09-06T17:47:40+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_79a7b35a4cdd11eea99cac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:40+00:00\",\"updated_at\":\"2023-09-06T17:47:40+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_79a53a154cdd11eea655ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:40+00:00\",\"updated_at\":\"2023-09-06T17:47:40+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_af1f21fe8b774be7afe8c69b8e5bb668\",\"object\":\"Shipment\"}" + "size": 1516, + "text": "{\"created_at\":\"2023-11-30T21:45:48Z\",\"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-11-30T21:45:48Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d2f55b618fc911ee9eb4ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:48+00:00\",\"updated_at\":\"2023-11-30T21:45:48+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\":null,\"parcel\":{\"id\":\"prcl_c53506de607f4355971074b05a0687ba\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_35429bc449af48ba808966ce92236db0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_e23c0c4a3c17497a8ca08addbae1c50a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a33a66e32d7e4b25a18211d7c3b22d6f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e23c0c4a3c17497a8ca08addbae1c50a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6d9b27c4152640f7be2c75737b369e0a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e23c0c4a3c17497a8ca08addbae1c50a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_896712295c70428a9d857853a1ec44d0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_e23c0c4a3c17497a8ca08addbae1c50a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_615ea8ebb8e546459d86e4b8e29b1243\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:48Z\",\"updated_at\":\"2023-11-30T21:45:48Z\",\"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_e23c0c4a3c17497a8ca08addbae1c50a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d2f2aafd8fc911ee9eb2ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:48+00:00\",\"updated_at\":\"2023-11-30T21:45:48+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_d2f55b618fc911ee9eb4ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:48+00:00\",\"updated_at\":\"2023-11-30T21:45:48+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_d2f2aafd8fc911ee9eb2ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:48+00:00\",\"updated_at\":\"2023-11-30T21:45:48+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_e23c0c4a3c17497a8ca08addbae1c50a\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7c64f8bb3ce79b0705001d1a8b" + "value": "32e015f76569028cf02201b80030b738" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_af1f21fe8b774be7afe8c69b8e5bb668" + "value": "/api/v2/shipments/shp_e23c0c4a3c17497a8ca08addbae1c50a" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"551ca6e41dca03f2623780e6bea19a2c\"" - }, { "name": "x-runtime", - "value": "1.048364" + "value": "0.318334" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb42nuq" + "value": "bigweb34nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_af1f21fe8b774be7afe8c69b8e5bb668", + "redirectURL": "/api/v2/shipments/shp_e23c0c4a3c17497a8ca08addbae1c50a", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:40.352Z", - "time": 1467, + "startedDateTime": "2023-11-30T21:45:48.227Z", + "time": 464, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1467 + "wait": 464 } }, { - "_id": "304246ff7b74dab0071b3af896ef4ecf", + "_id": "624454245c767aa2f8bb121433da0d65", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_af1f21fe8b774be7afe8c69b8e5bb668/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_e23c0c4a3c17497a8ca08addbae1c50a/smartrate" }, "response": { - "bodySize": 780, + "bodySize": 796, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 780, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:41Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_509b655985204246b67d5354736371b5\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_af1f21fe8b774be7afe8c69b8e5bb668\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:41Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:41Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_0f5a5d36ad514799b0d686a9fb410b91\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_af1f21fe8b774be7afe8c69b8e5bb668\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:41Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:41Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_51c5b48c7f92401c8b7251f79b508004\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_af1f21fe8b774be7afe8c69b8e5bb668\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:41Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:41Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_eddc16a154d64f11891079c8c8087055\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_af1f21fe8b774be7afe8c69b8e5bb668\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:41Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:41Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_0ae972139242436baace35bde1d1c7a9\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_af1f21fe8b774be7afe8c69b8e5bb668\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:41Z\"}]}" + "size": 796, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:48Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_35429bc449af48ba808966ce92236db0\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_e23c0c4a3c17497a8ca08addbae1c50a\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:48Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:48Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_a33a66e32d7e4b25a18211d7c3b22d6f\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_e23c0c4a3c17497a8ca08addbae1c50a\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:48Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:48Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_6d9b27c4152640f7be2c75737b369e0a\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_e23c0c4a3c17497a8ca08addbae1c50a\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:48Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:48Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_896712295c70428a9d857853a1ec44d0\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_e23c0c4a3c17497a8ca08addbae1c50a\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:48Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:48Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_615ea8ebb8e546459d86e4b8e29b1243\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_e23c0c4a3c17497a8ca08addbae1c50a\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:48Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7d64f8bb3ee79b0706001d1b24" + "value": "32e015f46569028cf41c9dd40030b7b6" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"7d56eab9b24401ac60b82e94ed91ef75\"" - }, { "name": "x-runtime", - "value": "0.079234" + "value": "0.183463" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb39nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:41.823Z", - "time": 481, + "startedDateTime": "2023-11-30T21:45:48.695Z", + "time": 341, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 481 + "wait": 341 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate_175702804/recording.har b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate_175702804/recording.har index e10822e96..610a7d354 100644 --- a/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate_175702804/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/gets-the-lowest-smartrate_175702804/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1530, + "bodySize": 1531, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1530, - "text": "{\"created_at\":\"2023-09-06T17:47:34Z\",\"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-09-06T17:47:34Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_75fa0bdb4cdd11eea7beac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:34+00:00\",\"updated_at\":\"2023-09-06T17:47:34+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\":null,\"parcel\":{\"id\":\"prcl_000ee76ee9ec4f77a85d57ed541e86fc\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:34Z\",\"updated_at\":\"2023-09-06T17:47:34Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_de8aa0c6ccd3468fbcc1986121dcb783\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:35Z\",\"updated_at\":\"2023-09-06T17:47:35Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_98447fa5796542f09099d1064697b603\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:35Z\",\"updated_at\":\"2023-09-06T17:47:35Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_95b2f6f8277846db8fb64d505f56ec33\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:35Z\",\"updated_at\":\"2023-09-06T17:47:35Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4136c2cb19464d2abfe38d3548b6b082\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:35Z\",\"updated_at\":\"2023-09-06T17:47:35Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_419a18682bc149339bcb94e49d39358c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:35Z\",\"updated_at\":\"2023-09-06T17:47:35Z\",\"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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_75f758b84cdd11eea7bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:34+00:00\",\"updated_at\":\"2023-09-06T17:47:34+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_75fa0bdb4cdd11eea7beac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:34+00:00\",\"updated_at\":\"2023-09-06T17:47:34+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_75f758b84cdd11eea7bcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:34+00:00\",\"updated_at\":\"2023-09-06T17:47:34+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_5cdc38a70a954e52ae6ebf0f0300a58a\",\"object\":\"Shipment\"}" + "size": 1531, + "text": "{\"created_at\":\"2023-11-30T21:45:45Z\",\"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-11-30T21:45:45Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d1344a448fc911eea841ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:45+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":null,\"parcel\":{\"id\":\"prcl_5a87cf7293d347b28e0f1acd167dbdd3\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_20202ebcf6884074aa5b322e2b5ed8f4\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_145fe8c6aa514fb6a94b866c95342314\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ef326698092f463c9ce95fae0c8d921d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_145fe8c6aa514fb6a94b866c95342314\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_03b1d9f851b240dfb9f642c529641176\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_145fe8c6aa514fb6a94b866c95342314\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d11f30e09c6543779d73e561dbc41825\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_145fe8c6aa514fb6a94b866c95342314\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_628062cfc9c14a26a232940ca761eb13\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:45Z\",\"updated_at\":\"2023-11-30T21:45:45Z\",\"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_145fe8c6aa514fb6a94b866c95342314\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d12f5a4e8fc911eea1ae3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:45+00:00\",\"updated_at\":\"2023-11-30T21:45: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_d1344a448fc911eea841ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:45+00:00\",\"updated_at\":\"2023-11-30T21:45: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_d12f5a4e8fc911eea1ae3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:45+00:00\",\"updated_at\":\"2023-11-30T21:45: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_145fe8c6aa514fb6a94b866c95342314\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bb36e79b06e8001d17ea" + "value": "32e015f365690289f0231e790030b44a" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_5cdc38a70a954e52ae6ebf0f0300a58a" + "value": "/api/v2/shipments/shp_145fe8c6aa514fb6a94b866c95342314" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"1a1f0477a4dda6d91430710c9206f1bb\"" - }, { "name": "x-runtime", - "value": "0.858861" + "value": "0.607442" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_5cdc38a70a954e52ae6ebf0f0300a58a", + "redirectURL": "/api/v2/shipments/shp_145fe8c6aa514fb6a94b866c95342314", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:34.154Z", - "time": 1322, + "startedDateTime": "2023-11-30T21:45:45.071Z", + "time": 749, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1322 + "wait": 749 } }, { - "_id": "fdc3d98a35efb95b53a87f8928312ae4", + "_id": "a4a44b00c23b807e5c18a03f32def14f", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_5cdc38a70a954e52ae6ebf0f0300a58a/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_145fe8c6aa514fb6a94b866c95342314/smartrate" }, "response": { - "bodySize": 776, + "bodySize": 792, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 776, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:35Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_de8aa0c6ccd3468fbcc1986121dcb783\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_5cdc38a70a954e52ae6ebf0f0300a58a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:35Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:35Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_98447fa5796542f09099d1064697b603\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_5cdc38a70a954e52ae6ebf0f0300a58a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:35Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:35Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_95b2f6f8277846db8fb64d505f56ec33\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_5cdc38a70a954e52ae6ebf0f0300a58a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:35Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:35Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_4136c2cb19464d2abfe38d3548b6b082\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_5cdc38a70a954e52ae6ebf0f0300a58a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:35Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:35Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_419a18682bc149339bcb94e49d39358c\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_5cdc38a70a954e52ae6ebf0f0300a58a\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:35Z\"}]}" + "size": 792, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:45Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_20202ebcf6884074aa5b322e2b5ed8f4\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_145fe8c6aa514fb6a94b866c95342314\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:45Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:45Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_ef326698092f463c9ce95fae0c8d921d\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_145fe8c6aa514fb6a94b866c95342314\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:45Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:45Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_03b1d9f851b240dfb9f642c529641176\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_145fe8c6aa514fb6a94b866c95342314\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:45Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:45Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_d11f30e09c6543779d73e561dbc41825\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_145fe8c6aa514fb6a94b866c95342314\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:45Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:45Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_628062cfc9c14a26a232940ca761eb13\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_145fe8c6aa514fb6a94b866c95342314\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:45Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8164f8bb37e79b06e9001d1874" + "value": "32e015f46569028af407a9880030b509" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"2a28295be072957ca3ffb63da7a7ce26\"" - }, { "name": "x-runtime", - "value": "0.076306" + "value": "0.320627" }, { "name": "content-encoding", @@ -267,23 +259,19 @@ }, { "name": "x-node", - "value": "bigweb32nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -294,14 +282,14 @@ "value": "close" } ], - "headersSize": 772, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:35.482Z", - "time": 570, + "startedDateTime": "2023-11-30T21:45:45.825Z", + "time": 452, "timings": { "blocked": -1, "connect": -1, @@ -309,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 570 + "wait": 452 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/insures-a-shipment_1091350575/recording.har b/test/cassettes/Shipment-Service_2987889512/insures-a-shipment_1091350575/recording.har index 054a2b729..af478cc49 100644 --- a/test/cassettes/Shipment-Service_2987889512/insures-a-shipment_1091350575/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/insures-a-shipment_1091350575/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "e8e7e51fee434b6be6eb021691a226ae", + "_id": "3ddf1077bdf1bc36347ab1f74dae17df", "_order": 0, "cache": {}, "request": { - "bodySize": 583, + "bodySize": 561, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 583 + "value": 561 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\",\"insurance\":\"0\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\",\"insurance\":\"0\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2264, + "bodySize": 2298, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2264, - "text": "{\"created_at\":\"2023-09-06T17:47:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924718\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_717f0d204cdd11eeabe23cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\":null,\"parcel\":{\"id\":\"prcl_e518bc2f985f463a8c5308f2aaa2b0d3\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_de6e59a291e3423ea5b5accfbd63cd18\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:27Z\",\"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/20230906/e8fd2c137ed1bb49e3b0369d290e6faa67.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_74695ffb387641088c0ac81da6028424\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be862cef3e8d4d01973142c7bd12f085\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_2f8b695660204ef59d39428200950011\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1521df6ff7f64a899054bdc834263efb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86e46f687aa745f2b7ac82ea679e0104\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1521df6ff7f64a899054bdc834263efb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_0dcc0f22432a4696b12e63e62317b23e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924718\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBkY2MwZjIyNDMyYTQ2OTZiMTJlNjNlNjIzMTdiMjNl\"},\"to_address\":{\"id\":\"adr_717c5eae4cdd11eeabe03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_717f0d204cdd11eeabe23cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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_717c5eae4cdd11eeabe03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\"}}}},\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"object\":\"Shipment\"}" + "size": 2298, + "text": "{\"created_at\":\"2023-11-30T21:45:37Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416721\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cc6110158fc911ee9ae8ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":null,\"parcel\":{\"id\":\"prcl_73786691c5354afcb5409c39fb33f1d7\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fa0847cad39445b99e889148671202ed\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:38Z\",\"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/20231130/e8f4b1da17e36c44d4b443ea53865530dd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b44bbafb86764c9d82529fd495d83e8a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be2aa1f8d2c84784bd161b154ca67ee9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e2d4e65fad0a4cba93da83fcc1826797\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c4b03ab8b35b47349f0091f3cc4b52de\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ec05bd4553a84ca7899529dee4c2c0ff\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c4b03ab8b35b47349f0091f3cc4b52de\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_0e7c2357667a454394d0ad859147145c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416721\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzBlN2MyMzU3NjY3YTQ1NDM5NGQwYWQ4NTkxNDcxNDVj\"},\"to_address\":{\"id\":\"adr_cc5e56848fc911eea4feac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45:37+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_cc6110158fc911ee9ae8ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45: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_cc5e56848fc911eea4feac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45:37+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.93000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_33fc7647f00742859ebbca5e2afe3ee5\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49a64f8bb2fe79b06ca001d02cc" + "value": "32e015f665690281f409636d0030ad85" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_ea6abea904a64b10b0e2fb51ccb65400" + "value": "/api/v2/shipments/shp_33fc7647f00742859ebbca5e2afe3ee5" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"4fce3c35577c899ffa4b090f45beb170\"" - }, { "name": "x-runtime", - "value": "0.895436" + "value": "1.597630" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb35nuq" + "value": "bigweb33nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_ea6abea904a64b10b0e2fb51ccb65400", + "redirectURL": "/api/v2/shipments/shp_33fc7647f00742859ebbca5e2afe3ee5", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:26.675Z", - "time": 1322, + "startedDateTime": "2023-11-30T21:45:36.886Z", + "time": 1778, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1322 + "wait": 1778 } }, { - "_id": "994ca6162bc80a8c3cc50995e1cb9c96", + "_id": "7315142ceb9e58860d45b8afd34d7bbb", "_order": 0, "cache": {}, "request": { @@ -202,15 +198,15 @@ "text": "{\"amount\":100}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_ea6abea904a64b10b0e2fb51ccb65400/insure" + "url": "https://api.easypost.com/v2/shipments/shp_33fc7647f00742859ebbca5e2afe3ee5/insure" }, "response": { - "bodySize": 2678, + "bodySize": 2699, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2678, - "text": "{\"created_at\":\"2023-09-06T17:47:27Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924718\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_717f0d204cdd11eeabe23cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_e518bc2f985f463a8c5308f2aaa2b0d3\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_de6e59a291e3423ea5b5accfbd63cd18\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:27Z\",\"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/20230906/e8fd2c137ed1bb49e3b0369d290e6faa67.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_74695ffb387641088c0ac81da6028424\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be862cef3e8d4d01973142c7bd12f085\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_2f8b695660204ef59d39428200950011\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1521df6ff7f64a899054bdc834263efb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86e46f687aa745f2b7ac82ea679e0104\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_1521df6ff7f64a899054bdc834263efb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:27Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_0dcc0f22432a4696b12e63e62317b23e\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924718\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:47:27Z\",\"updated_at\":\"2023-09-06T17:47:28Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:47:27Z\",\"shipment_id\":\"shp_ea6abea904a64b10b0e2fb51ccb65400\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:47:27Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:24:27Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzBkY2MwZjIyNDMyYTQ2OTZiMTJlNjNlNjIzMTdiMjNl\"},\"to_address\":{\"id\":\"adr_717c5eae4cdd11eeabe03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_717f0d204cdd11eeabe23cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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_717c5eae4cdd11eeabe03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:27+00:00\",\"updated_at\":\"2023-09-06T17:47:27+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_ea6abea904a64b10b0e2fb51ccb65400\",\"object\":\"Shipment\"}" + "size": 2699, + "text": "{\"created_at\":\"2023-11-30T21:45:37Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416721\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cc6110158fc911ee9ae8ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45: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\":\"100.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_73786691c5354afcb5409c39fb33f1d7\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_fa0847cad39445b99e889148671202ed\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:38Z\",\"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/20231130/e8f4b1da17e36c44d4b443ea53865530dd.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b44bbafb86764c9d82529fd495d83e8a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be2aa1f8d2c84784bd161b154ca67ee9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e2d4e65fad0a4cba93da83fcc1826797\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c4b03ab8b35b47349f0091f3cc4b52de\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ec05bd4553a84ca7899529dee4c2c0ff\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:37Z\",\"updated_at\":\"2023-11-30T21:45:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_c4b03ab8b35b47349f0091f3cc4b52de\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_0e7c2357667a454394d0ad859147145c\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416721\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:38Z\",\"updated_at\":\"2023-11-30T21:45:38Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:38Z\",\"shipment_id\":\"shp_33fc7647f00742859ebbca5e2afe3ee5\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:38Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:38Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzBlN2MyMzU3NjY3YTQ1NDM5NGQwYWQ4NTkxNDcxNDVj\"},\"to_address\":{\"id\":\"adr_cc5e56848fc911eea4feac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45:37+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_cc6110158fc911ee9ae8ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45: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_cc5e56848fc911eea4feac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:37+00:00\",\"updated_at\":\"2023-11-30T21:45:37+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.50000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_33fc7647f00742859ebbca5e2afe3ee5\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8bb30e79b06cb001d0332" + "value": "32e015f365690282f43fb9f00030aefa" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"020b743ccda438b5822bcddf5495df07\"" - }, { "name": "x-runtime", - "value": "0.165696" + "value": "0.217098" }, { "name": "content-encoding", @@ -280,7 +272,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:28.001Z", - "time": 554, + "startedDateTime": "2023-11-30T21:45:38.668Z", + "time": 394, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 554 + "wait": 394 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/one-call-buy-a-shipment-with-carbon-offset_2667011568/recording.har b/test/cassettes/Shipment-Service_2987889512/one-call-buy-a-shipment-with-carbon-offset_2667011568/recording.har deleted file mode 100644 index 1f03456e3..000000000 --- a/test/cassettes/Shipment-Service_2987889512/one-call-buy-a-shipment-with-carbon-offset_2667011568/recording.har +++ /dev/null @@ -1,324 +0,0 @@ -{ - "log": { - "_recordingName": "Shipment Service/one call buy a shipment with carbon offset", - "creator": { - "comment": "persister:fs", - "name": "Polly.JS", - "version": "6.0.5" - }, - "entries": [ - { - "_id": "9101c87146b6293c420dd895cac0458d", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 566, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 566 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 390, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":true}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments" - }, - "response": { - "bodySize": 2384, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 2384, - "text": "{\"created_at\":\"2023-09-06T17:48:10Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258925227\",\"updated_at\":\"2023-09-06T17:48:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_8b2b817a4cdd11eeb01fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:10+00:00\",\"updated_at\":\"2023-09-06T17:48:10+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_0bb20aec08964765891ce58a828ceaf4\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3c1cc023e61d4ef39e3fe7ca11792aa0\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:12Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:48:11Z\",\"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/20230906/e8273c41a04ee04b13a72fba43e7021a1e.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_5fb57620c82d4e82a5ab40fe832f2555\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_5a1a603a37154272862508543a869883\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_4591579ee7914e8ab82d78a26fa7e778\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_2db08bf686f04ec1bebfedcc493fb1f1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_ea3f36f051574409bf58fd36e45178cd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_4591579ee7914e8ab82d78a26fa7e778\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_e0f08f5ae8d4490da9c2c25d64e15fc8\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258925227\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:48:12Z\",\"updated_at\":\"2023-09-06T17:48:12Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_1fa37cfd05bc417c867fe962b0d88a19\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrX2UwZjA4ZjVhZThkNDQ5MGRhOWMyYzI1ZDY0ZTE1ZmM4\"},\"to_address\":{\"id\":\"adr_8b28cf604cdd11eeb35fac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:10+00:00\",\"updated_at\":\"2023-09-06T17:48:11+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_8b2b817a4cdd11eeb01fac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:10+00:00\",\"updated_at\":\"2023-09-06T17:48:10+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_8b28cf604cdd11eeb35fac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:10+00:00\",\"updated_at\":\"2023-09-06T17:48:11+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_1fa37cfd05bc417c867fe962b0d88a19\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bb5ae79b0726001d2557" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "location", - "value": "/api/v2/shipments/shp_1fa37cfd05bc417c867fe962b0d88a19" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"8ebdfbdf41de78d14e9ca4a7113cc7a2\"" - }, - { - "name": "x-runtime", - "value": "2.268072" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb34nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 820, - "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_1fa37cfd05bc417c867fe962b0d88a19", - "status": 201, - "statusText": "Created" - }, - "startedDateTime": "2023-09-06T17:48:09.728Z", - "time": 2661, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 2661 - } - }, - { - "_id": "c05596f04b2e37ea1343afe487a9626e", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 76, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 76 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 430, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"rate\":{\"id\":\"rate_dcae076ba23a4355b5ae35b3f75a8845\"},\"carbon_offset\":true}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_886a3c9068f842f7a62ce07c52e50764/buy" - }, - "response": { - "bodySize": 2394, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 2394, - "text": "{\"created_at\":\"2023-09-06T17:48:00Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258925210\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_853296d34cdd11eeb059ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:00+00:00\",\"updated_at\":\"2023-09-06T17:48:00+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_93a588ba0c29454a9d175a80ce7b1671\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:00Z\",\"updated_at\":\"2023-09-06T17:48:00Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_d5a964e9e8d94aedb407873aad3e0e27\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:48:11Z\",\"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/20230906/e8e02dd7d9f3f0433caccaa8551e480668.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_746c004c6d544305a30fa34ecaf1c1e0\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_05e04a2f161243b6b1c67189490de2ad\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_dcae076ba23a4355b5ae35b3f75a8845\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_9a00165cf7954b5d947975788e960612\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_9a713d13aefe4fceb8f18e15f5ce78f8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:10Z\",\"updated_at\":\"2023-09-06T17:48:10Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_dcae076ba23a4355b5ae35b3f75a8845\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_886a3c9068f842f7a62ce07c52e50764\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_7aa00362c998494e92e4b98e7d126211\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258925210\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:48:11Z\",\"updated_at\":\"2023-09-06T17:48:11Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_886a3c9068f842f7a62ce07c52e50764\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzdhYTAwMzYyYzk5ODQ5NGU5MmU0Yjk4ZTdkMTI2MjEx\"},\"to_address\":{\"id\":\"adr_8530874b4cdd11ee8fc6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:00+00:00\",\"updated_at\":\"2023-09-06T17:48:10+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_853296d34cdd11eeb059ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:00+00:00\",\"updated_at\":\"2023-09-06T17:48:00+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_8530874b4cdd11ee8fc6ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:00+00:00\",\"updated_at\":\"2023-09-06T17:48:10+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"CarbonOffsetFee\",\"amount\":\"0.11000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_886a3c9068f842f7a62ce07c52e50764\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b8164f8bb5ae79b0727001d258b" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"b98e0248755761026067aa03f7bd8b5c\"" - }, - { - "name": "x-runtime", - "value": "1.056667" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb42nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 754, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2023-09-06T17:48:10.308Z", - "time": 1519, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1519 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_1334500637/recording.har b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_1334500637/recording.har index 632acc82b..6f4fd4f4a 100644 --- a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_1334500637/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_1334500637/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1520, + "bodySize": 1538, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1520, - "text": "{\"created_at\":\"2023-09-06T17:47:45Z\",\"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-09-06T17:47:45Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7c6882984cdd11eeb1b03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:45+00:00\",\"updated_at\":\"2023-09-06T17:47: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\":null,\"parcel\":{\"id\":\"prcl_206f75fbdcb0440bbb5f2dfb7eedff50\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:45Z\",\"updated_at\":\"2023-09-06T17:47:45Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_284a357a76584edb96b882aade17059e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:46Z\",\"updated_at\":\"2023-09-06T17:47:46Z\",\"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_375526b64feb4c58b7f9ebb223b2f0ae\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_80114efb28174202a7a58e1595af0e57\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:46Z\",\"updated_at\":\"2023-09-06T17:47:46Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_375526b64feb4c58b7f9ebb223b2f0ae\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_37547b3672df482d97dc165753c708f7\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:46Z\",\"updated_at\":\"2023-09-06T17:47:46Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_375526b64feb4c58b7f9ebb223b2f0ae\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b1b5e7ed080e486983aa923e50c3a2d7\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:46Z\",\"updated_at\":\"2023-09-06T17:47:46Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_375526b64feb4c58b7f9ebb223b2f0ae\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c75d381406c14636aa46c417fbcf22dc\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:46Z\",\"updated_at\":\"2023-09-06T17:47:46Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_375526b64feb4c58b7f9ebb223b2f0ae\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_7c65678f4cdd11eeab3dac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:45+00:00\",\"updated_at\":\"2023-09-06T17:47: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_7c6882984cdd11eeb1b03cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:45+00:00\",\"updated_at\":\"2023-09-06T17:47: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_7c65678f4cdd11eeab3dac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:45+00:00\",\"updated_at\":\"2023-09-06T17:47: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_375526b64feb4c58b7f9ebb223b2f0ae\",\"object\":\"Shipment\"}" + "size": 1538, + "text": "{\"created_at\":\"2023-11-30T21:45:50Z\",\"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-11-30T21:45:50Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d401b4c48fc911eea9eeac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:50+00:00\",\"updated_at\":\"2023-11-30T21:45:50+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\":null,\"parcel\":{\"id\":\"prcl_b0393821dedf40e5b255df2fb0599321\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_9a6bfcf59d224c16ba3f3c1f3e674067\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_2603b546e38646ae9138edb895525095\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_de1d091131ab46448e69d426b73f73b9\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_2603b546e38646ae9138edb895525095\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_085f01a3619c4d448df743c2a4e97a8f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_2603b546e38646ae9138edb895525095\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_26ac29be79de4be99c10c931dc09e774\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_2603b546e38646ae9138edb895525095\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c51e1e3bcb8b4fe3bd2c6c47c4c73967\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:50Z\",\"updated_at\":\"2023-11-30T21:45:50Z\",\"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_2603b546e38646ae9138edb895525095\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d3ff53a78fc911eea3493cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:50+00:00\",\"updated_at\":\"2023-11-30T21:45:50+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_d401b4c48fc911eea9eeac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:50+00:00\",\"updated_at\":\"2023-11-30T21:45:50+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_d3ff53a78fc911eea3493cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:50+00:00\",\"updated_at\":\"2023-11-30T21:45:50+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_2603b546e38646ae9138edb895525095\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bb41e79b0709001d1c7d" + "value": "32e015f86569028ef41bffef0030b8e8" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_375526b64feb4c58b7f9ebb223b2f0ae" + "value": "/api/v2/shipments/shp_2603b546e38646ae9138edb895525095" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"9541f3481548ec4ca046fba0bbd23ad8\"" - }, { "name": "x-runtime", - "value": "1.210977" + "value": "0.295129" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_375526b64feb4c58b7f9ebb223b2f0ae", + "redirectURL": "/api/v2/shipments/shp_2603b546e38646ae9138edb895525095", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:44.964Z", - "time": 1671, + "startedDateTime": "2023-11-30T21:45:49.981Z", + "time": 448, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1671 + "wait": 448 } }, { - "_id": "456d2055f0e2cd6b10cd69c30c07fa20", + "_id": "a37559cc871649371b0cf678da85198a", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_375526b64feb4c58b7f9ebb223b2f0ae/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_2603b546e38646ae9138edb895525095/smartrate" }, "response": { - "bodySize": 756, + "bodySize": 788, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 756, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:46Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_284a357a76584edb96b882aade17059e\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_375526b64feb4c58b7f9ebb223b2f0ae\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:46Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:46Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_80114efb28174202a7a58e1595af0e57\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_375526b64feb4c58b7f9ebb223b2f0ae\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:46Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:46Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_37547b3672df482d97dc165753c708f7\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_375526b64feb4c58b7f9ebb223b2f0ae\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:46Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:46Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_b1b5e7ed080e486983aa923e50c3a2d7\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_375526b64feb4c58b7f9ebb223b2f0ae\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:46Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:46Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_c75d381406c14636aa46c417fbcf22dc\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_375526b64feb4c58b7f9ebb223b2f0ae\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:46Z\"}]}" + "size": 788, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:50Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_9a6bfcf59d224c16ba3f3c1f3e674067\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_2603b546e38646ae9138edb895525095\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:50Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:50Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_de1d091131ab46448e69d426b73f73b9\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_2603b546e38646ae9138edb895525095\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:50Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:50Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_085f01a3619c4d448df743c2a4e97a8f\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_2603b546e38646ae9138edb895525095\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:50Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:50Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_26ac29be79de4be99c10c931dc09e774\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_2603b546e38646ae9138edb895525095\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:50Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:50Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_c51e1e3bcb8b4fe3bd2c6c47c4c73967\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_2603b546e38646ae9138edb895525095\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:50Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bb43e79b070a001d1d03" + "value": "32e015fa6569028ef41bf7ee0030b95b" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"9ddcd09be0c5aaf90fc67dd445c2d61e\"" - }, { "name": "x-runtime", - "value": "0.080021" + "value": "0.094931" }, { "name": "content-encoding", @@ -271,7 +263,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:46.640Z", - "time": 471, + "startedDateTime": "2023-11-30T21:45:50.433Z", + "time": 238, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 471 + "wait": 238 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_2389038355/recording.har b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_2389038355/recording.har index 79df1fb8f..ccb64d772 100644 --- a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_2389038355/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-getLowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_2389038355/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1512, + "bodySize": 1526, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1512, - "text": "{\"created_at\":\"2023-09-06T17:47:42Z\",\"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-09-06T17:47:42Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_7ad49a644cdd11ee8c25ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:42+00:00\",\"updated_at\":\"2023-09-06T17:47:42+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\":null,\"parcel\":{\"id\":\"prcl_3ac8cd37912949088a45ddcc52c7a091\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:42Z\",\"updated_at\":\"2023-09-06T17:47:42Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_4c59dd90e3124674a2703045c054d005\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:44Z\",\"updated_at\":\"2023-09-06T17:47:44Z\",\"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_bf73db17db404cafb0f47d921878d875\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_85ed1149f8cc497a959d384228c97c91\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:44Z\",\"updated_at\":\"2023-09-06T17:47:44Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_bf73db17db404cafb0f47d921878d875\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_aa16534204b3422e9b935efac1858828\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:44Z\",\"updated_at\":\"2023-09-06T17:47:44Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bf73db17db404cafb0f47d921878d875\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5dbf0a4fd85a4754916dc208754af502\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:44Z\",\"updated_at\":\"2023-09-06T17:47:44Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bf73db17db404cafb0f47d921878d875\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ae50d74cf7024374882213aec2c7b60c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:44Z\",\"updated_at\":\"2023-09-06T17:47:44Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_bf73db17db404cafb0f47d921878d875\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_7ad1c9cf4cdd11ee8c23ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:42+00:00\",\"updated_at\":\"2023-09-06T17:47:42+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_7ad49a644cdd11ee8c25ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:42+00:00\",\"updated_at\":\"2023-09-06T17:47:42+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_7ad1c9cf4cdd11ee8c23ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:42+00:00\",\"updated_at\":\"2023-09-06T17:47:42+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_bf73db17db404cafb0f47d921878d875\",\"object\":\"Shipment\"}" + "size": 1526, + "text": "{\"created_at\":\"2023-11-30T21:45:49Z\",\"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-11-30T21:45:49Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d390590a8fc911eea912ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:49+00:00\",\"updated_at\":\"2023-11-30T21:45:49+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\":null,\"parcel\":{\"id\":\"prcl_2bd199345c854d95bbb9ea76842f10a4\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e91f54689ece4435a9870e1eb125a66e\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"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_deacd20f1d39461f87c308b1f136b33e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1e74af38303245918ffdbdd2b04c5447\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_deacd20f1d39461f87c308b1f136b33e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_80ec31c82e0d41e4a0d05e7eb5f25066\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_deacd20f1d39461f87c308b1f136b33e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cb2dd29d5f584e41801f3affcc1920d7\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_deacd20f1d39461f87c308b1f136b33e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e0a7a875014147288790cfd1dfa51814\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:49Z\",\"updated_at\":\"2023-11-30T21:45:49Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_deacd20f1d39461f87c308b1f136b33e\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d38adb608fc911eea30c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:49+00:00\",\"updated_at\":\"2023-11-30T21:45:49+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_d390590a8fc911eea912ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:49+00:00\",\"updated_at\":\"2023-11-30T21:45:49+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_d38adb608fc911eea30c3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:49+00:00\",\"updated_at\":\"2023-11-30T21:45:49+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_deacd20f1d39461f87c308b1f136b33e\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bb3ee79b0707001d1b52" + "value": "32e015fa6569028df01eb3530030b809" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_bf73db17db404cafb0f47d921878d875" + "value": "/api/v2/shipments/shp_deacd20f1d39461f87c308b1f136b33e" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"9f321e420c265d893518180e3485b788\"" - }, { "name": "x-runtime", - "value": "1.621950" + "value": "0.562068" }, { "name": "content-encoding", @@ -123,23 +119,19 @@ }, { "name": "x-node", - "value": "bigweb43nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", "value": "easypost" }, - { - "name": "x-canary", - "value": "direct" - }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -150,14 +142,14 @@ "value": "close" } ], - "headersSize": 838, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_bf73db17db404cafb0f47d921878d875", + "redirectURL": "/api/v2/shipments/shp_deacd20f1d39461f87c308b1f136b33e", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:42.315Z", - "time": 2067, + "startedDateTime": "2023-11-30T21:45:49.043Z", + "time": 687, "timings": { "blocked": -1, "connect": -1, @@ -165,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 2067 + "wait": 687 } }, { - "_id": "a360ddd0b3ed4e43e6c3bca455278e6c", + "_id": "ae51f903c5200104921d085aef968f91", "_order": 0, "cache": {}, "request": { @@ -197,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_bf73db17db404cafb0f47d921878d875/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_deacd20f1d39461f87c308b1f136b33e/smartrate" }, "response": { - "bodySize": 764, + "bodySize": 780, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 764, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:44Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_4c59dd90e3124674a2703045c054d005\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_bf73db17db404cafb0f47d921878d875\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:44Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:44Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_85ed1149f8cc497a959d384228c97c91\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_bf73db17db404cafb0f47d921878d875\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:44Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:44Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_aa16534204b3422e9b935efac1858828\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_bf73db17db404cafb0f47d921878d875\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:44Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:44Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_5dbf0a4fd85a4754916dc208754af502\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_bf73db17db404cafb0f47d921878d875\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:44Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:44Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_ae50d74cf7024374882213aec2c7b60c\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_bf73db17db404cafb0f47d921878d875\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:44Z\"}]}" + "size": 780, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:49Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_e91f54689ece4435a9870e1eb125a66e\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_deacd20f1d39461f87c308b1f136b33e\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:49Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:49Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_1e74af38303245918ffdbdd2b04c5447\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_deacd20f1d39461f87c308b1f136b33e\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:49Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:49Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_80ec31c82e0d41e4a0d05e7eb5f25066\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_deacd20f1d39461f87c308b1f136b33e\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:49Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:49Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_cb2dd29d5f584e41801f3affcc1920d7\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_deacd20f1d39461f87c308b1f136b33e\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:49Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:49Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_e0a7a875014147288790cfd1dfa51814\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_deacd20f1d39461f87c308b1f136b33e\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:49Z\"}]}" }, "cookies": [], "headers": [ @@ -235,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7d64f8bb40e79b0708001d1c3c" + "value": "32e015fa6569028ef41c87a80030b8a6" }, { "name": "cache-control", @@ -253,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"4e9224e4616dd8847e96e57a6209a415\"" - }, { "name": "x-runtime", - "value": "0.181449" + "value": "0.092747" }, { "name": "content-encoding", @@ -271,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb36nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -283,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -294,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:44.389Z", - "time": 565, + "startedDateTime": "2023-11-30T21:45:49.734Z", + "time": 237, "timings": { "blocked": -1, "connect": -1, @@ -309,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 565 + "wait": 237 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_3569832305/recording.har b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_3569832305/recording.har index 442db773e..b31589ac7 100644 --- a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_3569832305/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryAccuracy_3569832305/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1530, + "bodySize": 1542, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1530, - "text": "{\"created_at\":\"2023-09-06T17:47:38Z\",\"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-09-06T17:47:38Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_786acfa64cdd11ee8b71ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:38+00:00\",\"updated_at\":\"2023-09-06T17:47:38+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\":null,\"parcel\":{\"id\":\"prcl_44bcb680b911470cbd60d82cb0a638fc\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:38Z\",\"updated_at\":\"2023-09-06T17:47:38Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_4764ed83a1a946ad99a8c3e4e25d165b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:39Z\",\"updated_at\":\"2023-09-06T17:47:39Z\",\"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_dc462d2e75514a719d74e5bb29cf90f2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_ae5093d5f68d49e287dfedcf4609b6d1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:39Z\",\"updated_at\":\"2023-09-06T17:47:39Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_dc462d2e75514a719d74e5bb29cf90f2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c35653ca54bd4561b39436508880ec94\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:39Z\",\"updated_at\":\"2023-09-06T17:47:39Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dc462d2e75514a719d74e5bb29cf90f2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b1b5d2989dba40ee8f52a57213f0268b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:39Z\",\"updated_at\":\"2023-09-06T17:47:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dc462d2e75514a719d74e5bb29cf90f2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cac4141cdfae42b89ece39747587ea0f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:39Z\",\"updated_at\":\"2023-09-06T17:47:39Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_dc462d2e75514a719d74e5bb29cf90f2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_786912104cdd11eea8e0ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:38+00:00\",\"updated_at\":\"2023-09-06T17:47:38+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_786acfa64cdd11ee8b71ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:38+00:00\",\"updated_at\":\"2023-09-06T17:47:38+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_786912104cdd11eea8e0ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:38+00:00\",\"updated_at\":\"2023-09-06T17:47:38+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_dc462d2e75514a719d74e5bb29cf90f2\",\"object\":\"Shipment\"}" + "size": 1542, + "text": "{\"created_at\":\"2023-11-30T21:45:47Z\",\"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-11-30T21:45:47Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d27524628fc911eea90cac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:47+00:00\",\"updated_at\":\"2023-11-30T21:45:47+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\":null,\"parcel\":{\"id\":\"prcl_0693b49ad8904554bf6e96f7f4af0f3a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_3bfcd739de71431695fc439fbbe90b9d\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_eaca5229da004a9085537eeaee357669\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4897b61672f944ad93832fb3657e7ca4\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eaca5229da004a9085537eeaee357669\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e6770430b89b49aca2275ba12c02d7de\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eaca5229da004a9085537eeaee357669\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_afb2ac94f8604bf08993329bc1991ab1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_eaca5229da004a9085537eeaee357669\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3b2171581a294a71a5294c958bd44fe1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"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_eaca5229da004a9085537eeaee357669\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d26ff5a58fc911eea26b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:47+00:00\",\"updated_at\":\"2023-11-30T21:45:47+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_d27524628fc911eea90cac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:47+00:00\",\"updated_at\":\"2023-11-30T21:45:47+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_d26ff5a58fc911eea26b3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:47+00:00\",\"updated_at\":\"2023-11-30T21:45:47+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_eaca5229da004a9085537eeaee357669\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bb3ae79b06ec001d1988" + "value": "32e015f86569028bf42b6b650030b690" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_dc462d2e75514a719d74e5bb29cf90f2" + "value": "/api/v2/shipments/shp_eaca5229da004a9085537eeaee357669" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"848567bdb3c5c53b57ac6dc7a3865023\"" - }, { "name": "x-runtime", - "value": "1.051606" + "value": "0.344681" }, { "name": "content-encoding", @@ -127,7 +123,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_dc462d2e75514a719d74e5bb29cf90f2", + "redirectURL": "/api/v2/shipments/shp_eaca5229da004a9085537eeaee357669", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:38.274Z", - "time": 1499, + "startedDateTime": "2023-11-30T21:45:47.379Z", + "time": 479, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1499 + "wait": 479 } }, { - "_id": "52b13235a7751351adaf5cd8b6e536d0", + "_id": "edff62569954dec3666310c8f2253571", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_dc462d2e75514a719d74e5bb29cf90f2/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_eaca5229da004a9085537eeaee357669/smartrate" }, "response": { - "bodySize": 764, + "bodySize": 788, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 764, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:39Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_4764ed83a1a946ad99a8c3e4e25d165b\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_dc462d2e75514a719d74e5bb29cf90f2\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:39Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:39Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_ae5093d5f68d49e287dfedcf4609b6d1\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_dc462d2e75514a719d74e5bb29cf90f2\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:39Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:39Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_c35653ca54bd4561b39436508880ec94\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_dc462d2e75514a719d74e5bb29cf90f2\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:39Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:39Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_b1b5d2989dba40ee8f52a57213f0268b\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_dc462d2e75514a719d74e5bb29cf90f2\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:39Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:39Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_cac4141cdfae42b89ece39747587ea0f\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_dc462d2e75514a719d74e5bb29cf90f2\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:39Z\"}]}" + "size": 788, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_3bfcd739de71431695fc439fbbe90b9d\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_eaca5229da004a9085537eeaee357669\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_4897b61672f944ad93832fb3657e7ca4\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_eaca5229da004a9085537eeaee357669\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_e6770430b89b49aca2275ba12c02d7de\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_eaca5229da004a9085537eeaee357669\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_afb2ac94f8604bf08993329bc1991ab1\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_eaca5229da004a9085537eeaee357669\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_3b2171581a294a71a5294c958bd44fe1\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_eaca5229da004a9085537eeaee357669\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:47Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7e64f8bb3ce79b0704001d1a43" + "value": "32e015fa6569028cf43d88910030b6ed" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"3527a2dbdbc38936ca9bd4154cee7861\"" - }, { "name": "x-runtime", - "value": "0.174730" + "value": "0.213696" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb36nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:39.780Z", - "time": 560, + "startedDateTime": "2023-11-30T21:45:47.861Z", + "time": 357, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 560 + "wait": 357 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_4069966983/recording.har b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_4069966983/recording.har index feb8127e3..54538c6c0 100644 --- a/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_4069966983/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/raises-an-error-for-lowestSmartRate-when-no-rates-are-found-due-to-deliveryDays_4069966983/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1534, + "bodySize": 1539, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1534, - "text": "{\"created_at\":\"2023-09-06T17:47:36Z\",\"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-09-06T17:47:36Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_771a5bf74cdd11eea501ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:36+00:00\",\"updated_at\":\"2023-09-06T17:47:36+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\":null,\"parcel\":{\"id\":\"prcl_a4319c23420743dfb2c6d35eec2a60ca\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:36Z\",\"updated_at\":\"2023-09-06T17:47:36Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_b2bf89aa8ae645de92ba3c87a8e6ab50\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:37Z\",\"updated_at\":\"2023-09-06T17:47:37Z\",\"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_72329b15b95f4b3eb55b0355decfd354\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_770c96960fa54e7aa4ddb4e574d61918\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:37Z\",\"updated_at\":\"2023-09-06T17:47:37Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_72329b15b95f4b3eb55b0355decfd354\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1bcf8a6d581b4fcb9619da976a74f51e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:37Z\",\"updated_at\":\"2023-09-06T17:47:37Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_72329b15b95f4b3eb55b0355decfd354\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f7ae4e6497a9408c8e64498a196f3e3b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:37Z\",\"updated_at\":\"2023-09-06T17:47:37Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_72329b15b95f4b3eb55b0355decfd354\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c2a4f25cc0924ba8a96a923d17664dfb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:37Z\",\"updated_at\":\"2023-09-06T17:47:37Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_72329b15b95f4b3eb55b0355decfd354\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_7716ed6c4cdd11eea845ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:36+00:00\",\"updated_at\":\"2023-09-06T17:47:36+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_771a5bf74cdd11eea501ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:36+00:00\",\"updated_at\":\"2023-09-06T17:47:36+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_7716ed6c4cdd11eea845ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:36+00:00\",\"updated_at\":\"2023-09-06T17:47:36+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_72329b15b95f4b3eb55b0355decfd354\",\"object\":\"Shipment\"}" + "size": 1539, + "text": "{\"created_at\":\"2023-11-30T21:45:46Z\",\"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-11-30T21:45:46Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_d1eba5368fc911eea8a7ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:46+00:00\",\"updated_at\":\"2023-11-30T21:45:46+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\":null,\"parcel\":{\"id\":\"prcl_389ec4bd518d42c3ac4ee24122a07dad\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:46Z\",\"updated_at\":\"2023-11-30T21:45:46Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_2df30d9e78604dea9d8e46ff78780aaf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_ca87b2c2b3cc45cabf99c5332d42414f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d9234a232a9f4ea4b4e4d7e75be25b59\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ca87b2c2b3cc45cabf99c5332d42414f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_85e99693e65e4b5180024a1f4600a882\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ca87b2c2b3cc45cabf99c5332d42414f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0a986972ae824ca2862f11f822c102f2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_ca87b2c2b3cc45cabf99c5332d42414f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1ad9e4d1d2974b338145f84ee7a2e5f3\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:47Z\",\"updated_at\":\"2023-11-30T21:45:47Z\",\"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_ca87b2c2b3cc45cabf99c5332d42414f\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_d1c96eca8fc911ee9dfeac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:46+00:00\",\"updated_at\":\"2023-11-30T21:45:46+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_d1eba5368fc911eea8a7ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:46+00:00\",\"updated_at\":\"2023-11-30T21:45:46+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_d1c96eca8fc911ee9dfeac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:46+00:00\",\"updated_at\":\"2023-11-30T21:45:46+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_ca87b2c2b3cc45cabf99c5332d42414f\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bb38e79b06ea001d18ad" + "value": "32e015f76569028af42d7f880030b581" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_72329b15b95f4b3eb55b0355decfd354" + "value": "/api/v2/shipments/shp_ca87b2c2b3cc45cabf99c5332d42414f" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"5d7065d48d211d455eba0293df5cfdd6\"" - }, { "name": "x-runtime", - "value": "1.254225" + "value": "0.553209" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb33nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_72329b15b95f4b3eb55b0355decfd354", + "redirectURL": "/api/v2/shipments/shp_ca87b2c2b3cc45cabf99c5332d42414f", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:36.062Z", - "time": 1662, + "startedDateTime": "2023-11-30T21:45:46.294Z", + "time": 687, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1662 + "wait": 687 } }, { - "_id": "4df8d305c536652c020606cdf5e77464", + "_id": "80b12c15016961740ff7701f2347f95f", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_72329b15b95f4b3eb55b0355decfd354/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_ca87b2c2b3cc45cabf99c5332d42414f/smartrate" }, "response": { - "bodySize": 764, + "bodySize": 788, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 764, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:37Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_b2bf89aa8ae645de92ba3c87a8e6ab50\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_72329b15b95f4b3eb55b0355decfd354\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:37Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:37Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_770c96960fa54e7aa4ddb4e574d61918\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_72329b15b95f4b3eb55b0355decfd354\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:37Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:37Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_1bcf8a6d581b4fcb9619da976a74f51e\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_72329b15b95f4b3eb55b0355decfd354\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:37Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:37Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_f7ae4e6497a9408c8e64498a196f3e3b\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_72329b15b95f4b3eb55b0355decfd354\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:37Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:37Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_c2a4f25cc0924ba8a96a923d17664dfb\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_72329b15b95f4b3eb55b0355decfd354\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:37Z\"}]}" + "size": 788, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_2df30d9e78604dea9d8e46ff78780aaf\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_ca87b2c2b3cc45cabf99c5332d42414f\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_d9234a232a9f4ea4b4e4d7e75be25b59\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_ca87b2c2b3cc45cabf99c5332d42414f\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_85e99693e65e4b5180024a1f4600a882\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_ca87b2c2b3cc45cabf99c5332d42414f\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_0a986972ae824ca2862f11f822c102f2\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_ca87b2c2b3cc45cabf99c5332d42414f\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:47Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:47Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_1ad9e4d1d2974b338145f84ee7a2e5f3\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_ca87b2c2b3cc45cabf99c5332d42414f\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:47Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b8264f8bb3ae79b06eb001d195d" + "value": "32e015f86569028bf450208f0030b638" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"18a5343ff4435edf0e5a8884ca42d862\"" - }, { "name": "x-runtime", - "value": "0.131010" + "value": "0.253909" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb38nuq" + "value": "bigweb31nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:37.729Z", - "time": 534, + "startedDateTime": "2023-11-30T21:45:46.988Z", + "time": 385, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 534 + "wait": 385 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/refunds-a-shipment_2011747091/recording.har b/test/cassettes/Shipment-Service_2987889512/refunds-a-shipment_2011747091/recording.har index f1e948a8e..02b49e088 100644 --- a/test/cassettes/Shipment-Service_2987889512/refunds-a-shipment_2011747091/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/refunds-a-shipment_2011747091/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2292, + "bodySize": 2314, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2292, - "text": "{\"created_at\":\"2023-09-06T17:47:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924732\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_72a3db064cdd11eea271ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:28+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_777ca92ac58141d6a7addf4f15ef1d82\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:28Z\",\"updated_at\":\"2023-09-06T17:47:28Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_92b8904dfcc94a8398a6a8b1d2acc26a\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:29Z\",\"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/20230906/e8cfb6a8cdca69405dbe0851c48e7b2d03.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0da552e6c3914acdaa0e1c5c8197438c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f89c63b487ce4b50aed43c519cbc59d5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0306b318e9084750aa5e806d96d96793\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7c204badec2c449c9c83fe3213d4b80a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d7ac4c8403e74ab0ac2b761e62d315e6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7c204badec2c449c9c83fe3213d4b80a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_43e0262bc4b44acd89692fef8b0c150b\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924732\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzQzZTAyNjJiYzRiNDRhY2Q4OTY5MmZlZjhiMGMxNTBi\"},\"to_address\":{\"id\":\"adr_72a1c2674cdd11eea26bac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:29+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_72a3db064cdd11eea271ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:28+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_72a1c2674cdd11eea26bac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:29+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c9663c43d2c04d67952b1d46f5e87f7d\",\"object\":\"Shipment\"}" + "size": 2314, + "text": "{\"created_at\":\"2023-11-30T21:45:39Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416738\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cd89754b8fc911ee9b7bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_9332391ab37f4d62812425cf8bbb8ee4\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2fa71f5d7f3648b091c631e58cd4c42c\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:41Z\",\"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/20231130/e89b18775decf34e92aea980114d73ce88.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b0cf5e8963e44e378610284a763ab31a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1632dfd8480449fda31c02222db1c384\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_88a31d18947747978bce26c462bdde40\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be74a87649244a0990808424fe87ddbf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f09b0b0d94db4cd5970fa97e4ca78a1a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_be74a87649244a0990808424fe87ddbf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_31625a81a1004d449793f28bb13c2bda\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416738\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_c5328dacaca847e089b1c4eb974a12c2\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzMxNjI1YTgxYTEwMDRkNDQ5NzkzZjI4YmIxM2MyYmRh\"},\"to_address\":{\"id\":\"adr_cd848da08fc911eea5beac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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_cd89754b8fc911ee9b7bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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_cd848da08fc911eea5beac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c5328dacaca847e089b1c4eb974a12c2\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49a64f8bb30e79b06e3001d036c" + "value": "32e015f865690283f41aeb090030af59" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_c9663c43d2c04d67952b1d46f5e87f7d" + "value": "/api/v2/shipments/shp_c5328dacaca847e089b1c4eb974a12c2" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"1113d3d15dd8baf286d83ebe9182ac17\"" - }, { "name": "x-runtime", - "value": "0.898879" + "value": "2.136845" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb34nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_c9663c43d2c04d67952b1d46f5e87f7d", + "redirectURL": "/api/v2/shipments/shp_c5328dacaca847e089b1c4eb974a12c2", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:28.567Z", - "time": 1377, + "startedDateTime": "2023-11-30T21:45:39.070Z", + "time": 2483, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1377 + "wait": 2483 } }, { - "_id": "f1bcd665746237a768b1dd65228f9481", + "_id": "0f8853d2abad3788da8c58c4e889fdf7", "_order": 0, "cache": {}, "request": { @@ -202,15 +198,15 @@ "text": "{}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_c9663c43d2c04d67952b1d46f5e87f7d/refund" + "url": "https://api.easypost.com/v2/shipments/shp_c5328dacaca847e089b1c4eb974a12c2/refund" }, "response": { - "bodySize": 2702, + "bodySize": 2704, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2702, - "text": "{\"created_at\":\"2023-09-06T17:47:29Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924732\",\"updated_at\":\"2023-09-06T17:47:30Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_72a3db064cdd11eea271ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:28+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_777ca92ac58141d6a7addf4f15ef1d82\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:28Z\",\"updated_at\":\"2023-09-06T17:47:28Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_92b8904dfcc94a8398a6a8b1d2acc26a\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:29Z\",\"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/20230906/e8cfb6a8cdca69405dbe0851c48e7b2d03.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_0da552e6c3914acdaa0e1c5c8197438c\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f89c63b487ce4b50aed43c519cbc59d5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0306b318e9084750aa5e806d96d96793\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7c204badec2c449c9c83fe3213d4b80a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d7ac4c8403e74ab0ac2b761e62d315e6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_7c204badec2c449c9c83fe3213d4b80a\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_43e0262bc4b44acd89692fef8b0c150b\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924732\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-09-06T17:47:29Z\",\"updated_at\":\"2023-09-06T17:47:29Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-09-06T17:47:29Z\",\"shipment_id\":\"shp_c9663c43d2c04d67952b1d46f5e87f7d\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-06T17:47:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-08-07T06:24:29Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzQzZTAyNjJiYzRiNDRhY2Q4OTY5MmZlZjhiMGMxNTBi\"},\"to_address\":{\"id\":\"adr_72a1c2674cdd11eea26bac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:29+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_72a3db064cdd11eea271ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:28+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_72a1c2674cdd11eea26bac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:28+00:00\",\"updated_at\":\"2023-09-06T17:47:29+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c9663c43d2c04d67952b1d46f5e87f7d\",\"object\":\"Shipment\"}" + "size": 2704, + "text": "{\"created_at\":\"2023-11-30T21:45:39Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416738\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cd89754b8fc911ee9b7bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_9332391ab37f4d62812425cf8bbb8ee4\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_2fa71f5d7f3648b091c631e58cd4c42c\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45:41Z\",\"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/20231130/e89b18775decf34e92aea980114d73ce88.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_b0cf5e8963e44e378610284a763ab31a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1632dfd8480449fda31c02222db1c384\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_88a31d18947747978bce26c462bdde40\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_be74a87649244a0990808424fe87ddbf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_f09b0b0d94db4cd5970fa97e4ca78a1a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:39Z\",\"updated_at\":\"2023-11-30T21:45:39Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":\"submitted\",\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_be74a87649244a0990808424fe87ddbf\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_c5328dacaca847e089b1c4eb974a12c2\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_31625a81a1004d449793f28bb13c2bda\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416738\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"created_at\":\"2023-11-30T21:45:41Z\",\"updated_at\":\"2023-11-30T21:45:41Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":\"2023-11-30T21:45:41Z\",\"shipment_id\":\"shp_c5328dacaca847e089b1c4eb974a12c2\",\"carrier\":\"USPS\",\"tracking_details\":[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment Info Sent to USPS\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-30T21:45:41Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":null,\"state\":null,\"country\":null,\"zip\":null}},{\"object\":\"TrackingDetail\",\"message\":\"Shipping Label Created\",\"description\":\"\",\"status\":\"pre_transit\",\"status_detail\":\"status_update\",\"datetime\":\"2023-10-31T10:22:41Z\",\"source\":\"USPS\",\"carrier_code\":\"\",\"tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"}}],\"fees\":[],\"carrier_detail\":{\"object\":\"CarrierDetail\",\"service\":\"First-Class Package Service\",\"container_type\":null,\"est_delivery_date_local\":null,\"est_delivery_time_local\":null,\"origin_location\":\"HOUSTON TX, 77001\",\"origin_tracking_location\":{\"object\":\"TrackingLocation\",\"city\":\"HOUSTON\",\"state\":\"TX\",\"country\":null,\"zip\":\"77063\"},\"destination_location\":\"CHARLESTON SC, 29401\",\"destination_tracking_location\":null,\"guaranteed_delivery_date\":null,\"alternate_identifier\":null,\"initial_delivery_attempt\":null},\"public_url\":\"https://track.easypost.com/djE6dHJrXzMxNjI1YTgxYTEwMDRkNDQ5NzkzZjI4YmIxM2MyYmRh\"},\"to_address\":{\"id\":\"adr_cd848da08fc911eea5beac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_cd89754b8fc911ee9b7bac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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_cd848da08fc911eea5beac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:39+00:00\",\"updated_at\":\"2023-11-30T21:45:39+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"5.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_c5328dacaca847e089b1c4eb974a12c2\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49864f8bb32e79b06e4001d03f2" + "value": "32e015f765690285f44f83ca0030b195" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"9791c3338d0088f0143d7282d5695031\"" - }, { "name": "x-runtime", - "value": "0.200640" + "value": "0.623369" }, { "name": "content-encoding", @@ -276,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb35nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:29.950Z", - "time": 798, + "startedDateTime": "2023-11-30T21:45:41.559Z", + "time": 768, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 798 + "wait": 768 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/regenerates-rates-for-a-shipment_3874762135/recording.har b/test/cassettes/Shipment-Service_2987889512/regenerates-rates-for-a-shipment_3874762135/recording.har index b7995c575..9f4db6e11 100644 --- a/test/cassettes/Shipment-Service_2987889512/regenerates-rates-for-a-shipment_3874762135/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/regenerates-rates-for-a-shipment_3874762135/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1974, + "bodySize": 1946, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1974, - "text": "{\"created_at\":\"2023-09-06T17:47:08Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:08Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_75b1ca8117584e9680f57d83deb16a46\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:08Z\",\"updated_at\":\"2023-09-06T17:47:08Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_ebc03fabd76748bbb9e7a8e8ef8ed296\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:08Z\",\"updated_at\":\"2023-09-06T17:47:08Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_669bd3864cdd11eea6223cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:08+00:00\",\"updated_at\":\"2023-09-06T17:47:08+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\":null,\"parcel\":{\"id\":\"prcl_f9a465a2fdf743d6ad4f246922488522\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:08Z\",\"updated_at\":\"2023-09-06T17:47:08Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_41149fefea034d7bb4bf4de00208d65e\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:09Z\",\"updated_at\":\"2023-09-06T17:47:09Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_173a4e71ae604985a32679f0aa812e2f\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:09Z\",\"updated_at\":\"2023-09-06T17:47:09Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b39e5ae4f1f34b01b5e01250b921ff73\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:09Z\",\"updated_at\":\"2023-09-06T17:47:09Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d0f14d7a04a44c9882cb5db62a4c5da4\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:09Z\",\"updated_at\":\"2023-09-06T17:47:09Z\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_3e72579d56614e058db06aa65e2f51bd\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:09Z\",\"updated_at\":\"2023-09-06T17:47:09Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_6699ff024cdd11ee9c12ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:08+00:00\",\"updated_at\":\"2023-09-06T17:47:08+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_669bd3864cdd11eea6223cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:08+00:00\",\"updated_at\":\"2023-09-06T17:47:08+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_6699ff024cdd11ee9c12ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:08+00:00\",\"updated_at\":\"2023-09-06T17:47:08+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_3ca97c4367ef41b7bdc0281c569d0f25\",\"object\":\"Shipment\"}" + "size": 1946, + "text": "{\"created_at\":\"2023-11-30T21:45:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_92f7ec68773c43efa909ca6c2a988bf7\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_3d883aedd80b4521a0f3aa5de4cf7bda\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c8b63cbe8fc911ee9ceb3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:31+00:00\",\"updated_at\":\"2023-11-30T21:45:31+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\":null,\"parcel\":{\"id\":\"prcl_aec5d247201148ae80f954f20141e498\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_35b518c6e6d04faeaadc65b274146dc2\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7fb9ea2e916a46b796dfcc371126f9bd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5f1c2107a94440d2b14c5d46358a49e5\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_07791eb2b4db4d45a0a4f5b884d6efd8\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_6bd6224853414f67aa45ac0b0dde0344\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:31Z\",\"updated_at\":\"2023-11-30T21:45:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c8b373068fc911ee9cea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:31+00:00\",\"updated_at\":\"2023-11-30T21:45:31+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_c8b63cbe8fc911ee9ceb3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:31+00:00\",\"updated_at\":\"2023-11-30T21:45:31+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_c8b373068fc911ee9cea3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:31+00:00\",\"updated_at\":\"2023-11-30T21:45:31+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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49a64f8bb1ce79b06c3001cfc6b" + "value": "32e015f56569027bf419db700030a831" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_3ca97c4367ef41b7bdc0281c569d0f25" + "value": "/api/v2/shipments/shp_d3599c1bb2dd48ee9d2b4ca3461d4ca3" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"cc55483ddb98297ae826b596b2b6b396\"" - }, { "name": "x-runtime", - "value": "0.742544" + "value": "0.322142" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb34nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_3ca97c4367ef41b7bdc0281c569d0f25", + "redirectURL": "/api/v2/shipments/shp_d3599c1bb2dd48ee9d2b4ca3461d4ca3", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:08.388Z", - "time": 1179, + "startedDateTime": "2023-11-30T21:45:31.041Z", + "time": 462, "timings": { "blocked": -1, "connect": -1, @@ -161,15 +157,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1179 + "wait": 462 } }, { - "_id": "c56a2bcc52853471ac2e270dac454320", + "_id": "804efad355e35347e9baddc8507712b6", "_order": 0, "cache": {}, "request": { - "bodySize": 23, + "bodySize": 2, "cookies": [], "headers": [ { @@ -186,31 +182,31 @@ }, { "name": "content-length", - "value": 23 + "value": 2 }, { "name": "host", "value": "api.easypost.com" } ], - "headersSize": 433, + "headersSize": 432, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"carbon_offset\":false}" + "text": "{}" }, "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_3ca97c4367ef41b7bdc0281c569d0f25/rerate" + "url": "https://api.easypost.com/v2/shipments/shp_d3599c1bb2dd48ee9d2b4ca3461d4ca3/rerate" }, "response": { - "bodySize": 708, + "bodySize": 712, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 708, - "text": "{\"rates\":[{\"id\":\"rate_49d6b83de9d54c5c8cf7c5dc8a8d0b1d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:54Z\",\"updated_at\":\"2023-09-06T17:49:54Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_36f7fd2a4e5748cfb8bacae30491c0b9\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:54Z\",\"updated_at\":\"2023-09-06T17:49:54Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bd37e0760bc74e91a86294507c2a42a7\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:54Z\",\"updated_at\":\"2023-09-06T17:49:54Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bc98c6b6eca14185b9cd6528ed28cd32\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:54Z\",\"updated_at\":\"2023-09-06T17:49:54Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0920627cb0bd47b58b6ab946b64f3d33\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:49:54Z\",\"updated_at\":\"2023-09-06T17:49:54Z\",\"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_3ca97c4367ef41b7bdc0281c569d0f25\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}]}" + "size": 712, + "text": "{\"rates\":[{\"id\":\"rate_bdb327cb43ba48be8b42a08a5b4ba226\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_9d12493cf24d4d21af146b913db708cd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_7b83cf7641c340909e5973c2cea64e7a\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b1d173b96c744afc806ffa9b4c333eed\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bbc51ed551c34b2d9b3f8f8ed15a8e17\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:32Z\",\"updated_at\":\"2023-11-30T21:45:32Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_d3599c1bb2dd48ee9d2b4ca3461d4ca3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}]}" }, "cookies": [], "headers": [ @@ -240,7 +236,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7c64f8bbc1e79b0ac8001d5040" + "value": "32e015f96569027bf42b68120030a8a8" }, { "name": "cache-control", @@ -258,13 +254,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"c146b830e75a723aaaebd7826888d9db\"" - }, { "name": "x-runtime", - "value": "0.925943" + "value": "0.482579" }, { "name": "content-encoding", @@ -276,11 +268,11 @@ }, { "name": "x-node", - "value": "bigweb41nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -288,7 +280,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -299,14 +291,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:49:53.395Z", - "time": 1353, + "startedDateTime": "2023-11-30T21:45:31.509Z", + "time": 637, "timings": { "blocked": -1, "connect": -1, @@ -314,7 +306,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1353 + "wait": 637 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/rerate-a-shipment-with-carbon-offset_4123560847/recording.har b/test/cassettes/Shipment-Service_2987889512/rerate-a-shipment-with-carbon-offset_4123560847/recording.har deleted file mode 100644 index 3a7dfc128..000000000 --- a/test/cassettes/Shipment-Service_2987889512/rerate-a-shipment-with-carbon-offset_4123560847/recording.har +++ /dev/null @@ -1,324 +0,0 @@ -{ - "log": { - "_recordingName": "Shipment Service/rerate a shipment with carbon offset", - "creator": { - "comment": "persister:fs", - "name": "Polly.JS", - "version": "6.0.5" - }, - "entries": [ - { - "_id": "ce19edc764fe594a157f58fc1fb18011", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 473, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 473 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 390, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments" - }, - "response": { - "bodySize": 1518, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 1518, - "text": "{\"created_at\":\"2023-09-06T17:48:12Z\",\"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-09-06T17:48:12Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_8cc47a8f4cdd11eebaaa3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:12+00:00\",\"updated_at\":\"2023-09-06T17:48:12+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\":null,\"parcel\":{\"id\":\"prcl_8b186418682a4fd786635b6771e9ca18\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:12Z\",\"updated_at\":\"2023-09-06T17:48:12Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_5a98e869fb734b33acb8ca8e9a9ed890\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:21Z\",\"updated_at\":\"2023-09-06T17:48:21Z\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c57dfb7374ec4eb69d11dc86d36e2d10\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:21Z\",\"updated_at\":\"2023-09-06T17:48:21Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b4ad3735e72f4c14b1acf38910254ab6\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:21Z\",\"updated_at\":\"2023-09-06T17:48:21Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_4b8a842fc0374cf689714af08802842b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:21Z\",\"updated_at\":\"2023-09-06T17:48:21Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_8569774065b349518eec3ba3645432bb\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:21Z\",\"updated_at\":\"2023-09-06T17:48:21Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_8cbeb1a14cdd11eebaa43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:12+00:00\",\"updated_at\":\"2023-09-06T17:48:12+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_8cc47a8f4cdd11eebaaa3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:12+00:00\",\"updated_at\":\"2023-09-06T17:48:12+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_8cbeb1a14cdd11eebaa43cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:12+00:00\",\"updated_at\":\"2023-09-06T17:48:12+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_46a95b0d4ca04a52b8adc405a6743f65\",\"object\":\"Shipment\"}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b8064f8bb5ce79b0728001d2669" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "location", - "value": "/api/v2/shipments/shp_46a95b0d4ca04a52b8adc405a6743f65" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"e719ff560451f92848900ad9a2d56b72\"" - }, - { - "name": "x-runtime", - "value": "8.381766" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb38nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 820, - "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_46a95b0d4ca04a52b8adc405a6743f65", - "status": 201, - "statusText": "Created" - }, - "startedDateTime": "2023-09-06T17:48:12.399Z", - "time": 8763, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 8763 - } - }, - { - "_id": "cdb992526420e0154d26ef1f80bb3f4a", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 22, - "cookies": [], - "headers": [ - { - "name": "accept-encoding", - "value": "gzip, deflate" - }, - { - "name": "accept", - "value": "application/json" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "content-length", - "value": 22 - }, - { - "name": "host", - "value": "api.easypost.com" - } - ], - "headersSize": 433, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "{\"carbon_offset\":true}" - }, - "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_46a95b0d4ca04a52b8adc405a6743f65/rerate" - }, - "response": { - "bodySize": 764, - "content": { - "encoding": "base64", - "mimeType": "application/json; charset=utf-8", - "size": 764, - "text": "{\"rates\":[{\"id\":\"rate_2a142774f9c4459e97b0c0665071d86d\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:50:01Z\",\"updated_at\":\"2023-09-06T17:50:01Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_d98b084aa55147feb08e005c3fe91c35\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:50:01Z\",\"updated_at\":\"2023-09-06T17:50:01Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_04d3f2f0783f4f579b217ecb11209405\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:50:01Z\",\"updated_at\":\"2023-09-06T17:50:01Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_ff0b2216c94d4bd9abab816eb969c0af\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:50:01Z\",\"updated_at\":\"2023-09-06T17:50:01Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}},{\"id\":\"rate_69c2361774a641ae9f1e5fa2d5053af5\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:50:01Z\",\"updated_at\":\"2023-09-06T17:50:01Z\",\"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_46a95b0d4ca04a52b8adc405a6743f65\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"carbon_offset\":{\"object\":\"CarbonOffset\",\"grams\":36,\"price\":\"0.11\",\"currency\":\"USD\"}}]}" - }, - "cookies": [], - "headers": [ - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-xss-protection", - "value": "1; mode=block" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "x-download-options", - "value": "noopen" - }, - { - "name": "x-permitted-cross-domain-policies", - "value": "none" - }, - { - "name": "referrer-policy", - "value": "strict-origin-when-cross-origin" - }, - { - "name": "x-ep-request-uuid", - "value": "df2a5b7f64f8bbc8e79b0ae3001d52d7" - }, - { - "name": "cache-control", - "value": "private, no-cache, no-store" - }, - { - "name": "pragma", - "value": "no-cache" - }, - { - "name": "expires", - "value": "0" - }, - { - "name": "content-type", - "value": "application/json; charset=utf-8" - }, - { - "name": "etag", - "value": "W/\"e4d52e8273255c0c9065ff195510a55f\"" - }, - { - "name": "x-runtime", - "value": "0.936064" - }, - { - "name": "content-encoding", - "value": "gzip" - }, - { - "name": "transfer-encoding", - "value": "chunked" - }, - { - "name": "x-node", - "value": "bigweb35nuq" - }, - { - "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" - }, - { - "name": "x-backend", - "value": "easypost" - }, - { - "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb1nuq 003ad9bca0" - }, - { - "name": "strict-transport-security", - "value": "max-age=31536000; includeSubDomains; preload" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 754, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2023-09-06T17:49:59.989Z", - "time": 1307, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1307 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/test/cassettes/Shipment-Service_2987889512/retrieve-time-in-transit-data-for-each-of-the-Rates-of-a-shipment_2266090777/recording.har b/test/cassettes/Shipment-Service_2987889512/retrieve-time-in-transit-data-for-each-of-the-Rates-of-a-shipment_2266090777/recording.har index 7c632f4c8..052fdb063 100644 --- a/test/cassettes/Shipment-Service_2987889512/retrieve-time-in-transit-data-for-each-of-the-Rates-of-a-shipment_2266090777/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/retrieve-time-in-transit-data-for-each-of-the-Rates-of-a-shipment_2266090777/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "ce19edc764fe594a157f58fc1fb18011", + "_id": "66a1452a15128dd58c4223dd020f429c", "_order": 0, "cache": {}, "request": { - "bodySize": 473, + "bodySize": 451, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 473 + "value": 451 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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}},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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}}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1515, + "bodySize": 1532, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1515, - "text": "{\"created_at\":\"2023-09-06T17:48: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-09-06T17:48:35Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_9a0b6adc4cdd11eeb86cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:35+00:00\",\"updated_at\":\"2023-09-06T17:48: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\":null,\"parcel\":{\"id\":\"prcl_83c8e549dc664e90825e706b0c64029d\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:48:35Z\",\"updated_at\":\"2023-09-06T17:48:35Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_95a02744a5174e2e9c40eef0f06afa1b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:36Z\",\"updated_at\":\"2023-09-06T17:48:36Z\",\"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_7a90c84279ec4947b0681e014d1f7dcf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b4729d60d40846a3aefc934163ba27b1\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:36Z\",\"updated_at\":\"2023-09-06T17:48:36Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_7a90c84279ec4947b0681e014d1f7dcf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_1dcae9615b634e55b91e68484f4c6166\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:36Z\",\"updated_at\":\"2023-09-06T17:48:36Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7a90c84279ec4947b0681e014d1f7dcf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c71cfb1234c54286b5859a78dabf68ef\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:36Z\",\"updated_at\":\"2023-09-06T17:48:36Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7a90c84279ec4947b0681e014d1f7dcf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_86278add43dd48dabd4a2cf5b96e3b49\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:48:36Z\",\"updated_at\":\"2023-09-06T17:48:36Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_7a90c84279ec4947b0681e014d1f7dcf\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_9a0910024cdd11eeb86aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:35+00:00\",\"updated_at\":\"2023-09-06T17:48: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_9a0b6adc4cdd11eeb86cac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:35+00:00\",\"updated_at\":\"2023-09-06T17:48: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_9a0910024cdd11eeb86aac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:48:35+00:00\",\"updated_at\":\"2023-09-06T17:48: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_7a90c84279ec4947b0681e014d1f7dcf\",\"object\":\"Shipment\"}" + "size": 1532, + "text": "{\"created_at\":\"2023-11-30T21:46:01Z\",\"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-11-30T21:46:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_da7935db8fc911eea2cfac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:46:01+00:00\",\"updated_at\":\"2023-11-30T21:46:01+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\":null,\"parcel\":{\"id\":\"prcl_76ff141422074eaca747a2a84b5e6455\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_a28a822ed66d457cbf4b0dcdd1ab0106\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_60b290c806574d16bc310f214beec0f1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d68e659d90434a329a37d82e26f56dca\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_60b290c806574d16bc310f214beec0f1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_2c91ddc977234da1a8caef4974939f72\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_60b290c806574d16bc310f214beec0f1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_df7656adce864218836652544286f8d1\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_60b290c806574d16bc310f214beec0f1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_982531ec2d53425780a8d2f603ccb331\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:46:01Z\",\"updated_at\":\"2023-11-30T21:46:01Z\",\"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_60b290c806574d16bc310f214beec0f1\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_da76f66d8fc911eead4dac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:46:01+00:00\",\"updated_at\":\"2023-11-30T21:46:01+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_da7935db8fc911eea2cfac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:46:01+00:00\",\"updated_at\":\"2023-11-30T21:46:01+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_da76f66d8fc911eead4dac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:46:01+00:00\",\"updated_at\":\"2023-11-30T21:46:01+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_60b290c806574d16bc310f214beec0f1\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7c64f8bb73e79b0747001d2f89" + "value": "32e015f665690299f3f74b8b0030c243" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_7a90c84279ec4947b0681e014d1f7dcf" + "value": "/api/v2/shipments/shp_60b290c806574d16bc310f214beec0f1" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"fb870d2db779a9a453ae94efabcb6991\"" - }, { "name": "x-runtime", - "value": "1.551016" + "value": "0.327879" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb39nuq" + "value": "bigweb38nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_7a90c84279ec4947b0681e014d1f7dcf", + "redirectURL": "/api/v2/shipments/shp_60b290c806574d16bc310f214beec0f1", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:48:34.671Z", - "time": 2039, + "startedDateTime": "2023-11-30T21:46:00.836Z", + "time": 474, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 2039 + "wait": 474 } }, { - "_id": "2dc7b7287f0e124f74e00a013e31dbd6", + "_id": "1c87518d4ca2820694585ee46ecf6ea2", "_order": 0, "cache": {}, "request": { @@ -195,18 +191,18 @@ "queryString": [ { "name": "planned_ship_date", - "value": "2023-09-28" + "value": "2023-12-05" } ], - "url": "https://api.easypost.com/v2/shipments/shp_7a90c84279ec4947b0681e014d1f7dcf/smartrate/delivery_date?planned_ship_date=2023-09-28" + "url": "https://api.easypost.com/v2/shipments/shp_60b290c806574d16bc310f214beec0f1/smartrate/delivery_date?planned_ship_date=2023-12-05" }, "response": { - "bodySize": 840, + "bodySize": 848, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 840, - "text": "{\"rates\":[{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":4,\"percentile_97\":4,\"percentile_99\":5},\"easypost_estimated_delivery_date\":\"2023-09-29\",\"planned_ship_date\":\"2023-09-28\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:48:36Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_95a02744a5174e2e9c40eef0f06afa1b\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_7a90c84279ec4947b0681e014d1f7dcf\",\"updated_at\":\"2023-09-06T17:48:36Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":4,\"percentile_97\":4,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-09-30\",\"planned_ship_date\":\"2023-09-28\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:48:36Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_b4729d60d40846a3aefc934163ba27b1\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_7a90c84279ec4947b0681e014d1f7dcf\",\"updated_at\":\"2023-09-06T17:48:36Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":4,\"percentile_97\":4,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-09-30\",\"planned_ship_date\":\"2023-09-28\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:48:36Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_1dcae9615b634e55b91e68484f4c6166\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_7a90c84279ec4947b0681e014d1f7dcf\",\"updated_at\":\"2023-09-06T17:48:36Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":4,\"percentile_97\":4,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-09-30\",\"planned_ship_date\":\"2023-09-28\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:48:36Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_c71cfb1234c54286b5859a78dabf68ef\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_7a90c84279ec4947b0681e014d1f7dcf\",\"updated_at\":\"2023-09-06T17:48:36Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":4,\"percentile_97\":4,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-09-30\",\"planned_ship_date\":\"2023-09-28\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:48:36Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_86278add43dd48dabd4a2cf5b96e3b49\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_7a90c84279ec4947b0681e014d1f7dcf\",\"updated_at\":\"2023-09-06T17:48:36Z\"}}]}" + "size": 848, + "text": "{\"rates\":[{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":3,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-12-07\",\"planned_ship_date\":\"2023-12-05\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:46:01Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_a28a822ed66d457cbf4b0dcdd1ab0106\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_60b290c806574d16bc310f214beec0f1\",\"updated_at\":\"2023-11-30T21:46:01Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":3,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":6},\"easypost_estimated_delivery_date\":\"2023-12-07\",\"planned_ship_date\":\"2023-12-05\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:46:01Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_d68e659d90434a329a37d82e26f56dca\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_60b290c806574d16bc310f214beec0f1\",\"updated_at\":\"2023-11-30T21:46:01Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":3,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":6},\"easypost_estimated_delivery_date\":\"2023-12-07\",\"planned_ship_date\":\"2023-12-05\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:46:01Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_2c91ddc977234da1a8caef4974939f72\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_60b290c806574d16bc310f214beec0f1\",\"updated_at\":\"2023-11-30T21:46:01Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":2,\"percentile_75\":3,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":6},\"easypost_estimated_delivery_date\":\"2023-12-07\",\"planned_ship_date\":\"2023-12-05\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:46:01Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_df7656adce864218836652544286f8d1\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_60b290c806574d16bc310f214beec0f1\",\"updated_at\":\"2023-11-30T21:46:01Z\"}},{\"easypost_time_in_transit_data\":{\"days_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"easypost_estimated_delivery_date\":\"2023-12-06\",\"planned_ship_date\":\"2023-12-05\"},\"rate\":{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:46:01Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_982531ec2d53425780a8d2f603ccb331\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_60b290c806574d16bc310f214beec0f1\",\"updated_at\":\"2023-11-30T21:46:01Z\"}}]}" }, "cookies": [], "headers": [ @@ -236,7 +232,7 @@ }, { "name": "x-ep-request-uuid", - "value": "df2a5b7b64f8bb75e79b0748001d3041" + "value": "02ef1918656905a8f44139100036a3b2" }, { "name": "cache-control", @@ -254,13 +250,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"59707ca5f6930172b678199bf493a500\"" - }, { "name": "x-runtime", - "value": "0.108460" + "value": "0.132791" }, { "name": "content-encoding", @@ -272,11 +264,11 @@ }, { "name": "x-node", - "value": "bigweb36nuq" + "value": "bigweb40nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -284,7 +276,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb1nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb2nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -295,14 +287,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:48:36.717Z", - "time": 509, + "startedDateTime": "2023-11-30T21:59:03.840Z", + "time": 323, "timings": { "blocked": -1, "connect": -1, @@ -310,7 +302,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 509 + "wait": 323 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/retrieves-a-shipment_1463360065/recording.har b/test/cassettes/Shipment-Service_2987889512/retrieves-a-shipment_1463360065/recording.har index 9fdd79214..29ce21b3a 100644 --- a/test/cassettes/Shipment-Service_2987889512/retrieves-a-shipment_1463360065/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/retrieves-a-shipment_1463360065/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "15c4d0c3e9f38784f6791523ede8f5c5", + "_id": "01aef4239d634dc783d139a9c1839cd8", "_order": 0, "cache": {}, "request": { - "bodySize": 896, + "bodySize": 874, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 896 + "value": 874 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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},\"customs_info\":{\"eel_pfc\":\"NOEEI 30.37(a)\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"contents_type\":\"merchandise\",\"contents_explanation\":\"\",\"restriction_type\":\"none\",\"non_delivery_option\":\"return\",\"customs_items\":[{\"description\":\"Sweet shirts\",\"quantity\":2,\"weight\":11,\"value\":23.25,\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\"}]},\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\"},\"reference\":\"123\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 1970, + "bodySize": 1974, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1970, - "text": "{\"created_at\":\"2023-09-06T17:47:01Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_f621a4b21a564009a706975e61dd11c1\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_6f78e0eaedda45289ad0ecc26e41485e\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_623269294cdd11ee9d27ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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\":null,\"parcel\":{\"id\":\"prcl_fc60965959234631b0cade0ee4f07840\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e4cce982ffd24ffd8bc2a7061c865f0b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e1c725794e084f33a0a1c91cfd3f59ad\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bbec295bdf594081892f5da1633d1701\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d4607beff9ae401d9edf8687f774d197\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_983c9d56b21547e1abc725b768c10d72\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_62300cea4cdd11ee9982ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_623269294cdd11ee9d27ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_62300cea4cdd11ee9982ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_0d7dc0063b1e4383805d35c9d87f01ee\",\"object\":\"Shipment\"}" + "size": 1974, + "text": "{\"created_at\":\"2023-11-30T21:45:28Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_75b35c1375c64377a61399c14580b64c\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_27795e7f1ebb4acb96cb3bd27ff11c95\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c72d55768fc911ee9c363cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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\":null,\"parcel\":{\"id\":\"prcl_a171ef3996d74692aa32092d5231dc6a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_86c3fe27b7084ad2bcc40e7ff5f4df65\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5fe74ca839704acab7cbc4ba2c47c1a0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cdc73a026f98410a91a73935761674cd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_49b0112fba834aa0a626516afa8d9d59\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0a8940389aea413e974d72419a80ddaa\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c72aadcb8fc911eea2dcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_c72d55768fc911ee9c363cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_c72aadcb8fc911eea2dcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_b135645e20e64fde80e8b45ea4e447a3\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49a64f8bb15e79b06a3001cf9fb" + "value": "32e015f965690278f44146140030a5b8" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_0d7dc0063b1e4383805d35c9d87f01ee" + "value": "/api/v2/shipments/shp_b135645e20e64fde80e8b45ea4e447a3" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"df64c53a806b5ad695038d6cbf4590ff\"" - }, { "name": "x-runtime", - "value": "0.824210" + "value": "0.408362" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb31nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_0d7dc0063b1e4383805d35c9d87f01ee", + "redirectURL": "/api/v2/shipments/shp_b135645e20e64fde80e8b45ea4e447a3", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:00.976Z", - "time": 1421, + "startedDateTime": "2023-11-30T21:45:28.466Z", + "time": 551, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1421 + "wait": 551 } }, { - "_id": "3cbee5c1c1572911765d93cb8f5251ea", + "_id": "9fe6b9f967632c2cf6f5fd59fee2504c", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_0d7dc0063b1e4383805d35c9d87f01ee" + "url": "https://api.easypost.com/v2/shipments/shp_b135645e20e64fde80e8b45ea4e447a3" }, "response": { - "bodySize": 1966, + "bodySize": 1974, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 1966, - "text": "{\"created_at\":\"2023-09-06T17:47:01Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-09-06T17:47:01Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_f621a4b21a564009a706975e61dd11c1\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_6f78e0eaedda45289ad0ecc26e41485e\",\"object\":\"CustomsItem\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_623269294cdd11ee9d27ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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\":null,\"parcel\":{\"id\":\"prcl_fc60965959234631b0cade0ee4f07840\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:01Z\",\"updated_at\":\"2023-09-06T17:47:01Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_e4cce982ffd24ffd8bc2a7061c865f0b\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e1c725794e084f33a0a1c91cfd3f59ad\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_bbec295bdf594081892f5da1633d1701\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d4607beff9ae401d9edf8687f774d197\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_983c9d56b21547e1abc725b768c10d72\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:02Z\",\"updated_at\":\"2023-09-06T17:47:02Z\",\"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_0d7dc0063b1e4383805d35c9d87f01ee\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_62300cea4cdd11ee9982ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_623269294cdd11ee9d27ac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_62300cea4cdd11ee9982ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:01+00:00\",\"updated_at\":\"2023-09-06T17:47:01+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_0d7dc0063b1e4383805d35c9d87f01ee\",\"object\":\"Shipment\"}" + "size": 1974, + "text": "{\"created_at\":\"2023-11-30T21:45:28Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"label_format\":\"PNG\",\"invoice_number\":\"123\",\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":\"123\",\"status\":\"unknown\",\"tracking_code\":null,\"updated_at\":\"2023-11-30T21:45:28Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":{\"id\":\"cstinfo_75b35c1375c64377a61399c14580b64c\",\"object\":\"CustomsInfo\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"contents_explanation\":\"\",\"contents_type\":\"merchandise\",\"customs_certify\":true,\"customs_signer\":\"Steve Brule\",\"eel_pfc\":\"NOEEI 30.37(a)\",\"non_delivery_option\":\"return\",\"restriction_comments\":null,\"restriction_type\":\"none\",\"mode\":\"test\",\"declaration\":null,\"customs_items\":[{\"id\":\"cstitem_27795e7f1ebb4acb96cb3bd27ff11c95\",\"object\":\"CustomsItem\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"description\":\"Sweet shirts\",\"hs_tariff_number\":\"654321\",\"origin_country\":\"US\",\"quantity\":2,\"value\":\"23.25\",\"weight\":11,\"code\":null,\"mode\":\"test\",\"manufacturer\":null,\"currency\":null,\"eccn\":null,\"printed_commodity_identifier\":null}]},\"from_address\":{\"id\":\"adr_c72d55768fc911ee9c363cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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\":null,\"parcel\":{\"id\":\"prcl_a171ef3996d74692aa32092d5231dc6a\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:28Z\",\"updated_at\":\"2023-11-30T21:45:28Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":null,\"rates\":[{\"id\":\"rate_86c3fe27b7084ad2bcc40e7ff5f4df65\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_5fe74ca839704acab7cbc4ba2c47c1a0\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_cdc73a026f98410a91a73935761674cd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_49b0112fba834aa0a626516afa8d9d59\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_0a8940389aea413e974d72419a80ddaa\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:29Z\",\"updated_at\":\"2023-11-30T21:45:29Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_b135645e20e64fde80e8b45ea4e447a3\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":null,\"tracker\":null,\"to_address\":{\"id\":\"adr_c72aadcb8fc911eea2dcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_c72d55768fc911ee9c363cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_c72aadcb8fc911eea2dcac1f6bc539aa\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:28+00:00\",\"updated_at\":\"2023-11-30T21:45:28+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_b135645e20e64fde80e8b45ea4e447a3\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49e64f8bb16e79b06a5001cfa6e" + "value": "32e015f565690279f02323020030a647" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"df64c53a806b5ad695038d6cbf4590ff\"" - }, { "name": "x-runtime", - "value": "0.084616" + "value": "0.088588" }, { "name": "content-encoding", @@ -267,11 +259,11 @@ }, { "name": "x-node", - "value": "bigweb33nuq" + "value": "bigweb42nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:02.402Z", - "time": 457, + "startedDateTime": "2023-11-30T21:45:29.022Z", + "time": 235, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 457 + "wait": 235 } } ], diff --git a/test/cassettes/Shipment-Service_2987889512/retrieves-smartRates-of-a-shipment_606149918/recording.har b/test/cassettes/Shipment-Service_2987889512/retrieves-smartRates-of-a-shipment_606149918/recording.har index fb524ad02..bc893fe4d 100644 --- a/test/cassettes/Shipment-Service_2987889512/retrieves-smartRates-of-a-shipment_606149918/recording.har +++ b/test/cassettes/Shipment-Service_2987889512/retrieves-smartRates-of-a-shipment_606149918/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bebcacd42491b191fb6d3e4ed6ce5838", + "_id": "c2628a594ec7beea1fe54bd2ec008def", "_order": 0, "cache": {}, "request": { - "bodySize": 567, + "bodySize": 545, "cookies": [], "headers": [ { @@ -29,7 +29,7 @@ }, { "name": "content-length", - "value": 567 + "value": 545 }, { "name": "host", @@ -42,18 +42,18 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"},\"carbon_offset\":false}" + "text": "{\"shipment\":{\"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\"},\"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\"},\"parcel\":{\"length\":10,\"width\":8,\"height\":4,\"weight\":15.4},\"service\":\"First\",\"carrier_accounts\":[\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"],\"carrier\":\"USPS\"}}" }, "queryString": [], "url": "https://api.easypost.com/v2/shipments" }, "response": { - "bodySize": 2322, + "bodySize": 2318, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 2322, - "text": "{\"created_at\":\"2023-09-06T17:47:31Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105440258924756\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_73efe55f4cdd11eea351ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:31+00:00\",\"updated_at\":\"2023-09-06T17:47:31+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_6d7b940bae32479a8991988a3cc5fdd2\",\"object\":\"Parcel\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_43661a66b14c4e36863856f1490fed38\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-09-06T17:47:31Z\",\"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/20230906/e88013f3d2a7c44910a77dc26248e5d8fb.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_c2effa7f222344b480d3b7acd8df96f8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_a0fc66ed3a1e4fa9ab137811a00521d3\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_63e1afc224e04b208c9141b341054514\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_b95352cb2d1146399f57ff9961c3cb30\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_e5754cde332540e7b42838b84605ffd8\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_63e1afc224e04b208c9141b341054514\",\"object\":\"Rate\",\"created_at\":\"2023-09-06T17:47:31Z\",\"updated_at\":\"2023-09-06T17:47:31Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"6.07\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_26a3a6e6f92445628ded0226986f88f6\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_6d7ba666037743fd90ccdca82422cead\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105440258924756\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-09-06T17:47:32Z\",\"updated_at\":\"2023-09-06T17:47:32Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzZkN2JhNjY2MDM3NzQzZmQ5MGNjZGNhODI0MjJjZWFk\"},\"to_address\":{\"id\":\"adr_73edf4964cdd11ee8a24ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:31+00:00\",\"updated_at\":\"2023-09-06T17:47:31+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\"}}}},\"usps_zone\":4,\"return_address\":{\"id\":\"adr_73efe55f4cdd11eea351ac1f6bc539ae\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:31+00:00\",\"updated_at\":\"2023-09-06T17:47:31+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_73edf4964cdd11ee8a24ac1f6bc53342\",\"object\":\"Address\",\"created_at\":\"2023-09-06T17:47:31+00:00\",\"updated_at\":\"2023-09-06T17:47:31+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\"}}}},\"forms\":[],\"fees\":[{\"object\":\"Fee\",\"type\":\"LabelFee\",\"amount\":\"0.00000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"PostageFee\",\"amount\":\"6.07000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"object\":\"Shipment\"}" + "size": 2318, + "text": "{\"created_at\":\"2023-11-30T21:45:42Z\",\"is_return\":false,\"messages\":[],\"mode\":\"test\",\"options\":{\"currency\":\"USD\",\"payment\":{\"type\":\"SENDER\"},\"date_advance\":0},\"reference\":null,\"status\":\"unknown\",\"tracking_code\":\"9400100105442287416769\",\"updated_at\":\"2023-11-30T21:45:44Z\",\"batch_id\":null,\"batch_status\":null,\"batch_message\":null,\"customs_info\":null,\"from_address\":{\"id\":\"adr_cf8f6c0f8fc911eea0d13cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:42+00:00\",\"updated_at\":\"2023-11-30T21:45:42+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\":\"50.00\",\"order_id\":null,\"parcel\":{\"id\":\"prcl_20df1d36d8bb4968ba2298f726e9c5e7\",\"object\":\"Parcel\",\"created_at\":\"2023-11-30T21:45:42Z\",\"updated_at\":\"2023-11-30T21:45:42Z\",\"length\":10,\"width\":8,\"height\":4,\"predefined_package\":null,\"weight\":15.4,\"mode\":\"test\"},\"postage_label\":{\"object\":\"PostageLabel\",\"id\":\"pl_3985e84292ff49bbb66660f67aea0c39\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"date_advance\":0,\"integrated_form\":\"none\",\"label_date\":\"2023-11-30T21:45: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/20231130/e8061882650be54bf785409e84eb2e6451.png\",\"label_pdf_url\":null,\"label_zpl_url\":null,\"label_epl2_url\":null,\"label_file\":null},\"rates\":[{\"id\":\"rate_434b44bbb46646e58b6a89d9f09b5576\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_59bc82b3082b4c0c921b8281f910ece6\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"mode\":\"test\",\"service\":\"Priority\",\"carrier\":\"USPS\",\"rate\":\"6.95\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_94f5a6b698fb4f1da4728079b8bead24\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"mode\":\"test\",\"service\":\"GroundAdvantage\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_d3b1c76b47db4aeca9911cfa81d0f3bd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},{\"id\":\"rate_c287b4c91466450c94ae6419599fe25f\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"mode\":\"test\",\"service\":\"ParcelSelect\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"}],\"refund_status\":null,\"scan_form\":null,\"selected_rate\":{\"id\":\"rate_d3b1c76b47db4aeca9911cfa81d0f3bd\",\"object\":\"Rate\",\"created_at\":\"2023-11-30T21:45:43Z\",\"updated_at\":\"2023-11-30T21:45:43Z\",\"mode\":\"test\",\"service\":\"First\",\"carrier\":\"USPS\",\"rate\":\"5.93\",\"currency\":\"USD\",\"retail_rate\":\"8.00\",\"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_8df6f469f19b4636afe19a5daba16260\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\"},\"tracker\":{\"id\":\"trk_1610e1a3b8924f2bb032b9ea478b5b18\",\"object\":\"Tracker\",\"mode\":\"test\",\"tracking_code\":\"9400100105442287416769\",\"status\":\"unknown\",\"status_detail\":\"unknown\",\"created_at\":\"2023-11-30T21:45:44Z\",\"updated_at\":\"2023-11-30T21:45:44Z\",\"signed_by\":null,\"weight\":null,\"est_delivery_date\":null,\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"carrier\":\"USPS\",\"tracking_details\":[],\"fees\":[],\"carrier_detail\":null,\"public_url\":\"https://track.easypost.com/djE6dHJrXzE2MTBlMWEzYjg5MjRmMmJiMDMyYjllYTQ3OGI1YjE4\"},\"to_address\":{\"id\":\"adr_cf8c1f948fc911eea0cc3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:42+00:00\",\"updated_at\":\"2023-11-30T21:45:43+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_cf8f6c0f8fc911eea0d13cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:42+00:00\",\"updated_at\":\"2023-11-30T21:45:42+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_cf8c1f948fc911eea0cc3cecef1b359e\",\"object\":\"Address\",\"created_at\":\"2023-11-30T21:45:42+00:00\",\"updated_at\":\"2023-11-30T21:45:43+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.93000\",\"charged\":true,\"refunded\":false},{\"object\":\"Fee\",\"type\":\"InsuranceFee\",\"amount\":\"0.25000\",\"charged\":true,\"refunded\":false}],\"id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"object\":\"Shipment\"}" }, "cookies": [], "headers": [ @@ -83,7 +83,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49764f8bb33e79b06e5001d0440" + "value": "32e015f365690286f42ea0ab0030b22f" }, { "name": "cache-control", @@ -99,19 +99,15 @@ }, { "name": "location", - "value": "/api/v2/shipments/shp_26a3a6e6f92445628ded0226986f88f6" + "value": "/api/v2/shipments/shp_8df6f469f19b4636afe19a5daba16260" }, { "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"122e9693305a8bb277b1a34f86ff677e\"" - }, { "name": "x-runtime", - "value": "0.939754" + "value": "1.544353" }, { "name": "content-encoding", @@ -123,11 +119,11 @@ }, { "name": "x-node", - "value": "bigweb38nuq" + "value": "bigweb31nuq" }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -135,7 +131,7 @@ }, { "name": "x-proxied", - "value": "intlb2nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb2nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -146,14 +142,14 @@ "value": "close" } ], - "headersSize": 820, + "headersSize": 776, "httpVersion": "HTTP/1.1", - "redirectURL": "/api/v2/shipments/shp_26a3a6e6f92445628ded0226986f88f6", + "redirectURL": "/api/v2/shipments/shp_8df6f469f19b4636afe19a5daba16260", "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-09-06T17:47:30.759Z", - "time": 1502, + "startedDateTime": "2023-11-30T21:45:42.341Z", + "time": 1687, "timings": { "blocked": -1, "connect": -1, @@ -161,11 +157,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1502 + "wait": 1687 } }, { - "_id": "3a3cbdd1d50adbea786798b317a8d9f2", + "_id": "0a9eb438712c25d5228dfb09042cbda0", "_order": 0, "cache": {}, "request": { @@ -193,15 +189,15 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.easypost.com/v2/shipments/shp_26a3a6e6f92445628ded0226986f88f6/smartrate" + "url": "https://api.easypost.com/v2/shipments/shp_8df6f469f19b4636afe19a5daba16260/smartrate" }, "response": { - "bodySize": 776, + "bodySize": 780, "content": { "encoding": "base64", "mimeType": "application/json; charset=utf-8", - "size": 776, - "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_c2effa7f222344b480d3b7acd8df96f8\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_a0fc66ed3a1e4fa9ab137811a00521d3\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_63e1afc224e04b208c9141b341054514\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_b95352cb2d1146399f57ff9961c3cb30\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.07,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":2,\"percentile_97\":3,\"percentile_99\":3},\"updated_at\":\"2023-09-06T17:47:31Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-09-06T17:47:31Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_e5754cde332540e7b42838b84605ffd8\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_26a3a6e6f92445628ded0226986f88f6\",\"time_in_transit\":{\"percentile_50\":1,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":2,\"percentile_95\":3,\"percentile_97\":3,\"percentile_99\":4},\"updated_at\":\"2023-09-06T17:47:31Z\"}]}" + "size": 780, + "text": "{\"result\":[{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:43Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":null,\"est_delivery_days\":null,\"id\":\"rate_434b44bbb46646e58b6a89d9f09b5576\",\"list_currency\":\"USD\",\"list_rate\":31.25,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":31.25,\"retail_currency\":\"USD\",\"retail_rate\":35.8,\"service\":\"Express\",\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":5},\"updated_at\":\"2023-11-30T21:45:43Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:43Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":2,\"est_delivery_days\":2,\"id\":\"rate_59bc82b3082b4c0c921b8281f910ece6\",\"list_currency\":\"USD\",\"list_rate\":8.24,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":6.95,\"retail_currency\":\"USD\",\"retail_rate\":10.2,\"service\":\"Priority\",\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":2,\"percentile_90\":3,\"percentile_95\":3,\"percentile_97\":4,\"percentile_99\":6},\"updated_at\":\"2023-11-30T21:45:43Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:43Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_94f5a6b698fb4f1da4728079b8bead24\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"GroundAdvantage\",\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:43Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:43Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_d3b1c76b47db4aeca9911cfa81d0f3bd\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"First\",\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:43Z\"},{\"carrier\":\"USPS\",\"carrier_account_id\":\"ca_5ba7ca3632c54adeb17ad4bcac13c890\",\"created_at\":\"2023-11-30T21:45:43Z\",\"currency\":\"USD\",\"delivery_date\":null,\"delivery_date_guaranteed\":false,\"delivery_days\":3,\"est_delivery_days\":3,\"id\":\"rate_c287b4c91466450c94ae6419599fe25f\",\"list_currency\":\"USD\",\"list_rate\":6.07,\"mode\":\"test\",\"object\":\"Rate\",\"rate\":5.93,\"retail_currency\":\"USD\",\"retail_rate\":8,\"service\":\"ParcelSelect\",\"shipment_id\":\"shp_8df6f469f19b4636afe19a5daba16260\",\"time_in_transit\":{\"percentile_50\":2,\"percentile_75\":2,\"percentile_85\":3,\"percentile_90\":3,\"percentile_95\":5,\"percentile_97\":6,\"percentile_99\":9},\"updated_at\":\"2023-11-30T21:45:43Z\"}]}" }, "cookies": [], "headers": [ @@ -231,7 +227,7 @@ }, { "name": "x-ep-request-uuid", - "value": "b9d2c49d64f8bb34e79b06e6001d04ce" + "value": "32e015f865690288f02211f60030b377" }, { "name": "cache-control", @@ -249,13 +245,9 @@ "name": "content-type", "value": "application/json; charset=utf-8" }, - { - "name": "etag", - "value": "W/\"6caae30b1dd0c1f93ac78a3eb347d807\"" - }, { "name": "x-runtime", - "value": "0.085184" + "value": "0.326755" }, { "name": "content-encoding", @@ -271,7 +263,7 @@ }, { "name": "x-version-label", - "value": "easypost-202309052324-fe928dc813-master" + "value": "easypost-202311301748-2efb918c5f-master" }, { "name": "x-backend", @@ -279,7 +271,7 @@ }, { "name": "x-proxied", - "value": "intlb1nuq 2bcb349163, extlb2nuq 003ad9bca0" + "value": "intlb1nuq b3de2c47ef, extlb1nuq 003ad9bca0" }, { "name": "strict-transport-security", @@ -290,14 +282,14 @@ "value": "close" } ], - "headersSize": 754, + "headersSize": 710, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-06T17:47:32.266Z", - "time": 475, + "startedDateTime": "2023-11-30T21:45:44.035Z", + "time": 471, "timings": { "blocked": -1, "connect": -1, @@ -305,7 +297,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 475 + "wait": 471 } } ], diff --git a/test/helpers/fixture.js b/test/helpers/fixture.js index 5ac36188d..419d4dffa 100644 --- a/test/helpers/fixture.js +++ b/test/helpers/fixture.js @@ -97,7 +97,7 @@ export default class Fixture { // If you need to re-record cassettes, increment the date below and ensure it is one day in the future, // USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. static basicPickup() { - const pickupDate = '2023-09-10'; + const pickupDate = '2023-12-05'; const pickupData = this.readFixtureData().pickups.basic; pickupData.min_datetime = pickupDate; @@ -140,6 +140,6 @@ export default class Fixture { } static plannedShipDate() { - return '2023-09-28'; + return '2023-12-05'; } } diff --git a/test/services/batch.test.js b/test/services/batch.test.js index ee45e9f38..0b0f26d15 100644 --- a/test/services/batch.test.js +++ b/test/services/batch.test.js @@ -100,7 +100,7 @@ describe('Batch Service', function () { it('adds and removes shipments from a batch', async function () { const shipment = await this.client.Shipment.create(Fixture.oneCallBuyShipment()); - const batch = await this.client.Batch.create(); + const batch = await this.client.Batch.create({}); const addShipmentsResponse = await this.client.Batch.addShipments(batch.id, [shipment.id]); expect(addShipmentsResponse.num_shipments).to.equal(1); diff --git a/test/services/shipment.test.js b/test/services/shipment.test.js index 50e403b4f..a58c52807 100644 --- a/test/services/shipment.test.js +++ b/test/services/shipment.test.js @@ -199,7 +199,7 @@ describe('Shipment Service', function () { // Test lowest rate with no filters const lowestRate = shipment.lowestRate(); expect(lowestRate.service).to.equal('GroundAdvantage'); - expect(lowestRate.rate).to.equal('6.07'); + expect(lowestRate.rate).to.equal('5.93'); expect(lowestRate.carrier).to.equal('USPS'); // Test lowest rate with service filter (this rate is higher than the lowest but should filter) @@ -220,11 +220,11 @@ describe('Shipment Service', function () { // Test lowest smartrate with valid filters const lowestSmartRate = await this.client.Shipment.lowestSmartRate( shipment.id, - 2, + 3, 'percentile_90', ); expect(lowestSmartRate.service).to.equal('GroundAdvantage'); - expect(lowestSmartRate.rate).to.equal(6.07); + expect(lowestSmartRate.rate).to.equal(5.93); expect(lowestSmartRate.carrier).to.equal('USPS'); }); @@ -251,9 +251,9 @@ describe('Shipment Service', function () { const smartRates = await this.client.Shipment.getSmartRates(shipment.id); // Test lowest smartrate with valid filters - const lowestSmartRate = this.client.Utils.getLowestSmartRate(smartRates, 2, 'percentile_90'); + const lowestSmartRate = this.client.Utils.getLowestSmartRate(smartRates, 3, 'percentile_90'); expect(lowestSmartRate.service).to.equal('GroundAdvantage'); - expect(lowestSmartRate.rate).to.equal(6.07); + expect(lowestSmartRate.rate).to.equal(5.93); expect(lowestSmartRate.carrier).to.equal('USPS'); }); @@ -299,54 +299,6 @@ describe('Shipment Service', function () { expect(form.form_url).to.exist; }); - it('create a shipment with carbon offset', async function () { - const shipment = await this.client.Shipment.create(Fixture.basicShipment(), true); - - expect(shipment).to.be.an.instanceOf(Shipment); - shipment.rates.forEach((rate) => { - expect(rate.carbon_offset).not.to.be.undefined; - }); - }); - - it('buy a shipment with carbon offset', async function () { - const shipment = await this.client.Shipment.create(Fixture.basicShipment()); - const boughtShipment = await this.client.Shipment.buy( - shipment.id, - shipment.lowestRate(), - null, - true, - ); - - let foundCarbonOffset = false; - - expect(boughtShipment).to.be.an.instanceOf(Shipment); - boughtShipment.fees.forEach((fee) => { - if (fee.type === 'CarbonOffsetFee') { - foundCarbonOffset = true; - } - }); - expect(foundCarbonOffset).to.be.true; - }); - - it('one call buy a shipment with carbon offset', async function () { - const shipment = await this.client.Shipment.create(Fixture.oneCallBuyShipment(), true); - - expect(shipment).to.be.an.instanceOf(Shipment); - shipment.rates.forEach((rate) => { - expect(rate.carbon_offset).not.to.be.undefined; - }); - }); - - it('rerate a shipment with carbon offset', async function () { - const shipment = await this.client.Shipment.create(Fixture.basicShipment()); - - const newCarbonOffsetRates = await this.client.Shipment.regenerateRates(shipment.id, true); - - newCarbonOffsetRates.rates.forEach((rate) => { - expect(rate.carbon_offset).not.to.be.undefined; - }); - }); - it('buys a shipment with insuranceAmount', async function () { const shipment = await this.client.Shipment.create(Fixture.basicShipment()); const boughtShipment = await this.client.Shipment.buy(shipment.id, shipment.lowestRate(), 100); diff --git a/types/Fee/FeeType.d.ts b/types/Fee/FeeType.d.ts index 26ffebd03..04fe55530 100644 --- a/types/Fee/FeeType.d.ts +++ b/types/Fee/FeeType.d.ts @@ -1,6 +1 @@ -export declare type TFeeType = - | 'CarbonOffsetFee' - | 'InsuranceFee' - | 'LabelFee' - | 'PostageFee' - | 'TrackerFee'; +export declare type TFeeType = 'InsuranceFee' | 'LabelFee' | 'PostageFee' | 'TrackerFee'; diff --git a/types/Rate/Rate.d.ts b/types/Rate/Rate.d.ts index 08ceac279..15922b3dd 100644 --- a/types/Rate/Rate.d.ts +++ b/types/Rate/Rate.d.ts @@ -1,5 +1,4 @@ import { IDatedObject, IObjectWithId } from '../base'; -import { CarbonOffset } from '../CarbonOffset'; /** * The Rate class represents a summary of the price and details of a delivery service quote. @@ -68,15 +67,10 @@ export declare interface IRate extends IObjectWithId<'Rate'>, IDatedObject { * The billing type of the rate. */ billing_type: string; - /** - * The associated {@link CarbonOffset}, if requested. - */ - carbon_offset: CarbonOffset; } export declare class Rate implements IRate { billing_type: string; - carbon_offset: CarbonOffset; carrier: string; carrier_account_id: string; created_at: string; diff --git a/types/Shipment/Shipment.d.ts b/types/Shipment/Shipment.d.ts index 88a8a76ff..8a3848804 100644 --- a/types/Shipment/Shipment.d.ts +++ b/types/Shipment/Shipment.d.ts @@ -148,11 +148,6 @@ export declare interface IShipment extends IObjectWithId<'Shipment'>, IDatedObje * The current message of the associated BatchShipment */ batch_message: string; - - /** - * Indicate if the shipment includes a carbon offset fee - */ - carbon_offset: boolean; } export declare class Shipment implements IShipment { @@ -186,7 +181,6 @@ export declare class Shipment implements IShipment { batch_id: string; batch_status: TBatchStatus; batch_message: string; - carbon_offset: boolean; created_at: string; updated_at: string; @@ -203,10 +197,9 @@ export declare class Shipment implements IShipment { * @see https://www.easypost.com/docs/api/node#create-a-shipment * * @param {Object} params The parameters to create an {@link Shipment} with. - * @param carbonOffset indicate if the shipment should include a carbon offset fee. * @returns {Promise} The created {@link Shipment}. */ - static create(params: Object, carbonOffset?: boolean): Promise; + static create(params: Object): Promise; /** * The Shipment List is a paginated list of all Shipment objects associated with the given API Key. @@ -249,15 +242,9 @@ export declare class Shipment implements IShipment { * @param id shipment id (begins with "shp_"). * @param rate rate id (begins with "rate_") or rate object. * @param insuranceAmount amount to insure the shipment for. - * @param carbonOffset indicate if the shipment should include a carbon offset fee. * @returns {Promise} The created {@link Shipment}. */ - static buy( - id: string, - rate: string | IRate, - insuranceAmount?: number, - carbonOffset?: boolean, - ): Promise; + static buy(id: string, rate: string | IRate, insuranceAmount?: number): Promise; /** * Refunding a Shipment is available for many carriers supported by EasyPost. @@ -303,10 +290,9 @@ export declare class Shipment implements IShipment { * @see https://www.easypost.com/docs/api/node#regenerate-rates-for-a-shipment * * @param id shipment id (begins with "shp_"). - * @param carbonOffset indicate if the rates should include a carbon offset fee. * @returns {Promise} The created {@link Shipment}. */ - static regenerateRates(id: string, carbonOffset?: boolean): Promise; + static regenerateRates(id: string): Promise; /** * Insuring your Shipment is as simple as sending us the value of the contents.